wok-next annotate apache-mod-perl/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents d958fec46c9f
children
rev   line source
al@20469 1 # SliTaz package receipt v2.
erjo@3677 2
erjo@3677 3 PACKAGE="apache-mod-perl"
al@20469 4 VERSION="2.0.10"
erjo@3677 5 CATEGORY="network"
erjo@3677 6 SHORT_DESC="PERL module for Apache"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15361 8 LICENSE="Apache"
erjo@3677 9 WEB_SITE="http://perl.apache.org/"
al@20882 10 REPOLOGY="apmod:perl"
erjo@3677 11
al@20469 12 TARBALL="mod_perl-$VERSION.tar.gz"
al@20469 13 #WGET_URL="http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/$TARBALL"
al@20469 14 WGET_URL="http://apache.ip-connect.vn.ua/perl/$TARBALL"
pascal@15361 15
al@20469 16 BUILD_DEPENDS="gdbm-dev apache-dev apr-dev apr-util-dev apache perl-dev"
al@21020 17 SPLIT="$PACKAGE-dev"
al@20469 18
al@20469 19 compile_rules() {
al@20469 20 perl Makefile.PL \
al@20469 21 MP_APXS=/usr/bin/apxs \
al@20469 22 MP_APR_CONFIG=/usr/bin/apr-1-config
pascal@15367 23 make &&
al@21020 24 make DESTDIR=$install install || return 1
al@20797 25
al@20797 26 find $install -type f -exec chmod u+w '{}' \;
erjo@3677 27 }
erjo@3677 28
al@20469 29 genpkg_rules() {
al@20469 30 case $PACKAGE in
al@20469 31 apache-mod-perl)
al@20469 32 copy @std
al@20469 33 DEPENDS="apache perl"
al@20469 34 ;;
al@20469 35 *-dev)
al@20469 36 copy @dev
al@20469 37 ;;
al@20469 38 esac
erjo@3677 39 }