Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/apr: apr-1.5.2.ebuild ChangeLog apr-1.4.8-r1.ebuild
Date: Thu, 30 Apr 2015 10:33:31
Message-Id: 20150430103322.2CFBE9AA@oystercatcher.gentoo.org
1 polynomial-c 15/04/30 10:33:21
2
3 Modified: ChangeLog
4 Added: apr-1.5.2.ebuild
5 Removed: apr-1.4.8-r1.ebuild
6 Log:
7 Version bump. Removed old
8
9 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
10
11 Revision Changes Path
12 1.227 dev-libs/apr/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/ChangeLog?rev=1.227&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/ChangeLog?rev=1.227&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/ChangeLog?r1=1.226&r2=1.227
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-libs/apr/ChangeLog,v
21 retrieving revision 1.226
22 retrieving revision 1.227
23 diff -u -r1.226 -r1.227
24 --- ChangeLog 15 Nov 2014 20:45:08 -0000 1.226
25 +++ ChangeLog 30 Apr 2015 10:33:20 -0000 1.227
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-libs/apr
28 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/ChangeLog,v 1.226 2014/11/15 20:45:08 polynomial-c Exp $
30 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/ChangeLog,v 1.227 2015/04/30 10:33:20 polynomial-c Exp $
32 +
33 +*apr-1.5.2 (30 Apr 2015)
34 +
35 + 30 Apr 2015; Lars Wendler <polynomial-c@g.o> -apr-1.4.8-r1.ebuild,
36 + +apr-1.5.2.ebuild, -files/apr-1.4.6-mint.patch:
37 + Version bump. Removed old.
38
39 15 Nov 2014; Lars Wendler <polynomial-c@g.o> apr-1.5.1-r1.ebuild:
40 Added kludge to fix compilation with >=libtool-2.4.3 until autotools.eclass
41
42
43
44 1.1 dev-libs/apr/apr-1.5.2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/apr-1.5.2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/apr-1.5.2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: apr-1.5.2.ebuild
50 ===================================================================
51 # Copyright 1999-2015 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/apr-1.5.2.ebuild,v 1.1 2015/04/30 10:33:20 polynomial-c Exp $
54
55 EAPI=5
56
57 inherit autotools eutils libtool multilib toolchain-funcs
58
59 DESCRIPTION="Apache Portable Runtime Library"
60 HOMEPAGE="http://apr.apache.org/"
61 SRC_URI="mirror://apache/apr/${P}.tar.bz2"
62
63 LICENSE="Apache-2.0"
64 SLOT="1"
65 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
66 IUSE="doc elibc_FreeBSD older-kernels-compatibility static-libs +urandom"
67
68 RDEPEND="elibc_glibc? ( >=sys-apps/util-linux-2.16 )
69 elibc_mintlib? ( >=sys-apps/util-linux-2.18 )"
70 DEPEND="${RDEPEND}
71 >=sys-devel/libtool-2.4.2
72 doc? ( app-doc/doxygen )"
73
74 DOCS=(CHANGES NOTICE README)
75
76 src_prepare() {
77 epatch "${FILESDIR}"/${PN}-1.5.0-mint.patch
78 epatch "${FILESDIR}"/${PN}-1.5.0-libtool.patch
79 epatch "${FILESDIR}"/${PN}-1.5.0-cross-types.patch
80 epatch "${FILESDIR}"/${PN}-1.5.0-sysroot.patch #385775
81
82 epatch_user #449048
83
84 # kludge to fix compilation with >=libtool-2.4.3 until autotools.eclass
85 # got fixed (bug #527506)
86 _elibtoolize --install --copy --force
87
88 AT_M4DIR="build" eautoreconf
89 elibtoolize
90
91 epatch "${FILESDIR}/config.layout.patch"
92 }
93
94 src_configure() {
95 local myconf=()
96
97 [[ ${CHOST} == *-mint* ]] && export ac_cv_func_poll=no
98
99 if use older-kernels-compatibility; then
100 local apr_cv_accept4 apr_cv_dup3 apr_cv_epoll_create1 apr_cv_sock_cloexec
101 export apr_cv_accept4="no"
102 export apr_cv_dup3="no"
103 export apr_cv_epoll_create1="no"
104 export apr_cv_sock_cloexec="no"
105 fi
106 if tc-is-cross-compiler; then
107 # The apache project relies heavily on AC_TRY_RUN and doesn't
108 # have any sane cross-compiling fallback logic.
109 export \
110 ac_cv_file__dev_zero="yes" \
111 ac_cv_func_sem_open="yes" \
112 ac_cv_negative_eai="yes" \
113 ac_cv_o_nonblock_inherited="no" \
114 ac_cv_struct_rlimit="yes" \
115 ap_cv_atomic_builtins="yes" \
116 apr_cv_accept4="yes" \
117 apr_cv_dup3="yes" \
118 apr_cv_epoll="yes" \
119 apr_cv_epoll_create1="yes" \
120 apr_cv_gai_addrconfig="yes" \
121 apr_cv_mutex_recursive="yes" \
122 apr_cv_mutex_robust_shared="yes" \
123 apr_cv_process_shared_works="yes" \
124 apr_cv_pthreads_lib="-pthread" \
125 apr_cv_sock_cloexec="yes" \
126 apr_cv_tcp_nodelay_with_cork="yes"
127 fi
128
129 if use urandom; then
130 myconf+=( --with-devrandom=/dev/urandom )
131 elif (( ${CHOST#*-hpux11.} <= 11 )); then
132 : # no /dev/*random on hpux11.11 and before, $PN detects this.
133 else
134 myconf+=( --with-devrandom=/dev/random )
135 fi
136
137 tc-is-static-only && myconf+=( --disable-dso )
138
139 # shl_load does not search runpath, but hpux11 supports dlopen
140 [[ ${CHOST} == *-hpux11* ]] && myconf+=( --enable-dso=dlfcn )
141
142 if [[ ${CHOST} == *-solaris2.10 ]]; then
143 case $(<$([[ ${CHOST} != ${CBUILD} ]] && echo "${EPREFIX}/usr/${CHOST}")/usr/include/atomic.h) in
144 *atomic_cas_ptr*) ;;
145 *)
146 elog "You do not have Solaris Patch ID "$(
147 [[ ${CHOST} == sparc* ]] && echo 118884 || echo 118885
148 )" (Problem 4954703) installed on your host ($(hostname)),"
149 elog "using generic atomic operations instead."
150 myconf+=( --disable-nonportable-atomics )
151 ;;
152 esac
153 fi
154
155 econf \
156 --enable-layout=gentoo \
157 --enable-nonportable-atomics \
158 --enable-posix-shm \
159 --enable-threads \
160 $(use_enable static-libs static) \
161 "${myconf[@]}"
162 }
163
164 src_compile() {
165 if tc-is-cross-compiler; then
166 # This header is the same across targets, so use the build compiler.
167 emake tools/gen_test_char
168 tc-export_build_env BUILD_CC
169 ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} \
170 tools/gen_test_char.c -o tools/gen_test_char || die
171 fi
172
173 emake
174
175 if use doc; then
176 emake dox
177 fi
178 }
179
180 src_install() {
181 default
182
183 # Prallel install breaks since apr-1.5.1
184 #make -j1 DESTDIR="${D}" install || die
185
186 prune_libtool_files --all
187
188 if use doc; then
189 dohtml -r docs/dox/html/*
190 fi
191
192 # This file is only used on AIX systems, which Gentoo is not,
193 # and causes collisions between the SLOTs, so remove it.
194 # Even in Prefix, we don't need this on AIX.
195 rm -f "${ED}usr/$(get_libdir)/apr.exp"
196 }