Gentoo Archives: gentoo-commits

From: "Aaron Swenson (titanofold)" <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/postgresql-base: ChangeLog postgresql-base-9.2.0_beta2.ebuild
Date: Wed, 06 Jun 2012 14:03:02
Message-Id: 20120606140233.A8ADB2004B@flycatcher.gentoo.org
1 titanofold 12/06/06 14:02:33
2
3 Modified: ChangeLog
4 Added: postgresql-base-9.2.0_beta2.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.10.49/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.183 dev-db/postgresql-base/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.183&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.183&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.182&r2=1.183
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v
20 retrieving revision 1.182
21 retrieving revision 1.183
22 diff -u -r1.182 -r1.183
23 --- ChangeLog 6 Jun 2012 04:14:15 -0000 1.182
24 +++ ChangeLog 6 Jun 2012 14:02:33 -0000 1.183
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-db/postgresql-base
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.182 2012/06/06 04:14:15 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.183 2012/06/06 14:02:33 titanofold Exp $
30 +
31 +*postgresql-base-9.2.0_beta2 (06 Jun 2012)
32 +
33 + 06 Jun 2012; Aaron W. Swenson <titanofold@g.o>
34 + +postgresql-base-9.2.0_beta2.ebuild:
35 + Version bump.
36
37 06 Jun 2012; Jeroen Roovers <jer@g.o> postgresql-base-8.3.19.ebuild,
38 postgresql-base-8.4.12.ebuild, postgresql-base-9.0.8.ebuild,
39
40
41
42 1.1 dev-db/postgresql-base/postgresql-base-9.2.0_beta2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.2.0_beta2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.2.0_beta2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: postgresql-base-9.2.0_beta2.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.2.0_beta2.ebuild,v 1.1 2012/06/06 14:02:33 titanofold Exp $
52
53 EAPI="4"
54
55 WANT_AUTOMAKE="none"
56
57 inherit autotools eutils flag-o-matic multilib prefix versionator
58
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris"
60
61 SLOT="$(get_version_component_range 1-2)"
62
63 # Comment the following five lines when not a beta or rc.
64 MY_PV="${PV//_}"
65 MY_FILE_PV="${SLOT}$(get_version_component_range 4)"
66 S="${WORKDIR}/postgresql-${MY_FILE_PV}"
67 SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_FILE_PV}.tar.bz2
68 http://dev.gentoo.org/~titanofold/postgresql-patches-${MY_FILE_PV}.tbz2"
69
70 # Comment the following three lines when a beta or rc.
71 #S="${WORKDIR}/postgresql-${PV}"
72 #SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2
73 # http://dev.gentoo.org/~titanofold/postgresql-patches-${PV}.tbz2"
74
75 LICENSE="POSTGRESQL"
76 DESCRIPTION="PostgreSQL libraries and clients"
77 HOMEPAGE="http://www.postgresql.org/"
78
79 # No tests to be done for clients and libraries
80 RESTRICT="test"
81
82 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"
83 IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib"
84
85 for lingua in ${LINGUAS} ; do
86 IUSE+=" linguas_${lingua}"
87 done
88
89 wanted_languages() {
90 local enable_langs
91
92 for lingua in ${LINGUAS} ; do
93 use linguas_${lingua} && enable_langs+="${lingua} "
94 done
95
96 echo -n ${enable_langs}
97 }
98
99 RDEPEND="!!dev-db/libpq
100 !!dev-db/postgresql
101 !!dev-db/postgresql-client
102 !!dev-db/postgresql-libs
103 sys-apps/less
104 >=app-admin/eselect-postgresql-1.0.10
105 virtual/libintl
106 kerberos? ( virtual/krb5 )
107 ldap? ( net-nds/openldap )
108 pam? ( virtual/pam )
109 readline? ( sys-libs/readline )
110 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
111 zlib? ( sys-libs/zlib )
112 "
113
114 DEPEND="${RDEPEND}
115 !!<sys-apps/sandbox-2.0
116 sys-devel/bison
117 sys-devel/flex
118 nls? ( sys-devel/gettext )
119 "
120
121 PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
122
123 # Support /var/run or /run for the socket directory
124 [[ ! -d /run ]] && RUNDIR=/var
125
126 src_prepare() {
127 epatch "${WORKDIR}/autoconf.patch" \
128 "${WORKDIR}/base.patch" \
129 "${WORKDIR}/bool.patch"
130
131 eprefixify src/include/pg_config_manual.h
132
133 # to avoid collision - it only should be installed by server
134 rm "${S}/src/backend/nls.mk"
135
136 # because psql/help.c includes the file
137 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
138
139 sed -e "s|@RUNDIR@|${RUNDIR}|g" \
140 -i src/include/pg_config_manual.h || \
141 die "RUNDIR sed failed"
142
143 eautoconf
144 }
145
146 src_configure() {
147 case ${CHOST} in
148 *-darwin*|*-solaris*)
149 use nls && append-libs intl
150 ;;
151 esac
152
153 export LDFLAGS_SL="${LDFLAGS}"
154 export LDFLAGS_EX="${LDFLAGS}"
155
156 local PO="${EPREFIX%/}"
157
158 econf \
159 --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
160 --datadir="${PO}/usr/share/postgresql-${SLOT}" \
161 --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \
162 --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
163 --includedir="${PO}/usr/include/postgresql-${SLOT}" \
164 --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
165 --without-tcl \
166 --without-perl \
167 --without-python \
168 $(use_with readline) \
169 $(use_with kerberos krb5) \
170 $(use_with kerberos gssapi) \
171 "$(use_enable nls nls "$(wanted_languages)")" \
172 $(use_with pam) \
173 $(use_enable !pg_legacytimestamp integer-datetimes) \
174 $(use_with ssl openssl) \
175 $(use_enable threads thread-safety) \
176 $(use_with zlib) \
177 $(use_with ldap)
178 }
179
180 src_compile() {
181 emake
182
183 cd "${S}/contrib"
184 emake
185 }
186
187 src_install() {
188 emake DESTDIR="${D}" install
189 insinto /usr/include/postgresql-${SLOT}/postmaster
190 doins "${S}"/src/include/postmaster/*.h
191
192 dodir /usr/share/postgresql-${SLOT}/man/
193 cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die
194 rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
195 docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
196 dodoc README HISTORY doc/{TODO,bug.template}
197
198 cd "${S}/contrib"
199 emake DESTDIR="${D}" install
200 cd "${S}"
201
202 dodir /etc/eselect/postgresql/slots/${SLOT}
203 echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
204 "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
205
206 keepdir /etc/postgresql-${SLOT}
207 }
208
209 pkg_postinst() {
210 postgresql-config update
211
212 elog "If you need a global psqlrc-file, you can place it in:"
213 elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
214 }
215
216 pkg_postrm() {
217 postgresql-config update
218 }