Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/apr: apr-1.5.0-r1.ebuild ChangeLog
Date: Wed, 22 Jan 2014 21:22:47
Message-Id: 20140122212243.609B02004E@flycatcher.gentoo.org
1 vapier 14/01/22 21:22:43
2
3 Modified: ChangeLog
4 Added: apr-1.5.0-r1.ebuild
5 Log:
6 Generate & use local libtool #374355 by Justin Lecher.
7
8 (Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.204 dev-libs/apr/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/ChangeLog?rev=1.204&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/ChangeLog?rev=1.204&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/ChangeLog?r1=1.203&r2=1.204
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/apr/ChangeLog,v
20 retrieving revision 1.203
21 retrieving revision 1.204
22 diff -u -r1.203 -r1.204
23 --- ChangeLog 21 Jan 2014 00:12:07 -0000 1.203
24 +++ ChangeLog 22 Jan 2014 21:22:43 -0000 1.204
25 @@ -1,6 +1,12 @@
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.203 2014/01/21 00:12:07 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/apr/ChangeLog,v 1.204 2014/01/22 21:22:43 vapier Exp $
30 +
31 +*apr-1.5.0-r1 (22 Jan 2014)
32 +
33 + 22 Jan 2014; Mike Frysinger <vapier@g.o> +apr-1.5.0-r1.ebuild,
34 + +files/apr-1.5.0-libtool.patch:
35 + Generate & use local libtool #374355 by Justin Lecher.
36
37 21 Jan 2014; Mike Frysinger <vapier@g.o> apr-1.4.8-r1.ebuild,
38 apr-1.5.0.ebuild:
39
40
41
42 1.1 dev-libs/apr/apr-1.5.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/apr-1.5.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr/apr-1.5.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: apr-1.5.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 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.5.0-r1.ebuild,v 1.1 2014/01/22 21:22:43 vapier Exp $
52
53 EAPI="4"
54
55 inherit autotools eutils libtool multilib toolchain-funcs
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 ~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"
64 IUSE="doc elibc_FreeBSD older-kernels-compatibility static-libs +urandom"
65
66 RDEPEND="elibc_glibc? ( >=sys-apps/util-linux-2.16 )
67 elibc_mintlib? ( >=sys-apps/util-linux-2.18 )"
68 DEPEND="${RDEPEND}
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.4.8-libtool.patch
76
77 # Apply user patches, bug #449048
78 epatch_user
79
80 AT_M4DIR="build" eautoreconf
81 elibtoolize
82
83 epatch "${FILESDIR}/config.layout.patch"
84 }
85
86 src_configure() {
87 local myconf
88
89 [[ ${CHOST} == *-mint* ]] && export ac_cv_func_poll=no
90
91 if use older-kernels-compatibility; then
92 local apr_cv_accept4 apr_cv_dup3 apr_cv_epoll_create1 apr_cv_sock_cloexec
93 export apr_cv_accept4="no"
94 export apr_cv_dup3="no"
95 export apr_cv_epoll_create1="no"
96 export apr_cv_sock_cloexec="no"
97 fi
98 if tc-is-cross-compiler; then
99 export apr_cv_tcp_nodelay_with_cork="yes"
100 fi
101
102 if use urandom; then
103 myconf+=" --with-devrandom=/dev/urandom"
104 elif (( ${CHOST#*-hpux11.} <= 11 )); then
105 : # no /dev/*random on hpux11.11 and before, $PN detects this.
106 else
107 myconf+=" --with-devrandom=/dev/random"
108 fi
109
110 if [[ ${CHOST} == *-mint* ]] ; then
111 myconf+=" --disable-dso"
112 fi
113
114 # shl_load does not search runpath, but hpux11 supports dlopen
115 [[ ${CHOST} == *-hpux11* ]] && myconf="${myconf} --enable-dso=dlfcn"
116
117 if [[ ${CHOST} == *-solaris2.10 ]]; then
118 case $(<$([[ ${CHOST} != ${CBUILD} ]] && echo "${EPREFIX}/usr/${CHOST}")/usr/include/atomic.h) in
119 *atomic_cas_ptr*) ;;
120 *)
121 elog "You do not have Solaris Patch ID "$(
122 [[ ${CHOST} == sparc* ]] && echo 118884 || echo 118885
123 )" (Problem 4954703) installed on your host ($(hostname)),"
124 elog "using generic atomic operations instead."
125 myconf="${myconf} --disable-nonportable-atomics"
126 ;;
127 esac
128 fi
129
130 CONFIG_SHELL="${EPREFIX}"/bin/bash econf \
131 --enable-layout=gentoo \
132 --enable-nonportable-atomics \
133 --enable-threads \
134 ${myconf}
135 }
136
137 src_compile() {
138 emake
139
140 if use doc; then
141 emake dox
142 fi
143 }
144
145 src_install() {
146 default
147
148 find "${ED}" -name "*.la" -exec rm -f {} +
149
150 if use doc; then
151 dohtml -r docs/dox/html/*
152 fi
153
154 if ! use static-libs; then
155 find "${ED}" -name "*.a" -exec rm -f {} +
156 fi
157
158 # This file is only used on AIX systems, which Gentoo is not,
159 # and causes collisions between the SLOTs, so remove it.
160 # Even in Prefix, we don't need this on AIX.
161 rm -f "${ED}usr/$(get_libdir)/apr.exp"
162 }