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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed May 9 15:43:48 2012 UTC (2 years, 2 months ago) by aballier
Branch: MAIN
Changes since 1.1: +2 -2 lines
keyword ~amd64-fbsd

(Portage version: 2.2.0_alpha102/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.6.ebuild,v 1.1 2012/02/28 08:08:16 idl0r Exp $
4
5 EAPI="4"
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 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
16 IUSE="doc elibc_FreeBSD older-kernels-compatibility static-libs +urandom +uuid"
17
18 RDEPEND="uuid? ( !elibc_FreeBSD? ( >=sys-apps/util-linux-2.16 ) )"
19 DEPEND="${RDEPEND}
20 doc? ( app-doc/doxygen )"
21
22 DOCS=(CHANGES NOTICE README)
23
24 src_prepare() {
25 # Ensure that system libtool is used.
26 sed -e 's:${installbuilddir}/libtool:/usr/bin/libtool:' -i apr-config.in || die "sed failed"
27 sed -e 's:@LIBTOOL@:$(SHELL) /usr/bin/libtool:' -i build/apr_rules.mk.in || die "sed failed"
28
29 AT_M4DIR="build" eautoreconf
30 elibtoolize
31
32 epatch "${FILESDIR}/config.layout.patch"
33 }
34
35 src_configure() {
36 local myconf
37
38 if use older-kernels-compatibility; then
39 local apr_cv_accept4 apr_cv_dup3 apr_cv_epoll_create1 apr_cv_sock_cloexec
40 export apr_cv_accept4="no"
41 export apr_cv_dup3="no"
42 export apr_cv_epoll_create1="no"
43 export apr_cv_sock_cloexec="no"
44 fi
45
46 if use urandom; then
47 myconf+=" --with-devrandom=/dev/urandom"
48 else
49 myconf+=" --with-devrandom=/dev/random"
50 fi
51
52 if ! use uuid; then
53 local apr_cv_osuuid
54 export apr_cv_osuuid="no"
55 fi
56
57 CONFIG_SHELL="/bin/bash" econf \
58 --enable-layout=gentoo \
59 --enable-nonportable-atomics \
60 --enable-threads \
61 ${myconf}
62
63 rm -f libtool
64 }
65
66 src_compile() {
67 emake
68
69 if use doc; then
70 emake dox
71 fi
72 }
73
74 src_install() {
75 default
76
77 find "${ED}" -name "*.la" -exec rm -f {} +
78
79 if use doc; then
80 dohtml -r docs/dox/html/*
81 fi
82
83 if ! use static-libs; then
84 find "${ED}" -name "*.a" -exec rm -f {} +
85 fi
86
87 # This file is only used on AIX systems, which Gentoo is not,
88 # and causes collisions between the SLOTs, so remove it.
89 rm -f "${ED}usr/$(get_libdir)/apr.exp"
90 }

  ViewVC Help
Powered by ViewVC 1.1.20