Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/postgresql-base: ChangeLog postgresql-base-8.4.1.ebuild postgresql-base-8.3.8.ebuild
Date: Wed, 09 Sep 2009 22:11:28
Message-Id: E1MlVNu-0000q4-As@stork.gentoo.org
1 patrick 09/09/09 22:11:26
2
3 Modified: ChangeLog
4 Added: postgresql-base-8.4.1.ebuild
5 postgresql-base-8.3.8.ebuild
6 Log:
7 Bump to 8.4.1 and 8.3.8
8 (Portage version: 2.2_rc40/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.21 dev-db/postgresql-base/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.21&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.21&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.20&r2=1.21
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v
20 retrieving revision 1.20
21 retrieving revision 1.21
22 diff -u -r1.20 -r1.21
23 --- ChangeLog 9 Sep 2009 21:40:31 -0000 1.20
24 +++ ChangeLog 9 Sep 2009 22:11:26 -0000 1.21
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-db/postgresql-base
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.20 2009/09/09 21:40:31 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.21 2009/09/09 22:11:26 patrick Exp $
30 +
31 +*postgresql-base-8.4.1 (09 Sep 2009)
32 +*postgresql-base-8.3.8 (09 Sep 2009)
33 +
34 + 09 Sep 2009; Patrick Lauer <patrick@g.o>
35 + +postgresql-base-8.3.8.ebuild, +postgresql-base-8.4.1.ebuild:
36 + Bump to 8.4.1 and 8.3.8
37
38 *postgresql-base-8.4.0 (09 Sep 2009)
39
40
41
42
43 1.1 dev-db/postgresql-base/postgresql-base-8.4.1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: postgresql-base-8.4.1.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.1.ebuild,v 1.1 2009/09/09 22:11:26 patrick Exp $
53
54 EAPI="1"
55
56 WANT_AUTOCONF="latest"
57 WANT_AUTOMAKE="none"
58
59 inherit eutils multilib toolchain-funcs versionator autotools
60
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
62
63 DESCRIPTION="PostgreSQL libraries and clients"
64 HOMEPAGE="http://www.postgresql.org/"
65 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
66 LICENSE="POSTGRESQL"
67 SLOT="$(get_version_component_range 1-2)"
68 IUSE_LINGUAS="
69 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
70 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
71 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
72 linguas_tr linguas_zh_CN linguas_zh_TW"
73 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
74 RESTRICT="test"
75
76 wanted_languages() {
77 for u in ${IUSE_LINGUAS} ; do
78 use $u && echo -n "${u#linguas_} "
79 done
80 }
81
82 RDEPEND="kerberos? ( virtual/krb5 )
83 pam? ( virtual/pam )
84 readline? ( >=sys-libs/readline-4.1 )
85 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
86 zlib? ( >=sys-libs/zlib-1.1.3 )
87 >=app-admin/eselect-postgresql-0.3
88 !dev-db/postgresql-libs
89 !dev-db/postgresql-client
90 !dev-db/libpq
91 !dev-db/postgresql
92 ldap? ( net-nds/openldap )"
93 DEPEND="${RDEPEND}
94 sys-devel/flex
95 >=sys-devel/bison-1.875
96 nls? ( sys-devel/gettext )"
97 PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"
98
99 S="${WORKDIR}/postgresql-${PV}"
100
101 src_unpack() {
102 unpack ${A}
103 cd "${S}"
104
105 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
106 "${FILESDIR}/postgresql-${SLOT}-base.patch"
107
108 # to avoid collision - it only should be installed by server
109 rm "${S}/src/backend/nls.mk"
110
111 # because psql/help.c includes the file
112 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
113
114 eautoconf
115 }
116
117 src_compile() {
118 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
119 --datadir=/usr/share/postgresql-${SLOT} \
120 --docdir=/usr/share/doc/postgresql-${SLOT} \
121 --sysconfdir=/etc/postgresql-${SLOT} \
122 --includedir=/usr/include/postgresql-${SLOT} \
123 --mandir=/usr/share/postgresql-${SLOT}/man \
124 --enable-depend \
125 --without-tcl \
126 --without-perl \
127 --without-python \
128 $(use_with readline) \
129 $(use_with kerberos krb5) \
130 $(use_with kerberos gssapi) \
131 "$(use_enable nls nls "$(wanted_languages)")" \
132 $(use_with pam) \
133 $(use_enable pg-intdatetime integer-datetimes ) \
134 $(use_with ssl openssl) \
135 $(use_enable threads thread-safety) \
136 $(use_enable threads thread-safety-force) \
137 $(use_with zlib) \
138 $(use_with ldap) \
139 ${myconf} \
140 || die "configure failed"
141
142 emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
143
144 cd "${S}/contrib"
145 emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
146 }
147
148 src_install() {
149 emake DESTDIR="${D}" install || die "emake install failed"
150 insinto /usr/include/postgresql-${SLOT}/postmaster
151 doins "${S}"/src/include/postmaster/*.h
152 dodir /usr/share/postgresql-${SLOT}/man/man1
153 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
154
155 rm -r "${D}/usr/share/doc/postgresql-${SLOT}/html"
156 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
157 dodoc README HISTORY doc/{README.*,TODO,bug.template}
158
159 cd "${S}/contrib"
160 emake DESTDIR="${D}" install || die "emake install failed"
161 cd "${S}"
162
163 dodir /etc/eselect/postgresql/slots/${SLOT}
164
165 IDIR="/usr/include/postgresql-${SLOT}"
166 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
167 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
168 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
169 postgres_datadir=/usr/share/postgresql-${SLOT}
170 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
171 postgres_symlinks=(
172 ${IDIR} /usr/include/postgresql
173 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
174 ${IDIR}/libpq /usr/include/libpq
175 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
176 )
177 __EOF__
178
179 cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
180 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
181 MANPATH=/usr/share/postgresql-${SLOT}/man
182 __EOF__
183 doenvd "${T}/50postgresql-94-${SLOT}"
184
185 keepdir /etc/postgresql-${SLOT}
186 }
187
188 pkg_postinst() {
189 eselect postgresql update
190 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
191 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
192 }
193
194 pkg_postrm() {
195 eselect postgresql update
196 }
197
198
199
200 1.1 dev-db/postgresql-base/postgresql-base-8.3.8.ebuild
201
202 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.8.ebuild?rev=1.1&view=markup
203 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.8.ebuild?rev=1.1&content-type=text/plain
204
205 Index: postgresql-base-8.3.8.ebuild
206 ===================================================================
207 # Copyright 1999-2009 Gentoo Foundation
208 # Distributed under the terms of the GNU General Public License v2
209 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.8.ebuild,v 1.1 2009/09/09 22:11:26 patrick Exp $
210
211 EAPI="1"
212
213 WANT_AUTOCONF="latest"
214 WANT_AUTOMAKE="none"
215
216 inherit eutils multilib toolchain-funcs versionator autotools
217
218 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
219
220 DESCRIPTION="PostgreSQL libraries and clients"
221 HOMEPAGE="http://www.postgresql.org/"
222 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
223 LICENSE="POSTGRESQL"
224 SLOT="$(get_version_component_range 1-2)"
225 IUSE_LINGUAS="
226 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
227 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
228 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
229 linguas_tr linguas_zh_CN linguas_zh_TW"
230 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
231 RESTRICT="test"
232
233 wanted_languages() {
234 for u in ${IUSE_LINGUAS} ; do
235 use $u && echo -n "${u#linguas_} "
236 done
237 }
238
239 RDEPEND="kerberos? ( virtual/krb5 )
240 pam? ( virtual/pam )
241 readline? ( >=sys-libs/readline-4.1 )
242 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
243 zlib? ( >=sys-libs/zlib-1.1.3 )
244 >=app-admin/eselect-postgresql-0.3
245 !dev-db/postgresql-libs
246 !dev-db/postgresql-client
247 !dev-db/libpq
248 !dev-db/postgresql
249 ldap? ( net-nds/openldap )"
250 DEPEND="${RDEPEND}
251 sys-devel/flex
252 >=sys-devel/bison-1.875
253 nls? ( sys-devel/gettext )"
254 PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )"
255
256 S="${WORKDIR}/postgresql-${PV}"
257
258 src_unpack() {
259 unpack ${A}
260 cd "${S}"
261
262 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
263 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
264 "${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"
265
266 # to avoid collision - it only should be installed by server
267 rm "${S}/src/backend/nls.mk"
268
269 # because psql/help.c includes the file
270 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
271
272 eautoconf
273 }
274
275 src_compile() {
276 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
277 --datadir=/usr/share/postgresql-${SLOT} \
278 --sysconfdir=/etc/postgresql-${SLOT} \
279 --includedir=/usr/include/postgresql-${SLOT} \
280 --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
281 --mandir=/usr/share/postgresql-${SLOT}/man \
282 --without-docdir \
283 --enable-depend \
284 --without-tcl \
285 --without-perl \
286 --without-python \
287 $(use_with readline) \
288 $(use_with kerberos krb5) \
289 $(use_with kerberos gssapi) \
290 "$(use_enable nls nls "$(wanted_languages)")" \
291 $(use_with pam) \
292 $(use_enable pg-intdatetime integer-datetimes ) \
293 $(use_with ssl openssl) \
294 $(use_enable threads thread-safety) \
295 $(use_enable threads thread-safety-force) \
296 $(use_with zlib) \
297 $(use_with ldap) \
298 ${myconf} \
299 || die "configure failed"
300
301 emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
302
303 cd "${S}/contrib"
304 emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed"
305 }
306
307 src_install() {
308 emake DESTDIR="${D}" install || die "emake install failed"
309 insinto /usr/include/postgresql-${SLOT}/postmaster
310 doins "${S}"/src/include/postmaster/*.h
311 dodir /usr/share/postgresql-${SLOT}/man/man1
312 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
313
314 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
315 dodoc README HISTORY doc/{README.*,TODO,bug.template}
316
317 cd "${S}/contrib"
318 emake DESTDIR="${D}" install || die "emake install failed"
319 cd "${S}"
320
321 dodir /etc/eselect/postgresql/slots/${SLOT}
322
323 IDIR="/usr/include/postgresql-${SLOT}"
324 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
325 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
326 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
327 postgres_datadir=/usr/share/postgresql-${SLOT}
328 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
329 postgres_symlinks=(
330 ${IDIR} /usr/include/postgresql
331 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
332 ${IDIR}/libpq /usr/include/libpq
333 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
334 )
335 __EOF__
336
337 cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
338 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
339 MANPATH=/usr/share/postgresql-${SLOT}/man
340 __EOF__
341 doenvd "${T}/50postgresql-94-${SLOT}"
342
343 keepdir /etc/postgresql-${SLOT}
344 }
345
346 pkg_postinst() {
347 eselect postgresql update
348 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
349 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
350 }
351
352 pkg_postrm() {
353 eselect postgresql update
354 }