summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Swenson <titanofold@gentoo.org>2014-03-11 22:27:04 +0000
committerAaron Swenson <titanofold@gentoo.org>2014-03-11 22:27:04 +0000
commit4717a0e59992aa8627928f2bc975faa7d516f15f (patch)
treef12366cb77adba5a25918ea917ba5dba2f6c5ed5 /dev-db/pygresql
parentStable for amd64 wrt bug #503784 (diff)
downloadhistorical-4717a0e59992aa8627928f2bc975faa7d516f15f.tar.gz
historical-4717a0e59992aa8627928f2bc975faa7d516f15f.tar.bz2
historical-4717a0e59992aa8627928f2bc975faa7d516f15f.zip
4.1.1 is not actually compatible with <dev-db/postgresql-9.0. Updated POSTGRES_COMPAT to include 9.3. Fixes bug 499006.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0xD1BBFDA0
Diffstat (limited to 'dev-db/pygresql')
-rw-r--r--dev-db/pygresql/ChangeLog9
-rw-r--r--dev-db/pygresql/Manifest9
-rw-r--r--dev-db/pygresql/pygresql-4.1.1-r1.ebuild74
3 files changed, 87 insertions, 5 deletions
diff --git a/dev-db/pygresql/ChangeLog b/dev-db/pygresql/ChangeLog
index 838e9536f72b..1ec347457486 100644
--- a/dev-db/pygresql/ChangeLog
+++ b/dev-db/pygresql/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-db/pygresql
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/pygresql/ChangeLog,v 1.70 2014/01/27 11:28:53 titanofold Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pygresql/ChangeLog,v 1.71 2014/03/11 22:26:44 titanofold Exp $
+
+*pygresql-4.1.1-r1 (11 Mar 2014)
+
+ 11 Mar 2014; Aaron W. Swenson <titanofold@gentoo.org>
+ +pygresql-4.1.1-r1.ebuild:
+ 4.1.1 is not actually compatible with <dev-db/postgresql-9.0. Updated
+ POSTGRES_COMPAT to include 9.3. Fixes bug 499006.
27 Jan 2014; Aaron W. Swenson <titanofold@gentoo.org> -pygresql-3.8.1.ebuild,
-pygresql-4.0.ebuild:
diff --git a/dev-db/pygresql/Manifest b/dev-db/pygresql/Manifest
index eb47eb8220e7..f6c83e918a76 100644
--- a/dev-db/pygresql/Manifest
+++ b/dev-db/pygresql/Manifest
@@ -2,13 +2,14 @@
Hash: SHA256
DIST PyGreSQL-4.1.1.tgz 100883 SHA256 bb14092f97c66ed13b8faf71471b8c156c6b46d915858447f3a63e9abe48eef7 SHA512 4b37c56f2112471aa5f3003a1d867382ce1b7510afa0963f0ceeb2f8175ca601bb5bade9ea2038d44a1041f12233e364f138a635bb7b353d0a82aeb7d9d49b7f WHIRLPOOL 323bfd1b72341be6b14d71fd4f05f5005a0f8a387f9b050ef3c786531ea19e057aa67fb5737b5aa0c4ca0912ad697a39d8957d70bb6bb4056e81f406ade5a6b9
+EBUILD pygresql-4.1.1-r1.ebuild 1695 SHA256 efb1cca49a99442db1f0d57eef5c4f28d4a1cb21f37b997ef7021e0dd208d2d4 SHA512 6c2045d40fb0fa936f38d57401ca62c0ae8e6e4b0d457b7707769b18e286c38f9c650ff96e3a087ae71dd0f68fc46d1cc6920b11f217d9f275c681bd97205366 WHIRLPOOL c1d9e01496d12b5ffc53c9be75e2cc0300d7c8471ce853522e45c465ee19a38745262251469e24b674fe4df4ef1cac7a6b28f4af0882b79a240e488b86db7b8b
EBUILD pygresql-4.1.1.ebuild 1712 SHA256 78cdb9d2cebceb15c2bc8ea3743dc8dbdd6d8caf42666857177251a74a7aa323 SHA512 233aa32a650c0917e65fb52e8410c96c7dd2d98706cf43b48580a172b03a09bfabafa7120f7ae5af72f8f5631d2a04ac184667f95d237bf2a5b1af217ba5ec5b WHIRLPOOL e1d07af4a97a537f9dd11b75f001fef8c9ba6bb0bdc732bd2e442d3c4e60df0431c5abf0848e197a4e653bf792506d142c8c9a7dd158a3aa7e6ae2d5f0f1a2c7
-MISC ChangeLog 8627 SHA256 ce3ca94ce36b54bad3f3a62d40508541d80f4cff36802dbe4df23530288c34bc SHA512 ee1bc936973c5a8b9cdddd8550b278a05591c883bf34c23447144cdc97e5929e8234b657721b2df83768359da5e24b719d0cb443e55f4a46afa87e81496eb5ee WHIRLPOOL 4433ba13c2847575d3869535b8b35afaca21ade19233950756efc5fe70e9ee7ee737e6311a41131c0b76e215d4dd405fa978c1ab5e6e1f5d86637d9d571127ba
+MISC ChangeLog 8871 SHA256 cfe41b4d52e57f569f5beff4104b6a0bf62185436bc4ae7e297ffc54e63c5d55 SHA512 ae2a575ae06ce2d4cedb1e15836f312ad1d560ca4dc8201f2b19aa66dfa2339aab9adb235931b2eedef2f49af66e6cc60ac4a7f3b9396001aa17b5ecde1fcd87 WHIRLPOOL c6dbbb1ef91635e9dad880f8880e636c58eb6e3762f27d841f5b1da474376409da20fdccb6f80941421e615cb74daa883a4bcf1b55472ab690b1d28a91d008b2
MISC metadata.xml 163 SHA256 f0699a4c3ad24cc38836c2d4a1ba03e4e403a9a5364b51df405db02014005891 SHA512 b8dea0d79b67ec69ca908fa0e8fcbd5edf1c9e37fb2a8c00621239dba6e9e8c7a5270e9914863460faabb0b96bbbc796aa75cb5374542ee519742f4889f91701 WHIRLPOOL 254c018c32b2a35bb47fd8c01e1ed3649dc78001f40fc8a76d10416358e928a67d7142825c00056eafb6f329901ebc9ae87c88cbc2f14d1ae21a6f7419f0a038
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iF4EAREIAAYFAlLmQvsACgkQVxOqA9G7/aCF/AD/csYt53wM6ogZraKsC8C/O9gw
-NF8LRS3YbkrX2I3nTUYBAJbKsLar68JuiJJqcvnoPAx6yqT/iJCPRsBejv8NV20o
-=8zDn
+iF4EAREIAAYFAlMfjaoACgkQVxOqA9G7/aBPqgD/dYj7/tDe8tNdqVelTWIUdgPw
+XnL1m8+IUN7zpbddZUEBAJ+gkRNiueCDSCx0oFqUkUGhl3ccdLYH0u/if2S6t8DX
+=+7HJ
-----END PGP SIGNATURE-----
diff --git a/dev-db/pygresql/pygresql-4.1.1-r1.ebuild b/dev-db/pygresql/pygresql-4.1.1-r1.ebuild
new file mode 100644
index 000000000000..41e87ac41d6d
--- /dev/null
+++ b/dev-db/pygresql/pygresql-4.1.1-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/pygresql/pygresql-4.1.1-r1.ebuild,v 1.1 2014/03/11 22:26:44 titanofold Exp $
+
+EAPI=5
+
+POSTGRES_COMPAT=( 9.{0,1,2,3} )
+PYTHON_COMPAT=( python{2_6,2_7} )
+
+inherit distutils-r1
+
+MY_P="PyGreSQL-${PV}"
+
+DESCRIPTION="A Python interface for the PostgreSQL database."
+HOMEPAGE="http://www.pygresql.org/"
+SRC_URI="mirror://pypi/P/PyGreSQL/${MY_P}.tgz"
+
+LICENSE="POSTGRESQL"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86"
+IUSE="doc"
+
+DEPEND="|| (
+ dev-db/postgresql-base:9.3
+ dev-db/postgresql-base:9.2
+ dev-db/postgresql-base:9.1
+ dev-db/postgresql-base:9.0
+)"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+# Verify that the currently selected PostgreSQL slot is set to one of
+# the slots defined in POSTGRES_COMPAT.
+postgres_check_slot() {
+ if ! declare -p POSTGRES_COMPAT &>/dev/null; then
+ die 'POSTGRES_COMPAT not declared.'
+ fi
+
+# Don't die because we can't run postgresql-config during pretend.
+[[ "$EBUILD_PHASE" = "pretend" && -z "$(which postgresql-config 2> /dev/null)" ]] \
+ && return 0
+
+ local res=$(echo ${POSTGRES_COMPAT[@]} \
+ | grep -c $(postgresql-config show 2> /dev/null) 2> /dev/null)
+
+ if [[ "$res" -eq "0" ]] ; then
+ eerror "PostgreSQL slot must be set to one of: "
+ eerror " ${POSTGRES_COMPAT[@]}"
+ return 1
+ fi
+
+ return 0
+}
+
+pkg_pretend() {
+ postgres_check_slot
+}
+
+pkg_setup() {
+ postgres_check_slot || die
+}
+
+python_install_all() {
+ local DOCS=( docs/*.txt )
+ distutils-r1_python_install_all
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}/tutorial
+ doins tutorial/*
+ dohtml docs/*.{html,css}
+ fi
+}