Gentoo Archives: gentoo-commits

From: "Christoph Junghans (ottxor)" <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/apr: apr-1.4.6-r1.ebuild ChangeLog
Date: Wed, 28 Nov 2012 04:41:11
Message-Id: 20121128044054.3DF6620C9F@flycatcher.gentoo.org
1 ottxor 12/11/28 04:40:54
2
3 Modified: ChangeLog
4 Added: apr-1.4.6-r1.ebuild
5 Log:
6 added prefix support
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux i686, signed Manifest commit with key C2000586)
9
10 Revision Changes Path
11 1.186 dev-libs/apr/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/ChangeLog?rev=1.186&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/ChangeLog?rev=1.186&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/ChangeLog?r1=1.185&r2=1.186
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/apr/ChangeLog,v
20 retrieving revision 1.185
21 retrieving revision 1.186
22 diff -u -r1.185 -r1.186
23 --- ChangeLog 27 Nov 2012 18:43:05 -0000 1.185
24 +++ ChangeLog 28 Nov 2012 04:40:54 -0000 1.186
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-libs/apr
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/ChangeLog,v 1.185 2012/11/27 18:43:05 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/ChangeLog,v 1.186 2012/11/28 04:40:54 ottxor Exp $
30 +
31 +*apr-1.4.6-r1 (28 Nov 2012)
32 +
33 + 28 Nov 2012; Christoph Junghans <ottxor@g.o> +apr-1.4.6-r1.ebuild,
34 + +files/apr-1.4.6-mint.patch:
35 + added prefix support
36
37 27 Nov 2012; Pacho Ramos <pacho@g.o> metadata.xml:
38 Drop apache herd as discussed in http://www.gossamer-
39
40
41
42 1.1 dev-libs/apr/apr-1.4.6-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/apr-1.4.6-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/apr-1.4.6-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: apr-1.4.6-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/apr-1.4.6-r1.ebuild,v 1.1 2012/11/28 04:40:54 ottxor Exp $
52
53 EAPI="4"
54
55 inherit autotools eutils libtool multilib
56
57 DESCRIPTION="Apache Portable Runtime Library"
58 HOMEPAGE="http://apr.apache.org/"
59 SRC_URI="mirror://apache/apr/${P}.tar.bz2"
60
61 LICENSE="Apache-2.0"
62 SLOT="1"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-aix ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
64 IUSE="doc elibc_FreeBSD older-kernels-compatibility static-libs +urandom +uuid"
65
66 RDEPEND="uuid? (
67 elibc_glibc? ( >=sys-apps/util-linux-2.16 )
68 elibc_mintlib? ( >=sys-apps/util-linux-2.18 )
69 )"
70 DEPEND="${RDEPEND}
71 doc? ( app-doc/doxygen )"
72
73 DOCS=(CHANGES NOTICE README)
74
75 src_prepare() {
76 epatch "${FILESDIR}"/${P}-mint.patch
77
78 # Ensure that system libtool is used.
79 local g=
80 [[ ${CHOST} == *-darwin* ]] && g=g
81 sed -e 's:${installbuilddir}/libtool:'"${EPREFIX}/usr/bin/${g}libtool"':' -i apr-config.in || die "sed failed"
82 sed -e 's:@LIBTOOL@:$(SHELL) '"${EPREFIX}/usr/bin/${g}libtool"':' -i build/apr_rules.mk.in || die "sed failed"
83
84 AT_M4DIR="build" eautoreconf
85 elibtoolize
86
87 epatch "${FILESDIR}/config.layout.patch"
88 }
89
90 src_configure() {
91 local myconf
92
93 [[ ${CHOST} == *-mint* ]] && export ac_cv_func_poll=no
94
95 if use older-kernels-compatibility; then
96 local apr_cv_accept4 apr_cv_dup3 apr_cv_epoll_create1 apr_cv_sock_cloexec
97 export apr_cv_accept4="no"
98 export apr_cv_dup3="no"
99 export apr_cv_epoll_create1="no"
100 export apr_cv_sock_cloexec="no"
101 fi
102
103 if use urandom; then
104 myconf+=" --with-devrandom=/dev/urandom"
105 elif (( ${CHOST#*-hpux11.} <= 11 )); then
106 : # no /dev/*random on hpux11.11 and before, $PN detects this.
107 else
108 myconf+=" --with-devrandom=/dev/random"
109 fi
110
111 if [[ ${CHOST} == *-mint* ]] ; then
112 myconf+=" --disable-dso"
113 fi
114
115 # shl_load does not search runpath, but hpux11 supports dlopen
116 [[ ${CHOST} == *-hpux11* ]] && myconf="${myconf} --enable-dso=dlfcn"
117
118 if [[ ${CHOST} == *-solaris2.10 ]]; then
119 case $(<$([[ ${CHOST} != ${CBUILD} ]] && echo "${EPREFIX}/usr/${CHOST}")/usr/include/atomic.h) in
120 *atomic_cas_ptr*) ;;
121 *)
122 elog "You do not have Solaris Patch ID "$(
123 [[ ${CHOST} == sparc* ]] && echo 118884 || echo 118885
124 )" (Problem 4954703) installed on your host ($(hostname)),"
125 elog "using generic atomic operations instead."
126 myconf="${myconf} --disable-nonportable-atomics"
127 ;;
128 esac
129 fi
130
131 if ! use uuid; then
132 local apr_cv_osuuid
133 export apr_cv_osuuid="no"
134 fi
135
136 CONFIG_SHELL="${EPREFIX}"/bin/bash econf \
137 --enable-layout=gentoo \
138 --enable-nonportable-atomics \
139 --enable-threads \
140 ${myconf}
141
142 rm -f libtool
143 }
144
145 src_compile() {
146 emake
147
148 if use doc; then
149 emake dox
150 fi
151 }
152
153 src_install() {
154 default
155
156 find "${ED}" -name "*.la" -exec rm -f {} +
157
158 if use doc; then
159 dohtml -r docs/dox/html/*
160 fi
161
162 if ! use static-libs; then
163 find "${ED}" -name "*.a" -exec rm -f {} +
164 fi
165
166 # This file is only used on AIX systems, which Gentoo is not,
167 # and causes collisions between the SLOTs, so remove it.
168 # Even in Prefix, we don't need this on AIX.
169 rm -f "${ED}usr/$(get_libdir)/apr.exp"
170 }