1 |
patrick 10/02/26 15:47:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postgresql-base-9.0_alpha4.ebuild |
5 |
Log: |
6 |
Bump to 9.0_alpha4 |
7 |
(Portage version: 2.2_rc63/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.46 dev-db/postgresql-base/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.46&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.46&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.45&r2=1.46 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v |
19 |
retrieving revision 1.45 |
20 |
retrieving revision 1.46 |
21 |
diff -u -r1.45 -r1.46 |
22 |
--- ChangeLog 26 Jan 2010 19:25:40 -0000 1.45 |
23 |
+++ ChangeLog 26 Feb 2010 15:47:40 -0000 1.46 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for dev-db/postgresql-base |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.45 2010/01/26 19:25:40 patrick Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.46 2010/02/26 15:47:40 patrick Exp $ |
29 |
+ |
30 |
+*postgresql-base-9.0_alpha4 (26 Feb 2010) |
31 |
+ |
32 |
+ 26 Feb 2010; Patrick Lauer <patrick@g.o> |
33 |
+ +postgresql-base-9.0_alpha4.ebuild, +files/postgresql-9.0-base.patch, |
34 |
+ +files/postgresql-9.0-common.patch, +files/postgresql-9.0-makefile.patch: |
35 |
+ Bump of the alpha, 8.5 became 9.0 |
36 |
|
37 |
*postgresql-base-8.5_alpha3 (26 Jan 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-db/postgresql-base/postgresql-base-9.0_alpha4.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0_alpha4.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-9.0_alpha4.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: postgresql-base-9.0_alpha4.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 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.0_alpha4.ebuild,v 1.1 2010/02/26 15:47:40 patrick Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
|
55 |
WANT_AUTOCONF="latest" |
56 |
WANT_AUTOMAKE="none" |
57 |
|
58 |
inherit eutils multilib toolchain-funcs versionator autotools |
59 |
|
60 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
61 |
|
62 |
DESCRIPTION="PostgreSQL libraries and clients" |
63 |
HOMEPAGE="http://www.postgresql.org/" |
64 |
|
65 |
MY_PV=${PV/_/} |
66 |
SRC_URI="mirror://postgresql/source/${MY_PV}/postgresql-${MY_PV}.tar.bz2" |
67 |
S=${WORKDIR}/postgresql-${MY_PV} |
68 |
|
69 |
LICENSE="POSTGRESQL" |
70 |
SLOT="$(get_version_component_range 1-2)" |
71 |
IUSE_LINGUAS=" |
72 |
linguas_af linguas_cs linguas_de linguas_es linguas_fa linguas_fr |
73 |
linguas_hr linguas_hu linguas_it linguas_ko linguas_nb linguas_pl |
74 |
linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sv |
75 |
linguas_tr linguas_zh_CN linguas_zh_TW" |
76 |
IUSE="doc kerberos nls pam readline ssl threads zlib ldap pg_legacytimestamp ${IUSE_LINGUAS}" |
77 |
RESTRICT="test" |
78 |
|
79 |
wanted_languages() { |
80 |
for u in ${IUSE_LINGUAS} ; do |
81 |
use $u && echo -n "${u#linguas_} " |
82 |
done |
83 |
} |
84 |
|
85 |
RDEPEND="kerberos? ( virtual/krb5 ) |
86 |
pam? ( virtual/pam ) |
87 |
readline? ( >=sys-libs/readline-4.1 ) |
88 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
89 |
zlib? ( >=sys-libs/zlib-1.1.3 ) |
90 |
>=app-admin/eselect-postgresql-0.3 |
91 |
virtual/libintl |
92 |
!dev-db/postgresql-libs |
93 |
!dev-db/postgresql-client |
94 |
!dev-db/libpq |
95 |
!dev-db/postgresql |
96 |
ldap? ( net-nds/openldap )" |
97 |
DEPEND="${RDEPEND} |
98 |
sys-devel/flex |
99 |
>=sys-devel/bison-1.875 |
100 |
nls? ( sys-devel/gettext )" |
101 |
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )" |
102 |
|
103 |
src_prepare() { |
104 |
epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \ |
105 |
"${FILESDIR}/postgresql-${SLOT}-makefile.patch" \ |
106 |
"${FILESDIR}/postgresql-${SLOT}-base.patch" |
107 |
|
108 |
# to avoid collision - it only should be installed by server |
109 |
rm "${S}/src/backend/nls.mk" |
110 |
|
111 |
# because psql/help.c includes the file |
112 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" |
113 |
cd ${S} |
114 |
eautoconf |
115 |
} |
116 |
|
117 |
src_configure() { |
118 |
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ |
119 |
--datadir=/usr/share/postgresql-${SLOT} \ |
120 |
--docdir=/usr/share/doc/postgresql-${SLOT} \ |
121 |
--sysconfdir=/etc/postgresql-${SLOT} \ |
122 |
--includedir=/usr/include/postgresql-${SLOT} \ |
123 |
--mandir=/usr/share/postgresql-${SLOT}/man \ |
124 |
--enable-depend \ |
125 |
--without-tcl \ |
126 |
--without-perl \ |
127 |
--without-python \ |
128 |
$(use_with readline) \ |
129 |
$(use_with kerberos krb5) \ |
130 |
$(use_with kerberos gssapi) \ |
131 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
132 |
$(use_with pam) \ |
133 |
$(use_enable !pg_legacytimestamp integer-datetimes ) \ |
134 |
$(use_with ssl openssl) \ |
135 |
$(use_enable threads thread-safety) \ |
136 |
$(use_with zlib) \ |
137 |
$(use_with ldap) \ |
138 |
${myconf} \ |
139 |
|| die "configure failed" |
140 |
} |
141 |
src_compile() { |
142 |
|
143 |
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" |
144 |
|
145 |
cd "${S}/contrib" |
146 |
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" |
147 |
} |
148 |
|
149 |
src_install() { |
150 |
emake DESTDIR="${D}" install || die "emake install failed" |
151 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
152 |
doins "${S}"/src/include/postmaster/*.h |
153 |
dodir /usr/share/postgresql-${SLOT}/man/man1 |
154 |
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1 |
155 |
|
156 |
rm -r "${D}/usr/share/doc/postgresql-${SLOT}/html" |
157 |
rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 |
158 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
159 |
|
160 |
cd "${S}/contrib" |
161 |
emake DESTDIR="${D}" install || die "emake install failed" |
162 |
cd "${S}" |
163 |
|
164 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
165 |
|
166 |
IDIR="/usr/include/postgresql-${SLOT}" |
167 |
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__ |
168 |
postgres_ebuilds="\${postgres_ebuilds} ${PF}" |
169 |
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} |
170 |
postgres_datadir=/usr/share/postgresql-${SLOT} |
171 |
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin |
172 |
postgres_symlinks=( |
173 |
${IDIR} /usr/include/postgresql |
174 |
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h |
175 |
${IDIR}/libpq /usr/include/libpq |
176 |
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h |
177 |
) |
178 |
__EOF__ |
179 |
|
180 |
cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__ |
181 |
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) |
182 |
MANPATH=/usr/share/postgresql-${SLOT}/man |
183 |
__EOF__ |
184 |
doenvd "${T}/50postgresql-94-${SLOT}" |
185 |
|
186 |
keepdir /etc/postgresql-${SLOT} |
187 |
} |
188 |
|
189 |
pkg_postinst() { |
190 |
eselect postgresql update |
191 |
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT} |
192 |
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'." |
193 |
} |
194 |
|
195 |
pkg_postrm() { |
196 |
eselect postgresql update |
197 |
} |