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