Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/apr: ChangeLog apr-1.3.3.ebuild
Date: Fri, 29 Aug 2008 11:51:17
Message-Id: E1KZ2VW-0002hz-I9@stork.gentoo.org
1 hollow 08/08/29 11:51:14
2
3 Modified: ChangeLog
4 Added: apr-1.3.3.ebuild
5 Log:
6 version bump wrt #235938
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.112 dev-libs/apr/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/apr/ChangeLog?rev=1.112&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/apr/ChangeLog?rev=1.112&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/apr/ChangeLog?r1=1.111&r2=1.112
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/apr/ChangeLog,v
19 retrieving revision 1.111
20 retrieving revision 1.112
21 diff -u -r1.111 -r1.112
22 --- ChangeLog 16 Aug 2008 16:48:42 -0000 1.111
23 +++ ChangeLog 29 Aug 2008 11:51:13 -0000 1.112
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-libs/apr
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/ChangeLog,v 1.111 2008/08/16 16:48:42 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/ChangeLog,v 1.112 2008/08/29 11:51:13 hollow Exp $
29 +
30 +*apr-1.3.3 (29 Aug 2008)
31 +
32 + 29 Aug 2008; Benedikt Böhm <hollow@g.o> +apr-1.3.3.ebuild:
33 + version bump wrt #235938
34
35 16 Aug 2008; Jeroen Roovers <jer@g.o> apr-1.3.2.ebuild:
36 Stable for HPPA (bug #232671).
37
38
39
40 1.1 dev-libs/apr/apr-1.3.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/apr/apr-1.3.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/apr/apr-1.3.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: apr-1.3.3.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/apr-1.3.3.ebuild,v 1.1 2008/08/29 11:51:14 hollow Exp $
50
51 inherit autotools
52
53 DESCRIPTION="Apache Portable Runtime Library"
54 HOMEPAGE="http://apr.apache.org/"
55 SRC_URI="mirror://apache/apr/${P}.tar.gz"
56
57 LICENSE="Apache-2.0"
58 SLOT="1"
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
60 IUSE="doc urandom debug"
61 RESTRICT="test"
62
63 DEPEND="doc? ( app-doc/doxygen )"
64 RDEPEND=""
65
66 src_unpack() {
67 unpack ${A}
68 cd "${S}"
69
70 # for some reason not all the .m4 files that are referenced in
71 # configure.in exist, so we remove all references and include every
72 # .m4 file in build using aclocal via eautoreconf
73 # See bug 135463
74 sed -i -e '/sinclude/d' configure.in
75 AT_M4DIR="build" eautoreconf
76
77 epatch "${FILESDIR}"/config.layout.patch
78 }
79
80 src_compile() {
81 # For now we always enable ipv6. Testing has shown that is still works
82 # correctly in ipv4 systems, and currently, the ipv4-only support
83 # is broken in apr. (ipv6 is enabled by default) Bug #123320
84 #myconf="${myconf} $(use_enable ipv6)"
85
86 if use urandom; then
87 myconf="${myconf} --with-devrandom=/dev/urandom"
88 else
89 myconf="${myconf} --with-devrandom=/dev/random"
90 fi
91
92 if use debug; then
93 myconf="${myconf} --enable-maintainer-mode"
94 myconf="${myconf} --enable-pool-debug=all"
95 fi
96
97 # We pre-load the cache with the correct answer! This avoids
98 # it violating the sandbox. This may have to be changed for
99 # non-Linux systems or if sem_open changes on Linux. This
100 # hack is built around documentation in /usr/include/semaphore.h
101 # and the glibc (pthread) source
102 # See bugs 24215 and 133573
103 echo 'ac_cv_func_sem_open=${ac_cv_func_sem_open=no}' >> "${S}"/config.cache
104
105 econf --enable-layout=gentoo \
106 --enable-threads \
107 --enable-nonportable-atomics \
108 ${myconf}
109
110 # Make sure we use the system libtool
111 sed -i 's,$(apr_builddir)/libtool,/usr/bin/libtool,' "${S}"/build/apr_rules.mk
112 sed -i 's,${installbuilddir}/libtool,/usr/bin/libtool,' "${S}"/apr-1-config
113 rm -f "${S}"/libtool
114
115 emake || die "Make failed"
116
117 if use doc; then
118 emake dox || die "make dox failed"
119 fi
120 }
121
122 src_install() {
123 make DESTDIR="${D}" install || die "make install failed"
124
125 # This file is only used on AIX systems, which gentoo is not,
126 # and causes collisions between the SLOTs, so kill it
127 rm "${D}"/usr/$(get_libdir)/apr.exp
128
129 dodoc CHANGES NOTICE
130
131 if use doc; then
132 dohtml docs/dox/html/* || die
133 fi
134 }
135
136 pkg_postinst() {
137 ewarn "We are now using the system's libtool rather then bundling"
138 ewarn "our own. You will need to rebuild Apache and possibly other"
139 ewarn "software if you get a message similiar to the following:"
140 ewarn
141 ewarn " /usr/share/apr-1/build-1/libtool: No such file or directory"
142 ewarn
143 }