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: postgresql-base-8.4.19.ebuild postgresql-base-9.1.11.ebuild postgresql-base-9.2.6.ebuild postgresql-base-9.0.15.ebuild postgresql-base-9.3.2.ebuild ChangeLog
Date: Fri, 06 Dec 2013 07:39:46
Message-Id: 20131206073941.0D2082004B@flycatcher.gentoo.org
1 patrick 13/12/06 07:39:40
2
3 Modified: ChangeLog
4 Added: postgresql-base-8.4.19.ebuild
5 postgresql-base-9.1.11.ebuild
6 postgresql-base-9.2.6.ebuild
7 postgresql-base-9.0.15.ebuild
8 postgresql-base-9.3.2.ebuild
9 Log:
10 Bump
11
12 (Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
13
14 Revision Changes Path
15 1.257 dev-db/postgresql-base/ChangeLog
16
17 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.257&view=markup
18 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.257&content-type=text/plain
19 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.256&r2=1.257
20
21 Index: ChangeLog
22 ===================================================================
23 RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v
24 retrieving revision 1.256
25 retrieving revision 1.257
26 diff -u -r1.256 -r1.257
27 --- ChangeLog 29 Nov 2013 17:14:17 -0000 1.256
28 +++ ChangeLog 6 Dec 2013 07:39:40 -0000 1.257
29 @@ -1,6 +1,18 @@
30 # ChangeLog for dev-db/postgresql-base
31 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
32 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.256 2013/11/29 17:14:17 maekke Exp $
33 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.257 2013/12/06 07:39:40 patrick Exp $
34 +
35 +*postgresql-base-8.4.19 (06 Dec 2013)
36 +*postgresql-base-9.1.11 (06 Dec 2013)
37 +*postgresql-base-9.2.6 (06 Dec 2013)
38 +*postgresql-base-9.0.15 (06 Dec 2013)
39 +*postgresql-base-9.3.2 (06 Dec 2013)
40 +
41 + 06 Dec 2013; Patrick Lauer <patrick@g.o>
42 + +postgresql-base-8.4.19.ebuild, +postgresql-base-9.0.15.ebuild,
43 + +postgresql-base-9.1.11.ebuild, +postgresql-base-9.2.6.ebuild,
44 + +postgresql-base-9.3.2.ebuild:
45 + Bump
46
47 29 Nov 2013; Markus Meier <maekke@g.o>
48 postgresql-base-8.4.17-r1.ebuild, postgresql-base-9.0.13-r1.ebuild,
49
50
51
52 1.1 dev-db/postgresql-base/postgresql-base-8.4.19.ebuild
53
54 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.19.ebuild?rev=1.1&view=markup
55 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.19.ebuild?rev=1.1&content-type=text/plain
56
57 Index: postgresql-base-8.4.19.ebuild
58 ===================================================================
59 # Copyright 1999-2013 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.19.ebuild,v 1.1 2013/12/06 07:39:40 patrick Exp $
62
63 EAPI="5"
64
65 PYTHON_COMPAT=( python2_{5,6,7} )
66 WANT_AUTOMAKE="none"
67
68 inherit autotools eutils multilib prefix python-single-r1 versionator
69
70 SLOT="$(get_version_component_range 1-2)"
71
72 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
73
74 DESCRIPTION="PostgreSQL libraries and clients"
75 HOMEPAGE="http://www.postgresql.org/"
76 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
77 http://dev.gentoo.org/~titanofold/postgresql-patches-8.4-r3.tbz2"
78 LICENSE="POSTGRESQL"
79
80 S="${WORKDIR}/postgresql-${PV}"
81
82 # No tests to be done for clients and libraries
83 RESTRICT="test"
84
85 LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW"
86 IUSE="doc kerberos ldap nls pam pg_legacytimestamp python readline ssl threads zlib"
87
88 for lingua in ${LINGUAS} ; do
89 IUSE+=" linguas_${lingua}"
90 done
91
92 wanted_languages() {
93 local enable_langs
94
95 for lingua in ${LINGUAS} ; do
96 use linguas_${lingua} && enable_langs+="${lingua} "
97 done
98
99 echo -n ${enable_langs}
100 }
101
102 RDEPEND="
103 >=app-admin/eselect-postgresql-1.2.0
104 sys-apps/less
105 virtual/libintl
106 kerberos? ( virtual/krb5 )
107 ldap? ( net-nds/openldap )
108 pam? ( virtual/pam )
109 python? ( ${PYTHON_DEPS} )
110 readline? ( >=sys-libs/readline-4.1 )
111 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
112 zlib? ( >=sys-libs/zlib-1.1.3 )
113 "
114
115 DEPEND="${RDEPEND}
116 !!<sys-apps/sandbox-2.0
117 >=sys-devel/bison-1.875
118 sys-devel/flex
119 nls? ( sys-devel/gettext )
120 "
121
122 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
123
124 pkg_setup() {
125 use python && python-single-r1_pkg_setup
126 }
127
128 src_prepare() {
129 epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \
130 "${WORKDIR}/bool.patch" "${WORKDIR}/darwin.patch" \
131 "${WORKDIR}/SuperH.patch"
132
133 eprefixify src/include/pg_config_manual.h
134
135 # to avoid collision - it only should be installed by server
136 rm "${S}/src/backend/nls.mk"
137
138 # because psql/help.c includes the file
139 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
140
141 if use pam ; then
142 sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
143 -i src/backend/libpq/auth.c \
144 || die 'PGSQL_PAM_SERVICE rename failed.'
145 fi
146
147 eautoconf
148 }
149
150 src_configure() {
151 export LDFLAGS_SL="${LDFLAGS}"
152 local PO="${EPREFIX%/}"
153 econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
154 --datadir="${PO}/usr/share/postgresql-${SLOT}" \
155 --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \
156 --includedir="${PO}/usr/include/postgresql-${SLOT}" \
157 --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
158 --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
159 --without-tcl \
160 --without-perl \
161 $(use_with kerberos krb5) \
162 $(use_with kerberos gssapi) \
163 $(use_with ldap) \
164 "$(use_enable nls nls "$(wanted_languages)")" \
165 $(use_with pam) \
166 $(use_enable !pg_legacytimestamp integer-datetimes ) \
167 $(use_with python) \
168 $(use_with readline) \
169 $(use_with ssl openssl) \
170 $(use_enable threads thread-safety) \
171 $(use_with zlib)
172 }
173
174 src_compile() {
175 emake
176
177 cd "${S}/contrib"
178 emake
179 }
180
181 src_install() {
182 emake DESTDIR="${D}" install
183 insinto /usr/include/postgresql-${SLOT}/postmaster
184 doins "${S}"/src/include/postmaster/*.h
185
186 rm -r "${ED}/usr/share/doc/postgresql-${SLOT}/html"
187 rm "${ED}"/usr/share/postgresql-${SLOT}/man/man1/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
188 docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
189
190 # Don't use ${PF} here as three packages
191 # (dev-db/postgresql-{docs,base,server}) have the same set of docs.
192 insinto /usr/share/doc/postgresql-${SLOT}
193 doins README HISTORY doc/{README.*,TODO,bug.template}
194
195 cd "${S}/contrib"
196 emake DESTDIR="${D}" install
197 cd "${S}"
198
199 dodir /etc/eselect/postgresql/slots/${SLOT}
200
201 echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \
202 > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
203
204 keepdir /etc/postgresql-${SLOT}
205 }
206
207 pkg_postinst() {
208 postgresql-config update
209
210 elog "If you need a global psqlrc-file, you can place it in:"
211 elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
212 einfo
213 einfo "If this is your first install of PostgreSQL, you 'll want to:"
214 einfo " source /etc/profile"
215 einfo "In your open terminal sessions."
216 }
217
218 pkg_postrm() {
219 postgresql-config update
220 }
221
222
223
224 1.1 dev-db/postgresql-base/postgresql-base-9.1.11.ebuild
225
226 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1.11.ebuild?rev=1.1&view=markup
227 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1.11.ebuild?rev=1.1&content-type=text/plain
228
229 Index: postgresql-base-9.1.11.ebuild
230 ===================================================================
231 # Copyright 1999-2013 Gentoo Foundation
232 # Distributed under the terms of the GNU General Public License v2
233 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1.11.ebuild,v 1.1 2013/12/06 07:39:40 patrick Exp $
234
235 EAPI="5"
236
237 PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} )
238 WANT_AUTOMAKE="none"
239
240 inherit autotools eutils flag-o-matic multilib prefix python-single-r1 versionator
241
242 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
243
244 SLOT="$(get_version_component_range 1-2)"
245 S="${WORKDIR}/postgresql-${PV}"
246
247 DESCRIPTION="PostgreSQL libraries and clients"
248 HOMEPAGE="http://www.postgresql.org/"
249 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
250 http://dev.gentoo.org/~titanofold/postgresql-patches-9.1-r2.tbz2"
251 LICENSE="POSTGRESQL"
252
253 # No tests to be done for clients and libraries
254 RESTRICT="test"
255
256 LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW"
257 IUSE="doc kerberos ldap nls pam pg_legacytimestamp python readline ssl threads zlib"
258
259 for lingua in ${LINGUAS} ; do
260 IUSE+=" linguas_${lingua}"
261 done
262
263 wanted_languages() {
264 local enable_langs
265
266 for lingua in ${LINGUAS} ; do
267 use linguas_${lingua} && enable_langs+="${lingua} "
268 done
269
270 echo -n ${enable_langs}
271 }
272
273 RDEPEND="
274 >=app-admin/eselect-postgresql-1.2.0
275 sys-apps/less
276 virtual/libintl
277 kerberos? ( virtual/krb5 )
278 ldap? ( net-nds/openldap )
279 pam? ( virtual/pam )
280 python? ( ${PYTHON_DEPS} )
281 readline? ( sys-libs/readline )
282 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
283 zlib? ( sys-libs/zlib )
284 "
285
286 DEPEND="${RDEPEND}
287 !!<sys-apps/sandbox-2.0
288 sys-devel/bison
289 sys-devel/flex
290 nls? ( sys-devel/gettext )
291 "
292
293 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
294
295 pkg_setup() {
296 use python && python-single-r1_pkg_setup
297 }
298
299 src_prepare() {
300 epatch "${WORKDIR}/autoconf.patch" \
301 "${WORKDIR}/base.patch" \
302 "${WORKDIR}/bool.patch"
303
304 eprefixify src/include/pg_config_manual.h
305
306 # to avoid collision - it only should be installed by server
307 rm "${S}/src/backend/nls.mk"
308
309 # because psql/help.c includes the file
310 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
311
312 if use pam ; then
313 sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
314 -i src/backend/libpq/auth.c \
315 || die 'PGSQL_PAM_SERVICE rename failed.'
316 fi
317
318 eautoconf
319 }
320
321 src_configure() {
322 case ${CHOST} in
323 *-darwin*|*-solaris*)
324 use nls && append-libs intl
325 ;;
326 esac
327
328 export LDFLAGS_SL="${LDFLAGS}"
329 export LDFLAGS_EX="${LDFLAGS}"
330
331 local PO="${EPREFIX%/}"
332
333 econf \
334 --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
335 --datadir="${PO}/usr/share/postgresql-${SLOT}" \
336 --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \
337 --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
338 --includedir="${PO}/usr/include/postgresql-${SLOT}" \
339 --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
340 --without-tcl \
341 --without-perl \
342 $(use_with readline) \
343 $(use_with kerberos krb5) \
344 $(use_with kerberos gssapi) \
345 "$(use_enable nls nls "$(wanted_languages)")" \
346 $(use_with pam) \
347 $(use_enable !pg_legacytimestamp integer-datetimes) \
348 $(use_with python) \
349 $(use_with ssl openssl) \
350 $(use_enable threads thread-safety) \
351 $(use_with zlib) \
352 $(use_with ldap)
353 }
354
355 src_compile() {
356 emake -j1
357
358 cd "${S}/contrib"
359 emake
360 }
361
362 src_install() {
363 emake DESTDIR="${D}" install
364 insinto /usr/include/postgresql-${SLOT}/postmaster
365 doins "${S}"/src/include/postmaster/*.h
366
367 dodir /usr/share/postgresql-${SLOT}/man/
368 cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die
369 rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
370 docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
371
372 # Don't use ${PF} here as three packages
373 # (dev-db/postgresql-{docs,base,server}) have the same set of docs.
374 insinto /usr/share/doc/postgresql-${SLOT}
375 doins README HISTORY doc/{TODO,bug.template}
376
377 cd "${S}/contrib"
378 emake DESTDIR="${D}" install
379 cd "${S}"
380
381 dodir /etc/eselect/postgresql/slots/${SLOT}
382 echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
383 "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
384
385 keepdir /etc/postgresql-${SLOT}
386 }
387
388 pkg_postinst() {
389 postgresql-config update
390
391 elog "If you need a global psqlrc-file, you can place it in:"
392 elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
393 einfo
394 einfo "If this is your first install of PostgreSQL, you 'll want to:"
395 einfo " source /etc/profile"
396 einfo "In your open terminal sessions."
397 }
398
399 pkg_postrm() {
400 postgresql-config update
401 }
402
403
404
405 1.1 dev-db/postgresql-base/postgresql-base-9.2.6.ebuild
406
407 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.2.6.ebuild?rev=1.1&view=markup
408 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.2.6.ebuild?rev=1.1&content-type=text/plain
409
410 Index: postgresql-base-9.2.6.ebuild
411 ===================================================================
412 # Copyright 1999-2013 Gentoo Foundation
413 # Distributed under the terms of the GNU General Public License v2
414 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.2.6.ebuild,v 1.1 2013/12/06 07:39:40 patrick Exp $
415
416 EAPI="5"
417
418 PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} )
419 WANT_AUTOMAKE="none"
420
421 inherit autotools eutils flag-o-matic multilib prefix python-single-r1 versionator
422
423 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
424
425 SLOT="$(get_version_component_range 1-2)"
426 S="${WORKDIR}/postgresql-${PV}"
427 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
428 http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}.tbz2"
429
430 LICENSE="POSTGRESQL"
431 DESCRIPTION="PostgreSQL libraries and clients"
432 HOMEPAGE="http://www.postgresql.org/"
433
434 # No tests to be done for clients and libraries
435 RESTRICT="test"
436
437 LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW"
438 IUSE="doc kerberos ldap nls pam pg_legacytimestamp python readline ssl threads zlib"
439
440 for lingua in ${LINGUAS} ; do
441 IUSE+=" linguas_${lingua}"
442 done
443
444 wanted_languages() {
445 local enable_langs
446
447 for lingua in ${LINGUAS} ; do
448 use linguas_${lingua} && enable_langs+="${lingua} "
449 done
450
451 echo -n ${enable_langs}
452 }
453
454 RDEPEND="
455 >=app-admin/eselect-postgresql-1.2.0
456 sys-apps/less
457 virtual/libintl
458 kerberos? ( virtual/krb5 )
459 ldap? ( net-nds/openldap )
460 pam? ( virtual/pam )
461 python? ( ${PYTHON_DEPS} )
462 readline? ( sys-libs/readline )
463 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
464 zlib? ( sys-libs/zlib )
465 "
466
467 DEPEND="${RDEPEND}
468 !!<sys-apps/sandbox-2.0
469 sys-devel/bison
470 sys-devel/flex
471 nls? ( sys-devel/gettext )
472 "
473
474 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
475
476 pkg_setup() {
477 use python && python-single-r1_pkg_setup
478 }
479
480 src_prepare() {
481 epatch "${WORKDIR}/autoconf.patch" \
482 "${WORKDIR}/base.patch" \
483 "${WORKDIR}/bool.patch"
484
485 eprefixify src/include/pg_config_manual.h
486
487 # to avoid collision - it only should be installed by server
488 rm "${S}/src/backend/nls.mk"
489
490 # because psql/help.c includes the file
491 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
492
493 if use pam ; then
494 sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
495 -i src/backend/libpq/auth.c \
496 || die 'PGSQL_PAM_SERVICE rename failed.'
497 fi
498
499 eautoconf
500 }
501
502 src_configure() {
503 case ${CHOST} in
504 *-darwin*|*-solaris*)
505 use nls && append-libs intl
506 ;;
507 esac
508
509 export LDFLAGS_SL="${LDFLAGS}"
510 export LDFLAGS_EX="${LDFLAGS}"
511
512 local PO="${EPREFIX%/}"
513
514 econf \
515 --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
516 --datadir="${PO}/usr/share/postgresql-${SLOT}" \
517 --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \
518 --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
519 --includedir="${PO}/usr/include/postgresql-${SLOT}" \
520 --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
521 --without-tcl \
522 --without-perl \
523 $(use_with readline) \
524 $(use_with kerberos krb5) \
525 $(use_with kerberos gssapi) \
526 "$(use_enable nls nls "$(wanted_languages)")" \
527 $(use_with pam) \
528 $(use_enable !pg_legacytimestamp integer-datetimes) \
529 $(use_with python) \
530 $(use_with ssl openssl) \
531 $(use_enable threads thread-safety) \
532 $(use_with zlib) \
533 $(use_with ldap)
534 }
535
536 src_compile() {
537 emake
538
539 cd "${S}/contrib"
540 emake
541 }
542
543 src_install() {
544 emake DESTDIR="${D}" install
545 insinto /usr/include/postgresql-${SLOT}/postmaster
546 doins "${S}"/src/include/postmaster/*.h
547
548 dodir /usr/share/postgresql-${SLOT}/man/
549 cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die
550 rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
551 docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
552
553 # Don't use ${PF} here as three packages
554 # (dev-db/postgresql-{docs,base,server}) have the same set of docs.
555 insinto /usr/share/doc/postgresql-${SLOT}
556 doins README HISTORY doc/{TODO,bug.template}
557
558 cd "${S}/contrib"
559 emake DESTDIR="${D}" install
560 cd "${S}"
561
562 dodir /etc/eselect/postgresql/slots/${SLOT}
563 echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
564 "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
565
566 keepdir /etc/postgresql-${SLOT}
567 }
568
569 pkg_postinst() {
570 postgresql-config update
571
572 elog "If you need a global psqlrc-file, you can place it in:"
573 elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
574 }
575
576 pkg_postrm() {
577 postgresql-config update
578 }
579
580
581
582 1.1 dev-db/postgresql-base/postgresql-base-9.0.15.ebuild
583
584 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.15.ebuild?rev=1.1&view=markup
585 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.15.ebuild?rev=1.1&content-type=text/plain
586
587 Index: postgresql-base-9.0.15.ebuild
588 ===================================================================
589 # Copyright 1999-2013 Gentoo Foundation
590 # Distributed under the terms of the GNU General Public License v2
591 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.15.ebuild,v 1.1 2013/12/06 07:39:40 patrick Exp $
592
593 EAPI="5"
594
595 PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} )
596 WANT_AUTOMAKE="none"
597
598 inherit autotools eutils flag-o-matic multilib prefix python-single-r1 versionator
599
600 SLOT="$(get_version_component_range 1-2)"
601
602 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
603
604 DESCRIPTION="PostgreSQL libraries and clients"
605 HOMEPAGE="http://www.postgresql.org/"
606 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
607 http://dev.gentoo.org/~titanofold/postgresql-patches-9.0-r4.tbz2"
608 LICENSE="POSTGRESQL"
609
610 S="${WORKDIR}/postgresql-${PV}"
611
612 # No tests to be done for clients and libraries
613 RESTRICT="test"
614
615 LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW"
616 IUSE="doc kerberos ldap nls pam pg_legacytimestamp python readline ssl threads zlib"
617
618 for lingua in ${LINGUAS} ; do
619 IUSE+=" linguas_${lingua}"
620 done
621
622 wanted_languages() {
623 local enable_langs
624
625 for lingua in ${LINGUAS} ; do
626 use linguas_${lingua} && enable_langs+="${lingua} "
627 done
628
629 echo -n ${enable_langs}
630 }
631
632 RDEPEND="
633 >=app-admin/eselect-postgresql-1.0.7
634 sys-apps/less
635 virtual/libintl
636 kerberos? ( virtual/krb5 )
637 ldap? ( net-nds/openldap )
638 pam? ( virtual/pam )
639 python? ( ${PYTHON_DEPS} )
640 readline? ( sys-libs/readline )
641 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
642 zlib? ( sys-libs/zlib )
643 "
644
645 DEPEND="${RDEPEND}
646 !!<sys-apps/sandbox-2.0
647 sys-devel/bison
648 sys-devel/flex
649 nls? ( sys-devel/gettext )
650 "
651
652 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
653
654 pkg_setup() {
655 use python && python-single-r1_pkg_setup
656 }
657
658 src_prepare() {
659 epatch "${WORKDIR}/autoconf.patch" "${WORKDIR}/base.patch" \
660 "${WORKDIR}/bool.patch"
661
662 eprefixify src/include/pg_config_manual.h
663
664 # to avoid collision - it only should be installed by server
665 rm "${S}/src/backend/nls.mk"
666
667 # because psql/help.c includes the file
668 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
669
670 if use pam ; then
671 sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
672 -i src/backend/libpq/auth.c \
673 || die 'PGSQL_PAM_SERVICE rename failed.'
674 fi
675
676 eautoconf
677 }
678
679 src_configure() {
680 case ${CHOST} in
681 *-darwin*|*-solaris*)
682 use nls && append-libs intl
683 ;;
684 esac
685 export LDFLAGS_SL="${LDFLAGS}"
686 export LDFLAGS_EX="${LDFLAGS}"
687 local PO="${EPREFIX%/}"
688 econf --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
689 --datadir="${PO}/usr/share/postgresql-${SLOT}" \
690 --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \
691 --includedir="${PO}/usr/include/postgresql-${SLOT}" \
692 --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
693 --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
694 --without-tcl \
695 --without-perl \
696 $(use_with kerberos krb5) \
697 $(use_with kerberos gssapi) \
698 $(use_with ldap) \
699 "$(use_enable nls nls "$(wanted_languages)")" \
700 $(use_with pam) \
701 $(use_enable !pg_legacytimestamp integer-datetimes) \
702 $(use_with python) \
703 $(use_with readline) \
704 $(use_with ssl openssl) \
705 $(use_enable threads thread-safety) \
706 $(use_with zlib)
707 }
708
709 src_compile() {
710 emake
711
712 cd "${S}/contrib"
713 emake
714 }
715
716 src_install() {
717 emake DESTDIR="${D}" install
718 insinto /usr/include/postgresql-${SLOT}/postmaster
719 doins "${S}"/src/include/postmaster/*.h
720
721 dodir /usr/share/postgresql-${SLOT}/man/
722 cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die
723 rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_controldata,pg_ctl,pg_resetxlog,postgres,postmaster}.1
724 docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
725
726 # Don't use ${PF} here as three packages
727 # (dev-db/postgresql-{docs,base,server}) have the same set of docs.
728 insinto /usr/share/doc/postgresql-${SLOT}
729 doins README HISTORY doc/{README.*,TODO,bug.template}
730
731 cd "${S}/contrib"
732 emake DESTDIR="${D}" install
733 cd "${S}"
734
735 dodir /etc/eselect/postgresql/slots/${SLOT}
736
737 echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" \
738 > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
739
740 keepdir /etc/postgresql-${SLOT}
741 }
742
743 pkg_postinst() {
744 postgresql-config update
745
746 elog "If you need a global psqlrc-file, you can place it in:"
747 elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
748 einfo
749 einfo "If this is your first install of PostgreSQL, you 'll want to:"
750 einfo " source /etc/profile"
751 einfo "In your open terminal sessions."
752 }
753
754 pkg_postrm() {
755 postgresql-config update
756 }
757
758
759
760 1.1 dev-db/postgresql-base/postgresql-base-9.3.2.ebuild
761
762 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.3.2.ebuild?rev=1.1&view=markup
763 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.3.2.ebuild?rev=1.1&content-type=text/plain
764
765 Index: postgresql-base-9.3.2.ebuild
766 ===================================================================
767 # Copyright 1999-2013 Gentoo Foundation
768 # Distributed under the terms of the GNU General Public License v2
769 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.3.2.ebuild,v 1.1 2013/12/06 07:39:40 patrick Exp $
770
771 EAPI="5"
772
773 PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} )
774 WANT_AUTOMAKE="none"
775
776 inherit autotools eutils flag-o-matic multilib prefix python-single-r1 versionator
777
778 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
779
780 SLOT="$(get_version_component_range 1-2)"
781 S="${WORKDIR}/postgresql-${PV}"
782 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
783 http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}-r1.tbz2"
784
785 LICENSE="POSTGRESQL"
786 DESCRIPTION="PostgreSQL libraries and clients"
787 HOMEPAGE="http://www.postgresql.org/"
788
789 # No tests to be done for clients and libraries
790 RESTRICT="test"
791
792 LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW"
793 IUSE="doc kerberos ldap nls pam pg_legacytimestamp python readline ssl threads zlib"
794
795 for lingua in ${LINGUAS} ; do
796 IUSE+=" linguas_${lingua}"
797 done
798
799 wanted_languages() {
800 local enable_langs
801
802 for lingua in ${LINGUAS} ; do
803 use linguas_${lingua} && enable_langs+="${lingua} "
804 done
805
806 echo -n ${enable_langs}
807 }
808
809 RDEPEND="
810 >=app-admin/eselect-postgresql-1.2.0
811 sys-apps/less
812 virtual/libintl
813 kerberos? ( virtual/krb5 )
814 ldap? ( net-nds/openldap )
815 pam? ( virtual/pam )
816 python? ( ${PYTHON_DEPS} )
817 readline? ( sys-libs/readline )
818 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
819 zlib? ( sys-libs/zlib )
820 "
821
822 DEPEND="${RDEPEND}
823 !!<sys-apps/sandbox-2.0
824 sys-devel/bison
825 sys-devel/flex
826 nls? ( sys-devel/gettext )
827 "
828
829 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
830
831 pkg_setup() {
832 use python && python-single-r1_pkg_setup
833 }
834
835 src_prepare() {
836 epatch "${WORKDIR}/autoconf.patch" \
837 "${WORKDIR}/base.patch" \
838 "${WORKDIR}/bool.patch" \
839 "${WORKDIR}/run-dir.patch"
840
841 eprefixify src/include/pg_config_manual.h
842
843 # to avoid collision - it only should be installed by server
844 rm "${S}/src/backend/nls.mk"
845
846 # because psql/help.c includes the file
847 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
848
849 if use pam ; then
850 sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
851 -i src/backend/libpq/auth.c \
852 || die 'PGSQL_PAM_SERVICE rename failed.'
853 fi
854
855 eautoconf
856 }
857
858 src_configure() {
859 case ${CHOST} in
860 *-darwin*|*-solaris*)
861 use nls && append-libs intl
862 ;;
863 esac
864
865 export LDFLAGS_SL="${LDFLAGS}"
866 export LDFLAGS_EX="${LDFLAGS}"
867
868 local PO="${EPREFIX%/}"
869
870 econf \
871 --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
872 --datadir="${PO}/usr/share/postgresql-${SLOT}" \
873 --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \
874 --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
875 --includedir="${PO}/usr/include/postgresql-${SLOT}" \
876 --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
877 --without-tcl \
878 --without-perl \
879 $(use_with readline) \
880 $(use_with kerberos krb5) \
881 $(use_with kerberos gssapi) \
882 "$(use_enable nls nls "$(wanted_languages)")" \
883 $(use_with pam) \
884 $(use_enable !pg_legacytimestamp integer-datetimes) \
885 $(use_with python) \
886 $(use_with ssl openssl) \
887 $(use_enable threads thread-safety) \
888 $(use_with zlib) \
889 $(use_with ldap)
890 }
891
892 src_compile() {
893 emake
894
895 cd "${S}/contrib"
896 emake
897 }
898
899 src_install() {
900 emake DESTDIR="${D}" install
901 insinto /usr/include/postgresql-${SLOT}/postmaster
902 doins "${S}"/src/include/postmaster/*.h
903
904 dodir /usr/share/postgresql-${SLOT}/man/
905 cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die
906 rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
907 docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
908
909 # Don't use ${PF} here as three packages
910 # (dev-db/postgresql-{docs,base,server}) have the same set of docs.
911 insinto /usr/share/doc/postgresql-${SLOT}
912 doins README HISTORY doc/{TODO,bug.template}
913
914 cd "${S}/contrib"
915 emake DESTDIR="${D}" install
916 cd "${S}"
917
918 dodir /etc/eselect/postgresql/slots/${SLOT}
919 echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
920 "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
921
922 keepdir /etc/postgresql-${SLOT}
923 }
924
925 pkg_postinst() {
926 postgresql-config update
927
928 elog "If you need a global psqlrc-file, you can place it in:"
929 elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
930 }
931
932 pkg_postrm() {
933 postgresql-config update
934 }