/[gentoo-x86]/dev-db/slony1/slony1-2.1.1.ebuild
Gentoo

Contents of /dev-db/slony1/slony1-2.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Jul 28 12:24:08 2012 UTC (2 years, 1 month ago) by titanofold
Branch: MAIN
Changes since 1.4: +2 -2 lines
Add GPL-2 to $LICENSE. Fixes bug 425926.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/slony1-2.1.1.ebuild,v 1.4 2012/04/16 21:37:00 ranger Exp $
4
5 EAPI="4"
6
7 inherit eutils versionator
8
9 IUSE="doc perl"
10
11 DESCRIPTION="A replication system for the PostgreSQL Database Management System"
12 HOMEPAGE="http://slony.info/"
13
14 # ${P}-docs.tar.bz2 contains man pages as well as additional documentation
15 MAJ_PV=$(get_version_component_range 1-2)
16 SRC_URI="http://main.slony.info/downloads/${MAJ_PV}/source/${P}.tar.bz2
17 http://main.slony.info/downloads/${MAJ_PV}/source/${P}-docs.tar.bz2"
18
19 LICENSE="BSD GPL-2"
20 SLOT="0"
21 KEYWORDS="amd64 ppc x86"
22
23 DEPEND="|| (
24 dev-db/postgresql-server:9.1
25 dev-db/postgresql-server:9.0
26 dev-db/postgresql-server:8.4
27 dev-db/postgresql-server:8.3
28 )
29 dev-db/postgresql-base[threads]
30 perl? ( dev-perl/DBD-Pg )
31 "
32
33 pkg_setup() {
34 local PGSLOT="$(postgresql-config show)"
35 if [[ ${PGSLOT//.} < 83 ]] ; then
36 eerror "You must build ${CATEGORY}/${PN} against PostgreSQL 8.3 or higher."
37 eerror "Set an appropriate slot with postgresql-config."
38 die "postgresql-config not set to 8.3 or higher."
39 fi
40
41 # if [[ ${PGSLOT//.} > 90 ]] ; then
42 # ewarn "You are building ${CATEGORY}/${PN} against a version of PostgreSQL greater than 9.0."
43 # ewarn "This is neither supported here nor upstream."
44 # ewarn "Any bugs you encounter should be reported upstream."
45 # fi
46 }
47
48 src_prepare() {
49 epatch "${FILESDIR}/${PN}-${PV}-ldflags.patch"
50 }
51
52 src_configure() {
53 local myconf
54 use perl && myconf='--with-perltools'
55 econf ${myconf}
56 }
57
58 src_install() {
59 emake DESTDIR="${D}" install
60
61 dodoc HISTORY-1.1 INSTALL README SAMPLE TODO UPGRADING doc/howto/*.txt
62
63 doman "${S}"/doc/adminguide/man{1,7}/*
64
65 if use doc ; then
66 cd "${S}"/doc
67 dohtml -r *
68 fi
69
70 newinitd "${FILESDIR}"/slony1.init slony1
71 newconfd "${FILESDIR}"/slony1.conf slony1
72 }

  ViewVC Help
Powered by ViewVC 1.1.20