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.2.19.ebuild postgresql-base-8.3.13.ebuild ChangeLog postgresql-base-9.0.2.ebuild postgresql-base-8.4.6.ebuild
Date: Tue, 04 Jan 2011 19:23:02
Message-Id: 20110104192251.B964120057@flycatcher.gentoo.org
1 patrick 11/01/04 19:22:51
2
3 Modified: ChangeLog
4 Added: postgresql-base-8.2.19.ebuild
5 postgresql-base-8.3.13.ebuild
6 postgresql-base-9.0.2.ebuild
7 postgresql-base-8.4.6.ebuild
8 Log:
9 Bump
10
11 (Portage version: 2.2.0_alpha12/cvs/Linux x86_64)
12
13 Revision Changes Path
14 1.87 dev-db/postgresql-base/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.87&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.87&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.86&r2=1.87
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v
23 retrieving revision 1.86
24 retrieving revision 1.87
25 diff -u -r1.86 -r1.87
26 --- ChangeLog 2 Jan 2011 15:34:14 -0000 1.86
27 +++ ChangeLog 4 Jan 2011 19:22:51 -0000 1.87
28 @@ -1,6 +1,16 @@
29 # ChangeLog for dev-db/postgresql-base
30 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.86 2011/01/02 15:34:14 klausman Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.87 2011/01/04 19:22:51 patrick Exp $
33 +
34 +*postgresql-base-9.0.2 (04 Jan 2011)
35 +*postgresql-base-8.4.6 (04 Jan 2011)
36 +*postgresql-base-8.3.13 (04 Jan 2011)
37 +*postgresql-base-8.2.19 (04 Jan 2011)
38 +
39 + 04 Jan 2011; Patrick Lauer <patrick@g.o>
40 + +postgresql-base-8.2.19.ebuild, +postgresql-base-8.3.13.ebuild,
41 + +postgresql-base-8.4.6.ebuild, +postgresql-base-9.0.2.ebuild:
42 + Bump
43
44 02 Jan 2011; Tobias Klausmann <klausman@g.o>
45 postgresql-base-8.4.5.ebuild:
46
47
48
49 1.1 dev-db/postgresql-base/postgresql-base-8.2.19.ebuild
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.19.ebuild?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.19.ebuild?rev=1.1&content-type=text/plain
53
54 Index: postgresql-base-8.2.19.ebuild
55 ===================================================================
56 # Copyright 1999-2011 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.19.ebuild,v 1.1 2011/01/04 19:22:51 patrick Exp $
59
60 EAPI="2"
61
62 WANT_AUTOMAKE="none"
63
64 inherit eutils multilib versionator autotools
65
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
67
68 DESCRIPTION="PostgreSQL libraries and clients"
69 HOMEPAGE="http://www.postgresql.org/"
70 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
71 LICENSE="POSTGRESQL"
72 SLOT="$(get_version_component_range 1-2)"
73 IUSE_LINGUAS="
74 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
75 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
76 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
77 linguas_tr linguas_zh_CN linguas_zh_TW"
78 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
79 RESTRICT="test"
80
81 wanted_languages() {
82 for u in ${IUSE_LINGUAS} ; do
83 use $u && echo -n "${u#linguas_} "
84 done
85 }
86
87 RDEPEND="kerberos? ( virtual/krb5 )
88 pam? ( virtual/pam )
89 readline? ( >=sys-libs/readline-4.1 )
90 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
91 zlib? ( >=sys-libs/zlib-1.1.3 )
92 >=app-admin/eselect-postgresql-0.3
93 virtual/libintl
94 !!dev-db/postgresql-libs
95 !!dev-db/postgresql-client
96 !!dev-db/libpq
97 !!dev-db/postgresql
98 ldap? ( net-nds/openldap )"
99 DEPEND="${RDEPEND}
100 sys-devel/flex
101 >=sys-devel/bison-1.875
102 nls? ( sys-devel/gettext )"
103 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
104
105 S="${WORKDIR}/postgresql-${PV}"
106
107 src_prepare() {
108
109 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
110 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
111 "${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"
112
113 # to avoid collision - it only should be installed by server
114 rm "${S}/src/backend/nls.mk"
115
116 # because psql/help.c includes the file
117 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
118
119 eautoconf
120 }
121
122 src_configure() {
123 export LDFLAGS_SL="${LDFLAGS}"
124 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
125 --datadir=/usr/share/postgresql-${SLOT} \
126 --sysconfdir=/etc/postgresql-${SLOT} \
127 --includedir=/usr/include/postgresql-${SLOT} \
128 --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
129 --mandir=/usr/share/postgresql-${SLOT}/man \
130 --without-docdir \
131 --enable-depend \
132 --without-tcl \
133 --without-perl \
134 --without-python \
135 $(use_with readline) \
136 $(use_with kerberos krb5) \
137 "$(use_enable nls nls "$(wanted_languages)")" \
138 $(use_with pam) \
139 $(use_enable pg-intdatetime integer-datetimes ) \
140 $(use_with ssl openssl) \
141 $(use_enable threads thread-safety) \
142 $(use_with zlib) \
143 $(use_with ldap) \
144 || die "configure failed"
145 }
146
147 src_compile() {
148 emake || die "emake failed"
149
150 cd "${S}/contrib"
151 emake || die "emake failed"
152 }
153
154 src_install() {
155 emake DESTDIR="${D}" install || die "emake install failed"
156 insinto /usr/include/postgresql-${SLOT}/postmaster
157 doins "${S}"/src/include/postmaster/*.h
158 dodir /usr/share/postgresql-${SLOT}/man/man1
159 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
160
161 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
162 dodoc README HISTORY doc/{README.*,TODO,bug.template}
163
164 cd "${S}/contrib"
165 emake DESTDIR="${D}" install || die "emake install failed"
166 cd "${S}"
167
168 dodir /etc/eselect/postgresql/slots/${SLOT}
169
170 IDIR="/usr/include/postgresql-${SLOT}"
171 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
172 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
173 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
174 postgres_datadir=/usr/share/postgresql-${SLOT}
175 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
176 postgres_symlinks=(
177 ${IDIR} /usr/include/postgresql
178 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
179 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
180 ${IDIR}/libpq /usr/include/libpq
181 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
182 )
183 __EOF__
184
185 cat >"${T}/50postgresql-95-${SLOT}" <<-__EOF__
186 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
187 MANPATH=/usr/share/postgresql-${SLOT}/man
188 __EOF__
189 doenvd "${T}/50postgresql-95-${SLOT}"
190
191 keepdir /etc/postgresql-${SLOT}
192 }
193
194 pkg_postinst() {
195 eselect postgresql update
196 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
197 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
198 }
199
200 pkg_postrm() {
201 eselect postgresql update
202 }
203
204
205
206 1.1 dev-db/postgresql-base/postgresql-base-8.3.13.ebuild
207
208 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.13.ebuild?rev=1.1&view=markup
209 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.13.ebuild?rev=1.1&content-type=text/plain
210
211 Index: postgresql-base-8.3.13.ebuild
212 ===================================================================
213 # Copyright 1999-2011 Gentoo Foundation
214 # Distributed under the terms of the GNU General Public License v2
215 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.13.ebuild,v 1.1 2011/01/04 19:22:51 patrick Exp $
216
217 EAPI="2"
218
219 WANT_AUTOMAKE="none"
220
221 inherit eutils multilib versionator autotools
222
223 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
224
225 DESCRIPTION="PostgreSQL libraries and clients"
226 HOMEPAGE="http://www.postgresql.org/"
227 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
228 LICENSE="POSTGRESQL"
229 SLOT="$(get_version_component_range 1-2)"
230 IUSE_LINGUAS="
231 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
232 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
233 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
234 linguas_tr linguas_zh_CN linguas_zh_TW"
235 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
236 RESTRICT="test"
237
238 wanted_languages() {
239 for u in ${IUSE_LINGUAS} ; do
240 use $u && echo -n "${u#linguas_} "
241 done
242 }
243
244 RDEPEND="kerberos? ( virtual/krb5 )
245 pam? ( virtual/pam )
246 readline? ( >=sys-libs/readline-4.1 )
247 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
248 zlib? ( >=sys-libs/zlib-1.1.3 )
249 >=app-admin/eselect-postgresql-0.3
250 virtual/libintl
251 !!dev-db/postgresql-libs
252 !!dev-db/postgresql-client
253 !!dev-db/libpq
254 !!dev-db/postgresql
255 ldap? ( net-nds/openldap )"
256 DEPEND="${RDEPEND}
257 sys-devel/flex
258 >=sys-devel/bison-1.875
259 nls? ( sys-devel/gettext )"
260 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
261
262 S="${WORKDIR}/postgresql-${PV}"
263
264 src_prepare() {
265
266 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
267 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
268 "${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"
269
270 # to avoid collision - it only should be installed by server
271 rm "${S}/src/backend/nls.mk"
272
273 # because psql/help.c includes the file
274 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
275
276 eautoconf
277 }
278
279 src_configure() {
280 export LDFLAGS_SL="${LDFLAGS}"
281 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
282 --datadir=/usr/share/postgresql-${SLOT} \
283 --sysconfdir=/etc/postgresql-${SLOT} \
284 --includedir=/usr/include/postgresql-${SLOT} \
285 --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
286 --mandir=/usr/share/postgresql-${SLOT}/man \
287 --without-docdir \
288 --enable-depend \
289 --without-tcl \
290 --without-perl \
291 --without-python \
292 $(use_with readline) \
293 $(use_with kerberos krb5) \
294 $(use_with kerberos gssapi) \
295 "$(use_enable nls nls "$(wanted_languages)")" \
296 $(use_with pam) \
297 $(use_enable pg-intdatetime integer-datetimes ) \
298 $(use_with ssl openssl) \
299 $(use_enable threads thread-safety) \
300 $(use_with zlib) \
301 $(use_with ldap) \
302 || die "configure failed"
303 }
304
305 src_compile() {
306 emake || die "emake failed"
307
308 cd "${S}/contrib"
309 emake || die "emake failed"
310 }
311
312 src_install() {
313 emake DESTDIR="${D}" install || die "emake install failed"
314 insinto /usr/include/postgresql-${SLOT}/postmaster
315 doins "${S}"/src/include/postmaster/*.h
316 dodir /usr/share/postgresql-${SLOT}/man/man1
317 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
318
319 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
320 dodoc README HISTORY doc/{README.*,TODO,bug.template}
321
322 cd "${S}/contrib"
323 emake DESTDIR="${D}" install || die "emake install failed"
324 cd "${S}"
325
326 dodir /etc/eselect/postgresql/slots/${SLOT}
327
328 IDIR="/usr/include/postgresql-${SLOT}"
329 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
330 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
331 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
332 postgres_datadir=/usr/share/postgresql-${SLOT}
333 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
334 postgres_symlinks=(
335 ${IDIR} /usr/include/postgresql
336 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
337 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
338 ${IDIR}/libpq /usr/include/libpq
339 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
340 )
341 __EOF__
342
343 cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
344 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
345 MANPATH=/usr/share/postgresql-${SLOT}/man
346 __EOF__
347 doenvd "${T}/50postgresql-94-${SLOT}"
348
349 keepdir /etc/postgresql-${SLOT}
350 }
351
352 pkg_postinst() {
353 eselect postgresql update
354 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
355 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
356 }
357
358 pkg_postrm() {
359 eselect postgresql update
360 }
361
362
363
364 1.1 dev-db/postgresql-base/postgresql-base-9.0.2.ebuild
365
366 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.2.ebuild?rev=1.1&view=markup
367 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.2.ebuild?rev=1.1&content-type=text/plain
368
369 Index: postgresql-base-9.0.2.ebuild
370 ===================================================================
371 # Copyright 1999-2011 Gentoo Foundation
372 # Distributed under the terms of the GNU General Public License v2
373 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0.2.ebuild,v 1.1 2011/01/04 19:22:51 patrick Exp $
374
375 EAPI="2"
376
377 WANT_AUTOMAKE="none"
378
379 inherit eutils multilib versionator autotools
380
381 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
382
383 DESCRIPTION="PostgreSQL libraries and clients"
384 HOMEPAGE="http://www.postgresql.org/"
385
386 MY_PV=${PV/_/}
387 SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2"
388 S=${WORKDIR}/postgresql-${MY_PV}
389
390 LICENSE="POSTGRESQL"
391 SLOT="$(get_version_component_range 1-2)"
392 LINGUAS="af cs de es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW"
393 IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib"
394
395 for lingua in ${LINGUAS}; do
396 IUSE+=" linguas_${lingua}"
397 done
398
399 RESTRICT="test"
400
401 wanted_languages() {
402 local enable_langs
403
404 for lingua in ${LINGUAS} ; do
405 use linguas_${lingua} && enable_langs+="${lingua} "
406 done
407
408 echo -n ${enable_langs}
409 }
410
411 RDEPEND="!!dev-db/postgresql-libs
412 !!dev-db/postgresql-client
413 !!dev-db/libpq
414 !!dev-db/postgresql
415 >=app-admin/eselect-postgresql-0.3
416 virtual/libintl
417 kerberos? ( virtual/krb5 )
418 ldap? ( net-nds/openldap )
419 pam? ( virtual/pam )
420 readline? ( sys-libs/readline )
421 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
422 zlib? ( sys-libs/zlib )"
423 DEPEND="${RDEPEND}
424 sys-devel/bison
425 sys-devel/flex
426 nls? ( sys-devel/gettext )"
427 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
428
429 src_prepare() {
430 epatch "${FILESDIR}/postgresql-9.0-common.3.patch" \
431 "${FILESDIR}/postgresql-${SLOT}-base.3.patch"
432
433 # to avoid collision - it only should be installed by server
434 rm "${S}/src/backend/nls.mk"
435
436 # because psql/help.c includes the file
437 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
438
439 eautoconf
440 }
441
442 src_configure() {
443 export LDFLAGS_SL="${LDFLAGS}"
444 econf \
445 --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
446 --datadir=/usr/share/postgresql-${SLOT} \
447 --docdir=/usr/share/doc/postgresql-${SLOT} \
448 --sysconfdir=/etc/postgresql-${SLOT} \
449 --includedir=/usr/include/postgresql-${SLOT} \
450 --mandir=/usr/share/postgresql-${SLOT}/man \
451 --enable-depend \
452 --without-tcl \
453 --without-perl \
454 --without-python \
455 $(use_with readline) \
456 $(use_with kerberos krb5) \
457 $(use_with kerberos gssapi) \
458 "$(use_enable nls nls "$(wanted_languages)")" \
459 $(use_with pam) \
460 $(use_enable !pg_legacytimestamp integer-datetimes) \
461 $(use_with ssl openssl) \
462 $(use_enable threads thread-safety) \
463 $(use_with zlib) \
464 $(use_with ldap)
465 }
466
467 src_compile() {
468 emake || die "emake failed"
469
470 cd "${S}/contrib"
471 emake || die "emake failed"
472 }
473
474 src_install() {
475 emake DESTDIR="${D}" install || die "emake install failed"
476 insinto /usr/include/postgresql-${SLOT}/postmaster
477 doins "${S}"/src/include/postmaster/*.h || die
478
479 dodir /usr/share/postgresql-${SLOT}/man/man1/ || die
480 cp "${S}"/doc/src/sgml/man1/* "${D}"/usr/share/postgresql-${SLOT}/man/man1/ || die
481
482 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
483 dodoc README HISTORY doc/{README.*,TODO,bug.template} || die
484
485 cd "${S}/contrib"
486 emake DESTDIR="${D}" install || die "emake install failed"
487 cd "${S}"
488
489 dodir /etc/eselect/postgresql/slots/${SLOT} || die
490
491 IDIR="/usr/include/postgresql-${SLOT}"
492 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
493 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
494 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
495 postgres_datadir=/usr/share/postgresql-${SLOT}
496 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
497 postgres_symlinks=(
498 ${IDIR} /usr/include/postgresql
499 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
500 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
501 ${IDIR}/libpq /usr/include/libpq
502 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
503 )
504 __EOF__
505
506 cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
507 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
508 MANPATH=/usr/share/postgresql-${SLOT}/man
509 __EOF__
510 doenvd "${T}/50postgresql-94-${SLOT}" || die
511
512 keepdir /etc/postgresql-${SLOT} || die
513 }
514
515 pkg_postinst() {
516 eselect postgresql update
517 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
518 elog "If you need a global psqlrc-file, you can place it in:"
519 elog " '${ROOT}/etc/postgresql-${SLOT}/'"
520 elog
521 }
522
523 pkg_postrm() {
524 eselect postgresql update
525 }
526
527
528
529 1.1 dev-db/postgresql-base/postgresql-base-8.4.6.ebuild
530
531 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.6.ebuild?rev=1.1&view=markup
532 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.6.ebuild?rev=1.1&content-type=text/plain
533
534 Index: postgresql-base-8.4.6.ebuild
535 ===================================================================
536 # Copyright 1999-2011 Gentoo Foundation
537 # Distributed under the terms of the GNU General Public License v2
538 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.6.ebuild,v 1.1 2011/01/04 19:22:51 patrick Exp $
539
540 EAPI="2"
541
542 WANT_AUTOMAKE="none"
543
544 inherit eutils multilib versionator autotools
545
546 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
547
548 DESCRIPTION="PostgreSQL libraries and clients"
549 HOMEPAGE="http://www.postgresql.org/"
550 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
551 LICENSE="POSTGRESQL"
552 SLOT="$(get_version_component_range 1-2)"
553 IUSE_LINGUAS="
554 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
555 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
556 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
557 linguas_tr linguas_zh_CN linguas_zh_TW"
558 IUSE="doc kerberos nls pam readline ssl threads zlib ldap pg_legacytimestamp ${IUSE_LINGUAS}"
559 RESTRICT="test"
560
561 wanted_languages() {
562 for u in ${IUSE_LINGUAS} ; do
563 use $u && echo -n "${u#linguas_} "
564 done
565 }
566
567 RDEPEND="kerberos? ( virtual/krb5 )
568 pam? ( virtual/pam )
569 readline? ( >=sys-libs/readline-4.1 )
570 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
571 zlib? ( >=sys-libs/zlib-1.1.3 )
572 >=app-admin/eselect-postgresql-0.3
573 virtual/libintl
574 !!dev-db/postgresql-libs
575 !!dev-db/postgresql-client
576 !!dev-db/libpq
577 !!dev-db/postgresql
578 ldap? ( net-nds/openldap )"
579 DEPEND="${RDEPEND}
580 sys-devel/flex
581 >=sys-devel/bison-1.875
582 nls? ( sys-devel/gettext )"
583 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
584
585 S="${WORKDIR}/postgresql-${PV}"
586
587 src_prepare() {
588
589 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
590 "${FILESDIR}/postgresql-${SLOT}-base.patch"
591
592 if use kerberos && has_version "<app-crypt/heimdal-1.3.2-r1" ; then
593 epatch "${FILESDIR}/postgresql-base-8.4-9.0-heimdal_strlcpy.patch"
594 fi
595
596 # to avoid collision - it only should be installed by server
597 rm "${S}/src/backend/nls.mk"
598
599 # because psql/help.c includes the file
600 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
601
602 eautoconf
603 }
604
605 src_configure() {
606 export LDFLAGS_SL="${LDFLAGS}"
607 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
608 --datadir=/usr/share/postgresql-${SLOT} \
609 --docdir=/usr/share/doc/postgresql-${SLOT} \
610 --sysconfdir=/etc/postgresql-${SLOT} \
611 --includedir=/usr/include/postgresql-${SLOT} \
612 --mandir=/usr/share/postgresql-${SLOT}/man \
613 --enable-depend \
614 --without-tcl \
615 --without-perl \
616 --without-python \
617 $(use_with readline) \
618 $(use_with kerberos krb5) \
619 $(use_with kerberos gssapi) \
620 "$(use_enable nls nls "$(wanted_languages)")" \
621 $(use_with pam) \
622 $(use_enable !pg_legacytimestamp integer-datetimes ) \
623 $(use_with ssl openssl) \
624 $(use_enable threads thread-safety) \
625 $(use_with zlib) \
626 $(use_with ldap) \
627 || die "configure failed"
628 }
629
630 src_compile() {
631 emake || die "emake failed"
632
633 cd "${S}/contrib"
634 emake || die "emake failed"
635 }
636
637 src_install() {
638 emake DESTDIR="${D}" install || die "emake install failed"
639 insinto /usr/include/postgresql-${SLOT}/postmaster
640 doins "${S}"/src/include/postmaster/*.h
641 dodir /usr/share/postgresql-${SLOT}/man/man1
642 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
643
644 rm -r "${D}/usr/share/doc/postgresql-${SLOT}/html"
645 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
646 dodoc README HISTORY doc/{README.*,TODO,bug.template}
647
648 cd "${S}/contrib"
649 emake DESTDIR="${D}" install || die "emake install failed"
650 cd "${S}"
651
652 dodir /etc/eselect/postgresql/slots/${SLOT}
653
654 IDIR="/usr/include/postgresql-${SLOT}"
655 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
656 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
657 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
658 postgres_datadir=/usr/share/postgresql-${SLOT}
659 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
660 postgres_symlinks=(
661 ${IDIR} /usr/include/postgresql
662 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
663 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
664 ${IDIR}/libpq /usr/include/libpq
665 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
666 )
667 __EOF__
668
669 cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
670 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
671 MANPATH=/usr/share/postgresql-${SLOT}/man
672 __EOF__
673 doenvd "${T}/50postgresql-94-${SLOT}"
674
675 keepdir /etc/postgresql-${SLOT}
676 }
677
678 pkg_postinst() {
679 eselect postgresql update
680 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
681 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
682 }
683
684 pkg_postrm() {
685 eselect postgresql update
686 }