diff options
author | Aaron W. Swenson <titanofold@gentoo.org> | 2012-02-22 11:28:13 +0000 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2012-02-22 11:28:13 +0000 |
commit | 80d9a0dbf9875ee5ed46b8115265a3fa6bffacb0 (patch) | |
tree | 4194816b48d840dd947ffc4c55bc3ec629768c71 /dev-db/slony1 | |
parent | Restricting pypy (diff) | |
download | gentoo-2-80d9a0dbf9875ee5ed46b8115265a3fa6bffacb0.tar.gz gentoo-2-80d9a0dbf9875ee5ed46b8115265a3fa6bffacb0.tar.bz2 gentoo-2-80d9a0dbf9875ee5ed46b8115265a3fa6bffacb0.zip |
Version bump.
(Portage version: 2.1.10.44/cvs/Linux i686)
Diffstat (limited to 'dev-db/slony1')
-rw-r--r-- | dev-db/slony1/ChangeLog | 8 | ||||
-rw-r--r-- | dev-db/slony1/files/slony1-2.1.1-ldflags.patch | 29 | ||||
-rw-r--r-- | dev-db/slony1/slony1-2.1.1.ebuild | 72 |
3 files changed, 108 insertions, 1 deletions
diff --git a/dev-db/slony1/ChangeLog b/dev-db/slony1/ChangeLog index 288a435b68fb..f3bb9a92712e 100644 --- a/dev-db/slony1/ChangeLog +++ b/dev-db/slony1/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-db/slony1 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/ChangeLog,v 1.26 2012/01/30 11:45:07 titanofold Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/ChangeLog,v 1.27 2012/02/22 11:28:13 titanofold Exp $ + +*slony1-2.1.1 (22 Feb 2012) + + 22 Feb 2012; Aaron W. Swenson <titanofold@gentoo.org> +slony1-2.1.1.ebuild, + +files/slony1-2.1.1-ldflags.patch: + Version bump. *slony1-2.1.0 (30 Jan 2012) diff --git a/dev-db/slony1/files/slony1-2.1.1-ldflags.patch b/dev-db/slony1/files/slony1-2.1.1-ldflags.patch new file mode 100644 index 000000000000..35452ad3b852 --- /dev/null +++ b/dev-db/slony1/files/slony1-2.1.1-ldflags.patch @@ -0,0 +1,29 @@ +diff -Naur a/Makefile.global.in b/Makefile.global.in +--- a/Makefile.global.in 2012-01-25 14:13:40.000000000 -0500 ++++ b/Makefile.global.in 2012-02-22 06:14:05.240047000 -0500 +@@ -80,7 +80,7 @@ + subdir=$(slony_subdir) + + override CPPFLAGS := -I${pgincludeserverdir} -I${pgincludedir} $(CPPFLAGS) +-LDFLAGS = -L${pglibdir} -L${pgpkglibdir} -lpq @NLSLIB@ ++override LDFLAGS += -L${pglibdir} -L${pgpkglibdir} -lpq @NLSLIB@ + + ifeq ($(GCC), yes) + CFLAGS += -Wall -Wmissing-prototypes -Wmissing-declarations +diff -Naur a/makefiles/Makefile.linux b/makefiles/Makefile.linux +--- a/makefiles/Makefile.linux 2012-01-25 14:13:40.000000000 -0500 ++++ b/makefiles/Makefile.linux 2012-02-22 06:15:45.652523000 -0500 +@@ -12,9 +12,9 @@ + endif + + %.so: %.o +- $(CC) -shared -o $@ $< ++ $(CC) $(LDFLAGS) -shared -o $@ $< + + %.o: %.c +- $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< ++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c -o $@ $< + +-sqlmansect = 7 +\ No newline at end of file ++sqlmansect = 7 diff --git a/dev-db/slony1/slony1-2.1.1.ebuild b/dev-db/slony1/slony1-2.1.1.ebuild new file mode 100644 index 000000000000..3caa4bb39d74 --- /dev/null +++ b/dev-db/slony1/slony1-2.1.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/slony1/slony1-2.1.1.ebuild,v 1.1 2012/02/22 11:28:13 titanofold Exp $ + +EAPI="4" + +inherit eutils versionator + +IUSE="doc perl" + +DESCRIPTION="A replication system for the PostgreSQL Database Management System" +HOMEPAGE="http://slony.info/" + +# ${P}-docs.tar.bz2 contains man pages as well as additional documentation +MAJ_PV=$(get_version_component_range 1-2) +SRC_URI="http://main.slony.info/downloads/${MAJ_PV}/source/${P}.tar.bz2 + http://main.slony.info/downloads/${MAJ_PV}/source/${P}-docs.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND="|| ( + dev-db/postgresql-server:9.1 + dev-db/postgresql-server:9.0 + dev-db/postgresql-server:8.4 + dev-db/postgresql-server:8.3 + ) + dev-db/postgresql-base[threads] + perl? ( dev-perl/DBD-Pg ) +" + +pkg_setup() { + local PGSLOT="$(postgresql-config show)" + if [[ ${PGSLOT//.} < 83 ]] ; then + eerror "You must build ${CATEGORY}/${PN} against PostgreSQL 8.3 or higher." + eerror "Set an appropriate slot with postgresql-config." + die "postgresql-config not set to 8.3 or higher." + fi + +# if [[ ${PGSLOT//.} > 90 ]] ; then +# ewarn "You are building ${CATEGORY}/${PN} against a version of PostgreSQL greater than 9.0." +# ewarn "This is neither supported here nor upstream." +# ewarn "Any bugs you encounter should be reported upstream." +# fi +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-${PV}-ldflags.patch" +} + +src_configure() { + local myconf + use perl && myconf='--with-perltools' + econf ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc HISTORY-1.1 INSTALL README SAMPLE TODO UPGRADING doc/howto/*.txt + + doman "${S}"/doc/adminguide/man{1,7}/* + + if use doc ; then + cd "${S}"/doc + dohtml -r * + fi + + newinitd "${FILESDIR}"/slony1.init slony1 + newconfd "${FILESDIR}"/slony1.conf slony1 +} |