blob: be50bcb1361260b27e82ff54675031811efcba9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/apr-1.2.7.ebuild,v 1.3 2006/05/18 01:22:33 vericgar Exp $
inherit libtool
DESCRIPTION="Apache Portable Runtime Library"
HOMEPAGE="http://apr.apache.org/"
SRC_URI="mirror://apache/apr/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="1"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="ipv6 urandom"
RESTRICT="test"
DEPEND=""
src_compile() {
elibtoolize || die "elibtoolize failed"
myconf="--datadir=/usr/share/apr-1"
myconf="${myconf} $(use_enable ipv6)"
myconf="${myconf} --enable-threads"
myconf="${myconf} --enable-nonportable-atomics"
if use urandom; then
einfo "Using /dev/urandom as random device"
myconf="${myconf} --with-devrandom=/dev/urandom"
else
einfo "Using /dev/random as random device"
myconf="${myconf} --with-devrandom=/dev/random"
fi
# We pre-load the cache with the correct answer! This avoids
# it violating the sandbox. This may have to be changed for
# non-Linux systems or if sem_open changes on Linux. This
# hack is built around documentation in /usr/include/semaphore.h
# and the glibc (pthread) source
# See bugs 24215 and 133573
echo 'ac_cv_func_sem_open=${ac_cv_func_sem_open=no}' >> ${S}/config.cache
econf ${myconf} || die "Configure failed"
emake || die "Make failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc CHANGES NOTICE LICENSE
}
|