Gentoo Archives: gentoo-commits

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