Gentoo Archives: gentoo-commits

From: "Jesus Rivero (neurogeek)" <neurogeek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/apr-util: ChangeLog apr-util-1.3.12.ebuild
Date: Fri, 29 Jul 2011 20:43:54
Message-Id: 20110729204344.AC86420051@flycatcher.gentoo.org
1 neurogeek 11/07/29 20:43:44
2
3 Modified: ChangeLog
4 Added: apr-util-1.3.12.ebuild
5 Log:
6 Version bump. Ebuild and patch by Arfrever.
7
8 (Portage version: 2.2.0_alpha46/cvs/Linux i686)
9
10 Revision Changes Path
11 1.163 dev-libs/apr-util/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr-util/ChangeLog?rev=1.163&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr-util/ChangeLog?rev=1.163&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr-util/ChangeLog?r1=1.162&r2=1.163
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/apr-util/ChangeLog,v
20 retrieving revision 1.162
21 retrieving revision 1.163
22 diff -u -r1.162 -r1.163
23 --- ChangeLog 14 May 2011 20:50:36 -0000 1.162
24 +++ ChangeLog 29 Jul 2011 20:43:44 -0000 1.163
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-libs/apr-util
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/ChangeLog,v 1.162 2011/05/14 20:50:36 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/ChangeLog,v 1.163 2011/07/29 20:43:44 neurogeek Exp $
30 +
31 +*apr-util-1.3.12 (29 Jul 2011)
32 +
33 + 29 Jul 2011; Jesus Rivero <neurogeek@g.o> +apr-util-1.3.12.ebuild,
34 + +files/apr-util-1.3.12-bdb-5.2.patch:
35 + Version bump. Ebuild and patch by Arfrever.
36
37 14 May 2011; Raúl Porcel <armin76@g.o> apr-util-1.3.11.ebuild:
38 alpha/arm/ia64/s390/sh/sparc stable wrt #366903
39
40
41
42 1.1 dev-libs/apr-util/apr-util-1.3.12.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr-util/apr-util-1.3.12.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr-util/apr-util-1.3.12.ebuild?rev=1.1&content-type=text/plain
46
47 Index: apr-util-1.3.12.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-libs/apr-util/apr-util-1.3.12.ebuild,v 1.1 2011/07/29 20:43:44 neurogeek Exp $
52
53 EAPI="3"
54
55 # Usually apr-util has the same PV as apr, but in case of security fixes, this may change.
56 # APR_PV="${PV}"
57 APR_PV="1.4.4"
58
59 inherit autotools db-use eutils libtool multilib
60
61 DESCRIPTION="Apache Portable Runtime Utility Library"
62 HOMEPAGE="http://apr.apache.org/"
63 SRC_URI="mirror://apache/apr/${P}.tar.bz2"
64
65 LICENSE="Apache-2.0"
66 SLOT="1"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
68 IUSE="berkdb doc freetds gdbm ldap mysql odbc postgres sqlite sqlite3"
69 RESTRICT="test"
70
71 RDEPEND="dev-libs/expat
72 >=dev-libs/apr-${APR_PV}:1
73 berkdb? ( >=sys-libs/db-4 )
74 freetds? ( dev-db/freetds )
75 gdbm? ( sys-libs/gdbm )
76 ldap? ( =net-nds/openldap-2* )
77 mysql? ( =virtual/mysql-5* )
78 odbc? ( dev-db/unixODBC )
79 postgres? ( dev-db/postgresql-base )
80 sqlite? ( dev-db/sqlite:0 )
81 sqlite3? ( dev-db/sqlite:3 )"
82 DEPEND="${RDEPEND}
83 doc? ( app-doc/doxygen )"
84
85 src_prepare() {
86 epatch "${FILESDIR}/${P}-bdb-5.2.patch"
87 eautoreconf
88
89 elibtoolize
90 }
91
92 src_configure() {
93 local myconf
94
95 if use berkdb; then
96 local db_version
97 db_version="$(db_findver sys-libs/db)" || die "Unable to find Berkeley DB version"
98 db_version="$(db_ver_to_slot "${db_version}")"
99 db_version="${db_version/\./}"
100 myconf+=" --with-dbm=db${db_version} --with-berkeley-db=$(db_includedir 2> /dev/null):/usr/$(get_libdir)"
101 else
102 myconf+=" --without-berkeley-db"
103 fi
104
105 econf --datadir=/usr/share/apr-util-1 \
106 --with-apr=/usr \
107 --with-expat=/usr \
108 $(use_with freetds) \
109 $(use_with gdbm) \
110 $(use_with ldap) \
111 $(use_with mysql) \
112 $(use_with odbc) \
113 $(use_with postgres pgsql) \
114 $(use_with sqlite sqlite2) \
115 $(use_with sqlite3) \
116 ${myconf}
117 }
118
119 src_compile() {
120 emake CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
121
122 if use doc; then
123 emake dox || die "emake dox failed"
124 fi
125 }
126
127 src_install() {
128 emake DESTDIR="${D}" install || die "emake install failed"
129
130 find "${ED}" -name "*.la" -print0 | xargs -0 rm -f
131 find "${ED}usr/$(get_libdir)/apr-util-${SLOT}" -name "*.a" -print0 | xargs -0 rm -f
132
133 dodoc CHANGES NOTICE README
134
135 if use doc; then
136 dohtml -r docs/dox/html/* || die "dohtml failed"
137 fi
138
139 # This file is only used on AIX systems, which Gentoo is not,
140 # and causes collisions between the SLOTs, so remove it.
141 rm -f "${D}usr/$(get_libdir)/aprutil.exp"
142 }