/[gentoo-x86]/dev-libs/apr/apr-1.4.5.ebuild
Gentoo

Contents of /dev-libs/apr/apr-1.4.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Oct 24 19:52:02 2011 UTC (2 years, 8 months ago) by maekke
Branch: MAIN
Changes since 1.5: +2 -2 lines
x86 stable, bug #385859

(Portage version: 2.1.10.30/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/apr-1.4.5.ebuild,v 1.5 2011/10/23 11:40:38 maekke Exp $
4
5 EAPI="3"
6
7 inherit autotools eutils libtool multilib
8
9 DESCRIPTION="Apache Portable Runtime Library"
10 HOMEPAGE="http://apr.apache.org/"
11 SRC_URI="mirror://apache/apr/${P}.tar.bz2"
12
13 LICENSE="Apache-2.0"
14 SLOT="1"
15 KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
16 IUSE="doc elibc_FreeBSD older-kernels-compatibility +urandom +uuid"
17 RESTRICT="test"
18
19 RDEPEND="uuid? ( !elibc_FreeBSD? ( >=sys-apps/util-linux-2.16 ) )"
20 DEPEND="${RDEPEND}
21 doc? ( app-doc/doxygen )"
22
23 src_prepare() {
24 # Ensure that system libtool is used.
25 sed -e 's:${installbuilddir}/libtool:/usr/bin/libtool:' -i apr-config.in || die "sed failed"
26 sed -e 's:@LIBTOOL@:$(SHELL) /usr/bin/libtool:' -i build/apr_rules.mk.in || die "sed failed"
27
28 AT_M4DIR="build" eautoreconf
29 elibtoolize
30
31 epatch "${FILESDIR}/config.layout.patch"
32 }
33
34 src_configure() {
35 local myconf
36
37 if use older-kernels-compatibility; then
38 local apr_cv_accept4 apr_cv_dup3 apr_cv_epoll_create1 apr_cv_sock_cloexec
39 export apr_cv_accept4="no"
40 export apr_cv_dup3="no"
41 export apr_cv_epoll_create1="no"
42 export apr_cv_sock_cloexec="no"
43 fi
44
45 if use urandom; then
46 myconf+=" --with-devrandom=/dev/urandom"
47 else
48 myconf+=" --with-devrandom=/dev/random"
49 fi
50
51 if ! use uuid; then
52 local apr_cv_osuuid
53 export apr_cv_osuuid="no"
54 fi
55
56 CONFIG_SHELL="/bin/bash" econf \
57 --enable-layout=gentoo \
58 --enable-nonportable-atomics \
59 --enable-threads \
60 ${myconf}
61
62 rm -f libtool
63 }
64
65 src_compile() {
66 emake || die "emake failed"
67
68 if use doc; then
69 emake dox || die "emake dox failed"
70 fi
71 }
72
73 src_install() {
74 emake DESTDIR="${D}" install || die "emake install failed"
75
76 find "${ED}" -name "*.la" -print0 | xargs -0 rm -f
77
78 dodoc CHANGES NOTICE README
79
80 if use doc; then
81 dohtml -r docs/dox/html/* || die "dohtml failed"
82 fi
83
84 # This file is only used on AIX systems, which Gentoo is not,
85 # and causes collisions between the SLOTs, so remove it.
86 rm -f "${D}usr/$(get_libdir)/apr.exp"
87 }

  ViewVC Help
Powered by ViewVC 1.1.20