diff options
author | Elfyn McBratney <beu@gentoo.org> | 2005-05-09 10:25:17 +0000 |
---|---|---|
committer | Elfyn McBratney <beu@gentoo.org> | 2005-05-09 10:25:17 +0000 |
commit | 32cc25e0e0080a2781966555e6505955f1f49d5f (patch) | |
tree | 9f902da79c28d63fe13e2bb56d6a5c1694b187b2 /www-apache/mod_perl/mod_perl-1.27-r4.ebuild | |
parent | dev-perl/mod_perl -> www-apache/mod_perl (diff) | |
download | gentoo-2-32cc25e0e0080a2781966555e6505955f1f49d5f.tar.gz gentoo-2-32cc25e0e0080a2781966555e6505955f1f49d5f.tar.bz2 gentoo-2-32cc25e0e0080a2781966555e6505955f1f49d5f.zip |
dev-perl/mod_perl -> www-apache/mod_perl
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'www-apache/mod_perl/mod_perl-1.27-r4.ebuild')
-rw-r--r-- | www-apache/mod_perl/mod_perl-1.27-r4.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/www-apache/mod_perl/mod_perl-1.27-r4.ebuild b/www-apache/mod_perl/mod_perl-1.27-r4.ebuild new file mode 100644 index 000000000000..e28dde299445 --- /dev/null +++ b/www-apache/mod_perl/mod_perl-1.27-r4.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/mod_perl-1.27-r4.ebuild,v 1.1 2005/05/09 10:20:52 beu Exp $ + +inherit eutils + +DESCRIPTION="A Perl Module for Apache" +SRC_URI="http://perl.apache.org/dist/${P}.tar.gz" +HOMEPAGE="http://perl.apache.org" + +SLOT="0" +LICENSE="Apache-1.1 as-is" +KEYWORDS="x86 amd64 ppc sparc ~alpha ~mips" + +DEPEND="dev-lang/perl dev-perl/libwww-perl =net-www/apache-1*" + +IUSE="" + +src_unpack() { + unpack ${A} + + cd ${S} + for f in "apaci/mod_perl.config.sh" "apaci/libperl.module" + do + echo "tail -1 fix in ${f}" + sed -i -e "s/tail -1/tail -n1/" ${f} + done +} + +src_compile() { + perl Makefile.PL USE_APXS=1 \ + INSTALLDIRS=vendor \ + WITH_APXS=/usr/sbin/apxs EVERYTHING=1 + + cp Makefile Makefile.orig + sed -e "s:apxs_install doc_install:doc_install:" Makefile.orig > Makefile + emake || die +} + +src_install () { + eval `perl '-V:installvendorarch'` + eval `perl '-V:installvendorlib'` + + make \ + PREFIX=${D}/usr \ + INSTALLVENDORARCH=${D}/${installvendorarch} \ + INSTALLVENDORLIB=${D}/${installvendorlib} \ + INSTALLVENDORMAN1DIR=${D}/usr/share/man/man1 \ + INSTALLVENDORMAN3DIR=${D}/usr/share/man/man3 \ + pure_vendor_install || die + + dodoc Changes CREDITS MANIFEST README SUPPORT ToDo + dohtml -r ./ + + cd apaci + exeinto /usr/lib/apache-extramodules + doexe libperl.so +} + +pkg_postinst() { + einfo + einfo "Execute \"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\"" + einfo "to have your apache.conf auto-updated for use with this module." + einfo "You should then edit your /etc/conf.d/apache file to suit." + einfo +} + +pkg_config() { + ${ROOT}/usr/sbin/apacheaddmod \ + ${ROOT}/etc/apache/conf/apache.conf \ + extramodules/libperl.so mod_perl.c perl_module \ + define=PERL + :; +} |