1 |
patrick 10/01/07 00:49:32 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postgresql-base-7.4.27.ebuild |
5 |
Log: |
6 |
Bump |
7 |
(Portage version: 2.2_rc61/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.35 dev-db/postgresql-base/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.35&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.35&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.34&r2=1.35 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v |
19 |
retrieving revision 1.34 |
20 |
retrieving revision 1.35 |
21 |
diff -u -r1.34 -r1.35 |
22 |
--- ChangeLog 7 Jan 2010 00:23:37 -0000 1.34 |
23 |
+++ ChangeLog 7 Jan 2010 00:49:31 -0000 1.35 |
24 |
@@ -1,6 +1,12 @@ |
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.34 2010/01/07 00:23:37 patrick Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.35 2010/01/07 00:49:31 patrick Exp $ |
29 |
+ |
30 |
+*postgresql-base-7.4.27 (07 Jan 2010) |
31 |
+ |
32 |
+ 07 Jan 2010; Patrick Lauer <patrick@g.o> |
33 |
+ +postgresql-base-7.4.27.ebuild, +files/postgresql-7.4.27-autoconf.patch: |
34 |
+ Bump of 7.4 slot |
35 |
|
36 |
*postgresql-base-8.4.2-r1 (07 Jan 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-db/postgresql-base/postgresql-base-7.4.27.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.4.27.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.4.27.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: postgresql-base-7.4.27.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/postgresql-base-7.4.27.ebuild,v 1.1 2010/01/07 00:49:31 patrick Exp $ |
51 |
|
52 |
EAPI="1" |
53 |
|
54 |
WANT_AUTOCONF="latest" |
55 |
WANT_AUTOMAKE="none" |
56 |
|
57 |
inherit eutils multilib toolchain-funcs versionator autotools |
58 |
|
59 |
KEYWORDS="~amd64 ~hppa ~ppc ~x86" |
60 |
|
61 |
DESCRIPTION="PostgreSQL libraries and clients" |
62 |
HOMEPAGE="http://www.postgresql.org/" |
63 |
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" |
64 |
LICENSE="POSTGRESQL" |
65 |
SLOT="$(get_version_component_range 1-2)" |
66 |
IUSE_LINGUAS=" |
67 |
linguas_cs linguas_de linguas_es linguas_fr linguas_hr linguas_hu |
68 |
linguas_it linguas_nb linguas_pt_BR linguas_ru linguas_sl linguas_sv |
69 |
linguas_tr linguas_zh_CN linguas_zh_TW" |
70 |
IUSE="doc kerberos nls pam pg-intdatetime readline ssl threads zlib ${IUSE_LINGUAS}" |
71 |
RESTRICT="test" |
72 |
|
73 |
wanted_languages() { |
74 |
for u in ${IUSE_LINGUAS} ; do |
75 |
use $u && echo -n "${u#linguas_} " |
76 |
done |
77 |
} |
78 |
|
79 |
RDEPEND="kerberos? ( virtual/krb5 ) |
80 |
pam? ( virtual/pam ) |
81 |
readline? ( >=sys-libs/readline-4.1 ) |
82 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
83 |
zlib? ( >=sys-libs/zlib-1.1.3 ) |
84 |
>=app-admin/eselect-postgresql-0.3 |
85 |
virtual/libintl |
86 |
!dev-db/postgresql-libs |
87 |
!dev-db/postgresql-client |
88 |
!dev-db/libpq |
89 |
!dev-db/postgresql" |
90 |
DEPEND="${RDEPEND} |
91 |
sys-devel/flex |
92 |
>=sys-devel/bison-1.875 |
93 |
nls? ( sys-devel/gettext )" |
94 |
PDEPEND="doc? ( dev-db/postgresql-docs:${SLOT} )" |
95 |
|
96 |
S="${WORKDIR}/postgresql-${PV}" |
97 |
|
98 |
src_unpack() { |
99 |
unpack ${A} |
100 |
cd "${S}" |
101 |
|
102 |
epatch "${FILESDIR}/postgresql-${PV}-autoconf.patch" \ |
103 |
"${FILESDIR}/postgresql-${SLOT}-hppa.patch" \ |
104 |
"${FILESDIR}/postgresql-${SLOT}-base.patch" \ |
105 |
"${FILESDIR}/postgresql-${SLOT}-com_err.patch" |
106 |
|
107 |
# to avoid collision - it only should be installed by server |
108 |
rm "${S}/src/backend/nls.mk" |
109 |
|
110 |
# because psql/help.c includes the file |
111 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" |
112 |
|
113 |
eautoreconf |
114 |
} |
115 |
|
116 |
src_compile() { |
117 |
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ |
118 |
--datadir=/usr/share/postgresql-${SLOT} \ |
119 |
--sysconfdir=/etc/postgresql-${SLOT} \ |
120 |
--includedir=/usr/include/postgresql-${SLOT} \ |
121 |
--with-locale-dir=/usr/share/postgresql-${SLOT}/locale \ |
122 |
--mandir=/usr/share/postgresql-${SLOT}/man \ |
123 |
--host=${CHOST} \ |
124 |
--docdir=/usr/share/doc/${PF} \ |
125 |
--without-tcl \ |
126 |
--without-perl \ |
127 |
--without-python \ |
128 |
$(use_with kerberos krb5) \ |
129 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
130 |
$(use_with pam) \ |
131 |
$(use_enable pg-intdatetime integer-datetimes ) \ |
132 |
$(use_with readline) \ |
133 |
$(use_with ssl openssl) \ |
134 |
$(use_enable threads thread-safety ) \ |
135 |
$(use_with zlib) \ |
136 |
|| die "configure failed" |
137 |
|
138 |
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" |
139 |
|
140 |
cd "${S}/contrib" |
141 |
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" |
142 |
} |
143 |
|
144 |
src_install() { |
145 |
emake DESTDIR="${D}" install || die "emake install failed" |
146 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
147 |
doins "${S}"/src/include/postmaster/*.h |
148 |
|
149 |
# Install missing libpgport.a |
150 |
insinto /usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) |
151 |
doins "${S}/src/port/libpgport.a" |
152 |
|
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 -rf "${D}/usr/share/doc/${PF}/html" |
157 |
rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,initlocation,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-98-${SLOT}" <<-__EOF__ |
181 |
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) |
182 |
MANPATH=/usr/share/postgresql-${SLOT}/man |
183 |
__EOF__ |
184 |
doenvd "${T}/50postgresql-98-${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 |
} |