summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Swenson <titanofold@gentoo.org>2011-03-24 11:19:25 +0000
committerAaron Swenson <titanofold@gentoo.org>2011-03-24 11:19:25 +0000
commit53e1929ca38c63f1cc63fd3632e5543db277b593 (patch)
tree94f409e5c592940402b60de5c25bf346255a48ad
parentFix net-libs/xulrunner depend to use SLOT=1.9 and at least version >= 1.9 to ... (diff)
downloadhistorical-53e1929ca38c63f1cc63fd3632e5543db277b593.tar.gz
historical-53e1929ca38c63f1cc63fd3632e5543db277b593.tar.bz2
historical-53e1929ca38c63f1cc63fd3632e5543db277b593.zip
Fixes bug 358989
Package-Manager: portage-2.1.9.42/cvs/Linux i686
-rw-r--r--dev-db/postgresql-base/ChangeLog11
-rw-r--r--dev-db/postgresql-base/Manifest5
-rw-r--r--dev-db/postgresql-base/postgresql-base-8.2.20-r2.ebuild161
-rw-r--r--dev-db/postgresql-base/postgresql-base-8.3.14-r2.ebuild162
-rw-r--r--dev-db/postgresql-base/postgresql-base-8.4.7-r2.ebuild161
5 files changed, 498 insertions, 2 deletions
diff --git a/dev-db/postgresql-base/ChangeLog b/dev-db/postgresql-base/ChangeLog
index a7fce2fd51e5..58bdef64bcb4 100644
--- a/dev-db/postgresql-base/ChangeLog
+++ b/dev-db/postgresql-base/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-db/postgresql-base
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.111 2011/03/22 11:08:41 titanofold Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.112 2011/03/24 11:19:25 titanofold Exp $
+
+*postgresql-base-8.4.7-r2 (24 Mar 2011)
+*postgresql-base-8.3.14-r2 (24 Mar 2011)
+*postgresql-base-8.2.20-r2 (24 Mar 2011)
+
+ 24 Mar 2011; Aaron W. Swenson <titanofold@gentoo.org>
+ +postgresql-base-8.2.20-r2.ebuild, +postgresql-base-8.3.14-r2.ebuild,
+ +postgresql-base-8.4.7-r2.ebuild:
+ Fixes bug 358989
22 Mar 2011; Aaron W. Swenson <titanofold@gentoo.org>
postgresql-base-9.0.3-r1.ebuild:
diff --git a/dev-db/postgresql-base/Manifest b/dev-db/postgresql-base/Manifest
index 857ff8a638c2..eb6f38aaded6 100644
--- a/dev-db/postgresql-base/Manifest
+++ b/dev-db/postgresql-base/Manifest
@@ -33,19 +33,22 @@ DIST postgresql-patches-9.0.tbz2 4306 RMD160 225f3d9af435d2628b9841619589af44720
EBUILD postgresql-base-8.2.18.ebuild 4534 RMD160 d5721a17aed398d3d7a8ce2598b4b0f2b664d1a0 SHA1 275819092d79505665600db9cc1c28e6b0d0d29a SHA256 f5a2674d8d4f20d5e7fb03547fa3dee691f4ddeb6ac4583c4c2f0b085520fed9
EBUILD postgresql-base-8.2.19.ebuild 4544 RMD160 b9d3eda9f598602afbecb735f418d1f34b017b7f SHA1 de0bb6ad3993b35cada5a85967bb626bf075e953 SHA256 45d2c8552758b8d204a0770a5cc7008c33940f9587657e055972fab92e438cfe
EBUILD postgresql-base-8.2.20-r1.ebuild 4851 RMD160 d819e2b9990d4a86e9507ac304f2dd4f3f2d3247 SHA1 654d2eedb88095aff107bfa7e68240fc577100ac SHA256 607fd3d1ca84a168c1d037a75630ac9f8e7c1dfd71e25a2b28724a0f164eb740
+EBUILD postgresql-base-8.2.20-r2.ebuild 4918 RMD160 9455e4377fe0bcceca5e9e967f4e95d8f823fa92 SHA1 84ff0070415d57b96ff802f842f264244609493e SHA256 76f6ba51299acf38ee0dbf5bdc862502f37ad54627ba2267b665893ca997d7da
EBUILD postgresql-base-8.2.20.ebuild 4534 RMD160 91df15e17b9a0d5dad60decc95def78fc077248b SHA1 1cc1620f2b8423b4921e9a9894ff2902bb020800 SHA256 89553d881551507928cce6b828a565cefaf6080c7f029e3e6494f6324f5d93d5
EBUILD postgresql-base-8.3.12.ebuild 4603 RMD160 5bb0ad323b64e0c7451284d2125a5e2d86c389cc SHA1 e7c76216be64a1c18ce8ebcbbaf8ddf7d9f6a6f2 SHA256 1e778cf7c065ddaf117e15a6c7fcbce0049c6db9a3c6cfcafbc250a177061fa2
EBUILD postgresql-base-8.3.13.ebuild 4611 RMD160 0af267880a3775395f36ff1b1989743b9e72d02d SHA1 5f4ec8227307bb3d8edc6e070ecdeb89e606038a SHA256 e3caf5a9e65977959899824fd8de190604a6e4b8d0a2d6ebee577e95a66d0996
EBUILD postgresql-base-8.3.14-r1.ebuild 4918 RMD160 ff307b144c2a4e7e346d3b222c3ddd8750da8d0e SHA1 03e4c21d9bcb3ad3c19dfe21b2ce6c27d6c71895 SHA256 0c8b17182c671deda18bc56351575d55a639ebb64a34c8b1a17b01ba45d9855a
+EBUILD postgresql-base-8.3.14-r2.ebuild 4985 RMD160 5c4cd3b8802043bab33f104252bae3902889778a SHA1 03b018adc958b358523adf15e0486c714835a437 SHA256 304b6cb4a7d84289b192ca0dc58eb54b1a82ca12a01043fe4c76ae32489c5b15
EBUILD postgresql-base-8.3.14.ebuild 4600 RMD160 7d6e89b8242016be1f9f718bc1a65dee22ec4817 SHA1 e0a2a48b13f4d20ee231c17f92e269ecc797370d SHA256 4f435a5e8bd3c958edd3284fe611920762253f794ca8728cb569198670515dc7
EBUILD postgresql-base-8.4.5.ebuild 4718 RMD160 ca3004d5d8e75cdc4f8c9d2f1df5263d0785b3e3 SHA1 36c430e29de38f628d8226ef938bb8ef21108972 SHA256 f79f199aaabd540a93e920fa1aa35b84330a338213fdc63a9f64c52ea2adbe29
EBUILD postgresql-base-8.4.6.ebuild 4726 RMD160 9ecc9ce5769826a20a41e2a9ce381610b887a6d5 SHA1 09a5a57c4433497f0fa75a3e007d468e4320a61f SHA256 206574c84fc7043fae3f8633797e3bbc66da421a548ca1a5387833f24177297e
EBUILD postgresql-base-8.4.7-r1.ebuild 4898 RMD160 13d720f69866ee32879c8811f0d2eb5ca5f4ac99 SHA1 2530499d58bf7de58a18b44a5bdea1d2f6f34e2d SHA256 0c3c501124f2ea827daa5e0ee62abd323c30232b9c5280d1103d6b049c90f024
+EBUILD postgresql-base-8.4.7-r2.ebuild 4965 RMD160 96934afb13a77b2f9741cc91cd46d28cf80721a6 SHA1 e8919df7be0a786af59c54229cc2b78d0542ca06 SHA256 1f6bd5616d02aa0a65eb443a12aafbacf7b2c3446d4bfe72d8d43fcb2c847abe
EBUILD postgresql-base-8.4.7.ebuild 4715 RMD160 2241df78cd2c80d49bd136521a984434772fb01e SHA1 27fccf76ac58a1a103bf2e9d6555bd92776cf993 SHA256 21120f15f2f8661a7eb3ce00c165002a944b5a5b051c14f65eee718ad1f56012
EBUILD postgresql-base-9.0.1.ebuild 4488 RMD160 a1bd7a90981047ea68f6932d84c530c19b354e12 SHA1 79d74c9d228cbf4336cbe46e569d20512c69c502 SHA256 28d053233c5c50316bf33dc785048e1d75011770acd269a3296b9aff6fe7945b
EBUILD postgresql-base-9.0.2.ebuild 4488 RMD160 41684e42472f81c7889409c9e4c8ebad5470ed30 SHA1 7792b105f59685d04efca4903170434ed7161d83 SHA256 10e6dc31e530172e9064c000e6474d7dcd831af47807e59ea63f8a80dc6fad0d
EBUILD postgresql-base-9.0.3-r1.ebuild 4767 RMD160 7139eb942eca1065ccd34e4d0916bfa1cc1a8a4f SHA1 22ad6a4653464604687f323611214ee5f0bc3a2e SHA256 a0e5f0654d2bddc3bf0db9573c13a0c006f45a05bdd666380b7dddcc476b46fd
EBUILD postgresql-base-9.0.3.ebuild 4477 RMD160 746291742489351659b61016218849ab2a8e5b26 SHA1 c3c949920fe3b5c1269db9a6e9cdc13b71cd23db SHA256 4f32350dad7785250a4e8dfaf792c2bc96d24f8618a4263adbf9ea2af4d69396
EBUILD postgresql-base-9.1_alpha4.ebuild 4757 RMD160 0fa419ba116c0265f0f1eeff6ed38da2d957453f SHA1 1df565ff2f7aabfec4fac5d6674d3fb5052d9431 SHA256 6229f3ae1d92a7790d6e81153b73a03c266a4c983769918858fe5360decc5b07
-MISC ChangeLog 31528 RMD160 d6f61558cce05972cac219b2a0a3dec2eb89512e SHA1 ab84bf021649f7a8aa03f19ff2bd0cc6e0830415 SHA256 7da22a55f21807e19110cbd645e33ef34a63dd3baa42bab0e704f57ac3631cae
+MISC ChangeLog 31835 RMD160 855dd6f29d16eb4f7ee6b80e93b4fad693a532c4 SHA1 f5539868f2ad384b167cd4ff12cf7887c89115e6 SHA256 066518fdddab4ce9a50fca2f7df86637c4196fd3f879460194560c2c599d9244
MISC metadata.xml 472 RMD160 fe3dc42a49cd1445788d023578d878c6226c72e0 SHA1 f03eda301fc89bf31cfb64bb6cc2cc4ca33cb632 SHA256 ee20753f4083988318c4c30155901e99a800dc8fb19fd77c80f9947c72abbf4c
diff --git a/dev-db/postgresql-base/postgresql-base-8.2.20-r2.ebuild b/dev-db/postgresql-base/postgresql-base-8.2.20-r2.ebuild
new file mode 100644
index 000000000000..6f48ddb3fff7
--- /dev/null
+++ b/dev-db/postgresql-base/postgresql-base-8.2.20-r2.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.20-r2.ebuild,v 1.1 2011/03/24 11:19:25 titanofold Exp $
+
+EAPI="3"
+
+WANT_AUTOMAKE="none"
+
+inherit autotools eutils multilib prefix versionator
+
+SLOT="$(get_version_component_range 1-2)"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
+
+DESCRIPTION="PostgreSQL libraries and clients"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
+ http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}.tbz2"
+LICENSE="POSTGRESQL"
+
+S=${WORKDIR}/postgresql-${PV}
+
+# No tests to be done for clients and libraries
+RESTRICT="test"
+
+LINGUAS="af cs de es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW"
+IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap"
+
+for lingua in ${LINGUAS} ; do
+ IUSE+=" linguas_${lingua}"
+done
+
+wanted_languages() {
+ local enable_langs
+
+ for lingua in ${LINGUAS} ; do
+ use linguas_${lingua} && enable_langs+="${lingua} "
+ done
+
+ echo -n ${enable_langs}
+}
+
+RDEPEND="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 )
+ >=app-admin/eselect-postgresql-0.3
+ virtual/libintl
+ !!dev-db/postgresql-libs
+ !!dev-db/postgresql-client
+ !!dev-db/libpq
+ !!dev-db/postgresql
+ ldap? ( net-nds/openldap )"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ >=sys-devel/bison-1.875
+ nls? ( sys-devel/gettext )"
+PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
+
+src_prepare() {
+ epatch "${WORKDIR}/autoconf.patch" \
+ "${WORKDIR}/base.patch" \
+ "${WORKDIR}/darwin.patch" \
+ "${WORKDIR}/SuperH.patch" \
+ "${WORKDIR}/relax_ssl_perms.patch"
+
+ eprefixify src/include/pg_config_manual.h
+
+ # to avoid collision - it only should be installed by server
+ rm "${S}/src/backend/nls.mk"
+
+ # because psql/help.c includes the file
+ ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
+
+ eautoconf
+}
+
+src_configure() {
+ export LDFLAGS_SL="${LDFLAGS}"
+ econf --prefix=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT} \
+ --datadir=${EROOT%/}/usr/share/postgresql-${SLOT} \
+ --sysconfdir=${EROOT%/}/etc/postgresql-${SLOT} \
+ --includedir=${EROOT%/}/usr/include/postgresql-${SLOT} \
+ --with-locale-dir=${EROOT%/}/usr/share/postgresql-${SLOT}/locale \
+ --mandir=${EROOT%/}/usr/share/postgresql-${SLOT}/man \
+ --without-docdir \
+ --enable-depend \
+ --without-tcl \
+ --without-perl \
+ --without-python \
+ $(use_with readline) \
+ $(use_with kerberos krb5) \
+ "$(use_enable nls nls "$(wanted_languages)")" \
+ $(use_with pam) \
+ $(use_enable pg-intdatetime integer-datetimes ) \
+ $(use_with ssl openssl) \
+ $(use_enable threads thread-safety) \
+ $(use_with zlib) \
+ $(use_with ldap) \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ cd "${S}/contrib"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ insinto /usr/include/postgresql-${SLOT}/postmaster
+ doins "${S}"/src/include/postmaster/*.h
+ dodir /usr/share/postgresql-${SLOT}/man/man1
+ tar -zxf "${S}/doc/man.tar.gz" -C "${ED}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
+
+ rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
+ fowners root:0 /usr/share/postgresql-${SLOT}/man/man1/{ecpg,pg_config}.1
+ dodoc README HISTORY doc/{README.*,TODO,bug.template}
+
+ cd "${S}/contrib"
+ emake DESTDIR="${D}" install || die "emake install failed"
+ cd "${S}"
+
+ dodir /etc/eselect/postgresql/slots/${SLOT}
+
+ IDIR="${EROOT%/}/usr/include/postgresql-${SLOT}"
+ cat > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
+postgres_ebuilds="\${postgres_ebuilds} ${PF}"
+postgres_prefix=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}
+postgres_datadir=${EROOT%/}/usr/share/postgresql-${SLOT}
+postgres_bindir=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin
+postgres_symlinks=(
+ ${IDIR} ${EROOT%/}/usr/include/postgresql
+ ${IDIR}/libpq-fe.h ${EROOT%/}/usr/include/libpq-fe.h
+ ${IDIR}/pg_config_manual.h ${EROOT%/}/usr/include/pg_config_manual.h
+ ${IDIR}/libpq ${EROOT%/}/usr/include/libpq
+ ${IDIR}/postgres_ext.h ${EROOT%/}/usr/include/postgres_ext.h
+)
+__EOF__
+
+ cat >"${T}/50postgresql-95-${SLOT}" <<-__EOF__
+ LDPATH=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
+ MANPATH=${EROOT%/}/usr/share/postgresql-${SLOT}/man
+ __EOF__
+ doenvd "${T}/50postgresql-95-${SLOT}"
+
+ keepdir /etc/postgresql-${SLOT}
+}
+
+pkg_postinst() {
+ eselect postgresql update
+ [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
+ elog "If you need a global psqlrc-file, you can place it in:"
+ elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
+}
+
+pkg_postrm() {
+ eselect postgresql update
+}
diff --git a/dev-db/postgresql-base/postgresql-base-8.3.14-r2.ebuild b/dev-db/postgresql-base/postgresql-base-8.3.14-r2.ebuild
new file mode 100644
index 000000000000..a15966a8e8db
--- /dev/null
+++ b/dev-db/postgresql-base/postgresql-base-8.3.14-r2.ebuild
@@ -0,0 +1,162 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.14-r2.ebuild,v 1.1 2011/03/24 11:19:25 titanofold Exp $
+
+EAPI="3"
+
+WANT_AUTOMAKE="none"
+
+inherit autotools eutils multilib prefix versionator
+
+SLOT="$(get_version_component_range 1-2)"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL libraries and clients"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
+ http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}.tbz2"
+LICENSE="POSTGRESQL"
+
+S=${WORKDIR}/postgresql-${PV}
+
+# No tests to be done for clients and libraries
+RESTRICT="test"
+
+LINGUAS="af cs de es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW"
+IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap"
+
+for lingua in ${LINGUAS} ; do
+ IUSE+=" linguas_${lingua}"
+done
+
+wanted_languages() {
+ local enable_langs
+
+ for lingua in ${LINGUAS} ; do
+ use linguas_${lingua} && enable_langs+="${lingua} "
+ done
+
+ echo -n ${enable_langs}
+}
+
+RDEPEND="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 )
+ >=app-admin/eselect-postgresql-0.3
+ virtual/libintl
+ !!dev-db/postgresql-libs
+ !!dev-db/postgresql-client
+ !!dev-db/libpq
+ !!dev-db/postgresql
+ ldap? ( net-nds/openldap )"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ >=sys-devel/bison-1.875
+ nls? ( sys-devel/gettext )"
+PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
+
+src_prepare() {
+ epatch "${WORKDIR}/autoconf.patch" \
+ "${WORKDIR}/base.patch" \
+ "${WORKDIR}/darwin.patch" \
+ "${WORKDIR}/SuperH.patch" \
+ "${WORKDIR}/relax_ssl_perms.patch"
+
+ eprefixify src/include/pg_config_manual.h
+
+ # to avoid collision - it only should be installed by server
+ rm "${S}/src/backend/nls.mk"
+
+ # because psql/help.c includes the file
+ ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
+
+ eautoconf
+}
+
+src_configure() {
+ export LDFLAGS_SL="${LDFLAGS}"
+ econf --prefix=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT} \
+ --datadir=${EROOT%/}/usr/share/postgresql-${SLOT} \
+ --sysconfdir=${EROOT%/}/etc/postgresql-${SLOT} \
+ --includedir=${EROOT%/}/usr/include/postgresql-${SLOT} \
+ --with-locale-dir=${EROOT%/}/usr/share/postgresql-${SLOT}/locale \
+ --mandir=${EROOT%/}/usr/share/postgresql-${SLOT}/man \
+ --without-docdir \
+ --enable-depend \
+ --without-tcl \
+ --without-perl \
+ --without-python \
+ $(use_with readline) \
+ $(use_with kerberos krb5) \
+ $(use_with kerberos gssapi) \
+ "$(use_enable nls nls "$(wanted_languages)")" \
+ $(use_with pam) \
+ $(use_enable pg-intdatetime integer-datetimes ) \
+ $(use_with ssl openssl) \
+ $(use_enable threads thread-safety) \
+ $(use_with zlib) \
+ $(use_with ldap) \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ cd "${S}/contrib"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ insinto /usr/include/postgresql-${SLOT}/postmaster
+ doins "${S}"/src/include/postmaster/*.h
+ dodir /usr/share/postgresql-${SLOT}/man/man1
+ tar -zxf "${S}/doc/man.tar.gz" -C "${ED}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
+
+ rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
+ fowners root:0 /usr/share/postgresql-${SLOT}/man/man1/{ecpg,pg_config}.1
+ dodoc README HISTORY doc/{README.*,TODO,bug.template}
+
+ cd "${S}/contrib"
+ emake DESTDIR="${D}" install || die "emake install failed"
+ cd "${S}"
+
+ dodir /etc/eselect/postgresql/slots/${SLOT}
+
+ IDIR="${EROOT%/}/usr/include/postgresql-${SLOT}"
+ cat > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
+postgres_ebuilds="\${postgres_ebuilds} ${PF}"
+postgres_prefix=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}
+postgres_datadir=${EROOT%/}/usr/share/postgresql-${SLOT}
+postgres_bindir=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin
+postgres_symlinks=(
+ ${IDIR} ${EROOT%/}/usr/include/postgresql
+ ${IDIR}/libpq-fe.h ${EROOT%/}/usr/include/libpq-fe.h
+ ${IDIR}/pg_config_manual.h ${EROOT%/}/usr/include/pg_config_manual.h
+ ${IDIR}/libpq ${EROOT%/}/usr/include/libpq
+ ${IDIR}/postgres_ext.h ${EROOT%/}/usr/include/postgres_ext.h
+)
+__EOF__
+
+ cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
+ LDPATH=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
+ MANPATH=${EROOT%/}/usr/share/postgresql-${SLOT}/man
+ __EOF__
+ doenvd "${T}/50postgresql-94-${SLOT}"
+
+ keepdir /etc/postgresql-${SLOT}
+}
+
+pkg_postinst() {
+ eselect postgresql update
+ [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
+ elog "If you need a global psqlrc-file, you can place it in:"
+ elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
+}
+
+pkg_postrm() {
+ eselect postgresql update
+}
diff --git a/dev-db/postgresql-base/postgresql-base-8.4.7-r2.ebuild b/dev-db/postgresql-base/postgresql-base-8.4.7-r2.ebuild
new file mode 100644
index 000000000000..f3d16ffd7dfe
--- /dev/null
+++ b/dev-db/postgresql-base/postgresql-base-8.4.7-r2.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.7-r2.ebuild,v 1.1 2011/03/24 11:19:25 titanofold Exp $
+
+EAPI="3"
+
+WANT_AUTOMAKE="none"
+
+inherit autotools eutils multilib prefix versionator
+
+SLOT="$(get_version_component_range 1-2)"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+
+DESCRIPTION="PostgreSQL libraries and clients"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
+ http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}.tbz2"
+LICENSE="POSTGRESQL"
+
+S=${WORKDIR}/postgresql-${PV}
+
+# No tests to be done for clients and libraries
+RESTRICT="test"
+
+LINGUAS="af cs de es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW"
+IUSE="doc kerberos nls pam readline ssl threads zlib ldap pg_legacytimestamp"
+
+for lingua in ${LINGUAS} ; do
+ IUSE+=" linguas_${lingua}"
+done
+
+wanted_languages() {
+ local enable_langs
+
+ for lingua in ${LINGUAS} ; do
+ use linguas_${lingua} && enable_langs+="${lingua} "
+ done
+
+ echo -n ${enable_langs}
+}
+
+RDEPEND="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 )
+ >=app-admin/eselect-postgresql-0.3
+ virtual/libintl
+ !!dev-db/postgresql-libs
+ !!dev-db/postgresql-client
+ !!dev-db/libpq
+ !!dev-db/postgresql
+ ldap? ( net-nds/openldap )"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ >=sys-devel/bison-1.875
+ nls? ( sys-devel/gettext )"
+PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
+
+src_prepare() {
+ epatch "${WORKDIR}/autoconf.patch" \
+ "${WORKDIR}/base.patch" \
+ "${WORKDIR}/darwin.patch" \
+ "${WORKDIR}/SuperH.patch"
+
+ eprefixify src/include/pg_config_manual.h
+
+ # to avoid collision - it only should be installed by server
+ rm "${S}/src/backend/nls.mk"
+
+ # because psql/help.c includes the file
+ ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
+
+ eautoconf
+}
+
+src_configure() {
+ export LDFLAGS_SL="${LDFLAGS}"
+ econf --prefix=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT} \
+ --datadir=${EROOT%/}/usr/share/postgresql-${SLOT} \
+ --docdir=${EROOT%/}/usr/share/doc/postgresql-${SLOT} \
+ --sysconfdir=${EROOT%/}/etc/postgresql-${SLOT} \
+ --includedir=${EROOT%/}/usr/include/postgresql-${SLOT} \
+ --mandir=${EROOT%/}/usr/share/postgresql-${SLOT}/man \
+ --enable-depend \
+ --without-tcl \
+ --without-perl \
+ --without-python \
+ $(use_with readline) \
+ $(use_with kerberos krb5) \
+ $(use_with kerberos gssapi) \
+ "$(use_enable nls nls "$(wanted_languages)")" \
+ $(use_with pam) \
+ $(use_enable !pg_legacytimestamp integer-datetimes ) \
+ $(use_with ssl openssl) \
+ $(use_enable threads thread-safety) \
+ $(use_with zlib) \
+ $(use_with ldap) \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ cd "${S}/contrib"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ insinto /usr/include/postgresql-${SLOT}/postmaster
+ doins "${S}"/src/include/postmaster/*.h
+ dodir /usr/share/postgresql-${SLOT}/man/man1
+ tar -zxf "${S}/doc/man.tar.gz" -C "${ED}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
+
+ rm -r "${ED}/usr/share/doc/postgresql-${SLOT}/html"
+ rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
+ fowners root:0 /usr/share/postgresql-${SLOT}/man/man1/{ecpg,pg_config}.1
+ dodoc README HISTORY doc/{README.*,TODO,bug.template}
+
+ cd "${S}/contrib"
+ emake DESTDIR="${D}" install || die "emake install failed"
+ cd "${S}"
+
+ dodir /etc/eselect/postgresql/slots/${SLOT}
+
+ IDIR="${EROOT%/}/usr/include/postgresql-${SLOT}"
+ cat > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
+postgres_ebuilds="\${postgres_ebuilds} ${PF}"
+postgres_prefix=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}
+postgres_datadir=${EROOT%/}/usr/share/postgresql-${SLOT}
+postgres_bindir=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin
+postgres_symlinks=(
+ ${IDIR} ${EROOT%/}/usr/include/postgresql
+ ${IDIR}/libpq-fe.h ${EROOT%/}/usr/include/libpq-fe.h
+ ${IDIR}/pg_config_manual.h ${EROOT%/}/usr/include/pg_config_manual.h
+ ${IDIR}/libpq ${EROOT%/}/usr/include/libpq
+ ${IDIR}/postgres_ext.h ${EROOT%/}/usr/include/postgres_ext.h
+)
+__EOF__
+
+ cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
+ LDPATH=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
+ MANPATH=${EROOT%/}/usr/share/postgresql-${SLOT}/man
+ __EOF__
+ doenvd "${T}/50postgresql-94-${SLOT}"
+
+ keepdir /etc/postgresql-${SLOT}
+}
+
+pkg_postinst() {
+ eselect postgresql update
+ [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
+ elog "If you need a global psqlrc-file, you can place it in:"
+ elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
+}
+
+pkg_postrm() {
+ eselect postgresql update
+}