1 |
titanofold 11/03/31 02:29:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postgresql-base-9.1_alpha5.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.1.9.42/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.113 dev-db/postgresql-base/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.113&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.113&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.112&r2=1.113 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v |
20 |
retrieving revision 1.112 |
21 |
retrieving revision 1.113 |
22 |
diff -u -r1.112 -r1.113 |
23 |
--- ChangeLog 24 Mar 2011 11:19:25 -0000 1.112 |
24 |
+++ ChangeLog 31 Mar 2011 02:29:25 -0000 1.113 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-db/postgresql-base |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.112 2011/03/24 11:19:25 titanofold Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.113 2011/03/31 02:29:25 titanofold Exp $ |
30 |
+ |
31 |
+*postgresql-base-9.1_alpha5 (31 Mar 2011) |
32 |
+ |
33 |
+ 31 Mar 2011; Aaron W. Swenson <titanofold@g.o> |
34 |
+ +postgresql-base-9.1_alpha5.ebuild: |
35 |
+ Version bump. |
36 |
|
37 |
*postgresql-base-8.4.7-r2 (24 Mar 2011) |
38 |
*postgresql-base-8.3.14-r2 (24 Mar 2011) |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-db/postgresql-base/postgresql-base-9.1_alpha5.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1_alpha5.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1_alpha5.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: postgresql-base-9.1_alpha5.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 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.1_alpha5.ebuild,v 1.1 2011/03/31 02:29:25 titanofold Exp $ |
52 |
|
53 |
EAPI="4" |
54 |
|
55 |
WANT_AUTOMAKE="none" |
56 |
|
57 |
inherit autotools eutils multilib prefix versionator |
58 |
|
59 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
60 |
|
61 |
# Upstream doesn't have an underscore in the file name |
62 |
MY_PV=${PV/_/} |
63 |
|
64 |
DESCRIPTION="PostgreSQL libraries and clients" |
65 |
HOMEPAGE="http://www.postgresql.org/" |
66 |
SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2 |
67 |
http://dev.gentoo.org/~titanofold/postgresql-patches-${MY_PV}.tbz2" |
68 |
LICENSE="POSTGRESQL" |
69 |
|
70 |
S=${WORKDIR}/postgresql-${MY_PV} |
71 |
SLOT="$(get_version_component_range 1-2)" |
72 |
|
73 |
# No tests to be done for clients and libraries |
74 |
RESTRICT="test" |
75 |
|
76 |
LINGUAS="af cs de es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr zh_CN zh_TW" |
77 |
IUSE="doc kerberos ldap nls pam pg_legacytimestamp readline ssl threads zlib" |
78 |
|
79 |
for lingua in ${LINGUAS} ; do |
80 |
IUSE+=" linguas_${lingua}" |
81 |
done |
82 |
|
83 |
wanted_languages() { |
84 |
local enable_langs |
85 |
|
86 |
for lingua in ${LINGUAS} ; do |
87 |
use linguas_${lingua} && enable_langs+="${lingua} " |
88 |
done |
89 |
|
90 |
echo -n ${enable_langs} |
91 |
} |
92 |
|
93 |
RDEPEND="!!dev-db/postgresql-libs |
94 |
!!dev-db/postgresql-client |
95 |
!!dev-db/libpq |
96 |
!!dev-db/postgresql |
97 |
>=app-admin/eselect-postgresql-0.3 |
98 |
virtual/libintl |
99 |
kerberos? ( virtual/krb5 ) |
100 |
ldap? ( net-nds/openldap ) |
101 |
pam? ( virtual/pam ) |
102 |
readline? ( sys-libs/readline ) |
103 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
104 |
zlib? ( sys-libs/zlib )" |
105 |
DEPEND="${RDEPEND} |
106 |
sys-devel/bison |
107 |
sys-devel/flex |
108 |
nls? ( sys-devel/gettext )" |
109 |
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" |
110 |
|
111 |
src_prepare() { |
112 |
epatch "${WORKDIR}/autoconf.patch" \ |
113 |
"${WORKDIR}/base.patch" |
114 |
|
115 |
eprefixify src/include/pg_config_manual.h |
116 |
|
117 |
# to avoid collision - it only should be installed by server |
118 |
rm "${S}/src/backend/nls.mk" |
119 |
|
120 |
# because psql/help.c includes the file |
121 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die |
122 |
|
123 |
eautoconf |
124 |
} |
125 |
|
126 |
src_configure() { |
127 |
export LDFLAGS_SL="${LDFLAGS}" |
128 |
econf \ |
129 |
--prefix=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT} \ |
130 |
--datadir=${EROOT%/}/usr/share/postgresql-${SLOT} \ |
131 |
--docdir=${EROOT%/}/usr/share/doc/postgresql-${SLOT} \ |
132 |
--sysconfdir=${EROOT%/}/etc/postgresql-${SLOT} \ |
133 |
--includedir=${EROOT%/}/usr/include/postgresql-${SLOT} \ |
134 |
--mandir=${EROOT%/}/usr/share/postgresql-${SLOT}/man \ |
135 |
--enable-depend \ |
136 |
--without-tcl \ |
137 |
--without-perl \ |
138 |
--without-python \ |
139 |
$(use_with readline) \ |
140 |
$(use_with kerberos krb5) \ |
141 |
$(use_with kerberos gssapi) \ |
142 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
143 |
$(use_with pam) \ |
144 |
$(use_enable !pg_legacytimestamp integer-datetimes) \ |
145 |
$(use_with ssl openssl) \ |
146 |
$(use_enable threads thread-safety) \ |
147 |
$(use_with zlib) \ |
148 |
$(use_with ldap) |
149 |
} |
150 |
|
151 |
src_compile() { |
152 |
emake |
153 |
|
154 |
cd "${S}/contrib" |
155 |
emake |
156 |
} |
157 |
|
158 |
src_install() { |
159 |
emake DESTDIR="${D}" install |
160 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
161 |
doins "${S}"/src/include/postmaster/*.h |
162 |
|
163 |
dodir /usr/share/postgresql-${SLOT}/man/man1/ |
164 |
cp "${S}"/doc/src/sgml/man1/* "${ED}"/usr/share/postgresql-${SLOT}/man/man1/ || die |
165 |
|
166 |
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 |
167 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
168 |
|
169 |
cd "${S}/contrib" |
170 |
emake DESTDIR="${D}" install || die "emake install failed" |
171 |
cd "${S}" |
172 |
|
173 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
174 |
|
175 |
IDIR="${EROOT%/}/usr/include/postgresql-${SLOT}" |
176 |
cat > "${ED}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__ |
177 |
postgres_ebuilds="\${postgres_ebuilds} ${PF}" |
178 |
postgres_prefix=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT} |
179 |
postgres_datadir=${EROOT%/}/usr/share/postgresql-${SLOT} |
180 |
postgres_bindir=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin |
181 |
postgres_symlinks=( |
182 |
${IDIR} ${EROOT%/}/usr/include/postgresql |
183 |
${IDIR}/libpq-fe.h ${EROOT%/}/usr/include/libpq-fe.h |
184 |
${IDIR}/pg_config_manual.h ${EROOT%/}/usr/include/pg_config_manual.h |
185 |
${IDIR}/libpq ${EROOT%/}/usr/include/libpq |
186 |
${IDIR}/postgres_ext.h ${EROOT%/}/usr/include/postgres_ext.h |
187 |
) |
188 |
__EOF__ |
189 |
|
190 |
cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__ |
191 |
LDPATH=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/lib |
192 |
MANPATH=${EROOT%/}/usr/share/postgresql-${SLOT}/man |
193 |
__EOF__ |
194 |
doenvd "${T}/50postgresql-94-${SLOT}" |
195 |
|
196 |
keepdir /etc/postgresql-${SLOT} |
197 |
} |
198 |
|
199 |
pkg_postinst() { |
200 |
eselect postgresql update |
201 |
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT} |
202 |
elog "If you need a global psqlrc-file, you can place it in:" |
203 |
elog " ${EROOT%/}/etc/postgresql-${SLOT}/" |
204 |
} |
205 |
|
206 |
pkg_postrm() { |
207 |
eselect postgresql update |
208 |
} |