From 4a3e0ee57c6a1408b11e3a644b58dbfab5d60c96 Mon Sep 17 00:00:00 2001 From: Tiziano Müller Date: Wed, 19 Mar 2008 14:28:43 +0000 Subject: dev-db/postgresql-base: Version bump. svn path=/experimental/; revision=333 --- dev-db/postgresql-base/ChangeLog | 5 + dev-db/postgresql-base/Manifest | 10 +- .../postgresql-base/postgresql-base-8.2.6.ebuild | 143 --------------------- .../postgresql-base/postgresql-base-8.2.7.ebuild | 143 +++++++++++++++++++++ .../postgresql-base/postgresql-base-8.3.0.ebuild | 143 --------------------- .../postgresql-base/postgresql-base-8.3.1.ebuild | 143 +++++++++++++++++++++ 6 files changed, 296 insertions(+), 291 deletions(-) delete mode 100644 dev-db/postgresql-base/postgresql-base-8.2.6.ebuild create mode 100644 dev-db/postgresql-base/postgresql-base-8.2.7.ebuild delete mode 100644 dev-db/postgresql-base/postgresql-base-8.3.0.ebuild create mode 100644 dev-db/postgresql-base/postgresql-base-8.3.1.ebuild (limited to 'dev-db') diff --git a/dev-db/postgresql-base/ChangeLog b/dev-db/postgresql-base/ChangeLog index b5e20f6..b223cca 100644 --- a/dev-db/postgresql-base/ChangeLog +++ b/dev-db/postgresql-base/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 19 Mar 2008; Tiziano Müller + -postgresql-base-8.2.6.ebuild, +postgresql-base-8.2.7.ebuild, + -postgresql-base-8.3.0.ebuild, +postgresql-base-8.3.1.ebuild: + Version bump. + 15 Mar 2008; Tiziano Müller postgresql-base-7.3.21.ebuild, files/postgresql-7.3-base.patch, postgresql-base-7.4.19.ebuild, files/postgresql-7.4-base.patch, diff --git a/dev-db/postgresql-base/Manifest b/dev-db/postgresql-base/Manifest index c2adfa4..fdc879b 100644 --- a/dev-db/postgresql-base/Manifest +++ b/dev-db/postgresql-base/Manifest @@ -16,13 +16,13 @@ DIST postgresql-7.3.21.tar.bz2 9284558 RMD160 f9de4676b4fbe3d96e6d1462b8bc3c0560 DIST postgresql-7.4.19.tar.bz2 10307396 RMD160 c9a1c7dc8e7bf9ce93c3b4f061af0563b1cc2627 SHA1 19c563d47b0d5deeef03b5ca7707c9f1917853ce SHA256 447ac7070aa0a547f17a307e842734fc27e2716cb4a251fa9a810b178d44c389 DIST postgresql-8.0.15.tar.bz2 11253897 RMD160 6aff5c63dce73eea609f0b6e013cd043ae8b7a37 SHA1 66a6fef7749afb91471200005511c04fc1ac2706 SHA256 59408a00db1c73e638a11af10438a827507b7a72b53916d58f2d44c477718714 DIST postgresql-8.1.11.tar.bz2 11735420 RMD160 9fb98eadc4f1015205970f26b31b68ea0378bda9 SHA1 73c0f09754fc8e3c7f8d7de49d70244b76927416 SHA256 3e91cdfc1353fa9c6416d9fc8ae9d6ab3171565f00aeb6c882214c2f08a03e2e -DIST postgresql-8.2.6.tar.bz2 12559117 RMD160 fa12ce310919cb52be3558d38a7e329bc73bbe33 SHA1 8934dfbd4c1d8c4f2945cb80f02072611681f967 SHA256 ee41327e821f933de2894d6e0c319edc4b63e80cb902e673b490b7eaf4ead114 -DIST postgresql-8.3.0.tar.bz2 13923051 RMD160 99f48d26d9b0fb0cfda0de7156ad6a9554017d9e SHA1 b221e9a82fdb10af1a2b527551a4e30b7ccb958d SHA256 85356d6ab577e21bb528eb5d672e4373b21fe98ac046e77a0eed975608066ea6 +DIST postgresql-8.2.7.tar.bz2 12576126 RMD160 96700e91c3b9e733c686b0fe377c7ba661710942 SHA1 0be0dbaa488810ebcba77ac7246180c5b2a9b669 SHA256 39528d1ba50f5abc51569e8b9bdeb47d0d4650d289a2c2e465621864b1ff3584 +DIST postgresql-8.3.1.tar.bz2 13995572 RMD160 075efb67126f2b308d2a5fe4f9097fdbfbe94c89 SHA1 7397e0d8fd3c420ee845d9ae4995ae347bfaea1d SHA256 7ccf1e5c987920e4d6eb98b8589939e29d3a361d285055d5af35ddd8e1a2d992 EBUILD postgresql-base-7.3.21.ebuild 4256 RMD160 ff1b13d08313ac9011d8797bf4e4b29410c70a2b SHA1 421996b17cc03acec6b1653a93416e96fe32a5c5 SHA256 75de72ec7e44dc8a59d9c928c3ec9bfe01a3aa2c0c248f14691f3e5d398197a9 EBUILD postgresql-base-7.4.19.ebuild 4445 RMD160 4aba463d6f2f03d3fc9a19a0ef115703f5f27463 SHA1 7f8832555b6fd74c944144fa621f0c0baea40482 SHA256 99fa0c80b1fe44cb88cc79fc5a57933122ca3daffbb48683c29124af66d061f0 EBUILD postgresql-base-8.0.15.ebuild 4429 RMD160 acded9080ef296d9157838330dff7d56dd6a71c3 SHA1 905bcb5a92eece78033514637e686ad3acdced17 SHA256 89584d4e2deec839676b87c8bf197b22a60a1446be6d3a7c1813f26db20d84b0 EBUILD postgresql-base-8.1.11.ebuild 4429 RMD160 74215f3db63cdf7e688eff0856572d1f955d0fe6 SHA1 ddd81975a95bd11c55ec198fcfc7c66e88b46407 SHA256 ce767c10d42f60f38f9e6332d473407eef2a4cb1ad7ccb6c67d4c053cd57d770 -EBUILD postgresql-base-8.2.6.ebuild 4416 RMD160 dc8666f6b780f6e56725396043bb182cbfb4480f SHA1 b3747ad0f7c6591ccd64cf05ac5516f98477dce7 SHA256 6cb94d2db5df95156fad4cca932aef7468b77ad3efee3493831f3106a9b76db8 -EBUILD postgresql-base-8.3.0.ebuild 4416 RMD160 b754125c1cca93d40ad34edea881bba895a1981e SHA1 416321e5b2b4fcdb5985f7371e9077658c7ca835 SHA256 aab10b19cbf7b5145a372ac78ed30124e356d865d335a698d04dc9f163d421fc -MISC ChangeLog 2928 RMD160 0ab49575b1412b8ad03d01ab05a816cf4c179dcf SHA1 a74fdb1839603edb7d45966c9caaf429cc7806a7 SHA256 b06d8ed5051c8b5fc198b6edde34975c692e1adb784c71d2b095608f0f7ccc94 +EBUILD postgresql-base-8.2.7.ebuild 4416 RMD160 dc8666f6b780f6e56725396043bb182cbfb4480f SHA1 b3747ad0f7c6591ccd64cf05ac5516f98477dce7 SHA256 6cb94d2db5df95156fad4cca932aef7468b77ad3efee3493831f3106a9b76db8 +EBUILD postgresql-base-8.3.1.ebuild 4416 RMD160 b754125c1cca93d40ad34edea881bba895a1981e SHA1 416321e5b2b4fcdb5985f7371e9077658c7ca835 SHA256 aab10b19cbf7b5145a372ac78ed30124e356d865d335a698d04dc9f163d421fc +MISC ChangeLog 3126 RMD160 ad3f16abf38c45bfdff6bcb523e3b45a1a9e9fff SHA1 69a612315dc08af20a7183c02f7ac3139957e3b4 SHA256 fcf67653dd09c6955cade5d5819aef723f75df9b69c33688d039a04abba250a4 MISC metadata.xml 164 RMD160 becfe652663bd65719dd11fa6ffb588b3d5b4ecc SHA1 f67b7ac1c5e6e65ef5a19a589d4759c84918f86c SHA256 7e8e8126bc8701c4a42c7dfed8bb755ac6040fe3d0e3f994d888f8b2b4fa7d8b diff --git a/dev-db/postgresql-base/postgresql-base-8.2.6.ebuild b/dev-db/postgresql-base/postgresql-base-8.2.6.ebuild deleted file mode 100644 index b9c364c..0000000 --- a/dev-db/postgresql-base/postgresql-base-8.2.6.ebuild +++ /dev/null @@ -1,143 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="1" - -WANT_AUTOCONF="latest" -WANT_AUTOMAKE="none" - -inherit eutils multilib toolchain-funcs versionator autotools - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" -LICENSE="POSTGRESQL" -SLOT="$(get_version_component_range 1-2)" -IUSE_LINGUAS=" - linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr - linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl - linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv - linguas_tr linguas_zh_CN linguas_zh_TW" -IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}" -RESTRICT="test" - -wanted_languages() { - for u in ${IUSE_LINGUAS} ; do - use $u && echo ${u#linguas_} - done -} - -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.2 - !dev-db/postgresql-libs - !dev-db/postgresql-client - !dev-db/libpq - !dev-db/postgresql - ldap? ( net-nds/openldap )" -DEPEND="${RDEPEND} - >=sys-devel/bison-1.875 - nls? ( sys-devel/gettext )" -PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )" - -S="${WORKDIR}/postgresql-${PV}" - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \ - "${FILESDIR}/postgresql-${SLOT}-base.patch" - - # 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_compile() { - econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ - --datadir=/usr/share/postgresql-${SLOT} \ - --sysconfdir=/etc/postgresql-${SLOT} \ - --includedir=/usr/include/postgresql-${SLOT} \ - --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \ - --mandir=/usr/share/postgresql-${SLOT}/man \ - --with-docdir=/usr/share/doc/${PF} \ - --enable-depend \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with kerberos krb5) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable pg-intdatetime integer-datetimes ) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety ) \ - $(use_with zlib) \ - $(use_with ldap) \ - || die "configure failed" - - emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" - - cd "${S}/contrib" - emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || 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 "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1 - - rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - cd "${S}/contrib" - emake DESTDIR="${D}" install || die "emake install failed" - cd "${S}" - - dodir /usr/lib/eselect-postgresql/slots/${SLOT} - - IDIR="/usr/include/postgresql-${SLOT}" - cat > "${D}/usr/lib/eselect-postgresql/slots/${SLOT}/base" <<-__EOF__ -postgres_ebuilds="\${postgres_ebuilds} ${PF}" -postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} -postgres_datadir=/usr/share/postgresql-${SLOT} -postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin -postgres_symlinks=( - ${IDIR} /usr/include/postgresql - ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h - ${IDIR}/libpq /usr/include/libpq - ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h -) -__EOF__ - - cat >"${T}/50postgresql-95-${SLOT}" <<-__EOF__ - LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) - MANPATH=/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 '${ROOT}/etc/postgresql-${SLOT}/'." -} - -pkg_postrm() { - eselect postgresql update -} diff --git a/dev-db/postgresql-base/postgresql-base-8.2.7.ebuild b/dev-db/postgresql-base/postgresql-base-8.2.7.ebuild new file mode 100644 index 0000000..b9c364c --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-8.2.7.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" + +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="none" + +inherit eutils multilib toolchain-funcs versionator autotools + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" + +DESCRIPTION="PostgreSQL libraries and clients" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" +LICENSE="POSTGRESQL" +SLOT="$(get_version_component_range 1-2)" +IUSE_LINGUAS=" + linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr + linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl + linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv + linguas_tr linguas_zh_CN linguas_zh_TW" +IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}" +RESTRICT="test" + +wanted_languages() { + for u in ${IUSE_LINGUAS} ; do + use $u && echo ${u#linguas_} + done +} + +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.2 + !dev-db/postgresql-libs + !dev-db/postgresql-client + !dev-db/libpq + !dev-db/postgresql + ldap? ( net-nds/openldap )" +DEPEND="${RDEPEND} + >=sys-devel/bison-1.875 + nls? ( sys-devel/gettext )" +PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )" + +S="${WORKDIR}/postgresql-${PV}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \ + "${FILESDIR}/postgresql-${SLOT}-base.patch" + + # 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_compile() { + econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ + --datadir=/usr/share/postgresql-${SLOT} \ + --sysconfdir=/etc/postgresql-${SLOT} \ + --includedir=/usr/include/postgresql-${SLOT} \ + --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \ + --mandir=/usr/share/postgresql-${SLOT}/man \ + --with-docdir=/usr/share/doc/${PF} \ + --enable-depend \ + --without-tcl \ + --without-perl \ + --without-python \ + $(use_with kerberos krb5) \ + "$(use_enable nls nls "$(wanted_languages)")" \ + $(use_with pam) \ + $(use_enable pg-intdatetime integer-datetimes ) \ + $(use_with readline) \ + $(use_with ssl openssl) \ + $(use_enable threads thread-safety ) \ + $(use_with zlib) \ + $(use_with ldap) \ + || die "configure failed" + + emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" + + cd "${S}/contrib" + emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || 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 "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1 + + rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 + dodoc README HISTORY doc/{README.*,TODO,bug.template} + + cd "${S}/contrib" + emake DESTDIR="${D}" install || die "emake install failed" + cd "${S}" + + dodir /usr/lib/eselect-postgresql/slots/${SLOT} + + IDIR="/usr/include/postgresql-${SLOT}" + cat > "${D}/usr/lib/eselect-postgresql/slots/${SLOT}/base" <<-__EOF__ +postgres_ebuilds="\${postgres_ebuilds} ${PF}" +postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} +postgres_datadir=/usr/share/postgresql-${SLOT} +postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin +postgres_symlinks=( + ${IDIR} /usr/include/postgresql + ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h + ${IDIR}/libpq /usr/include/libpq + ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h +) +__EOF__ + + cat >"${T}/50postgresql-95-${SLOT}" <<-__EOF__ + LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) + MANPATH=/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 '${ROOT}/etc/postgresql-${SLOT}/'." +} + +pkg_postrm() { + eselect postgresql update +} diff --git a/dev-db/postgresql-base/postgresql-base-8.3.0.ebuild b/dev-db/postgresql-base/postgresql-base-8.3.0.ebuild deleted file mode 100644 index bd3c849..0000000 --- a/dev-db/postgresql-base/postgresql-base-8.3.0.ebuild +++ /dev/null @@ -1,143 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="1" - -WANT_AUTOCONF="latest" -WANT_AUTOMAKE="none" - -inherit eutils multilib toolchain-funcs versionator autotools - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" - -DESCRIPTION="PostgreSQL libraries and clients" -HOMEPAGE="http://www.postgresql.org/" -SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" -LICENSE="POSTGRESQL" -SLOT="$(get_version_component_range 1-2)" -IUSE_LINGUAS=" - linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr - linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl - linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv - linguas_tr linguas_zh_CN linguas_zh_TW" -IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}" -RESTRICT="test" - -wanted_languages() { - for u in ${IUSE_LINGUAS} ; do - use $u && echo ${u#linguas_} - done -} - -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.2 - !dev-db/postgresql-libs - !dev-db/postgresql-client - !dev-db/libpq - !dev-db/postgresql - ldap? ( net-nds/openldap )" -DEPEND="${RDEPEND} - >=sys-devel/bison-1.875 - nls? ( sys-devel/gettext )" -PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )" - -S="${WORKDIR}/postgresql-${PV}" - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \ - "${FILESDIR}/postgresql-${SLOT}-base.patch" - - # 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_compile() { - econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ - --datadir=/usr/share/postgresql-${SLOT} \ - --sysconfdir=/etc/postgresql-${SLOT} \ - --includedir=/usr/include/postgresql-${SLOT} \ - --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \ - --mandir=/usr/share/postgresql-${SLOT}/man \ - --with-docdir=/usr/share/doc/${PF} \ - --enable-depend \ - --without-tcl \ - --without-perl \ - --without-python \ - $(use_with kerberos krb5) \ - "$(use_enable nls nls "$(wanted_languages)")" \ - $(use_with pam) \ - $(use_enable pg-intdatetime integer-datetimes ) \ - $(use_with readline) \ - $(use_with ssl openssl) \ - $(use_enable threads thread-safety ) \ - $(use_with zlib) \ - $(use_with ldap) \ - || die "configure failed" - - emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" - - cd "${S}/contrib" - emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || 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 "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1 - - rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 - dodoc README HISTORY doc/{README.*,TODO,bug.template} - - cd "${S}/contrib" - emake DESTDIR="${D}" install || die "emake install failed" - cd "${S}" - - dodir /usr/lib/eselect-postgresql/slots/${SLOT} - - IDIR="/usr/include/postgresql-${SLOT}" - cat > "${D}/usr/lib/eselect-postgresql/slots/${SLOT}/base" <<-__EOF__ -postgres_ebuilds="\${postgres_ebuilds} ${PF}" -postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} -postgres_datadir=/usr/share/postgresql-${SLOT} -postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin -postgres_symlinks=( - ${IDIR} /usr/include/postgresql - ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h - ${IDIR}/libpq /usr/include/libpq - ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h -) -__EOF__ - - cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__ - LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) - MANPATH=/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 '${ROOT}/etc/postgresql-${SLOT}/'." -} - -pkg_postrm() { - eselect postgresql update -} diff --git a/dev-db/postgresql-base/postgresql-base-8.3.1.ebuild b/dev-db/postgresql-base/postgresql-base-8.3.1.ebuild new file mode 100644 index 0000000..bd3c849 --- /dev/null +++ b/dev-db/postgresql-base/postgresql-base-8.3.1.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" + +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="none" + +inherit eutils multilib toolchain-funcs versionator autotools + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" + +DESCRIPTION="PostgreSQL libraries and clients" +HOMEPAGE="http://www.postgresql.org/" +SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" +LICENSE="POSTGRESQL" +SLOT="$(get_version_component_range 1-2)" +IUSE_LINGUAS=" + linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr + linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl + linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv + linguas_tr linguas_zh_CN linguas_zh_TW" +IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}" +RESTRICT="test" + +wanted_languages() { + for u in ${IUSE_LINGUAS} ; do + use $u && echo ${u#linguas_} + done +} + +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.2 + !dev-db/postgresql-libs + !dev-db/postgresql-client + !dev-db/libpq + !dev-db/postgresql + ldap? ( net-nds/openldap )" +DEPEND="${RDEPEND} + >=sys-devel/bison-1.875 + nls? ( sys-devel/gettext )" +PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )" + +S="${WORKDIR}/postgresql-${PV}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \ + "${FILESDIR}/postgresql-${SLOT}-base.patch" + + # 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_compile() { + econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ + --datadir=/usr/share/postgresql-${SLOT} \ + --sysconfdir=/etc/postgresql-${SLOT} \ + --includedir=/usr/include/postgresql-${SLOT} \ + --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \ + --mandir=/usr/share/postgresql-${SLOT}/man \ + --with-docdir=/usr/share/doc/${PF} \ + --enable-depend \ + --without-tcl \ + --without-perl \ + --without-python \ + $(use_with kerberos krb5) \ + "$(use_enable nls nls "$(wanted_languages)")" \ + $(use_with pam) \ + $(use_enable pg-intdatetime integer-datetimes ) \ + $(use_with readline) \ + $(use_with ssl openssl) \ + $(use_enable threads thread-safety ) \ + $(use_with zlib) \ + $(use_with ldap) \ + || die "configure failed" + + emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" + + cd "${S}/contrib" + emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || 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 "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1 + + rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 + dodoc README HISTORY doc/{README.*,TODO,bug.template} + + cd "${S}/contrib" + emake DESTDIR="${D}" install || die "emake install failed" + cd "${S}" + + dodir /usr/lib/eselect-postgresql/slots/${SLOT} + + IDIR="/usr/include/postgresql-${SLOT}" + cat > "${D}/usr/lib/eselect-postgresql/slots/${SLOT}/base" <<-__EOF__ +postgres_ebuilds="\${postgres_ebuilds} ${PF}" +postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} +postgres_datadir=/usr/share/postgresql-${SLOT} +postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin +postgres_symlinks=( + ${IDIR} /usr/include/postgresql + ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h + ${IDIR}/libpq /usr/include/libpq + ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h +) +__EOF__ + + cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__ + LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) + MANPATH=/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 '${ROOT}/etc/postgresql-${SLOT}/'." +} + +pkg_postrm() { + eselect postgresql update +} -- cgit v1.2.3-65-gdbad