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