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