aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-libapreq2
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2013-09-01 14:37:05 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2013-09-01 14:37:26 +0000
commit2ea6a936fd59d316b21bf9899004fec28b05c4a0 (patch)
tree65d6bad6bc1bf0e9d7b854f3eb5f7eb6e5ed4194 /testing/perl-libapreq2
parente4f2fc7c33a350c8df133525b76037fdfb44e81e (diff)
downloadaports-2ea6a936fd59d316b21bf9899004fec28b05c4a0.tar.bz2
aports-2ea6a936fd59d316b21bf9899004fec28b05c4a0.tar.xz
testing/perl-libapreq2: new aport
Diffstat (limited to 'testing/perl-libapreq2')
-rw-r--r--testing/perl-libapreq2/APKBUILD58
-rw-r--r--testing/perl-libapreq2/libapreq2-2.08-doc.patch24
2 files changed, 55 insertions, 27 deletions
diff --git a/testing/perl-libapreq2/APKBUILD b/testing/perl-libapreq2/APKBUILD
index 8f0c52e786..9a0003dc25 100644
--- a/testing/perl-libapreq2/APKBUILD
+++ b/testing/perl-libapreq2/APKBUILD
@@ -3,45 +3,49 @@
pkgname=perl-libapreq2
_pkgreal=libapreq2
pkgver=2.13
-pkgrel=2
+pkgrel=0
pkgdesc="Perl module for libapreq2"
url="http://search.cpan.org/dist/libapreq2/"
arch="all"
-license="APACHE"
-cpandepends="perl-extutils-xsbuilder perl-test-simple"
+license="GPL PerlArtistic"
+cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
-makedepends="perl-dev apache2-dev apache2-mod-perl-dev m4 libtool automake autoconf $cpanmakedepends"
-install="$pkgname.post-install"
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-doc $pkgname-dev"
+makedepends="perl-extutils-xsbuilder libtool"
source="http://search.cpan.org/CPAN/authors/id/I/IS/ISAAC/$_pkgreal-$pkgver.tar.gz
- $pkgname.conf"
+ libapreq2-2.08-doc.patch"
_builddir="$srcdir/$_pkgreal-$pkgver"
-build() {
- cd "$_builddir"
- PREFIX=/usr/lib perl Makefile.PL
- make || return 1
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
}
-package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" INSTALLDIRS="vendor" install || return 1
- install -Dm644 ../../$pkgname.conf "$pkgdir"/etc/apache2/conf.d/mod-perl-apreq2.conf || return 1
- rm -f "$pkgdir"/usr/lib/*.la \
- "$pkgdir"/usr/lib/apache2/*.la
- find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+build() {
+ cd $_builddir
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL --with-apache2-apxs=/usr/bin/apxs \
+ --enable-perl-glue
+ make || return 1
}
-doc() {
- arch="noarch"
- # doc files
- _docs="LICENSE README"
- for _doc in $_docs; do
- install -Dm644 "$_builddir"/$_doc \
- "$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1
- done
+package() {
+ cd $_builddir
+ make DESTDIR="$pkgdir" INSTALLDIRS="vendor" install
+ find "$pkgdir" -name mod_apreq2.la -delete
+ find "$pkgdir" -name libapreq2.la -delete
+ find "$pkgdir" -name perllocal.pod -delete
+ find "$pkgdir" -name .packlist -delete
}
md5sums="c11fb0861aa84dcc6cd0f0798b045eee libapreq2-2.13.tar.gz
-90288cabd74c73d76be4e7a27a620f9b perl-libapreq2.conf"
+4767fca9baf95b7bbf8b5bfd6bf461e7 libapreq2-2.08-doc.patch"
+sha256sums="5731e6833b32d88e4a5c690e45ddf20fcf969ce3da666c5627d775e92da0cf6e libapreq2-2.13.tar.gz
+2ceee7ec3bf91a48b42094ce31ab1449b7193ea4c31aca0764ac98f13da5dccc libapreq2-2.08-doc.patch"
+sha512sums="54553cb90c0d3f6fb34ff19364c5804976c4aff1bae551ae051fdd06f41695770f1e285c40e03dbd93ae738adc332f38f1a1994167598364071feaec833fdf05 libapreq2-2.13.tar.gz
+dc889d7890d9059efdb3fcd4d6b1e485929b69c073ff6266b90f82e89efe5bdd633fd4dc09ccd4aac3f8816271c00dca69b39ffe4706baf7d3094404784cd766 libapreq2-2.08-doc.patch"
diff --git a/testing/perl-libapreq2/libapreq2-2.08-doc.patch b/testing/perl-libapreq2/libapreq2-2.08-doc.patch
new file mode 100644
index 0000000000..a1e4440703
--- /dev/null
+++ b/testing/perl-libapreq2/libapreq2-2.08-doc.patch
@@ -0,0 +1,24 @@
+diff -Naurp libapreq2-2.08.old/build/doxygen.conf libapreq2-2.08/build/doxygen.conf
+--- libapreq2-2.08.old/build/doxygen.conf 2006-08-09 00:30:19.000000000 -0400
++++ libapreq2-2.08/build/doxygen.conf 2007-05-05 07:54:21.000000000 -0400
+@@ -27,7 +27,7 @@ WARN_IF_UNDOCUMENTED = YES
+ WARN_IF_DOC_ERROR = YES
+ WARN_FORMAT = "$file:$line: $text"
+
+-INPUT = . include module/apache module/apache2
++INPUT = . include module/apache2
+ FILE_PATTERNS = *.h *.dox CHANGES STATUS
+ RECURSIVE = NO
+ EXTRACT_STATIC = YES
+diff -Naurp libapreq2-2.08.old/build/doxygen.conf.in libapreq2-2.08/build/doxygen.conf.in
+--- libapreq2-2.08.old/build/doxygen.conf.in 2006-08-09 00:26:44.000000000 -0400
++++ libapreq2-2.08/build/doxygen.conf.in 2007-05-05 07:57:18.000000000 -0400
+@@ -27,7 +27,7 @@ WARN_IF_UNDOCUMENTED = YES
+ WARN_IF_DOC_ERROR = YES
+ WARN_FORMAT = "$file:$line: $text"
+
+-INPUT = . include module/apache module/apache2
++INPUT = . include module/apache2
+ FILE_PATTERNS = *.h *.dox CHANGES STATUS
+ RECURSIVE = NO
+ EXTRACT_STATIC = YES