Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pygresql/
Date: Fri, 05 Jan 2018 23:19:39
Message-Id: 1515194353.d2e638542280ef166383662eb35022b03cd94b08.mgorny@gentoo
1 commit: d2e638542280ef166383662eb35022b03cd94b08
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 5 22:11:29 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 5 23:19:13 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2e63854
7
8 dev-python/pygresql: Clean old up
9
10 dev-python/pygresql/Manifest | 1 -
11 dev-python/pygresql/pygresql-4.2.ebuild | 75 ---------------------------------
12 2 files changed, 76 deletions(-)
13
14 diff --git a/dev-python/pygresql/Manifest b/dev-python/pygresql/Manifest
15 index 44682f6f666..398f8c971d4 100644
16 --- a/dev-python/pygresql/Manifest
17 +++ b/dev-python/pygresql/Manifest
18 @@ -1,3 +1,2 @@
19 DIST PyGreSQL-4.1.1.tgz 100883 BLAKE2B 8b3876803b61fde62a248cf6499b9396a16069fd5cebad8f17ca942990a5502a702081b395745863d54b304d426455dd94d816caea9e09809a7ff0ca1b4903b0 SHA512 4b37c56f2112471aa5f3003a1d867382ce1b7510afa0963f0ceeb2f8175ca601bb5bade9ea2038d44a1041f12233e364f138a635bb7b353d0a82aeb7d9d49b7f
20 -DIST PyGreSQL-4.2.zip 1377728 BLAKE2B bca6846881645e9ef9b29e2960b9db99b1029754a88a570b95a83cf7afba992e85d801092664239e3cc3a07063627ef46551cc00851631898a75d12641255b44 SHA512 84044480c3f25548137240ac999334546b87987ac6c601608bcae057cf93567f0eb24e343f6ee214ea87e09ac6bd5ce80cfeb5f75deb7896e87b001a2099c78f
21 DIST PyGreSQL-5.0.4.tar.gz 637569 BLAKE2B 3f7bddb8b5e455ca4f181d254d4d125b89a64d7aaa1440b9ab5d916c395b9d93fc9814269992c134b6fd8a81f436752dbe4d7c06125e683a5257361d428c6a6f SHA512 f177ca3b023c007dafe80369b86a1742ff334137e493c3c19ac8bda0181d2543cd2431b8ab8d2d43f30d681121324bc4f236a9ebbddf1e927b071db7c9b34ea6
22
23 diff --git a/dev-python/pygresql/pygresql-4.2.ebuild b/dev-python/pygresql/pygresql-4.2.ebuild
24 deleted file mode 100644
25 index 2f8e16c6105..00000000000
26 --- a/dev-python/pygresql/pygresql-4.2.ebuild
27 +++ /dev/null
28 @@ -1,75 +0,0 @@
29 -# Copyright 1999-2015 Gentoo Foundation
30 -# Distributed under the terms of the GNU General Public License v2
31 -
32 -EAPI=5
33 -
34 -POSTGRES_COMPAT=( 9.{0,1,2,3,4,5} )
35 -PYTHON_COMPAT=( python2_7 )
36 -
37 -inherit distutils-r1
38 -
39 -MY_P="PyGreSQL-${PV}"
40 -
41 -DESCRIPTION="A Python interface for the PostgreSQL database"
42 -HOMEPAGE="http://www.pygresql.org/"
43 -SRC_URI="mirror://pypi/P/PyGreSQL/${MY_P}.zip"
44 -
45 -LICENSE="POSTGRESQL"
46 -SLOT="0"
47 -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86"
48 -IUSE="doc"
49 -
50 -DEPEND="|| (
51 - dev-db/postgresql:9.5
52 - dev-db/postgresql:9.4
53 - dev-db/postgresql:9.3
54 - dev-db/postgresql:9.2
55 - dev-db/postgresql:9.1
56 - dev-db/postgresql:9.0
57 -)"
58 -
59 -RDEPEND="${DEPEND}"
60 -
61 -S="${WORKDIR}/${MY_P}"
62 -
63 -# Verify that the currently selected PostgreSQL slot is set to one of
64 -# the slots defined in POSTGRES_COMPAT.
65 -postgres_check_slot() {
66 - if ! declare -p POSTGRES_COMPAT &>/dev/null; then
67 - die 'POSTGRES_COMPAT not declared.'
68 - fi
69 -
70 -# Don't die because we can't run postgresql-config during pretend.
71 -[[ "$EBUILD_PHASE" = "pretend" && -z "$(which postgresql-config 2> /dev/null)" ]] \
72 - && return 0
73 -
74 - local res=$(echo ${POSTGRES_COMPAT[@]} \
75 - | grep -c $(postgresql-config show 2> /dev/null) 2> /dev/null)
76 -
77 - if [[ "$res" -eq "0" ]] ; then
78 - eerror "PostgreSQL slot must be set to one of: "
79 - eerror " ${POSTGRES_COMPAT[@]}"
80 - return 1
81 - fi
82 -
83 - return 0
84 -}
85 -
86 -pkg_pretend() {
87 - postgres_check_slot
88 -}
89 -
90 -pkg_setup() {
91 - postgres_check_slot || die
92 -}
93 -
94 -python_install_all() {
95 - local DOCS=( docs/*.rst )
96 - distutils-r1_python_install_all
97 -
98 - if use doc; then
99 - insinto /usr/share/doc/${PF}/tutorial
100 - doins tutorial/*
101 - dohtml docs/*.{html,css}
102 - fi
103 -}