1 |
commit: 2bef9acebcab26b921d9a0c679b4ce2c162bab32 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 26 09:26:26 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 26 10:01:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bef9ace |
7 |
|
8 |
www-apache/libapreq2: add 2.17 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
www-apache/libapreq2/Manifest | 1 + |
13 |
www-apache/libapreq2/libapreq2-2.17.ebuild | 80 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 81 insertions(+) |
15 |
|
16 |
diff --git a/www-apache/libapreq2/Manifest b/www-apache/libapreq2/Manifest |
17 |
index 6356c1bf4098..1c2e18c9b0ae 100644 |
18 |
--- a/www-apache/libapreq2/Manifest |
19 |
+++ b/www-apache/libapreq2/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST libapreq2-2.16.tar.gz 839264 BLAKE2B 6a79e0281bb24962775f6c2fcc906d07a2f7643f608871018a647a225329c45516f1afe12e27c432449765463b2a4e823a728051fa73938e97ddc828b94c4732 SHA512 aa9e751a3f0d6a9cb587aa1c5408e8d9a073560860d7f653776196fe3739516df16abe943c9cb0460cfb9b68a2d79ad651cfd5e4a30a2ca34d6dc3ced73f628c |
22 |
+DIST libapreq2-2.17.tar.gz 849867 BLAKE2B d2fa15693c200925e4926f207f1e023cba59ac0bfe3af3a8ac12880020bb00625c7fa21478c6562f9995d5307151b865efb83b837f45213d73fc523a1a864899 SHA512 89b139b8673145d9e2d8fd77d36f878c519c1deb7f9b853cda2a15d34cbb619d1c5e784ba21553f23c2ef07803f07c75a83d96cd770f80e1b36283a4cbb88999 |
23 |
|
24 |
diff --git a/www-apache/libapreq2/libapreq2-2.17.ebuild b/www-apache/libapreq2/libapreq2-2.17.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..335b6354b7b6 |
27 |
--- /dev/null |
28 |
+++ b/www-apache/libapreq2/libapreq2-2.17.ebuild |
29 |
@@ -0,0 +1,80 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit apache-module perl-module |
36 |
+ |
37 |
+DESCRIPTION="A library for manipulating client request data via the Apache API" |
38 |
+HOMEPAGE="https://httpd.apache.org/apreq/" |
39 |
+SRC_URI="mirror://apache/httpd/libapreq/${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="Apache-2.0" |
42 |
+SLOT="2" |
43 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
44 |
+IUSE="perl test" |
45 |
+RESTRICT="!test? ( test )" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ || ( |
49 |
+ dev-libs/apr-util[openssl] |
50 |
+ dev-libs/apr-util[nss] |
51 |
+ ) |
52 |
+ perl? ( |
53 |
+ >=dev-perl/ExtUtils-XSBuilder-0.23 |
54 |
+ virtual/perl-version |
55 |
+ >=www-apache/mod_perl-2 |
56 |
+ ) |
57 |
+ virtual/libcrypt:=" |
58 |
+DEPEND=" |
59 |
+ ${RDEPEND} |
60 |
+ test? ( dev-perl/Apache-Test )" |
61 |
+BDEPEND="sys-apps/file" |
62 |
+ |
63 |
+PATCHES=( "${FILESDIR}"/libapreq2-2.08-doc.patch ) |
64 |
+ |
65 |
+APACHE2_MOD_FILE="module/apache2/.libs/mod_apreq2.so" |
66 |
+APACHE2_MOD_CONF="76_mod_apreq" |
67 |
+APACHE2_MOD_DEFINE="APREQ" |
68 |
+ |
69 |
+need_apache2 |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ perl_set_version |
73 |
+} |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ default |
77 |
+ |
78 |
+ sed -i -e "s/PERL \$PERL_OPTS/PERL/" acinclude.m4 aclocal.m4 configure || die |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ econf \ |
83 |
+ --disable-static \ |
84 |
+ --with-apache2-apxs=${APXS} \ |
85 |
+ $(use_enable perl perl-glue) |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ APACHE_MODULESDIR="/usr/$(get_libdir)/apache2/modules" |
90 |
+ apache-module_src_install |
91 |
+ |
92 |
+ emake DESTDIR="${D}" INSTALLDIRS=vendor install |
93 |
+ doman docs/man/man3/*.3 |
94 |
+ |
95 |
+ perl_delete_localpod |
96 |
+ |
97 |
+ HTML_DOCS=( docs/html/. ) |
98 |
+ einstalldocs |
99 |
+ dodoc INSTALL MANIFEST |
100 |
+ |
101 |
+ local f |
102 |
+ while IFS="" read -d $'\0' -r f ; do |
103 |
+ if file "${f}" | grep -i " text"; then |
104 |
+ sed -i -e "s:${ED}:/:g" "${f}" || die |
105 |
+ fi |
106 |
+ done < <(find "${ED}" -type f -not -name '*.so' -print0) |
107 |
+ |
108 |
+ find "${ED}" -name '*.la' -delete || die |
109 |
+} |