1 |
titanofold 11/07/04 23:56:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postgresql-base-9.1_beta2-r1.ebuild |
5 |
Log: |
6 |
Fixes bug 373859 |
7 |
|
8 |
(Portage version: 2.1.9.42/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.126 dev-db/postgresql-base/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.126&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.126&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.125&r2=1.126 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v |
20 |
retrieving revision 1.125 |
21 |
retrieving revision 1.126 |
22 |
diff -u -r1.125 -r1.126 |
23 |
--- ChangeLog 2 Jul 2011 15:20:46 -0000 1.125 |
24 |
+++ ChangeLog 4 Jul 2011 23:56:26 -0000 1.126 |
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.125 2011/07/02 15:20:46 hwoarang Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.126 2011/07/04 23:56:26 titanofold Exp $ |
30 |
+ |
31 |
+*postgresql-base-9.1_beta2-r1 (04 Jul 2011) |
32 |
+ |
33 |
+ 04 Jul 2011; Aaron W. Swenson <titanofold@g.o> |
34 |
+ +postgresql-base-9.1_beta2-r1.ebuild: |
35 |
+ Fixes bug 373859 |
36 |
|
37 |
02 Jul 2011; Markos Chandras <hwoarang@g.o> |
38 |
postgresql-base-8.2.21-r2.ebuild, postgresql-base-8.3.15-r2.ebuild, |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-db/postgresql-base/postgresql-base-9.1_beta2-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1_beta2-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.1_beta2-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: postgresql-base-9.1_beta2-r1.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_beta2-r1.ebuild,v 1.1 2011/07/04 23:56:26 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 ~sparc-fbsd ~x86-fbsd ~ppc-macos ~x86-solaris" |
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}-r1.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 en 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/libpq |
94 |
!!dev-db/postgresql |
95 |
!!dev-db/postgresql-client |
96 |
!!dev-db/postgresql-libs |
97 |
>=app-admin/eselect-postgresql-1.0.9 |
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 |
" |
106 |
|
107 |
DEPEND="${RDEPEND} |
108 |
>=sys-apps/sandbox-2.0 |
109 |
sys-devel/bison |
110 |
sys-devel/flex |
111 |
nls? ( sys-devel/gettext ) |
112 |
" |
113 |
|
114 |
PDEPEND="doc? ( ~dev-db/postgresql-docs-${PV} )" |
115 |
|
116 |
src_prepare() { |
117 |
epatch "${WORKDIR}/autoconf.patch" \ |
118 |
"${WORKDIR}/base.patch" |
119 |
epatch "${FILESDIR}"/${PN}-9.0.4-stdbool.patch |
120 |
|
121 |
eprefixify src/include/pg_config_manual.h |
122 |
|
123 |
# to avoid collision - it only should be installed by server |
124 |
rm "${S}/src/backend/nls.mk" |
125 |
|
126 |
# because psql/help.c includes the file |
127 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" || die |
128 |
|
129 |
eautoconf |
130 |
} |
131 |
|
132 |
src_configure() { |
133 |
case ${CHOST} in |
134 |
*-darwin*|*-solaris*) |
135 |
use nls && append-libs intl |
136 |
;; |
137 |
esac |
138 |
export LDFLAGS_SL="${LDFLAGS}" |
139 |
export LDFLAGS_EX="${LDFLAGS}" |
140 |
econf \ |
141 |
--prefix=${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT} \ |
142 |
--datadir=${EROOT%/}/usr/share/postgresql-${SLOT} \ |
143 |
--docdir=${EROOT%/}/usr/share/doc/postgresql-${SLOT} \ |
144 |
--sysconfdir=${EROOT%/}/etc/postgresql-${SLOT} \ |
145 |
--includedir=${EROOT%/}/usr/include/postgresql-${SLOT} \ |
146 |
--mandir=${EROOT%/}/usr/share/postgresql-${SLOT}/man \ |
147 |
--enable-depend \ |
148 |
--without-tcl \ |
149 |
--without-perl \ |
150 |
--without-python \ |
151 |
$(use_with readline) \ |
152 |
$(use_with kerberos krb5) \ |
153 |
$(use_with kerberos gssapi) \ |
154 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
155 |
$(use_with pam) \ |
156 |
$(use_enable !pg_legacytimestamp integer-datetimes) \ |
157 |
$(use_with ssl openssl) \ |
158 |
$(use_enable threads thread-safety) \ |
159 |
$(use_with zlib) \ |
160 |
$(use_with ldap) |
161 |
} |
162 |
|
163 |
src_compile() { |
164 |
emake -j1 |
165 |
|
166 |
cd "${S}/contrib" |
167 |
emake -j1 |
168 |
} |
169 |
|
170 |
src_install() { |
171 |
emake DESTDIR="${D}" install |
172 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
173 |
doins "${S}"/src/include/postmaster/*.h |
174 |
|
175 |
dodir /usr/share/postgresql-${SLOT}/man/ |
176 |
cp -r "${S}"/doc/src/sgml/man{1,7} "${ED}"/usr/share/postgresql-${SLOT}/man/ || die |
177 |
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}.1 |
178 |
docompress /usr/share/postgresql-${SLOT}/man/man{1,7} |
179 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
180 |
|
181 |
cd "${S}/contrib" |
182 |
emake DESTDIR="${D}" install |
183 |
cd "${S}" |
184 |
|
185 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
186 |
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \ |
187 |
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base" |
188 |
|
189 |
keepdir /etc/postgresql-${SLOT} |
190 |
} |
191 |
|
192 |
pkg_postinst() { |
193 |
postgresql-config update |
194 |
|
195 |
elog "If you need a global psqlrc-file, you can place it in:" |
196 |
elog " ${EROOT%/}/etc/postgresql-${SLOT}/" |
197 |
} |
198 |
|
199 |
pkg_postrm() { |
200 |
postgresql-config update |
201 |
} |