# ChangeLog for dev-db/libpq
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/ChangeLog,v 1.105 2007/03/04 11:14:22 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/ChangeLog,v 1.106 2007/04/30 23:35:17 aross Exp $
+
+*libpq-8.0.13 (30 Apr 2007)
+
+ 30 Apr 2007; Andrew Ross <aross@gentoo.org>
+ +files/libpq-8.0.13-gentoo.patch, +libpq-8.0.13.ebuild:
+ Version bump (bug #175791).
04 Mar 2007; Simon Stelling <blubb@gentoo.org> libpq-7.4.16.ebuild,
libpq-8.0.12.ebuild:
MD5 712084754fb5b7aa013d70c34cb21fec files/libpq-8.0.12-gentoo.patch 2382
RMD160 ec7e86cb584598196e18904d4b626ccc64750ede files/libpq-8.0.12-gentoo.patch 2382
SHA256 e4a257b30f1a970fbbea6311ca1ea51e626f1ae9ab79b1b61a04c7969093408e files/libpq-8.0.12-gentoo.patch 2382
+AUX libpq-8.0.13-gentoo.patch 2382 RMD160 ec7e86cb584598196e18904d4b626ccc64750ede SHA1 20c230bdc8c181caa5a524076f65f85e047a5bef SHA256 e4a257b30f1a970fbbea6311ca1ea51e626f1ae9ab79b1b61a04c7969093408e
+MD5 712084754fb5b7aa013d70c34cb21fec files/libpq-8.0.13-gentoo.patch 2382
+RMD160 ec7e86cb584598196e18904d4b626ccc64750ede files/libpq-8.0.13-gentoo.patch 2382
+SHA256 e4a257b30f1a970fbbea6311ca1ea51e626f1ae9ab79b1b61a04c7969093408e files/libpq-8.0.13-gentoo.patch 2382
AUX libpq-8.0.8-gentoo.patch 2306 RMD160 e4c121a1026a60709b829afbc112efa0fea19a3f SHA1 75d4782553f4619bd4fb71aa44f4204df24bec7a SHA256 3b0405d74be995639b9d021eebc9a40ad72eb717219a8e1c029c1c93e6b72602
MD5 d923acd31e56034379046074dd88a09a files/libpq-8.0.8-gentoo.patch 2306
RMD160 e4c121a1026a60709b829afbc112efa0fea19a3f files/libpq-8.0.8-gentoo.patch 2306
DIST postgresql-base-7.4.14.tar.bz2 6575201 RMD160 c5b8ecd20ad2783c3f254f0e7402aab9ad722d0a SHA1 b737a35070bf13f478e8bca346a32243b9599b89 SHA256 5a34fcd56d2d8eebcd2728e5971c0d39d2971dc25e49d88bfeb84d69b5e8ebc9
DIST postgresql-base-7.4.16.tar.bz2 6586435 RMD160 8536d5f6f26a101240c64084e6adeb260efef891 SHA1 d3f36c6ace31d3725828aa9d86f4c08f266e33e3 SHA256 d8e7df2f06f248e66023452fa9cf565640b93ae43433dade7515f54e643f5c21
DIST postgresql-base-8.0.12.tar.bz2 7846737 RMD160 e359f574020ef73a1f8f03ebffdc157114b1a454 SHA1 f43277c0463233f7deec434374a3799c372107b6 SHA256 2aec1d7129794fb29546e76bb0594f0c8ee6e37e8a155b201c15504af0740628
+DIST postgresql-base-8.0.13.tar.bz2 7848290 RMD160 de34ef01b76d777e9b22bcd16dd29328a11d35cf SHA1 aaee4e481644645f3ba66dd7a66377ef3b22cd9c SHA256 5627ad76e6a6c8eb85c1debe5fce2c12b42611434dabe0fd5763b8a72c7ac49d
DIST postgresql-base-8.0.8.tar.bz2 7823046 RMD160 2c60dc22f714bc0182051a94c3c1f513b30f574e SHA1 a5e5147497f0c2b548762d232d297b48d6e97d02 SHA256 906d86f2477309b9c2531d12fe720761fdffd73243a83ae31892bd7a0a618183
DIST postgresql-base-8.0.9.tar.bz2 7824961 RMD160 40cbea0b0a3a0f67670dfbe1670e08b48dbb1999 SHA1 d11bb58349b3e42fd0a19ceb732e9381bba89b16 SHA256 8ed190ee5468f3685a1edbc5279490819ffa6fe64f1b6f0139bdbec365852417
DIST postgresql-base-8.1.5.tar.bz2 8044522 RMD160 3460f38b720ce3a9687052d5523bcbd027655d6e SHA1 7d6cc07ca1cb8cb57a366a7860310a892fe6a2ba SHA256 cb878499848aa8abb82f1ae79574923174851b0396a5befa31f49089a3abb4df
DIST postgresql-opt-7.3.18.tar.bz2 342315 RMD160 fa7cb704ff7bb131f6108217c645821413ecd5b8 SHA1 5c1a8a103d696668abae7d8931c0dd687cdb7766 SHA256 6d422a3d4d56192952c035d01aff59b90c7ab7b3cdb7f300572e40dd20db5e4b
DIST postgresql-opt-7.4.14.tar.bz2 333417 RMD160 a6279f5b9d52f72ce786bc468c114befb5a1f29a SHA1 becc575260128261dc7f8ed46f166f54f48b8732 SHA256 e670d22812c50512807edd692d867e2b62c6b79f9d7b84cad56ef038cc12475d
DIST postgresql-opt-8.0.12.tar.bz2 134790 RMD160 be0d57de5000296bfd5b64685f4d4ef81edea347 SHA1 bd26e2cce6ea7b486e29bc983ee76cfb0551f32b SHA256 ceaf90195860694487918032c19e0a11f991d74c77838cac2ea827d6c85f54da
+DIST postgresql-opt-8.0.13.tar.bz2 134769 RMD160 f3fb741c5dcff23045a58baf57f4386099e3c563 SHA1 ccdc23eb12b19c6d88633125b9e0c2feeda5f93e SHA256 9f63fc12ede1a605934cdc462ff45c0e924288284f411ae38dec1c5b6e87ce25
DIST postgresql-opt-8.0.9.tar.bz2 134706 RMD160 be148e079c20c13aec1767180d993933b91c2116 SHA1 a1263b4ec563ec24165db4657dcc4faab567ef90 SHA256 007d5cded329dfbcc91b4f1d1ddb9473efb4316b1621294446ee611065393020
DIST postgresql-opt-8.1.5.tar.bz2 144784 RMD160 5ac9b1ffdf1357316ceb1736f7b9be3ee339be3b SHA1 6d62463d6bcadcef1e515d740c15489ab4e428e7 SHA256 4fe0dc14e02d65516348ec0e90633be2a3ada002c151fca8f2e7eba6556c8b1c
DIST postgresql-opt-8.1.8.tar.bz2 144643 RMD160 2a31e70be662ee6753bcc8e712ea5a693079f692 SHA1 df4cf9481a6272d5a33b07f8343e88fe8f1350a4 SHA256 ffcc9519a7a697b370630ab1afb1280d3d9e62a25a7904291153d0de6fca6750
MD5 1a0394782f3c4c29a1cf3bc56187848d libpq-8.0.12.ebuild 3306
RMD160 20401a3ec3cfca46b4ca57603b10486a39d24c89 libpq-8.0.12.ebuild 3306
SHA256 3b30ff1eb2ef20617982df86a527d38d4968d43058a983f6a15df407c22be3b8 libpq-8.0.12.ebuild 3306
+EBUILD libpq-8.0.13.ebuild 3310 RMD160 eabae45761d739e9863d54864980a2a14ed0ef5e SHA1 167a08d02208cad7b0f3d6588451b0b9bf83bc05 SHA256 d33872c13d44476339e8c3f9a997ca52889a2a54c281efc2dbe760fefb7f9f8e
+MD5 4c26693d9dd8ea4575e96e1b17a3b3e3 libpq-8.0.13.ebuild 3310
+RMD160 eabae45761d739e9863d54864980a2a14ed0ef5e libpq-8.0.13.ebuild 3310
+SHA256 d33872c13d44476339e8c3f9a997ca52889a2a54c281efc2dbe760fefb7f9f8e libpq-8.0.13.ebuild 3310
EBUILD libpq-8.0.8.ebuild 3091 RMD160 fab8cbe8c64801c9e036e9e65c6e70a0bcde4cf3 SHA1 70f0990263e2f9d172fd496a46bcda35dc5a62ae SHA256 8aca4733322048c0d1c6f5adcffea108e2214a5b1415799f9674d26a9f173460
MD5 7d89b6fad58d2880a282da39a4e07e8d libpq-8.0.8.ebuild 3091
RMD160 fab8cbe8c64801c9e036e9e65c6e70a0bcde4cf3 libpq-8.0.8.ebuild 3091
MD5 88cb26457fc8c809b73028d016709ce4 libpq-8.1.8.ebuild 3340
RMD160 29f47d5a81c8b3341c025180f42ab7bd5d86f4d2 libpq-8.1.8.ebuild 3340
SHA256 3a2568a98651e6d9d5a09b59e058c883421839a84574069924e0dbfde8ec6237 libpq-8.1.8.ebuild 3340
-MISC ChangeLog 17284 RMD160 d09289e6543e7075ff36df8d158d62e6ef786ecc SHA1 faad10f9aa9a3d4581b48e36bf51c077e2cf7eae SHA256 5324db575905a2993ae22331d3c1002f59deeaa0dc2b9799ff44e4763c055de4
-MD5 9d387431612f2e2e72127922986fdd26 ChangeLog 17284
-RMD160 d09289e6543e7075ff36df8d158d62e6ef786ecc ChangeLog 17284
-SHA256 5324db575905a2993ae22331d3c1002f59deeaa0dc2b9799ff44e4763c055de4 ChangeLog 17284
+MISC ChangeLog 17448 RMD160 dabc1ddbf4b175a64d89c32c2d67e0c5f337972f SHA1 fdffe935e32690a0a2340d221b28905b14a3beb9 SHA256 b85eb1b935023b623dc5de3d79e2b46a557974e2f6ec2f35ca9ab9e7494bece5
+MD5 3d68a5bf3862bac1c43a9db0a897c3c1 ChangeLog 17448
+RMD160 dabc1ddbf4b175a64d89c32c2d67e0c5f337972f ChangeLog 17448
+SHA256 b85eb1b935023b623dc5de3d79e2b46a557974e2f6ec2f35ca9ab9e7494bece5 ChangeLog 17448
MISC metadata.xml 164 RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc SHA1 f67b7ac1c5e6e65ef5a19a589d4759c84918f86c SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b
MD5 6fe52df942ef15801d56449cd8299604 metadata.xml 164
RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc metadata.xml 164
MD5 be4179a9e55a672edcb0717f5ca1fabd files/digest-libpq-8.0.12 542
RMD160 5008b9a6d81cca000c64a65993cab636a1446058 files/digest-libpq-8.0.12 542
SHA256 91ba84fe0bf8dd4e607b52bfa71ef1013d1efa749e70e03e407c4fb270ed3c43 files/digest-libpq-8.0.12 542
+MD5 e1c3abd689fb6c6ed1cf06c10b82f9da files/digest-libpq-8.0.13 542
+RMD160 d8cc2fc02cd0e20449a2bde329241dc52dc58931 files/digest-libpq-8.0.13 542
+SHA256 cece0fc823dbb82e857a4df6c2026157ed31789dd0d4938af7de6f0493dea43d files/digest-libpq-8.0.13 542
MD5 8c0d20dcc5c156bd1a8d9c4e04eef558 files/digest-libpq-8.0.8 271
RMD160 acda54f9b459839b72f7bfdb00cb9c324f0d0edb files/digest-libpq-8.0.8 271
SHA256 ba713208da080175629af46705788e433f5883d9213f6b19793ca0e158c79b83 files/digest-libpq-8.0.8 271
--- /dev/null
+MD5 d3b5185dc6a12f2443f06f83cdee03d0 postgresql-base-8.0.13.tar.bz2 7848290
+RMD160 de34ef01b76d777e9b22bcd16dd29328a11d35cf postgresql-base-8.0.13.tar.bz2 7848290
+SHA256 5627ad76e6a6c8eb85c1debe5fce2c12b42611434dabe0fd5763b8a72c7ac49d postgresql-base-8.0.13.tar.bz2 7848290
+MD5 824caf8451dec685a0d5886eb4892807 postgresql-opt-8.0.13.tar.bz2 134769
+RMD160 f3fb741c5dcff23045a58baf57f4386099e3c563 postgresql-opt-8.0.13.tar.bz2 134769
+SHA256 9f63fc12ede1a605934cdc462ff45c0e924288284f411ae38dec1c5b6e87ce25 postgresql-opt-8.0.13.tar.bz2 134769
--- /dev/null
+diff -Nru postgresql-8.0.9.orig/src/interfaces/libpq/Makefile postgresql-8.0.9/src/interfaces/libpq/Makefile
+--- postgresql-8.0.9.orig/src/interfaces/libpq/Makefile 2006-11-05 13:20:26.000000000 +0100
++++ postgresql-8.0.9/src/interfaces/libpq/Makefile 2006-11-05 13:24:34.000000000 +0100
+@@ -20,6 +20,8 @@
+ SO_MINOR_VERSION= 0
+ DLTYPE= library
+
++NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION)
++
+ override CPPFLAGS := -DFRONTEND -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port
+ override CFLAGS += $(PTHREAD_CFLAGS)
+
+@@ -136,7 +138,7 @@
+ $(INSTALL_DATA) $(srcdir)/libpq-fe.h $(DESTDIR)$(includedir)
+ $(INSTALL_DATA) $(srcdir)/libpq-int.h $(DESTDIR)$(includedir_internal)
+ $(INSTALL_DATA) $(srcdir)/pqexpbuffer.h $(DESTDIR)$(includedir_internal)
+- $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service.conf.sample
++ $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service-$(SO_MAJOR_VERSION).conf.sample
+
+ installdirs:
+ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir_internal)
+diff -Nru postgresql-8.0.9.orig/src/interfaces/libpq/nls.mk postgresql-8.0.9/src/interfaces/libpq/nls.mk
+--- postgresql-8.0.9.orig/src/interfaces/libpq/nls.mk 2006-11-05 13:20:26.000000000 +0100
++++ postgresql-8.0.9/src/interfaces/libpq/nls.mk 2006-11-05 13:24:34.000000000 +0100
+@@ -1,5 +1,5 @@
+ # $PostgreSQL: pgsql/src/interfaces/libpq/nls.mk,v 1.20 2005/01/14 08:57:06 petere Exp $
+-CATALOG_NAME := libpq
++CATALOG_NAME := libpq-4
+ AVAIL_LANGUAGES := af cs de es fr hr it ko nb pl pt_BR ru sk sl sv tr zh_CN zh_TW
+ GETTEXT_FILES := fe-auth.c fe-connect.c fe-exec.c fe-lobj.c fe-misc.c fe-protocol2.c fe-protocol3.c fe-secure.c
+ GETTEXT_TRIGGERS:= libpq_gettext pqInternalNotice:2
+diff -Nru postgresql-8.0.9.orig/src/Makefile.shlib postgresql-8.0.9/src/Makefile.shlib
+--- postgresql-8.0.9.orig/src/Makefile.shlib 2006-11-05 13:20:26.000000000 +0100
++++ postgresql-8.0.9/src/Makefile.shlib 2006-11-05 13:24:34.000000000 +0100
+@@ -360,10 +360,10 @@
+ install-lib: install-lib-static install-lib-shared
+
+ install-lib-static: lib$(NAME).a
+- $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
++ $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME_STATIC_LIB).a
+ ifeq ($(PORTNAME), darwin)
+ cd $(DESTDIR)$(libdir) && \
+- ranlib lib$(NAME).a
++ ranlib lib$(NAME_STATIC_LIB).a
+ endif
+
+ ifeq ($(enable_shared), yes)
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/libpq-8.0.13.ebuild,v 1.1 2007/04/30 23:35:17 aross Exp $
+
+inherit eutils gnuconfig flag-o-matic toolchain-funcs
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+
+DESCRIPTION="PostgreSQL libraries."
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
+ mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="4"
+IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib"
+
+RDEPEND="!<=dev-db/postgresql-8.0.8
+ kerberos? ( virtual/krb5 )
+ pam? ( virtual/pam )
+ readline? ( >=sys-libs/readline-4.1 )
+ ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+ zlib? ( >=sys-libs/zlib-1.1.3 )"
+DEPEND="${RDEPEND}
+ sys-devel/autoconf
+ >=sys-devel/bison-1.875
+ nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/postgresql-${PV}"
+
+pkg_preinst() {
+ # Removing wrong symlink created by previous ebuild
+ if [[ -L "${ROOT}/usr/include/libpq" ]] ; then
+ rm -f "${ROOT}/usr/include/libpq"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+}
+
+src_compile() {
+ filter-flags -ffast-math -feliminate-dwarf2-dups
+
+ # Detect mips systems properly
+ gnuconfig_update
+
+ cd "${S}"
+
+ ./configure --prefix=/usr \
+ --includedir=/usr/include/postgresql/libpq-${SLOT} \
+ --sysconfdir=/etc/postgresql \
+ --mandir=/usr/share/man \
+ --host=${CHOST} \
+ --with-docdir=/usr/share/doc/${PF} \
+ --libdir=/usr/$(get_libdir) \
+ --enable-depend \
+ $(use_with kerberos krb5) \
+ $(use_enable nls ) \
+ $(use_with pam) \
+ --without-perl \
+ $(use_enable pg-intdatetime integer-datetimes ) \
+ --without-python \
+ $(use_with readline) \
+ $(use_with ssl openssl) \
+ --without-tcl \
+ $(use_enable threads thread-safety ) \
+ $(use_with zlib) \
+ || die "configure failed"
+
+ cd "${S}/src/interfaces/libpq"
+ emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake libpq failed"
+
+ cd "${S}/src/bin/pg_config"
+ emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake pg_config failed"
+}
+
+src_install() {
+ cd "${S}/src/interfaces/libpq"
+ emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "emake install libpq failed"
+
+ cd "${S}/src/include"
+ emake DESTDIR="${D}" install || die "emake install headers failed"
+
+ cd "${S}/src/bin/pg_config"
+ emake DESTDIR="${D}" install || die "emake install pg_config failed"
+
+ cd "${S}"
+ dodoc README HISTORY
+
+ dosym libpq-${SLOT}.a /usr/$(get_libdir)/libpq.a
+
+ for f in $(ls -1 "${D}"/usr/include/postgresql/libpq-${SLOT}/*.h) ; do
+ dosym postgresql/libpq-${SLOT}/$(basename ${f}) /usr/include/
+ done
+
+ dodir /usr/include/libpq
+ for f in $(ls -1 "${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
+}
+
+src_test() {
+ einfo "No tests available for libpq."
+}