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.17-r1.ebuild postgresql-base-8.4.4-r1.ebuild postgresql-base-7.4.29-r1.ebuild postgresql-base-8.1.21-r1.ebuild ChangeLog postgresql-base-8.0.25-r1.ebuild postgresql-base-9.0_beta1-r1.ebuild postgresql-base-8.3.11-r1.ebuild
Date: Wed, 02 Jun 2010 17:21:37
Message-Id: 20100602172128.B05542CE14@corvid.gentoo.org
1 patrick 10/06/02 17:21:28
2
3 Modified: ChangeLog
4 Added: postgresql-base-8.2.17-r1.ebuild
5 postgresql-base-8.4.4-r1.ebuild
6 postgresql-base-7.4.29-r1.ebuild
7 postgresql-base-8.1.21-r1.ebuild
8 postgresql-base-8.0.25-r1.ebuild
9 postgresql-base-9.0_beta1-r1.ebuild
10 postgresql-base-8.3.11-r1.ebuild
11 Log:
12 Fixes for #313765, #251046, #294462, #300793, #274836, #296714, #238817, #278228, #263096, #246397, #285953. Thanks to Aaron Swenson for collecting the fixes and testing.
13 (Portage version: 2.2_rc67/cvs/Linux x86_64)
14
15 Revision Changes Path
16 1.53 dev-db/postgresql-base/ChangeLog
17
18 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.53&view=markup
19 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.53&content-type=text/plain
20 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.52&r2=1.53
21
22 Index: ChangeLog
23 ===================================================================
24 RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v
25 retrieving revision 1.52
26 retrieving revision 1.53
27 diff -u -r1.52 -r1.53
28 --- ChangeLog 17 May 2010 13:20:31 -0000 1.52
29 +++ ChangeLog 2 Jun 2010 17:21:28 -0000 1.53
30 @@ -1,6 +1,24 @@
31 # ChangeLog for dev-db/postgresql-base
32 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
33 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.52 2010/05/17 13:20:31 patrick Exp $
34 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.53 2010/06/02 17:21:28 patrick Exp $
35 +
36 +*postgresql-base-9.0_beta1-r1 (02 Jun 2010)
37 +*postgresql-base-8.4.4-r1 (02 Jun 2010)
38 +*postgresql-base-8.3.11-r1 (02 Jun 2010)
39 +*postgresql-base-8.2.17-r1 (02 Jun 2010)
40 +*postgresql-base-8.1.21-r1 (02 Jun 2010)
41 +*postgresql-base-8.0.25-r1 (02 Jun 2010)
42 +*postgresql-base-7.4.29-r1 (02 Jun 2010)
43 +
44 + 02 Jun 2010; Patrick Lauer <patrick@g.o>
45 + +postgresql-base-7.4.29-r1.ebuild, +postgresql-base-8.0.25-r1.ebuild,
46 + +postgresql-base-8.1.21-r1.ebuild, +postgresql-base-8.2.17-r1.ebuild,
47 + +postgresql-base-8.3.11-r1.ebuild,
48 + +files/postgresql-base-8.4-9.0-heimdal_strlcpy.patch,
49 + +postgresql-base-8.4.4-r1.ebuild, +postgresql-base-9.0_beta1-r1.ebuild:
50 + Fixes for #313765, #251046, #294462, #300793, #274836, #296714, #238817,
51 + #278228, #263096, #246397, #285953. Thanks to Aaron Swenson for collecting
52 + the fixes and testing.
53
54 *postgresql-base-8.4.4 (17 May 2010)
55 *postgresql-base-8.3.11 (17 May 2010)
56
57
58
59 1.1 dev-db/postgresql-base/postgresql-base-8.2.17-r1.ebuild
60
61 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.17-r1.ebuild?rev=1.1&view=markup
62 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.17-r1.ebuild?rev=1.1&content-type=text/plain
63
64 Index: postgresql-base-8.2.17-r1.ebuild
65 ===================================================================
66 # Copyright 1999-2010 Gentoo Foundation
67 # Distributed under the terms of the GNU General Public License v2
68 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.2.17-r1.ebuild,v 1.1 2010/06/02 17:21:28 patrick Exp $
69
70 EAPI="2"
71
72 WANT_AUTOMAKE="none"
73
74 inherit eutils multilib versionator autotools
75
76 KEYWORDS="~amd64 ~hppa ~ppc ~x86"
77
78 DESCRIPTION="PostgreSQL libraries and clients"
79 HOMEPAGE="http://www.postgresql.org/"
80 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
81 LICENSE="POSTGRESQL"
82 SLOT="$(get_version_component_range 1-2)"
83 IUSE_LINGUAS="
84 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
85 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
86 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
87 linguas_tr linguas_zh_CN linguas_zh_TW"
88 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
89 RESTRICT="test"
90
91 wanted_languages() {
92 for u in ${IUSE_LINGUAS} ; do
93 use $u && echo -n "${u#linguas_} "
94 done
95 }
96
97 RDEPEND="kerberos? ( virtual/krb5 )
98 pam? ( virtual/pam )
99 readline? ( >=sys-libs/readline-4.1 )
100 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
101 zlib? ( >=sys-libs/zlib-1.1.3 )
102 >=app-admin/eselect-postgresql-0.3
103 virtual/libintl
104 !!dev-db/postgresql-libs
105 !!dev-db/postgresql-client
106 !!dev-db/libpq
107 !!dev-db/postgresql
108 ldap? ( net-nds/openldap )"
109 DEPEND="${RDEPEND}
110 sys-devel/flex
111 >=sys-devel/bison-1.875
112 nls? ( sys-devel/gettext )"
113 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
114
115 S="${WORKDIR}/postgresql-${PV}"
116
117 src_prepare() {
118
119 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
120 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
121 "${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"
122
123 # to avoid collision - it only should be installed by server
124 rm "${S}/src/backend/nls.mk"
125
126 # because psql/help.c includes the file
127 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
128
129 eautoconf
130 }
131
132 src_configure() {
133 export LDFLAGS_SL="${LDFLAGS}"
134 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
135 --datadir=/usr/share/postgresql-${SLOT} \
136 --sysconfdir=/etc/postgresql-${SLOT} \
137 --includedir=/usr/include/postgresql-${SLOT} \
138 --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
139 --mandir=/usr/share/postgresql-${SLOT}/man \
140 --without-docdir \
141 --enable-depend \
142 --without-tcl \
143 --without-perl \
144 --without-python \
145 $(use_with readline) \
146 $(use_with kerberos krb5) \
147 "$(use_enable nls nls "$(wanted_languages)")" \
148 $(use_with pam) \
149 $(use_enable pg-intdatetime integer-datetimes ) \
150 $(use_with ssl openssl) \
151 $(use_enable threads thread-safety) \
152 $(use_with zlib) \
153 $(use_with ldap) \
154 || die "configure failed"
155 }
156
157 src_compile() {
158 emake || die "emake failed"
159
160 cd "${S}/contrib"
161 emake || die "emake failed"
162 }
163
164 src_install() {
165 emake DESTDIR="${D}" install || die "emake install failed"
166 insinto /usr/include/postgresql-${SLOT}/postmaster
167 doins "${S}"/src/include/postmaster/*.h
168 dodir /usr/share/postgresql-${SLOT}/man/man1
169 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
170
171 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
172 dodoc README HISTORY doc/{README.*,TODO,bug.template}
173
174 cd "${S}/contrib"
175 emake DESTDIR="${D}" install || die "emake install failed"
176 cd "${S}"
177
178 dodir /etc/eselect/postgresql/slots/${SLOT}
179
180 IDIR="/usr/include/postgresql-${SLOT}"
181 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
182 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
183 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
184 postgres_datadir=/usr/share/postgresql-${SLOT}
185 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
186 postgres_symlinks=(
187 ${IDIR} /usr/include/postgresql
188 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
189 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
190 ${IDIR}/libpq /usr/include/libpq
191 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
192 )
193 __EOF__
194
195 cat >"${T}/50postgresql-95-${SLOT}" <<-__EOF__
196 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
197 MANPATH=/usr/share/postgresql-${SLOT}/man
198 __EOF__
199 doenvd "${T}/50postgresql-95-${SLOT}"
200
201 keepdir /etc/postgresql-${SLOT}
202 }
203
204 pkg_postinst() {
205 eselect postgresql update
206 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
207 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
208 }
209
210 pkg_postrm() {
211 eselect postgresql update
212 }
213
214
215
216 1.1 dev-db/postgresql-base/postgresql-base-8.4.4-r1.ebuild
217
218 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.4-r1.ebuild?rev=1.1&view=markup
219 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.4-r1.ebuild?rev=1.1&content-type=text/plain
220
221 Index: postgresql-base-8.4.4-r1.ebuild
222 ===================================================================
223 # Copyright 1999-2010 Gentoo Foundation
224 # Distributed under the terms of the GNU General Public License v2
225 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.4.4-r1.ebuild,v 1.1 2010/06/02 17:21:28 patrick Exp $
226
227 EAPI="2"
228
229 WANT_AUTOMAKE="none"
230
231 inherit eutils multilib versionator autotools
232
233 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
234
235 DESCRIPTION="PostgreSQL libraries and clients"
236 HOMEPAGE="http://www.postgresql.org/"
237 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
238 LICENSE="POSTGRESQL"
239 SLOT="$(get_version_component_range 1-2)"
240 IUSE_LINGUAS="
241 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
242 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
243 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
244 linguas_tr linguas_zh_CN linguas_zh_TW"
245 IUSE="doc kerberos nls pam readline ssl threads zlib ldap pg_legacytimestamp ${IUSE_LINGUAS}"
246 RESTRICT="test"
247
248 wanted_languages() {
249 for u in ${IUSE_LINGUAS} ; do
250 use $u && echo -n "${u#linguas_} "
251 done
252 }
253
254 RDEPEND="kerberos? ( virtual/krb5 )
255 pam? ( virtual/pam )
256 readline? ( >=sys-libs/readline-4.1 )
257 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
258 zlib? ( >=sys-libs/zlib-1.1.3 )
259 >=app-admin/eselect-postgresql-0.3
260 virtual/libintl
261 !!dev-db/postgresql-libs
262 !!dev-db/postgresql-client
263 !!dev-db/libpq
264 !!dev-db/postgresql
265 ldap? ( net-nds/openldap )"
266 DEPEND="${RDEPEND}
267 sys-devel/flex
268 >=sys-devel/bison-1.875
269 nls? ( sys-devel/gettext )"
270 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
271
272 S="${WORKDIR}/postgresql-${PV}"
273
274 src_prepare() {
275
276 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
277 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
278 "${FILESDIR}/postgresql-base-8.4-9.0-heimdal_strlcpy.patch"
279
280 # to avoid collision - it only should be installed by server
281 rm "${S}/src/backend/nls.mk"
282
283 # because psql/help.c includes the file
284 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
285
286 eautoconf
287 }
288
289 src_configure() {
290 export LDFLAGS_SL="${LDFLAGS}"
291 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
292 --datadir=/usr/share/postgresql-${SLOT} \
293 --docdir=/usr/share/doc/postgresql-${SLOT} \
294 --sysconfdir=/etc/postgresql-${SLOT} \
295 --includedir=/usr/include/postgresql-${SLOT} \
296 --mandir=/usr/share/postgresql-${SLOT}/man \
297 --enable-depend \
298 --without-tcl \
299 --without-perl \
300 --without-python \
301 $(use_with readline) \
302 $(use_with kerberos krb5) \
303 $(use_with kerberos gssapi) \
304 "$(use_enable nls nls "$(wanted_languages)")" \
305 $(use_with pam) \
306 $(use_enable !pg_legacytimestamp integer-datetimes ) \
307 $(use_with ssl openssl) \
308 $(use_enable threads thread-safety) \
309 $(use_with zlib) \
310 $(use_with ldap) \
311 || die "configure failed"
312 }
313
314 src_compile() {
315 emake || die "emake failed"
316
317 cd "${S}/contrib"
318 emake || die "emake failed"
319 }
320
321 src_install() {
322 emake DESTDIR="${D}" install || die "emake install failed"
323 insinto /usr/include/postgresql-${SLOT}/postmaster
324 doins "${S}"/src/include/postmaster/*.h
325 dodir /usr/share/postgresql-${SLOT}/man/man1
326 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
327
328 rm -r "${D}/usr/share/doc/postgresql-${SLOT}/html"
329 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
330 dodoc README HISTORY doc/{README.*,TODO,bug.template}
331
332 cd "${S}/contrib"
333 emake DESTDIR="${D}" install || die "emake install failed"
334 cd "${S}"
335
336 dodir /etc/eselect/postgresql/slots/${SLOT}
337
338 IDIR="/usr/include/postgresql-${SLOT}"
339 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
340 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
341 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
342 postgres_datadir=/usr/share/postgresql-${SLOT}
343 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
344 postgres_symlinks=(
345 ${IDIR} /usr/include/postgresql
346 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
347 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
348 ${IDIR}/libpq /usr/include/libpq
349 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
350 )
351 __EOF__
352
353 cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
354 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
355 MANPATH=/usr/share/postgresql-${SLOT}/man
356 __EOF__
357 doenvd "${T}/50postgresql-94-${SLOT}"
358
359 keepdir /etc/postgresql-${SLOT}
360 }
361
362 pkg_postinst() {
363 eselect postgresql update
364 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
365 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
366 }
367
368 pkg_postrm() {
369 eselect postgresql update
370 }
371
372
373
374 1.1 dev-db/postgresql-base/postgresql-base-7.4.29-r1.ebuild
375
376 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.4.29-r1.ebuild?rev=1.1&view=markup
377 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.4.29-r1.ebuild?rev=1.1&content-type=text/plain
378
379 Index: postgresql-base-7.4.29-r1.ebuild
380 ===================================================================
381 # Copyright 1999-2010 Gentoo Foundation
382 # Distributed under the terms of the GNU General Public License v2
383 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.4.29-r1.ebuild,v 1.1 2010/06/02 17:21:28 patrick Exp $
384
385 EAPI="2"
386
387 WANT_AUTOMAKE="none"
388
389 inherit eutils multilib versionator autotools
390
391 KEYWORDS="~amd64 ~hppa ~ppc ~x86"
392
393 DESCRIPTION="PostgreSQL libraries and clients"
394 HOMEPAGE="http://www.postgresql.org/"
395 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
396 LICENSE="POSTGRESQL"
397 SLOT="$(get_version_component_range 1-2)"
398 IUSE_LINGUAS="
399 linguas_cs linguas_de linguas_es linguas_fr linguas_hr linguas_hu
400 linguas_it linguas_nb linguas_pt_BR linguas_ru linguas_sl linguas_sv
401 linguas_tr linguas_zh_CN linguas_zh_TW"
402 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}"
403 RESTRICT="test"
404
405 wanted_languages() {
406 for u in ${IUSE_LINGUAS} ; do
407 use $u && echo -n "${u#linguas_} "
408 done
409 }
410
411 RDEPEND="kerberos? ( virtual/krb5 )
412 pam? ( virtual/pam )
413 readline? ( >=sys-libs/readline-4.1 )
414 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
415 zlib? ( >=sys-libs/zlib-1.1.3 )
416 >=app-admin/eselect-postgresql-0.3
417 virtual/libintl
418 !!dev-db/postgresql-libs
419 !!dev-db/postgresql-client
420 !!dev-db/libpq
421 !!dev-db/postgresql"
422 DEPEND="${RDEPEND}
423 sys-devel/flex
424 >=sys-devel/bison-1.875
425 nls? ( sys-devel/gettext )"
426 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
427
428 S="${WORKDIR}/postgresql-${PV}"
429
430 src_prepare() {
431
432 epatch "${FILESDIR}/postgresql-${PV}-autoconf.patch" \
433 "${FILESDIR}/postgresql-${SLOT}-hppa.patch" \
434 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
435 "${FILESDIR}/postgresql-${SLOT}-com_err.patch"
436
437 # to avoid collision - it only should be installed by server
438 rm "${S}/src/backend/nls.mk"
439
440 # because psql/help.c includes the file
441 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
442
443 eautoreconf
444 }
445
446 src_configure() {
447 export LDFLAGS_SL="${LDFLAGS}"
448 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
449 --datadir=/usr/share/postgresql-${SLOT} \
450 --sysconfdir=/etc/postgresql-${SLOT} \
451 --includedir=/usr/include/postgresql-${SLOT} \
452 --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
453 --mandir=/usr/share/postgresql-${SLOT}/man \
454 --host=${CHOST} \
455 --docdir=/usr/share/doc/${PF} \
456 --without-tcl \
457 --without-perl \
458 --without-python \
459 $(use_with kerberos krb5) \
460 "$(use_enable nls nls "$(wanted_languages)")" \
461 $(use_with pam) \
462 $(use_enable pg-intdatetime integer-datetimes ) \
463 $(use_with readline) \
464 $(use_with ssl openssl) \
465 $(use_enable threads thread-safety ) \
466 $(use_with zlib) \
467 || die "configure failed"
468 }
469
470 src_compile() {
471 emake || die "emake failed"
472
473 cd "${S}/contrib"
474 emake || die "emake failed"
475 }
476
477 src_install() {
478 emake DESTDIR="${D}" install || die "emake install failed"
479 insinto /usr/include/postgresql-${SLOT}/postmaster
480 doins "${S}"/src/include/postmaster/*.h
481
482 # Install missing libpgport.a
483 insinto /usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
484 doins "${S}/src/port/libpgport.a"
485
486 dodir /usr/share/postgresql-${SLOT}/man/man1
487 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
488
489 rm -rf "${D}/usr/share/doc/${PF}/html"
490 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,initlocation,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
491 dodoc README HISTORY doc/{README.*,TODO,bug.template}
492
493 cd "${S}/contrib"
494 emake DESTDIR="${D}" install || die "emake install failed"
495 cd "${S}"
496
497 dodir /etc/eselect/postgresql/slots/${SLOT}
498
499 IDIR="/usr/include/postgresql-${SLOT}"
500 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
501 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
502 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
503 postgres_datadir=/usr/share/postgresql-${SLOT}
504 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
505 postgres_symlinks=(
506 ${IDIR} /usr/include/postgresql
507 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
508 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
509 ${IDIR}/libpq /usr/include/libpq
510 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
511 )
512 __EOF__
513
514 cat >"${T}/50postgresql-98-${SLOT}" <<-__EOF__
515 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
516 MANPATH=/usr/share/postgresql-${SLOT}/man
517 __EOF__
518 doenvd "${T}/50postgresql-98-${SLOT}"
519
520 keepdir /etc/postgresql-${SLOT}
521 }
522
523 pkg_postinst() {
524 eselect postgresql update
525 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
526 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
527 }
528
529 pkg_postrm() {
530 eselect postgresql update
531 }
532
533
534
535 1.1 dev-db/postgresql-base/postgresql-base-8.1.21-r1.ebuild
536
537 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.1.21-r1.ebuild?rev=1.1&view=markup
538 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.1.21-r1.ebuild?rev=1.1&content-type=text/plain
539
540 Index: postgresql-base-8.1.21-r1.ebuild
541 ===================================================================
542 # Copyright 1999-2010 Gentoo Foundation
543 # Distributed under the terms of the GNU General Public License v2
544 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.1.21-r1.ebuild,v 1.1 2010/06/02 17:21:28 patrick Exp $
545
546 EAPI="2"
547
548 WANT_AUTOMAKE="none"
549
550 inherit eutils multilib versionator autotools
551
552 KEYWORDS="~amd64 ~hppa ~ppc ~x86"
553
554 DESCRIPTION="PostgreSQL libraries and clients"
555 HOMEPAGE="http://www.postgresql.org/"
556 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
557 LICENSE="POSTGRESQL"
558 SLOT="$(get_version_component_range 1-2)"
559 IUSE_LINGUAS="
560 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
561 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
562 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
563 linguas_tr linguas_zh_CN linguas_zh_TW"
564 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}"
565 RESTRICT="test"
566
567 wanted_languages() {
568 for u in ${IUSE_LINGUAS} ; do
569 use $u && echo -n "${u#linguas_} "
570 done
571 }
572
573 RDEPEND="kerberos? ( virtual/krb5 )
574 pam? ( virtual/pam )
575 readline? ( >=sys-libs/readline-4.1 )
576 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
577 zlib? ( >=sys-libs/zlib-1.1.3 )
578 >=app-admin/eselect-postgresql-0.3
579 virtual/libintl
580 !!dev-db/postgresql-libs
581 !!dev-db/postgresql-client
582 !!dev-db/libpq
583 !!dev-db/postgresql"
584 DEPEND="${RDEPEND}
585 sys-devel/flex
586 >=sys-devel/bison-1.875
587 nls? ( sys-devel/gettext )"
588 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
589
590 S="${WORKDIR}/postgresql-${PV}"
591
592 src_prepare() {
593
594 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
595 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
596 "${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"
597
598 # to avoid collision - it only should be installed by server
599 rm "${S}/src/backend/nls.mk"
600
601 # because psql/help.c includes the file
602 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
603
604 eautoconf
605 }
606
607 src_configure() {
608 export LDFLAGS_SL="${LDFLAGS}"
609 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
610 --datadir=/usr/share/postgresql-${SLOT} \
611 --sysconfdir=/etc/postgresql-${SLOT} \
612 --includedir=/usr/include/postgresql-${SLOT} \
613 --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
614 --mandir=/usr/share/postgresql-${SLOT}/man \
615 --without-docdir \
616 --without-tcl \
617 --without-perl \
618 --without-python \
619 $(use_with kerberos krb5) \
620 "$(use_enable nls nls "$(wanted_languages)")" \
621 $(use_with pam) \
622 $(use_enable pg-intdatetime integer-datetimes ) \
623 $(use_with readline) \
624 $(use_with ssl openssl) \
625 $(use_enable threads thread-safety) \
626 $(use_with zlib) \
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 "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
645 dodoc README HISTORY doc/{README.*,TODO,bug.template}
646
647 cd "${S}/contrib"
648 emake DESTDIR="${D}" install || die "emake install failed"
649 cd "${S}"
650
651 dodir /etc/eselect/postgresql/slots/${SLOT}
652
653 IDIR="/usr/include/postgresql-${SLOT}"
654 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
655 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
656 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
657 postgres_datadir=/usr/share/postgresql-${SLOT}
658 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
659 postgres_symlinks=(
660 ${IDIR} /usr/include/postgresql
661 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
662 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
663 ${IDIR}/libpq /usr/include/libpq
664 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
665 )
666 __EOF__
667
668 cat >"${T}/50postgresql-96-${SLOT}" <<-__EOF__
669 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
670 MANPATH=/usr/share/postgresql-${SLOT}/man
671 __EOF__
672 doenvd "${T}/50postgresql-96-${SLOT}"
673
674 keepdir /etc/postgresql-${SLOT}
675 }
676
677 pkg_postinst() {
678 eselect postgresql update
679 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
680 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
681 }
682
683 pkg_postrm() {
684 eselect postgresql update
685 }
686
687
688
689 1.1 dev-db/postgresql-base/postgresql-base-8.0.25-r1.ebuild
690
691 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.0.25-r1.ebuild?rev=1.1&view=markup
692 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.0.25-r1.ebuild?rev=1.1&content-type=text/plain
693
694 Index: postgresql-base-8.0.25-r1.ebuild
695 ===================================================================
696 # Copyright 1999-2010 Gentoo Foundation
697 # Distributed under the terms of the GNU General Public License v2
698 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.0.25-r1.ebuild,v 1.1 2010/06/02 17:21:28 patrick Exp $
699
700 EAPI="2"
701
702 WANT_AUTOMAKE="none"
703
704 inherit eutils multilib versionator autotools
705
706 KEYWORDS="~amd64 ~hppa ~ppc ~x86"
707
708 DESCRIPTION="PostgreSQL libraries and clients"
709 HOMEPAGE="http://www.postgresql.org/"
710 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
711 LICENSE="POSTGRESQL"
712 SLOT="$(get_version_component_range 1-2)"
713 IUSE_LINGUAS="
714 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
715 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
716 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
717 linguas_tr linguas_zh_CN linguas_zh_TW"
718 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}"
719 RESTRICT="test"
720
721 wanted_languages() {
722 for u in ${IUSE_LINGUAS} ; do
723 use $u && echo -n "${u#linguas_} "
724 done
725 }
726
727 RDEPEND="kerberos? ( virtual/krb5 )
728 pam? ( virtual/pam )
729 readline? ( >=sys-libs/readline-4.1 )
730 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
731 zlib? ( >=sys-libs/zlib-1.1.3 )
732 >=app-admin/eselect-postgresql-0.3
733 virtual/libintl
734 !!dev-db/postgresql-libs
735 !!dev-db/postgresql-client
736 !!dev-db/libpq
737 !!dev-db/postgresql"
738 DEPEND="${RDEPEND}
739 sys-devel/flex
740 >=sys-devel/bison-1.875
741 nls? ( sys-devel/gettext )"
742 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
743
744 S="${WORKDIR}/postgresql-${PV}"
745
746 src_prepare() {
747
748 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
749 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
750 "${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"
751
752 # to avoid collision - it only should be installed by server
753 rm "${S}/src/backend/nls.mk"
754
755 # because psql/help.c includes the file
756 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
757
758 eautoconf
759 }
760
761 src_configure() {
762 export LDFLAGS_SL="${LDFLAGS}"
763 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
764 --datadir=/usr/share/postgresql-${SLOT} \
765 --sysconfdir=/etc/postgresql-${SLOT} \
766 --includedir=/usr/include/postgresql-${SLOT} \
767 --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
768 --mandir=/usr/share/postgresql-${SLOT}/man \
769 --without-docdir \
770 --without-tcl \
771 --without-perl \
772 --without-python \
773 $(use_with kerberos krb5) \
774 "$(use_enable nls nls "$(wanted_languages)")" \
775 $(use_with pam) \
776 $(use_enable pg-intdatetime integer-datetimes ) \
777 $(use_with readline) \
778 $(use_with ssl openssl) \
779 $(use_enable threads thread-safety) \
780 $(use_with zlib) \
781 || die "configure failed"
782 }
783
784 src_compile() {
785 emake || die "emake failed"
786
787 cd "${S}/contrib"
788 emake || die "emake failed"
789 }
790
791 src_install() {
792 emake DESTDIR="${D}" install || die "emake install failed"
793 insinto /usr/include/postgresql-${SLOT}/postmaster
794 doins "${S}"/src/include/postmaster/*.h
795 dodir /usr/share/postgresql-${SLOT}/man/man1
796 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
797
798 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
799 dodoc README HISTORY doc/{README.*,TODO,bug.template}
800
801 cd "${S}/contrib"
802 emake DESTDIR="${D}" install || die "emake install failed"
803 cd "${S}"
804
805 dodir /etc/eselect/postgresql/slots/${SLOT}
806
807 IDIR="/usr/include/postgresql-${SLOT}"
808 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
809 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
810 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
811 postgres_datadir=/usr/share/postgresql-${SLOT}
812 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
813 postgres_symlinks=(
814 ${IDIR} /usr/include/postgresql
815 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
816 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
817 ${IDIR}/libpq /usr/include/libpq
818 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
819 )
820 __EOF__
821
822 cat >"${T}/50postgresql-97-${SLOT}" <<-__EOF__
823 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
824 MANPATH=/usr/share/postgresql-${SLOT}/man
825 __EOF__
826 doenvd "${T}/50postgresql-97-${SLOT}"
827
828 keepdir /etc/postgresql-${SLOT}
829 }
830
831 pkg_postinst() {
832 eselect postgresql update
833 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
834 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
835 }
836
837 pkg_postrm() {
838 eselect postgresql update
839 }
840
841
842
843 1.1 dev-db/postgresql-base/postgresql-base-9.0_beta1-r1.ebuild
844
845 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0_beta1-r1.ebuild?rev=1.1&view=markup
846 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0_beta1-r1.ebuild?rev=1.1&content-type=text/plain
847
848 Index: postgresql-base-9.0_beta1-r1.ebuild
849 ===================================================================
850 # Copyright 1999-2010 Gentoo Foundation
851 # Distributed under the terms of the GNU General Public License v2
852 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0_beta1-r1.ebuild,v 1.1 2010/06/02 17:21:28 patrick Exp $
853
854 EAPI="2"
855
856 WANT_AUTOMAKE="none"
857
858 inherit eutils multilib versionator autotools
859
860 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
861
862 DESCRIPTION="PostgreSQL libraries and clients"
863 HOMEPAGE="http://www.postgresql.org/"
864
865 MY_PV=${PV/_/}
866 SRC_URI="mirror://postgresql/source/${MY_PV}/postgresql-${MY_PV}.tar.bz2"
867 S=${WORKDIR}/postgresql-${MY_PV}
868
869 LICENSE="POSTGRESQL"
870 SLOT="$(get_version_component_range 1-2)"
871 IUSE_LINGUAS="
872 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
873 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
874 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
875 linguas_tr linguas_zh_CN linguas_zh_TW"
876 IUSE="doc kerberos nls pam readline ssl threads zlib ldap pg_legacytimestamp ${IUSE_LINGUAS}"
877 RESTRICT="test"
878
879 wanted_languages() {
880 for u in ${IUSE_LINGUAS} ; do
881 use $u && echo -n "${u#linguas_} "
882 done
883 }
884
885 RDEPEND="kerberos? ( virtual/krb5 )
886 pam? ( virtual/pam )
887 readline? ( >=sys-libs/readline-4.1 )
888 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
889 zlib? ( >=sys-libs/zlib-1.1.3 )
890 >=app-admin/eselect-postgresql-0.3
891 virtual/libintl
892 !!dev-db/postgresql-libs
893 !!dev-db/postgresql-client
894 !!dev-db/libpq
895 !!dev-db/postgresql
896 ldap? ( net-nds/openldap )"
897 DEPEND="${RDEPEND}
898 sys-devel/flex
899 >=sys-devel/bison-1.875
900 nls? ( sys-devel/gettext )"
901 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
902
903 src_prepare() {
904 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
905 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
906 "${FILESDIR}/postgresql-base-8.4-9.0-heimdal_strlcpy.patch"
907
908 # to avoid collision - it only should be installed by server
909 rm "${S}/src/backend/nls.mk"
910
911 # because psql/help.c includes the file
912 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
913 cd "${S}"
914 eautoconf
915 }
916
917 src_configure() {
918 export LDFLAGS_SL="${LDFLAGS}"
919 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
920 --datadir=/usr/share/postgresql-${SLOT} \
921 --docdir=/usr/share/doc/postgresql-${SLOT} \
922 --sysconfdir=/etc/postgresql-${SLOT} \
923 --includedir=/usr/include/postgresql-${SLOT} \
924 --mandir=/usr/share/postgresql-${SLOT}/man \
925 --enable-depend \
926 --without-tcl \
927 --without-perl \
928 --without-python \
929 $(use_with readline) \
930 $(use_with kerberos krb5) \
931 $(use_with kerberos gssapi) \
932 "$(use_enable nls nls "$(wanted_languages)")" \
933 $(use_with pam) \
934 $(use_enable !pg_legacytimestamp integer-datetimes ) \
935 $(use_with ssl openssl) \
936 $(use_enable threads thread-safety) \
937 $(use_with zlib) \
938 $(use_with ldap) \
939 || die "configure failed"
940 }
941 src_compile() {
942
943 emake || die "emake failed"
944
945 cd "${S}/contrib"
946 emake || die "emake failed"
947 }
948
949 src_install() {
950 emake DESTDIR="${D}" install || die "emake install failed"
951 insinto /usr/include/postgresql-${SLOT}/postmaster
952 doins "${S}"/src/include/postmaster/*.h
953 dodir /usr/share/postgresql-${SLOT}/man/man1
954 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
955
956 rm -r "${D}/usr/share/doc/postgresql-${SLOT}/html"
957 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
958 dodoc README HISTORY doc/{README.*,TODO,bug.template}
959
960 cd "${S}/contrib"
961 emake DESTDIR="${D}" install || die "emake install failed"
962 cd "${S}"
963
964 dodir /etc/eselect/postgresql/slots/${SLOT}
965
966 IDIR="/usr/include/postgresql-${SLOT}"
967 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
968 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
969 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
970 postgres_datadir=/usr/share/postgresql-${SLOT}
971 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
972 postgres_symlinks=(
973 ${IDIR} /usr/include/postgresql
974 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
975 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
976 ${IDIR}/libpq /usr/include/libpq
977 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
978 )
979 __EOF__
980
981 cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
982 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
983 MANPATH=/usr/share/postgresql-${SLOT}/man
984 __EOF__
985 doenvd "${T}/50postgresql-94-${SLOT}"
986
987 keepdir /etc/postgresql-${SLOT}
988 }
989
990 pkg_postinst() {
991 eselect postgresql update
992 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
993 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
994 }
995
996 pkg_postrm() {
997 eselect postgresql update
998 }
999
1000
1001
1002 1.1 dev-db/postgresql-base/postgresql-base-8.3.11-r1.ebuild
1003
1004 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.11-r1.ebuild?rev=1.1&view=markup
1005 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.11-r1.ebuild?rev=1.1&content-type=text/plain
1006
1007 Index: postgresql-base-8.3.11-r1.ebuild
1008 ===================================================================
1009 # Copyright 1999-2010 Gentoo Foundation
1010 # Distributed under the terms of the GNU General Public License v2
1011 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.3.11-r1.ebuild,v 1.1 2010/06/02 17:21:28 patrick Exp $
1012
1013 EAPI="2"
1014
1015 WANT_AUTOMAKE="none"
1016
1017 inherit eutils multilib versionator autotools
1018
1019 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
1020
1021 DESCRIPTION="PostgreSQL libraries and clients"
1022 HOMEPAGE="http://www.postgresql.org/"
1023 SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2"
1024 LICENSE="POSTGRESQL"
1025 SLOT="$(get_version_component_range 1-2)"
1026 IUSE_LINGUAS="
1027 linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr
1028 linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl
1029 linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv
1030 linguas_tr linguas_zh_CN linguas_zh_TW"
1031 IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ldap ${IUSE_LINGUAS}"
1032 RESTRICT="test"
1033
1034 wanted_languages() {
1035 for u in ${IUSE_LINGUAS} ; do
1036 use $u && echo -n "${u#linguas_} "
1037 done
1038 }
1039
1040 RDEPEND="kerberos? ( virtual/krb5 )
1041 pam? ( virtual/pam )
1042 readline? ( >=sys-libs/readline-4.1 )
1043 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
1044 zlib? ( >=sys-libs/zlib-1.1.3 )
1045 >=app-admin/eselect-postgresql-0.3
1046 virtual/libintl
1047 !!dev-db/postgresql-libs
1048 !!dev-db/postgresql-client
1049 !!dev-db/libpq
1050 !!dev-db/postgresql
1051 ldap? ( net-nds/openldap )"
1052 DEPEND="${RDEPEND}
1053 sys-devel/flex
1054 >=sys-devel/bison-1.875
1055 nls? ( sys-devel/gettext )"
1056 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
1057
1058 S="${WORKDIR}/postgresql-${PV}"
1059
1060 src_prepare() {
1061
1062 epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \
1063 "${FILESDIR}/postgresql-${SLOT}-base.patch" \
1064 "${FILESDIR}/postgresql-8.x-relax_ssl_perms.patch"
1065
1066 # to avoid collision - it only should be installed by server
1067 rm "${S}/src/backend/nls.mk"
1068
1069 # because psql/help.c includes the file
1070 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/"
1071
1072 eautoconf
1073 }
1074
1075 src_configure() {
1076 export LDFLAGS_SL="${LDFLAGS}"
1077 econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \
1078 --datadir=/usr/share/postgresql-${SLOT} \
1079 --sysconfdir=/etc/postgresql-${SLOT} \
1080 --includedir=/usr/include/postgresql-${SLOT} \
1081 --with-locale-dir=/usr/share/postgresql-${SLOT}/locale \
1082 --mandir=/usr/share/postgresql-${SLOT}/man \
1083 --without-docdir \
1084 --enable-depend \
1085 --without-tcl \
1086 --without-perl \
1087 --without-python \
1088 $(use_with readline) \
1089 $(use_with kerberos krb5) \
1090 $(use_with kerberos gssapi) \
1091 "$(use_enable nls nls "$(wanted_languages)")" \
1092 $(use_with pam) \
1093 $(use_enable pg-intdatetime integer-datetimes ) \
1094 $(use_with ssl openssl) \
1095 $(use_enable threads thread-safety) \
1096 $(use_with zlib) \
1097 $(use_with ldap) \
1098 || die "configure failed"
1099 }
1100
1101 src_compile() {
1102 emake || die "emake failed"
1103
1104 cd "${S}/contrib"
1105 emake || die "emake failed"
1106 }
1107
1108 src_install() {
1109 emake DESTDIR="${D}" install || die "emake install failed"
1110 insinto /usr/include/postgresql-${SLOT}/postmaster
1111 doins "${S}"/src/include/postmaster/*.h
1112 dodir /usr/share/postgresql-${SLOT}/man/man1
1113 tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1
1114
1115 rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1
1116 dodoc README HISTORY doc/{README.*,TODO,bug.template}
1117
1118 cd "${S}/contrib"
1119 emake DESTDIR="${D}" install || die "emake install failed"
1120 cd "${S}"
1121
1122 dodir /etc/eselect/postgresql/slots/${SLOT}
1123
1124 IDIR="/usr/include/postgresql-${SLOT}"
1125 cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__
1126 postgres_ebuilds="\${postgres_ebuilds} ${PF}"
1127 postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT}
1128 postgres_datadir=/usr/share/postgresql-${SLOT}
1129 postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin
1130 postgres_symlinks=(
1131 ${IDIR} /usr/include/postgresql
1132 ${IDIR}/libpq-fe.h /usr/include/libpq-fe.h
1133 ${IDIR}/pg_config_manual.h /usr/include/pg_config_manual.h
1134 ${IDIR}/libpq /usr/include/libpq
1135 ${IDIR}/postgres_ext.h /usr/include/postgres_ext.h
1136 )
1137 __EOF__
1138
1139 cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__
1140 LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir)
1141 MANPATH=/usr/share/postgresql-${SLOT}/man
1142 __EOF__
1143 doenvd "${T}/50postgresql-94-${SLOT}"
1144
1145 keepdir /etc/postgresql-${SLOT}
1146 }
1147
1148 pkg_postinst() {
1149 eselect postgresql update
1150 [[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT}
1151 elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'."
1152 }
1153
1154 pkg_postrm() {
1155 eselect postgresql update
1156 }