diff options
author | Sam James <sam@gentoo.org> | 2020-11-17 22:59:25 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2020-11-17 23:02:06 +0000 |
commit | 22dc9ed6b5cc0884b2724dbc354ae63835ee3673 (patch) | |
tree | 95cb0cafac38fa48fd1ca9eda0d5f19ca244dd4b /www-apache | |
parent | Revert "net-im/zoom: Version bump to 5.4.54779.1115." (diff) | |
download | gentoo-22dc9ed6b5cc0884b2724dbc354ae63835ee3673.tar.gz gentoo-22dc9ed6b5cc0884b2724dbc354ae63835ee3673.tar.bz2 gentoo-22dc9ed6b5cc0884b2724dbc354ae63835ee3673.zip |
www-apache/libapreq2: bump to 2.15
Bug: https://bugs.gentoo.org/755164
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'www-apache')
-rw-r--r-- | www-apache/libapreq2/Manifest | 1 | ||||
-rw-r--r-- | www-apache/libapreq2/libapreq2-2.15.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/www-apache/libapreq2/Manifest b/www-apache/libapreq2/Manifest index 00cb7fd82958..d72320403b1e 100644 --- a/www-apache/libapreq2/Manifest +++ b/www-apache/libapreq2/Manifest @@ -1 +1,2 @@ DIST libapreq2-2.13.tar.gz 891320 BLAKE2B 6e896b95a17d7e4eede651bd74f21280d77b38c1c96be790c34993307a0435ea6d4626825dc215680e1fa2cd6a3ec635fcbeb9fda3b34e687ed8f7641b4fee7e SHA512 54553cb90c0d3f6fb34ff19364c5804976c4aff1bae551ae051fdd06f41695770f1e285c40e03dbd93ae738adc332f38f1a1994167598364071feaec833fdf05 +DIST libapreq2-2.15.tar.gz 839618 BLAKE2B 875aa8091512cf6b43c8654579b3d4779ea50835784380dcf69ca048f9b8d4ef6e573fef5ee03c0e47a929dcd8c4643d5dc861d875122095024bca6e8fbbf38c SHA512 abdc34f4867ba891966e7296c8110cffaa723f9b966522a1de352bc459e89e5cfc60de25dcd20cf0fa9b7cdf9282719b0276b621af8aa7bb770c89a7fbae4701 diff --git a/www-apache/libapreq2/libapreq2-2.15.ebuild b/www-apache/libapreq2/libapreq2-2.15.ebuild new file mode 100644 index 000000000000..03aadcb290e7 --- /dev/null +++ b/www-apache/libapreq2/libapreq2-2.15.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit apache-module perl-module + +DESCRIPTION="A library for manipulating client request data via the Apache API" +SRC_URI="mirror://apache/httpd/libapreq/${P}.tar.gz" +HOMEPAGE="https://httpd.apache.org/apreq/" + +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="perl test" +RESTRICT="!test? ( test )" + +RDEPEND=" + perl? ( + >=dev-perl/ExtUtils-XSBuilder-0.23 + virtual/perl-version + >=www-apache/mod_perl-2 + ) +" +DEPEND="${RDEPEND} + test? ( dev-perl/Apache-Test ) +" + +PATCHES=( + "${FILESDIR}"/libapreq2-2.08-doc.patch +) + +APACHE2_MOD_FILE="module/apache2/.libs/mod_apreq2.so" +APACHE2_MOD_CONF="76_mod_apreq" +APACHE2_MOD_DEFINE="APREQ" +DOCFILES="docs/html/*.html CHANGES README INSTALL MANIFEST" + +need_apache2 + +pkg_setup() { + perl_set_version +} + +src_prepare() { + default + + sed -i -e "s/PERL \$PERL_OPTS/PERL/" "${S}"/acinclude.m4 || die + sed -i -e "s/PERL \$PERL_OPTS/PERL/" "${S}"/aclocal.m4 || die + sed -i -e "s/PERL \$PERL_OPTS/PERL/" "${S}"/configure || die +} + +src_configure() { + econf \ + --with-apache2-apxs=${APXS} \ + $(use_enable perl perl-glue) +} + +src_install() { + APACHE_MODULESDIR="/usr/$(get_libdir)/apache2/modules" + apache-module_src_install + + make DESTDIR="${D}" INSTALLDIRS=vendor install || die "make install failed" + doman docs/man/man3/*.3 + + perl_delete_localpod + + for i in $(find "${D}" -type f -not -name '*.so'); do + if file ${i} | grep -i " text"; then + sed -i -e "s:${D}:/:g" ${i} || die + fi + done +} |