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