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.3_beta2.ebuild
Date: Tue, 02 Jul 2013 12:58:21
Message-Id: 20130702125817.F276F2171C@flycatcher.gentoo.org
1 titanofold 13/07/02 12:58:17
2
3 Modified: ChangeLog
4 Added: postgresql-base-9.3_beta2.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key D1BBFDA0)
9
10 Revision Changes Path
11 1.247 dev-db/postgresql-base/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.247&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.247&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.246&r2=1.247
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v
20 retrieving revision 1.246
21 retrieving revision 1.247
22 diff -u -r1.246 -r1.247
23 --- ChangeLog 12 Jun 2013 01:20:28 -0000 1.246
24 +++ ChangeLog 2 Jul 2013 12:58:17 -0000 1.247
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-db/postgresql-base
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.246 2013/06/12 01:20:28 titanofold Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.247 2013/07/02 12:58:17 titanofold Exp $
30 +
31 +*postgresql-base-9.3_beta2 (02 Jul 2013)
32 +
33 + 02 Jul 2013; Aaron W. Swenson <titanofold@g.o>
34 + +postgresql-base-9.3_beta2.ebuild:
35 + Version bump.
36
37 *postgresql-base-9.3_beta1 (12 Jun 2013)
38
39
40
41
42 1.1 dev-db/postgresql-base/postgresql-base-9.3_beta2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.3_beta2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.3_beta2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: postgresql-base-9.3_beta2.ebuild
48 ===================================================================
49 # Copyright 1999-2013 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.3_beta2.ebuild,v 1.1 2013/07/02 12:58:17 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_PV}"
67 SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2
68 http://dev.gentoo.org/~titanofold/postgresql-patches-${SLOT}-r1.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-${SLOT}.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="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="
100 >=app-admin/eselect-postgresql-1.0.10
101 sys-apps/less
102 virtual/libintl
103 kerberos? ( virtual/krb5 )
104 ldap? ( net-nds/openldap )
105 pam? ( virtual/pam )
106 readline? ( sys-libs/readline )
107 ssl? ( >=dev-libs/openssl-0.9.6-r1 )
108 zlib? ( sys-libs/zlib )
109 "
110
111 DEPEND="${RDEPEND}
112 !!<sys-apps/sandbox-2.0
113 sys-devel/bison
114 sys-devel/flex
115 nls? ( sys-devel/gettext )
116 "
117
118 #PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )"
119
120 src_prepare() {
121 epatch "${WORKDIR}/autoconf.patch" \
122 "${WORKDIR}/base.patch" \
123 "${WORKDIR}/bool.patch" \
124 "${WORKDIR}/run-dir.patch"
125
126 eprefixify src/include/pg_config_manual.h
127
128 # to avoid collision - it only should be installed by server
129 rm "${S}/src/backend/nls.mk"
130
131 # because psql/help.c includes the file
132 ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die
133
134 if use pam ; then
135 sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
136 -i src/backend/libpq/auth.c \
137 || die 'PGSQL_PAM_SERVICE rename failed.'
138 fi
139
140 eautoconf
141 }
142
143 src_configure() {
144 case ${CHOST} in
145 *-darwin*|*-solaris*)
146 use nls && append-libs intl
147 ;;
148 esac
149
150 export LDFLAGS_SL="${LDFLAGS}"
151 export LDFLAGS_EX="${LDFLAGS}"
152
153 local PO="${EPREFIX%/}"
154
155 econf \
156 --prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
157 --datadir="${PO}/usr/share/postgresql-${SLOT}" \
158 --docdir="${PO}/usr/share/doc/postgresql-${SLOT}" \
159 --sysconfdir="${PO}/etc/postgresql-${SLOT}" \
160 --includedir="${PO}/usr/include/postgresql-${SLOT}" \
161 --mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
162 --without-tcl \
163 --without-perl \
164 --without-python \
165 $(use_with readline) \
166 $(use_with kerberos krb5) \
167 $(use_with kerberos gssapi) \
168 "$(use_enable nls nls "$(wanted_languages)")" \
169 $(use_with pam) \
170 $(use_enable !pg_legacytimestamp integer-datetimes) \
171 $(use_with ssl openssl) \
172 $(use_enable threads thread-safety) \
173 $(use_with zlib) \
174 $(use_with ldap)
175 }
176
177 src_compile() {
178 emake
179
180 cd "${S}/contrib"
181 emake
182 }
183
184 src_install() {
185 emake DESTDIR="${D}" install
186 insinto /usr/include/postgresql-${SLOT}/postmaster
187 doins "${S}"/src/include/postmaster/*.h
188
189 dodir /usr/share/postgresql-${SLOT}/man/
190 cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die
191 rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1
192 docompress /usr/share/postgresql-${SLOT}/man/man{1,7}
193
194 # Don't use ${PF} here as three packages
195 # (dev-db/postgresql-{docs,base,server}) have the same set of docs.
196 insinto /usr/share/doc/postgresql-${SLOT}
197 doins README HISTORY doc/{TODO,bug.template}
198
199 cd "${S}/contrib"
200 emake DESTDIR="${D}" install
201 cd "${S}"
202
203 dodir /etc/eselect/postgresql/slots/${SLOT}
204 echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
205 "${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
206
207 keepdir /etc/postgresql-${SLOT}
208 }
209
210 pkg_postinst() {
211 postgresql-config update
212
213 elog "If you need a global psqlrc-file, you can place it in:"
214 elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
215 }
216
217 pkg_postrm() {
218 postgresql-config update
219 }