1 |
commit: 790b991cd3ae84f07f5b77fe32f42583bb5d57f5 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 31 06:49:14 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 31 06:56:31 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=790b991c |
7 |
|
8 |
dev-libs/apr-util: Revbump to remove mysql support (bug #620230). |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-libs/apr-util/apr-util-1.5.4-r2.ebuild | 130 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 130 insertions(+) |
14 |
|
15 |
diff --git a/dev-libs/apr-util/apr-util-1.5.4-r2.ebuild b/dev-libs/apr-util/apr-util-1.5.4-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..3bb7a167d63 |
18 |
--- /dev/null |
19 |
+++ b/dev-libs/apr-util/apr-util-1.5.4-r2.ebuild |
20 |
@@ -0,0 +1,130 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+# Usually apr-util has the same PV as apr, but in case of security fixes, this may change. |
27 |
+# APR_PV="${PV}" |
28 |
+APR_PV="1.5.2" |
29 |
+ |
30 |
+inherit autotools db-use eutils libtool multilib toolchain-funcs |
31 |
+ |
32 |
+DESCRIPTION="Apache Portable Runtime Utility Library" |
33 |
+HOMEPAGE="http://apr.apache.org/" |
34 |
+SRC_URI="mirror://apache/apr/${P}.tar.bz2" |
35 |
+ |
36 |
+LICENSE="Apache-2.0" |
37 |
+SLOT="1" |
38 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
39 |
+IUSE="berkdb doc freetds gdbm ldap libressl nss odbc openssl postgres sqlite static-libs" |
40 |
+#RESTRICT="test" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ dev-libs/expat |
44 |
+ >=dev-libs/apr-${APR_PV}:1 |
45 |
+ berkdb? ( >=sys-libs/db-4:= ) |
46 |
+ freetds? ( dev-db/freetds ) |
47 |
+ gdbm? ( sys-libs/gdbm ) |
48 |
+ ldap? ( =net-nds/openldap-2* ) |
49 |
+ nss? ( dev-libs/nss ) |
50 |
+ odbc? ( dev-db/unixODBC ) |
51 |
+ openssl? ( |
52 |
+ !libressl? ( dev-libs/openssl:0 ) |
53 |
+ libressl? ( dev-libs/libressl ) |
54 |
+ ) |
55 |
+ postgres? ( dev-db/postgresql:= ) |
56 |
+ sqlite? ( dev-db/sqlite:3 ) |
57 |
+" |
58 |
+DEPEND=" |
59 |
+ ${RDEPEND} |
60 |
+ >=sys-devel/libtool-2.4.2 |
61 |
+ doc? ( app-doc/doxygen ) |
62 |
+" |
63 |
+ |
64 |
+DOCS=(CHANGES NOTICE README) |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}"/${PN}-1.5.3-sysroot.patch #385775 |
68 |
+) |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ default |
72 |
+ mv configure.{in,ac} || die |
73 |
+ eautoreconf |
74 |
+ elibtoolize |
75 |
+} |
76 |
+ |
77 |
+src_configure() { |
78 |
+ local myconf=() |
79 |
+ |
80 |
+ tc-is-static-only && myconf+=( --disable-util-dso ) |
81 |
+ |
82 |
+ if use berkdb; then |
83 |
+ local db_version |
84 |
+ db_version="$(db_findver sys-libs/db)" || die "Unable to find Berkeley DB version" |
85 |
+ db_version="$(db_ver_to_slot "${db_version}")" |
86 |
+ db_version="${db_version/\./}" |
87 |
+ myconf+=( |
88 |
+ --with-dbm=db${db_version} |
89 |
+ # We use $T for the libdir because otherwise it'd simply be the normal |
90 |
+ # system libdir. That's pointless as the compiler will search it for |
91 |
+ # us already. This makes cross-compiling and such easier. |
92 |
+ --with-berkeley-db="${SYSROOT}$(db_includedir 2>/dev/null):${T}" |
93 |
+ ) |
94 |
+ else |
95 |
+ myconf+=( --without-berkeley-db ) |
96 |
+ fi |
97 |
+ |
98 |
+ if use nss || use openssl ; then |
99 |
+ myconf+=( --with-crypto ) # 518708 |
100 |
+ fi |
101 |
+ |
102 |
+ local myeconfargs=( |
103 |
+ --datadir="${EPREFIX}"/usr/share/apr-util-1 |
104 |
+ --with-apr="${SYSROOT}${EPREFIX}"/usr |
105 |
+ --with-expat="${EPREFIX}"/usr |
106 |
+ --without-mysql |
107 |
+ --without-sqlite2 |
108 |
+ $(use_with freetds) |
109 |
+ $(use_with gdbm) |
110 |
+ $(use_with ldap) |
111 |
+ $(use_with nss) |
112 |
+ $(use_with odbc) |
113 |
+ $(use_with openssl) |
114 |
+ $(use_with postgres pgsql) |
115 |
+ $(use_with sqlite sqlite3) |
116 |
+ "${myconf[@]}" |
117 |
+ ) |
118 |
+ econf "${myeconfargs[@]}" |
119 |
+ # Use the current env build settings rather than whatever apr was built with. |
120 |
+ sed -i -r \ |
121 |
+ -e "/^(apr_builddir|apr_builders|top_builddir)=/s:=:=${SYSROOT}:" \ |
122 |
+ -e "/^CC=/s:=.*:=$(tc-getCC):" \ |
123 |
+ -e '/^(C|CPP|CXX|LD)FLAGS=/d' \ |
124 |
+ -e '/^LTFLAGS/s:--silent::' \ |
125 |
+ build/rules.mk || die |
126 |
+} |
127 |
+ |
128 |
+src_compile() { |
129 |
+ emake |
130 |
+ use doc && emake dox |
131 |
+} |
132 |
+ |
133 |
+src_install() { |
134 |
+ default |
135 |
+ |
136 |
+ find "${ED}" -name "*.la" -delete || die |
137 |
+ find "${ED}usr/$(get_libdir)/apr-util-${SLOT}" -name "*.a" -delete || die |
138 |
+ if ! use static-libs ; then |
139 |
+ find "${ED}" -name "*.a" -not -name "*$(get_libname)" -delete || die |
140 |
+ fi |
141 |
+ |
142 |
+ if use doc ; then |
143 |
+ docinto html |
144 |
+ dodoc -r docs/dox/html/* |
145 |
+ fi |
146 |
+ |
147 |
+ # This file is only used on AIX systems, which Gentoo is not, |
148 |
+ # and causes collisions between the SLOTs, so remove it. |
149 |
+ rm "${ED}usr/$(get_libdir)/aprutil.exp" || die |
150 |
+} |