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: Tue, 02 May 2017 08:47:50
Message-Id: 1493714797.9a110cb463b82a516a929fb8a99a16128f226bc6.mgorny@gentoo
1 commit: 9a110cb463b82a516a929fb8a99a16128f226bc6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 2 08:04:34 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 2 08:46:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a110cb4
7
8 dev-python/pygresql: Clean old versions up
9
10 dev-python/pygresql/pygresql-4.1.1-r1.ebuild | 73 ---------------------------
11 dev-python/pygresql/pygresql-4.1.1.ebuild | 74 ----------------------------
12 2 files changed, 147 deletions(-)
13
14 diff --git a/dev-python/pygresql/pygresql-4.1.1-r1.ebuild b/dev-python/pygresql/pygresql-4.1.1-r1.ebuild
15 deleted file mode 100644
16 index 1da441a5299..00000000000
17 --- a/dev-python/pygresql/pygresql-4.1.1-r1.ebuild
18 +++ /dev/null
19 @@ -1,73 +0,0 @@
20 -# Copyright 1999-2015 Gentoo Foundation
21 -# Distributed under the terms of the GNU General Public License v2
22 -
23 -EAPI=5
24 -
25 -POSTGRES_COMPAT=( 9.{0,1,2,3} )
26 -PYTHON_COMPAT=( python2_7 )
27 -
28 -inherit distutils-r1
29 -
30 -MY_P="PyGreSQL-${PV}"
31 -
32 -DESCRIPTION="A Python interface for the PostgreSQL database"
33 -HOMEPAGE="http://www.pygresql.org/"
34 -SRC_URI="mirror://pypi/P/PyGreSQL/${MY_P}.tgz"
35 -
36 -LICENSE="POSTGRESQL"
37 -SLOT="0"
38 -KEYWORDS="alpha amd64 hppa ia64 ~ppc sparc x86"
39 -IUSE="doc"
40 -
41 -DEPEND="|| (
42 - dev-db/postgresql:9.3
43 - dev-db/postgresql:9.2
44 - dev-db/postgresql:9.1
45 - dev-db/postgresql:9.0
46 -)"
47 -
48 -RDEPEND="${DEPEND}"
49 -
50 -S="${WORKDIR}/${MY_P}"
51 -
52 -# Verify that the currently selected PostgreSQL slot is set to one of
53 -# the slots defined in POSTGRES_COMPAT.
54 -postgres_check_slot() {
55 - if ! declare -p POSTGRES_COMPAT &>/dev/null; then
56 - die 'POSTGRES_COMPAT not declared.'
57 - fi
58 -
59 -# Don't die because we can't run postgresql-config during pretend.
60 -[[ "$EBUILD_PHASE" = "pretend" && -z "$(which postgresql-config 2> /dev/null)" ]] \
61 - && return 0
62 -
63 - local res=$(echo ${POSTGRES_COMPAT[@]} \
64 - | grep -c $(postgresql-config show 2> /dev/null) 2> /dev/null)
65 -
66 - if [[ "$res" -eq "0" ]] ; then
67 - eerror "PostgreSQL slot must be set to one of: "
68 - eerror " ${POSTGRES_COMPAT[@]}"
69 - return 1
70 - fi
71 -
72 - return 0
73 -}
74 -
75 -pkg_pretend() {
76 - postgres_check_slot
77 -}
78 -
79 -pkg_setup() {
80 - postgres_check_slot || die
81 -}
82 -
83 -python_install_all() {
84 - local DOCS=( docs/*.txt )
85 - distutils-r1_python_install_all
86 -
87 - if use doc; then
88 - insinto /usr/share/doc/${PF}/tutorial
89 - doins tutorial/*
90 - dohtml docs/*.{html,css}
91 - fi
92 -}
93
94 diff --git a/dev-python/pygresql/pygresql-4.1.1.ebuild b/dev-python/pygresql/pygresql-4.1.1.ebuild
95 deleted file mode 100644
96 index b85290c40f0..00000000000
97 --- a/dev-python/pygresql/pygresql-4.1.1.ebuild
98 +++ /dev/null
99 @@ -1,74 +0,0 @@
100 -# Copyright 1999-2015 Gentoo Foundation
101 -# Distributed under the terms of the GNU General Public License v2
102 -
103 -EAPI=5
104 -
105 -POSTGRES_COMPAT=( 8.{3,4} 9.{0,1,2} )
106 -PYTHON_COMPAT=( python2_7 )
107 -
108 -inherit distutils-r1
109 -
110 -MY_P="PyGreSQL-${PV}"
111 -
112 -DESCRIPTION="A Python interface for the PostgreSQL database"
113 -HOMEPAGE="http://www.pygresql.org/"
114 -SRC_URI="mirror://pypi/P/PyGreSQL/${MY_P}.tgz"
115 -
116 -LICENSE="POSTGRESQL"
117 -SLOT="0"
118 -KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86"
119 -IUSE="doc"
120 -
121 -DEPEND="|| (
122 - dev-db/postgresql:8.3
123 - dev-db/postgresql:8.4
124 - dev-db/postgresql:9.0
125 - dev-db/postgresql:9.1
126 - dev-db/postgresql:9.2
127 -)"
128 -
129 -RDEPEND="${DEPEND}"
130 -
131 -S="${WORKDIR}/${MY_P}"
132 -
133 -# Verify that the currently selected PostgreSQL slot is set to one of
134 -# the slots defined in POSTGRES_COMPAT.
135 -postgres_check_slot() {
136 - if ! declare -p POSTGRES_COMPAT &>/dev/null; then
137 - die 'POSTGRES_COMPAT not declared.'
138 - fi
139 -
140 -# Don't die because we can't run postgresql-config during pretend.
141 -[[ "$EBUILD_PHASE" = "pretend" && -z "$(which postgresql-config 2> /dev/null)" ]] \
142 - && return 0
143 -
144 - local res=$(echo ${POSTGRES_COMPAT[@]} \
145 - | grep -c $(postgresql-config show 2> /dev/null) 2> /dev/null)
146 -
147 - if [[ "$res" -eq "0" ]] ; then
148 - eerror "PostgreSQL slot must be set to one of: "
149 - eerror " ${POSTGRES_COMPAT[@]}"
150 - return 1
151 - fi
152 -
153 - return 0
154 -}
155 -
156 -pkg_pretend() {
157 - postgres_check_slot
158 -}
159 -
160 -pkg_setup() {
161 - postgres_check_slot || die
162 -}
163 -
164 -python_install_all() {
165 - local DOCS=( docs/*.txt )
166 - distutils-r1_python_install_all
167 -
168 - if use doc; then
169 - insinto /usr/share/doc/${PF}/tutorial
170 - doins tutorial/*
171 - dohtml docs/*.{html,css}
172 - fi
173 -}