summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Swenson <titanofold@gentoo.org>2011-03-20 14:29:20 +0000
committerAaron Swenson <titanofold@gentoo.org>2011-03-20 14:29:20 +0000
commit3aaf52f9ee1289adf03698371244cb09f38e9a77 (patch)
tree8babc8bd453d44dc84fb4602917ec61305ad7035 /dev-db/postgresql-base
parentLDFLAGS again, bug 335182 (diff)
downloadhistorical-3aaf52f9ee1289adf03698371244cb09f38e9a77.tar.gz
historical-3aaf52f9ee1289adf03698371244cb09f38e9a77.tar.bz2
historical-3aaf52f9ee1289adf03698371244cb09f38e9a77.zip
Adding 9.1 pre-release
Package-Manager: portage-2.1.9.42/cvs/Linux i686
Diffstat (limited to 'dev-db/postgresql-base')
-rw-r--r--dev-db/postgresql-base/ChangeLog8
-rw-r--r--dev-db/postgresql-base/Manifest5
-rw-r--r--dev-db/postgresql-base/postgresql-base-9.1_alpha4.ebuild160
3 files changed, 171 insertions, 2 deletions
diff --git a/dev-db/postgresql-base/ChangeLog b/dev-db/postgresql-base/ChangeLog
index 5642eea8da08..3fb8f4fd9292 100644
--- a/dev-db/postgresql-base/ChangeLog
+++ b/dev-db/postgresql-base/ChangeLog
@@ -1,6 +1,12 @@
# 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.107 2011/03/20 03:30:35 titanofold Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.108 2011/03/20 14:29:20 titanofold Exp $
+
+*postgresql-base-9.1_alpha4 (20 Mar 2011)
+
+ 20 Mar 2011; Aaron W. Swenson <titanofold@gentoo.org>
+ +postgresql-base-9.1_alpha4.ebuild:
+ Adding 9.1 pre-release
20 Mar 2011; Mr. Aaron W. Swenson (TitanOfOld) <titan@gentoo.org>
-postgresql-base-8.1.22.ebuild, -postgresql-base-8.1.23.ebuild,
diff --git a/dev-db/postgresql-base/Manifest b/dev-db/postgresql-base/Manifest
index a4d4901de0f2..58e132c52df1 100644
--- a/dev-db/postgresql-base/Manifest
+++ b/dev-db/postgresql-base/Manifest
@@ -24,6 +24,8 @@ DIST postgresql-8.4.7.tar.bz2 14133535 RMD160 15721cddd4ee916d44ed7e656c0570ef4c
DIST postgresql-9.0.1.tar.bz2 13773951 RMD160 5e4b31d9ff075099671ced015ac0272ae1c04543 SHA1 7adeb3c4b661115ec6eb4e5896edfee71f87245e SHA256 5310cd490127845f1473a0f73f7b0d18277d81d51534ddfe17ea3e78286a3196
DIST postgresql-9.0.2.tar.bz2 14024244 RMD160 3313b4bafe3af6282f68f198da7d50af4d5c01c4 SHA1 42a9518a2f11fa1d09a23bc628b00e992d3bcf4a SHA256 ffb58195850aa0ec9b7b3dcdac51a6dee0c76ea3387b76c805e1c4d186fe2af5
DIST postgresql-9.0.3.tar.bz2 14040705 RMD160 9f5e0584018265282a75be8597fb7ac51ccaa23a SHA1 ea7b4729427f668cbf36184efbc58fd828a2d3ab SHA256 cf429421dea73a7bd5ef9fbdd1212a0d01c0f63c2059e0218a0e350891867b35
+DIST postgresql-9.1alpha4-patches.tbz2 4326 RMD160 d30f1e3ea673eddba0821c07b3335723d9331769 SHA1 8ac563990d6b0ad5845f68d0eb6f22e7a01acde9 SHA256 5a8297ffb61e9f93ec1b828caddf15d89a9fcc5d1d839501caf47f8a199c1399
+DIST postgresql-9.1alpha4.tar.bz2 14296555 RMD160 71962c5e0833bd42bbea3e7494c24aedbdab6f76 SHA1 9f7d5a663e14caebecb22dbedd07f7d28223ee9a SHA256 5d09764d05dca68cbafc133fd079d312751b0b22722c3ee9e2f33b1f26f78dc6
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.ebuild 4534 RMD160 91df15e17b9a0d5dad60decc95def78fc077248b SHA1 1cc1620f2b8423b4921e9a9894ff2902bb020800 SHA256 89553d881551507928cce6b828a565cefaf6080c7f029e3e6494f6324f5d93d5
@@ -36,5 +38,6 @@ EBUILD postgresql-base-8.4.7.ebuild 4715 RMD160 2241df78cd2c80d49bd136521a984434
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.ebuild 4477 RMD160 746291742489351659b61016218849ab2a8e5b26 SHA1 c3c949920fe3b5c1269db9a6e9cdc13b71cd23db SHA256 4f32350dad7785250a4e8dfaf792c2bc96d24f8618a4263adbf9ea2af4d69396
-MISC ChangeLog 30686 RMD160 84f6abc893312e0013ce1b88331f9270c4ed87ee SHA1 817aabbcd4502b9e7177f3638f35a12a658ca01f SHA256 7d0936feae967499bd3af35410ccddec7f96ca16c459eb7d53b2de59274610df
+EBUILD postgresql-base-9.1_alpha4.ebuild 4757 RMD160 0fa419ba116c0265f0f1eeff6ed38da2d957453f SHA1 1df565ff2f7aabfec4fac5d6674d3fb5052d9431 SHA256 6229f3ae1d92a7790d6e81153b73a03c266a4c983769918858fe5360decc5b07
+MISC ChangeLog 30849 RMD160 fda0357f77f485525e25e24f2b99779a3d32b142 SHA1 daba12c2977b4926190c37c942b0126779625589 SHA256 f433b171c5dc29ea25d1bbfd80961780da6b87b19d96bbb84f9c41473871be3a
MISC metadata.xml 472 RMD160 fe3dc42a49cd1445788d023578d878c6226c72e0 SHA1 f03eda301fc89bf31cfb64bb6cc2cc4ca33cb632 SHA256 ee20753f4083988318c4c30155901e99a800dc8fb19fd77c80f9947c72abbf4c
diff --git a/dev-db/postgresql-base/postgresql-base-9.1_alpha4.ebuild b/dev-db/postgresql-base/postgresql-base-9.1_alpha4.ebuild
new file mode 100644
index 000000000000..66347f98de68
--- /dev/null
+++ b/dev-db/postgresql-base/postgresql-base-9.1_alpha4.ebuild
@@ -0,0 +1,160 @@
+# 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-9.1_alpha4.ebuild,v 1.1 2011/03/20 14:29:20 titanofold Exp $
+
+EAPI="4"
+
+WANT_AUTOMAKE="none"
+
+inherit autotools eutils multilib prefix versionator
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+
+# Upstream doesn't have an underscore in the file name
+MY_PV=${PV/_/}
+
+DESCRIPTION="PostgreSQL libraries and clients"
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2
+ http://dev.gentoo.org/~titanofold/postgresql-${MY_PV}-patches.tbz2"
+LICENSE="POSTGRESQL"
+
+S=${WORKDIR}/postgresql-${MY_PV}
+SLOT="$(get_version_component_range 1-2)"
+
+# 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 ldap nls pam pg_legacytimestamp readline ssl threads zlib"
+
+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="!!dev-db/postgresql-libs
+ !!dev-db/postgresql-client
+ !!dev-db/libpq
+ !!dev-db/postgresql
+ >=app-admin/eselect-postgresql-0.3
+ virtual/libintl
+ kerberos? ( virtual/krb5 )
+ ldap? ( net-nds/openldap )
+ pam? ( virtual/pam )
+ readline? ( sys-libs/readline )
+ ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+ zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ nls? ( sys-devel/gettext )"
+PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
+
+src_prepare() {
+ epatch "${WORKDIR}/postgresql-${MY_PV}-autoconf.patch" \
+ "${WORKDIR}/postgresql-${MY_PV}-base.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/" || die
+
+ 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)
+}
+
+src_compile() {
+ emake
+
+ cd "${S}/contrib"
+ emake
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ insinto /usr/include/postgresql-${SLOT}/postmaster
+ doins "${S}"/src/include/postmaster/*.h
+
+ dodir /usr/share/postgresql-${SLOT}/man/man1/
+ cp "${S}"/doc/src/sgml/man1/* "${ED}"/usr/share/postgresql-${SLOT}/man/man1/ || die
+
+ rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,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 /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}/lib
+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
+}