1 |
patrick 10/01/26 19:25:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: postgresql-base-8.5_alpha3.ebuild |
5 |
Log: |
6 |
Adding 8.5 alpha |
7 |
(Portage version: 2.2_rc61/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.45 dev-db/postgresql-base/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.45&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?rev=1.45&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/ChangeLog?r1=1.44&r2=1.45 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v |
19 |
retrieving revision 1.44 |
20 |
retrieving revision 1.45 |
21 |
diff -u -r1.44 -r1.45 |
22 |
--- ChangeLog 7 Jan 2010 20:28:56 -0000 1.44 |
23 |
+++ ChangeLog 26 Jan 2010 19:25:40 -0000 1.45 |
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.44 2010/01/07 20:28:56 beandog Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-base/ChangeLog,v 1.45 2010/01/26 19:25:40 patrick Exp $ |
29 |
+ |
30 |
+*postgresql-base-8.5_alpha3 (26 Jan 2010) |
31 |
+ |
32 |
+ 26 Jan 2010; Patrick Lauer <patrick@g.o> |
33 |
+ +postgresql-base-8.5_alpha3.ebuild, +files/postgresql-8.5-base.patch, |
34 |
+ +files/postgresql-8.5-common.patch, +files/postgresql-8.5-makefile.patch: |
35 |
+ Adding 8.5_alpha |
36 |
|
37 |
07 Jan 2010; Steve Dibb <beandog@g.o> |
38 |
postgresql-base-7.3.21.ebuild, postgresql-base-7.4.26.ebuild, |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-db/postgresql-base/postgresql-base-8.5_alpha3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.5_alpha3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/postgresql-base/postgresql-base-8.5_alpha3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: postgresql-base-8.5_alpha3.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-8.5_alpha3.ebuild,v 1.1 2010/01/26 19:25: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 |
|
104 |
src_prepare() { |
105 |
epatch "${FILESDIR}/postgresql-${SLOT}-common.patch" \ |
106 |
"${FILESDIR}/postgresql-${SLOT}-makefile.patch" \ |
107 |
"${FILESDIR}/postgresql-${SLOT}-base.patch" |
108 |
|
109 |
# to avoid collision - it only should be installed by server |
110 |
rm "${S}/src/backend/nls.mk" |
111 |
|
112 |
# because psql/help.c includes the file |
113 |
ln -s "${S}/src/include/libpq/pqsignal.h" "${S}/src/bin/psql/" |
114 |
cd ${S} |
115 |
eautoconf |
116 |
} |
117 |
|
118 |
src_configure() { |
119 |
econf --prefix=/usr/$(get_libdir)/postgresql-${SLOT} \ |
120 |
--datadir=/usr/share/postgresql-${SLOT} \ |
121 |
--docdir=/usr/share/doc/postgresql-${SLOT} \ |
122 |
--sysconfdir=/etc/postgresql-${SLOT} \ |
123 |
--includedir=/usr/include/postgresql-${SLOT} \ |
124 |
--mandir=/usr/share/postgresql-${SLOT}/man \ |
125 |
--enable-depend \ |
126 |
--without-tcl \ |
127 |
--without-perl \ |
128 |
--without-python \ |
129 |
$(use_with readline) \ |
130 |
$(use_with kerberos krb5) \ |
131 |
$(use_with kerberos gssapi) \ |
132 |
"$(use_enable nls nls "$(wanted_languages)")" \ |
133 |
$(use_with pam) \ |
134 |
$(use_enable !pg_legacytimestamp integer-datetimes ) \ |
135 |
$(use_with ssl openssl) \ |
136 |
$(use_enable threads thread-safety) \ |
137 |
$(use_with zlib) \ |
138 |
$(use_with ldap) \ |
139 |
${myconf} \ |
140 |
|| die "configure failed" |
141 |
} |
142 |
src_compile() { |
143 |
|
144 |
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" |
145 |
|
146 |
cd "${S}/contrib" |
147 |
emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake failed" |
148 |
} |
149 |
|
150 |
src_install() { |
151 |
emake DESTDIR="${D}" install || die "emake install failed" |
152 |
insinto /usr/include/postgresql-${SLOT}/postmaster |
153 |
doins "${S}"/src/include/postmaster/*.h |
154 |
dodir /usr/share/postgresql-${SLOT}/man/man1 |
155 |
tar -zxf "${S}/doc/man.tar.gz" -C "${D}"/usr/share/postgresql-${SLOT}/man man1/{ecpg,pg_config}.1 |
156 |
|
157 |
rm -r "${D}/usr/share/doc/postgresql-${SLOT}/html" |
158 |
rm "${D}/usr/share/postgresql-${SLOT}/man/man1"/{initdb,ipcclean,pg_controldata,pg_ctl,pg_resetxlog,pg_restore,postgres,postmaster}.1 |
159 |
dodoc README HISTORY doc/{README.*,TODO,bug.template} |
160 |
|
161 |
cd "${S}/contrib" |
162 |
emake DESTDIR="${D}" install || die "emake install failed" |
163 |
cd "${S}" |
164 |
|
165 |
dodir /etc/eselect/postgresql/slots/${SLOT} |
166 |
|
167 |
IDIR="/usr/include/postgresql-${SLOT}" |
168 |
cat > "${D}/etc/eselect/postgresql/slots/${SLOT}/base" <<-__EOF__ |
169 |
postgres_ebuilds="\${postgres_ebuilds} ${PF}" |
170 |
postgres_prefix=/usr/$(get_libdir)/postgresql-${SLOT} |
171 |
postgres_datadir=/usr/share/postgresql-${SLOT} |
172 |
postgres_bindir=/usr/$(get_libdir)/postgresql-${SLOT}/bin |
173 |
postgres_symlinks=( |
174 |
${IDIR} /usr/include/postgresql |
175 |
${IDIR}/libpq-fe.h /usr/include/libpq-fe.h |
176 |
${IDIR}/libpq /usr/include/libpq |
177 |
${IDIR}/postgres_ext.h /usr/include/postgres_ext.h |
178 |
) |
179 |
__EOF__ |
180 |
|
181 |
cat >"${T}/50postgresql-94-${SLOT}" <<-__EOF__ |
182 |
LDPATH=/usr/$(get_libdir)/postgresql-${SLOT}/$(get_libdir) |
183 |
MANPATH=/usr/share/postgresql-${SLOT}/man |
184 |
__EOF__ |
185 |
doenvd "${T}/50postgresql-94-${SLOT}" |
186 |
|
187 |
keepdir /etc/postgresql-${SLOT} |
188 |
} |
189 |
|
190 |
pkg_postinst() { |
191 |
eselect postgresql update |
192 |
[[ "$(eselect postgresql show)" = "(none)" ]] && eselect postgresql set ${SLOT} |
193 |
elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql-${SLOT}/'." |
194 |
} |
195 |
|
196 |
pkg_postrm() { |
197 |
eselect postgresql update |
198 |
} |