Gentoo Archives: gentoo-commits

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