diff options
author | Masatomo Nakano <nakano@gentoo.org> | 2005-07-27 19:32:59 +0000 |
---|---|---|
committer | Masatomo Nakano <nakano@gentoo.org> | 2005-07-27 19:32:59 +0000 |
commit | 360dd73bff2cdf8f98ee33625f73d2899b31eaf9 (patch) | |
tree | 9ac3a3ab96c20c1f8659f7ab21c78b3ace0505ca /dev-db | |
parent | Stable on sparc wrt #100316 (diff) | |
download | historical-360dd73bff2cdf8f98ee33625f73d2899b31eaf9.tar.gz historical-360dd73bff2cdf8f98ee33625f73d2899b31eaf9.tar.bz2 historical-360dd73bff2cdf8f98ee33625f73d2899b31eaf9.zip |
version bump
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/libpq/ChangeLog | 11 | ||||
-rw-r--r-- | dev-db/libpq/Manifest | 30 | ||||
-rw-r--r-- | dev-db/libpq/files/digest-libpq-7.3.10-r1 | 1 | ||||
-rw-r--r-- | dev-db/libpq/files/digest-libpq-7.4.8-r1 | 1 | ||||
-rw-r--r-- | dev-db/libpq/files/digest-libpq-8.0.1-r1 | 1 | ||||
-rw-r--r-- | dev-db/libpq/files/digest-libpq-8.0.3-r1 | 1 | ||||
-rw-r--r-- | dev-db/libpq/libpq-7.3.10-r1.ebuild | 111 | ||||
-rw-r--r-- | dev-db/libpq/libpq-7.4.8-r1.ebuild | 111 | ||||
-rw-r--r-- | dev-db/libpq/libpq-8.0.1-r1.ebuild | 111 | ||||
-rw-r--r-- | dev-db/libpq/libpq-8.0.3-r1.ebuild | 111 |
10 files changed, 472 insertions, 17 deletions
diff --git a/dev-db/libpq/ChangeLog b/dev-db/libpq/ChangeLog index b55df3df8287..35027939a714 100644 --- a/dev-db/libpq/ChangeLog +++ b/dev-db/libpq/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-db/libpq # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/ChangeLog,v 1.16 2005/07/21 15:08:38 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/ChangeLog,v 1.17 2005/07/27 19:32:59 nakano Exp $ + +*libpq-8.0.3-r1 (27 Jul 2005) +*libpq-8.0.1-r1 (27 Jul 2005) +*libpq-7.4.8-r1 (27 Jul 2005) +*libpq-7.3.10-r1 (27 Jul 2005) + + 27 Jul 2005; Masatomo Nakano <nakano@gentoo.org> +libpq-7.3.10-r1.ebuild, + +libpq-7.4.8-r1.ebuild, +libpq-8.0.1-r1.ebuild, +libpq-8.0.3-r1.ebuild: + Version bump to make sure fixing previous bugs. 21 Jul 2005; Markus Rothe <corsair@gentoo.org> libpq-8.0.3.ebuild: Stable on ppc64 diff --git a/dev-db/libpq/Manifest b/dev-db/libpq/Manifest index 5f2ece2b267e..71f96f65c97c 100644 --- a/dev-db/libpq/Manifest +++ b/dev-db/libpq/Manifest @@ -1,24 +1,22 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +MD5 e499ffca984d9aa3b99803b11e42835d libpq-8.0.3-r1.ebuild 3084 MD5 769c87b4c1e3ea2a25e870842d1d7e65 libpq-8.0.1.ebuild 3078 -MD5 f8d3d207746da2a3cd14dcaab8daab76 metadata.xml 163 +MD5 923fe3a7c29dc71c373f77fb26bd6f16 libpq-7.4.8.ebuild 3078 +MD5 d409e4f7643212a8765cc3e7a2987740 libpq-7.3.10-r1.ebuild 3085 MD5 f180b46f5c3493d138a0ec028e634aa7 libpq-8.0.3.ebuild 3074 +MD5 e845aad8443e5ecba5365162624612fb ChangeLog 2893 +MD5 f8d3d207746da2a3cd14dcaab8daab76 metadata.xml 163 +MD5 5f020ce0e3eebe655d184ae1bf7805fc libpq-8.0.1-r1.ebuild 3084 +MD5 5a35081c2ebdf81155554643603d8e78 libpq-7.4.8-r1.ebuild 3084 MD5 79ac70bf478934f08dd231e40931a324 libpq-7.3.10.ebuild 3079 -MD5 923fe3a7c29dc71c373f77fb26bd6f16 libpq-7.4.8.ebuild 3078 -MD5 2ef706072c06446a35e5791c1af19ade ChangeLog 2571 -MD5 f7905db93301407b9caf37581e270d1f files/digest-libpq-7.3.10 76 -MD5 a29e8334813c549e8d3d7bcc2e364a66 files/libpq-8.0.1-gentoo.patch 2306 +MD5 582e557cd0b0ea25adf5798062de0f76 files/digest-libpq-7.4.8-r1 75 MD5 582e557cd0b0ea25adf5798062de0f76 files/digest-libpq-7.4.8 75 -MD5 5256293555f24dec0d84734c19784174 files/libpq-7.4.8-gentoo.patch 2599 MD5 0540e6c42fdd652b981e236ea835c524 files/digest-libpq-8.0.1 75 MD5 b8a68c8f7fbe4116f7d39a520a3da8c9 files/digest-libpq-8.0.3 75 MD5 07e1154edfd02b73a7772384ce2238b2 files/libpq-7.3.10-gentoo.patch 2072 +MD5 a29e8334813c549e8d3d7bcc2e364a66 files/libpq-8.0.1-gentoo.patch 2306 +MD5 f7905db93301407b9caf37581e270d1f files/digest-libpq-7.3.10-r1 76 +MD5 0540e6c42fdd652b981e236ea835c524 files/digest-libpq-8.0.1-r1 75 +MD5 b8a68c8f7fbe4116f7d39a520a3da8c9 files/digest-libpq-8.0.3-r1 75 MD5 91bb6f54ae3772de8b4b98ef69b79f95 files/libpq-8.0.3-gentoo.patch 2306 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1 (GNU/Linux) - -iD8DBQFC41qYgIKl8Uu19MoRAodtAJ9SPCtA5m94UMy3VsL8NaO+WsFZkgCfQfNN -sOIQ9YW6FkgVfPY96Gt0Q1g= -=Q+qO ------END PGP SIGNATURE----- +MD5 f7905db93301407b9caf37581e270d1f files/digest-libpq-7.3.10 76 +MD5 5256293555f24dec0d84734c19784174 files/libpq-7.4.8-gentoo.patch 2599 diff --git a/dev-db/libpq/files/digest-libpq-7.3.10-r1 b/dev-db/libpq/files/digest-libpq-7.3.10-r1 new file mode 100644 index 000000000000..621556a019be --- /dev/null +++ b/dev-db/libpq/files/digest-libpq-7.3.10-r1 @@ -0,0 +1 @@ +MD5 d0c5131bad7330b35a0168f871a87711 postgresql-base-7.3.10.tar.bz2 5645041 diff --git a/dev-db/libpq/files/digest-libpq-7.4.8-r1 b/dev-db/libpq/files/digest-libpq-7.4.8-r1 new file mode 100644 index 000000000000..6c71d767adea --- /dev/null +++ b/dev-db/libpq/files/digest-libpq-7.4.8-r1 @@ -0,0 +1 @@ +MD5 c066dd74a746e15a49e0fded93a45329 postgresql-base-7.4.8.tar.bz2 6588745 diff --git a/dev-db/libpq/files/digest-libpq-8.0.1-r1 b/dev-db/libpq/files/digest-libpq-8.0.1-r1 new file mode 100644 index 000000000000..175762bb8eb2 --- /dev/null +++ b/dev-db/libpq/files/digest-libpq-8.0.1-r1 @@ -0,0 +1 @@ +MD5 b8f8edce5b29bcf785251693c6225885 postgresql-base-8.0.1.tar.bz2 7798118 diff --git a/dev-db/libpq/files/digest-libpq-8.0.3-r1 b/dev-db/libpq/files/digest-libpq-8.0.3-r1 new file mode 100644 index 000000000000..e6523151a277 --- /dev/null +++ b/dev-db/libpq/files/digest-libpq-8.0.3-r1 @@ -0,0 +1 @@ +MD5 35ff2b9a3bc5c65f55b4192a334b0e88 postgresql-base-8.0.3.tar.bz2 7818251 diff --git a/dev-db/libpq/libpq-7.3.10-r1.ebuild b/dev-db/libpq/libpq-7.3.10-r1.ebuild new file mode 100644 index 000000000000..19bc8f38ee8f --- /dev/null +++ b/dev-db/libpq/libpq-7.3.10-r1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/libpq-7.3.10-r1.ebuild,v 1.1 2005/07/27 19:32:59 nakano Exp $ + +inherit eutils gnuconfig flag-o-matic toolchain-funcs + +DESCRIPTION="Libraries of postgresql" +HOMEPAGE="http://www.postgresql.org/" +MY_P="postgresql-${PV}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2" + +LICENSE="POSTGRESQL" +SLOT="3" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="ssl nls pam readline zlib kerberos" +#pg-hier" + +S=${WORKDIR}/${MY_P} +DEPEND="virtual/libc + sys-devel/autoconf + >=sys-libs/ncurses-5.2 + >=sys-devel/bison-1.875 + zlib? ( >=sys-libs/zlib-1.1.3 ) + readline? ( >=sys-libs/readline-4.1 ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + nls? ( sys-devel/gettext ) + kerberos? ( virtual/krb5 )" +RDEPEND="virtual/libc + zlib? ( >=sys-libs/zlib-1.1.3 ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + kerberos? ( virtual/krb5 )" + +MAKEOPTS="${MAKEOPTS} -j1" + +pkg_preinst() { + # removing wrong symlink which is created by previous ebuild. + if [ -L /usr/include/libpq ]; then + rm /usr/include/libpq + fi +} + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${P}-gentoo.patch +} + +src_compile() { + filter-flags -ffast-math -feliminate-dwarf2-dups + + local myconf + use ssl && myconf="$myconf --with-openssl" + use nls && myconf="$myconf --enable-nls" + use pam && myconf="$myconf --with-pam" + use readline || myconf="$myconf --without-readline" + use zlib || myconf="$myconf --without-zlib" + use kerberos && myconf="$myconf --with-krb5" + + # these are the only working CFLAGS I could get on ppc, so locking them + # down, anything more aggressive fails (i.e. -mcpu or -Ox) + # Gerk - Nov 26, 2002 + use ppc && CFLAGS="-pipe -fsigned-char" + + # Detect mips systems properly + gnuconfig_update + + ./configure --prefix=/usr \ + --include=/usr/include/postgresql/libpq-${SLOT} \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --with-docdir=/usr/share/doc/${PF} \ + --libdir=/usr/$(get_libdir) \ + --enable-depend \ + --with-gnu-ld \ + $myconf || die + + cd ${S}/src/interfaces/libpq + emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die +} + +src_install() { + cd ${S}/src/interfaces/libpq + make DESTDIR=${D} LIBDIR=${D}/usr/$(get_libdir) install || die + + cd ${S}/src/include + make DESTDIR=${D} install || die + + cd ${S} + dodoc README HISTORY COPYRIGHT INSTALL + + dosym libpq-${SLOT}.a /usr/$(get_libdir)/libpq.a + + for f in ${D}/usr/include/postgresql/libpq-${SLOT}/*.h + do + dosym postgresql/libpq-${SLOT}/$(basename $f) /usr/include/ + done + + dodir /usr/include/libpq + for f in ${D}/usr/include/postgresql/libpq-${SLOT}/libpq/*.h + do + dosym ../postgresql/libpq-${SLOT}/libpq/$(basename $f) /usr/include/libpq/ + done + + cd ${D}/usr/include/postgresql/libpq-${SLOT} + for f in $(find * -name '*.h' -print) ; do + destdir=$(dirname $f) + if [ ! -d "${D}/usr/include/postgresql/${destdir}" ]; then + dodir /usr/include/postgresql/${destdir} + fi + dosym /usr/include/postgresql/libpq-${SLOT}/${f} /usr/include/postgresql/${destdir}/ + done +} diff --git a/dev-db/libpq/libpq-7.4.8-r1.ebuild b/dev-db/libpq/libpq-7.4.8-r1.ebuild new file mode 100644 index 000000000000..846e1f66c598 --- /dev/null +++ b/dev-db/libpq/libpq-7.4.8-r1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/libpq-7.4.8-r1.ebuild,v 1.1 2005/07/27 19:32:59 nakano Exp $ + +inherit eutils gnuconfig flag-o-matic toolchain-funcs + +DESCRIPTION="Libraries of postgresql" +HOMEPAGE="http://www.postgresql.org/" +MY_P="postgresql-${PV}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2" + +LICENSE="POSTGRESQL" +SLOT="3" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="ssl nls pam readline zlib kerberos" +#pg-hier" + +S=${WORKDIR}/${MY_P} +DEPEND="virtual/libc + sys-devel/autoconf + >=sys-libs/ncurses-5.2 + >=sys-devel/bison-1.875 + zlib? ( >=sys-libs/zlib-1.1.3 ) + readline? ( >=sys-libs/readline-4.1 ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + nls? ( sys-devel/gettext ) + kerberos? ( virtual/krb5 )" +RDEPEND="virtual/libc + zlib? ( >=sys-libs/zlib-1.1.3 ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + kerberos? ( virtual/krb5 )" + +MAKEOPTS="${MAKEOPTS} -j1" + +pkg_preinst() { + # removing wrong symlink which is created by previous ebuild. + if [ -L /usr/include/libpq ]; then + rm /usr/include/libpq + fi +} + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${P}-gentoo.patch +} + +src_compile() { + filter-flags -ffast-math -feliminate-dwarf2-dups + + local myconf + use ssl && myconf="$myconf --with-openssl" + use nls && myconf="$myconf --enable-nls" + use pam && myconf="$myconf --with-pam" + use readline || myconf="$myconf --without-readline" + use zlib || myconf="$myconf --without-zlib" + use kerberos && myconf="$myconf --with-krb5" + + # these are the only working CFLAGS I could get on ppc, so locking them + # down, anything more aggressive fails (i.e. -mcpu or -Ox) + # Gerk - Nov 26, 2002 + use ppc && CFLAGS="-pipe -fsigned-char" + + # Detect mips systems properly + gnuconfig_update + + ./configure --prefix=/usr \ + --include=/usr/include/postgresql/libpq-${SLOT} \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --with-docdir=/usr/share/doc/${PF} \ + --libdir=/usr/$(get_libdir) \ + --enable-depend \ + --with-gnu-ld \ + $myconf || die + + cd ${S}/src/interfaces/libpq + emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die +} + +src_install() { + cd ${S}/src/interfaces/libpq + make DESTDIR=${D} LIBDIR=${D}/usr/$(get_libdir) install || die + + cd ${S}/src/include + make DESTDIR=${D} install || die + + cd ${S} + dodoc README HISTORY COPYRIGHT INSTALL + + dosym libpq-${SLOT}.a /usr/$(get_libdir)/libpq.a + + for f in ${D}/usr/include/postgresql/libpq-${SLOT}/*.h + do + dosym postgresql/libpq-${SLOT}/$(basename $f) /usr/include/ + done + + dodir /usr/include/libpq + for f in ${D}/usr/include/postgresql/libpq-${SLOT}/libpq/*.h + do + dosym ../postgresql/libpq-${SLOT}/libpq/$(basename $f) /usr/include/libpq/ + done + + cd ${D}/usr/include/postgresql/libpq-${SLOT} + for f in $(find * -name '*.h' -print) ; do + destdir=$(dirname $f) + if [ ! -d "${D}/usr/include/postgresql/${destdir}" ]; then + dodir /usr/include/postgresql/${destdir} + fi + dosym /usr/include/postgresql/libpq-${SLOT}/${f} /usr/include/postgresql/${destdir}/ + done +} diff --git a/dev-db/libpq/libpq-8.0.1-r1.ebuild b/dev-db/libpq/libpq-8.0.1-r1.ebuild new file mode 100644 index 000000000000..7aaa564bab92 --- /dev/null +++ b/dev-db/libpq/libpq-8.0.1-r1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/libpq-8.0.1-r1.ebuild,v 1.1 2005/07/27 19:32:59 nakano Exp $ + +inherit eutils gnuconfig flag-o-matic toolchain-funcs + +DESCRIPTION="Libraries of postgresql" +HOMEPAGE="http://www.postgresql.org/" +MY_P="postgresql-${PV}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2" + +LICENSE="POSTGRESQL" +SLOT="3" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="ssl nls pam readline zlib kerberos" +#pg-hier" + +S=${WORKDIR}/${MY_P} +DEPEND="virtual/libc + sys-devel/autoconf + >=sys-libs/ncurses-5.2 + >=sys-devel/bison-1.875 + zlib? ( >=sys-libs/zlib-1.1.3 ) + readline? ( >=sys-libs/readline-4.1 ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + nls? ( sys-devel/gettext ) + kerberos? ( virtual/krb5 )" +RDEPEND="virtual/libc + zlib? ( >=sys-libs/zlib-1.1.3 ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + kerberos? ( virtual/krb5 )" + +MAKEOPTS="${MAKEOPTS} -j1" + +pkg_preinst() { + # removing wrong symlink which is created by previous ebuild. + if [ -L /usr/include/libpq ]; then + rm /usr/include/libpq + fi +} + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${P}-gentoo.patch +} + +src_compile() { + filter-flags -ffast-math -feliminate-dwarf2-dups + + local myconf + use ssl && myconf="$myconf --with-openssl" + use nls && myconf="$myconf --enable-nls" + use pam && myconf="$myconf --with-pam" + use readline || myconf="$myconf --without-readline" + use zlib || myconf="$myconf --without-zlib" + use kerberos && myconf="$myconf --with-krb5" + + # these are the only working CFLAGS I could get on ppc, so locking them + # down, anything more aggressive fails (i.e. -mcpu or -Ox) + # Gerk - Nov 26, 2002 + use ppc && CFLAGS="-pipe -fsigned-char" + + # Detect mips systems properly + gnuconfig_update + + ./configure --prefix=/usr \ + --include=/usr/include/postgresql/libpq-${SLOT} \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --with-docdir=/usr/share/doc/${PF} \ + --libdir=/usr/$(get_libdir) \ + --enable-depend \ + --with-gnu-ld \ + $myconf || die + + cd ${S}/src/interfaces/libpq + emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die +} + +src_install() { + cd ${S}/src/interfaces/libpq + make DESTDIR=${D} LIBDIR=${D}/usr/$(get_libdir) install || die + + cd ${S}/src/include + make DESTDIR=${D} install || die + + cd ${S} + dodoc README HISTORY COPYRIGHT INSTALL + + dosym libpq-${SLOT}.a /usr/$(get_libdir)/libpq.a + + for f in ${D}/usr/include/postgresql/libpq-${SLOT}/*.h + do + dosym postgresql/libpq-${SLOT}/$(basename $f) /usr/include/ + done + + dodir /usr/include/libpq + for f in ${D}/usr/include/postgresql/libpq-${SLOT}/libpq/*.h + do + dosym ../postgresql/libpq-${SLOT}/libpq/$(basename $f) /usr/include/libpq/ + done + + cd ${D}/usr/include/postgresql/libpq-${SLOT} + for f in $(find * -name '*.h' -print) ; do + destdir=$(dirname $f) + if [ ! -d "${D}/usr/include/postgresql/${destdir}" ]; then + dodir /usr/include/postgresql/${destdir} + fi + dosym /usr/include/postgresql/libpq-${SLOT}/${f} /usr/include/postgresql/${destdir}/ + done +} diff --git a/dev-db/libpq/libpq-8.0.3-r1.ebuild b/dev-db/libpq/libpq-8.0.3-r1.ebuild new file mode 100644 index 000000000000..0619d793181a --- /dev/null +++ b/dev-db/libpq/libpq-8.0.3-r1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/libpq-8.0.3-r1.ebuild,v 1.1 2005/07/27 19:32:59 nakano Exp $ + +inherit eutils gnuconfig flag-o-matic toolchain-funcs + +DESCRIPTION="Libraries of postgresql" +HOMEPAGE="http://www.postgresql.org/" +MY_P="postgresql-${PV}" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2" + +LICENSE="POSTGRESQL" +SLOT="4" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="ssl nls pam readline zlib kerberos" +#pg-hier" + +S=${WORKDIR}/${MY_P} +DEPEND="virtual/libc + sys-devel/autoconf + >=sys-libs/ncurses-5.2 + >=sys-devel/bison-1.875 + zlib? ( >=sys-libs/zlib-1.1.3 ) + readline? ( >=sys-libs/readline-4.1 ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + nls? ( sys-devel/gettext ) + kerberos? ( virtual/krb5 )" +RDEPEND="virtual/libc + zlib? ( >=sys-libs/zlib-1.1.3 ) + ssl? ( >=dev-libs/openssl-0.9.6-r1 ) + kerberos? ( virtual/krb5 )" + +MAKEOPTS="${MAKEOPTS} -j1" + +pkg_preinst() { + # removing wrong symlink which is created by previous ebuild. + if [ -L /usr/include/libpq ]; then + rm /usr/include/libpq + fi +} + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${P}-gentoo.patch +} + +src_compile() { + filter-flags -ffast-math -feliminate-dwarf2-dups + + local myconf + use ssl && myconf="$myconf --with-openssl" + use nls && myconf="$myconf --enable-nls" + use pam && myconf="$myconf --with-pam" + use readline || myconf="$myconf --without-readline" + use zlib || myconf="$myconf --without-zlib" + use kerberos && myconf="$myconf --with-krb5" + + # these are the only working CFLAGS I could get on ppc, so locking them + # down, anything more aggressive fails (i.e. -mcpu or -Ox) + # Gerk - Nov 26, 2002 + use ppc && CFLAGS="-pipe -fsigned-char" + + # Detect mips systems properly + gnuconfig_update + + ./configure --prefix=/usr \ + --include=/usr/include/postgresql/libpq-${SLOT} \ + --mandir=/usr/share/man \ + --host=${CHOST} \ + --with-docdir=/usr/share/doc/${PF} \ + --libdir=/usr/$(get_libdir) \ + --enable-depend \ + --with-gnu-ld \ + $myconf || die + + cd ${S}/src/interfaces/libpq + emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die +} + +src_install() { + cd ${S}/src/interfaces/libpq + make DESTDIR=${D} LIBDIR=${D}/usr/$(get_libdir) install || die + + cd ${S}/src/include + make DESTDIR=${D} install || die + + cd ${S} + dodoc README HISTORY COPYRIGHT INSTALL + + dosym libpq-${SLOT}.a /usr/$(get_libdir)/libpq.a + + for f in ${D}/usr/include/postgresql/libpq-${SLOT}/*.h + do + dosym postgresql/libpq-${SLOT}/$(basename $f) /usr/include/ + done + + dodir /usr/include/libpq + for f in ${D}/usr/include/postgresql/libpq-${SLOT}/libpq/*.h + do + dosym ../postgresql/libpq-${SLOT}/libpq/$(basename $f) /usr/include/libpq/ + done + + cd ${D}/usr/include/postgresql/libpq-${SLOT} + for f in $(find * -name '*.h' -print) ; do + destdir=$(dirname $f) + if [ ! -d "${D}/usr/include/postgresql/${destdir}" ]; then + dodir /usr/include/postgresql/${destdir} + fi + dosym /usr/include/postgresql/libpq-${SLOT}/${f} /usr/include/postgresql/${destdir}/ + done +} |