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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jan 12 21:37:18 2013 UTC (19 months, 1 week ago) by titanofold
Branch: MAIN
Version bump fixing bug 433509. Remove unreferenced patch.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key D1BBFDA0)

1 # Copyright 1999-2013 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.5 2012/07/28 12:24:08 titanofold 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.2
25 dev-db/postgresql-server:9.1
26 dev-db/postgresql-server:9.0
27 dev-db/postgresql-server:8.4
28 dev-db/postgresql-server:8.3
29 )
30 dev-db/postgresql-base[threads]
31 perl? ( dev-perl/DBD-Pg )
32 "
33
34 pkg_setup() {
35 local PGSLOT="$(postgresql-config show)"
36 if [[ ${PGSLOT//.} < 83 ]] ; then
37 eerror "You must build ${CATEGORY}/${PN} against PostgreSQL 8.3 or higher."
38 eerror "Set an appropriate slot with postgresql-config."
39 die "postgresql-config not set to 8.3 or higher."
40 fi
41
42 # if [[ ${PGSLOT//.} > 90 ]] ; then
43 # ewarn "You are building ${CATEGORY}/${PN} against a version of PostgreSQL greater than 9.0."
44 # ewarn "This is neither supported here nor upstream."
45 # ewarn "Any bugs you encounter should be reported upstream."
46 # fi
47 }
48
49 src_prepare() {
50 epatch "${FILESDIR}/${PN}-${PV}-ldflags.patch"
51 }
52
53 src_configure() {
54 local myconf
55 use perl && myconf='--with-perltools'
56 econf ${myconf}
57 }
58
59 src_install() {
60 emake DESTDIR="${D}" install
61
62 dodoc HISTORY-1.1 INSTALL README SAMPLE TODO UPGRADING doc/howto/*.txt
63
64 doman "${S}"/doc/adminguide/man{1,7}/*
65
66 if use doc ; then
67 cd "${S}"/doc
68 dohtml -r *
69 fi
70
71 newinitd "${FILESDIR}"/slony1.init slony1
72 newconfd "${FILESDIR}"/slony1.conf slony1
73 }

  ViewVC Help
Powered by ViewVC 1.1.20