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