diff options
author | Michael Cummings <mcummings@gentoo.org> | 2005-08-08 12:51:39 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2005-08-08 12:51:39 +0000 |
commit | d67b94f9248130fdd11c3d6a799cd8f8276afbda (patch) | |
tree | c3f19a9d158976e4ec24cc3004763df058e45479 /www-apache/Embperl | |
parent | Tested on a ppc, dep for embperl (diff) | |
download | gentoo-2-d67b94f9248130fdd11c3d6a799cd8f8276afbda.tar.gz gentoo-2-d67b94f9248130fdd11c3d6a799cd8f8276afbda.tar.bz2 gentoo-2-d67b94f9248130fdd11c3d6a799cd8f8276afbda.zip |
Bug 5234, rebuild by rendhalver
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'www-apache/Embperl')
-rw-r--r-- | www-apache/Embperl/ChangeLog | 10 | ||||
-rw-r--r-- | www-apache/Embperl/Embperl-2.0_rc4.ebuild | 81 | ||||
-rw-r--r-- | www-apache/Embperl/Manifest | 4 | ||||
-rw-r--r-- | www-apache/Embperl/files/78_mod_embperl.conf | 29 | ||||
-rw-r--r-- | www-apache/Embperl/files/Embperl-2.0_rc4-Makefile.PL.patch | 32 | ||||
-rw-r--r-- | www-apache/Embperl/files/digest-Embperl-2.0_rc4 | 1 | ||||
-rw-r--r-- | www-apache/Embperl/metadata.xml | 10 |
7 files changed, 167 insertions, 0 deletions
diff --git a/www-apache/Embperl/ChangeLog b/www-apache/Embperl/ChangeLog new file mode 100644 index 000000000000..82358d809378 --- /dev/null +++ b/www-apache/Embperl/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for www-apache/Embperl +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/Embperl/ChangeLog,v 1.1 2005/08/08 12:51:39 mcummings Exp $ + +*Embperl-2.0_rc4 (08 Aug 2005) + + 08 Aug 2005; Michael Cummings <mcummings@gentoo.org> +metadata.xml, + +Embperl-2.0_rc4.ebuild: + Bug 5234, ebuild by rendhalver + diff --git a/www-apache/Embperl/Embperl-2.0_rc4.ebuild b/www-apache/Embperl/Embperl-2.0_rc4.ebuild new file mode 100644 index 000000000000..74fa528c475a --- /dev/null +++ b/www-apache/Embperl/Embperl-2.0_rc4.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/Embperl/Embperl-2.0_rc4.ebuild,v 1.1 2005/08/08 12:51:39 mcummings Exp $ + +inherit perl-module eutils + +MY_P=${P/_/} +S=${WORKDIR}/${MY_P} +DESCRIPTION="Framework for building websites with Perl." +SRC_URI="mirror://cpan/authors/id/G/GR/GRICHTER/${MY_P}.tar.gz" +HOMEPAGE="http://perl.apache.org/embperl/" + +IUSE="session apache2 modperl" +#xalan session +SLOT="0" +LICENSE="|| ( Artistic GPL-2 )" +KEYWORDS="~ppc ~x86" +# tests bork at the moment but it seems to run +#SRC_TEST="do" + +DEPEND="${DEPEND} + modperl? ( apache2? ( >=www-apache/mod_perl-2.0.1 ) ) + dev-perl/libwww-perl + session? ( >=dev-perl/Apache-Session-1.60 + dev-perl/Apache-SessionX ) + dev-perl/HTML-Parser + perl-core/CGI + dev-libs/libxml2 + >=dev-libs/libxslt-1.0.4" + # Leftout until xalan is keyworded + # xalan? ( dev-libs/xalan-c ) + + +src_unpack() { + + unpack ${A} + + # patch the Makefile.PL to stop it asking questions + cd ${S}; epatch ${FILESDIR}/${P}-Makefile.PL.patch +} + +perl-module_src_prep() { + + perlinfo + + export PERL_MM_USE_DEFAULT=1 + +# if use xalan; then +# XALANPATH="" +# else +# XALANPATH="." +# fi + + SRC_PREP="yes" + einfo "Using ExtUtils::MakeMaker" + XALANPATH="." EPHTTPD="/usr/sbin/apache2" perl Makefile.PL ${myconf} \ + PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} +} + +src_install () { + # first run the perl install function + perl-module_src_install + + # add a symlink for Embperl.so to make loading it easier + dodir /usr/lib/apache2/modules + dosym ${VENDOR_ARCH}/auto/${PN}/${PN}.so /usr/lib/apache2/modules/mod_embperl.so + insinto /etc/apache2/modules.d + doins ${FILESDIR}/78_mod_embperl.conf + +} + +pkg_postinst() { + einfo + einfo "To enable ${PN}, you need to edit your /etc/conf.d/apache2 file and" + einfo "add '-D EMBPERL' to APACHE2_OPTS." + einfo "Configuration file installed as" + einfo " /etc/apache2/modules.d/78_mod_embperl.conf" + einfo "You may want to edit it before turning the module on in /etc/conf.d/apache2" + einfo + +} diff --git a/www-apache/Embperl/Manifest b/www-apache/Embperl/Manifest new file mode 100644 index 000000000000..eb9291a58821 --- /dev/null +++ b/www-apache/Embperl/Manifest @@ -0,0 +1,4 @@ +MD5 7cd2d621211b8aa2aef44e43a9d0a25e Embperl-2.0_rc4.ebuild 1914 +MD5 82d8871b5c822fe921775f3ea65c8686 files/digest-Embperl-2.0_rc4 66 +MD5 4c7ce26a3b5030b2f1386e5cc57c2562 files/78_mod_embperl.conf 685 +MD5 22136f2c88c432c9e2a284531451d2b7 files/Embperl-2.0_rc4-Makefile.PL.patch 1012 diff --git a/www-apache/Embperl/files/78_mod_embperl.conf b/www-apache/Embperl/files/78_mod_embperl.conf new file mode 100644 index 000000000000..6d27d85dfa8f --- /dev/null +++ b/www-apache/Embperl/files/78_mod_embperl.conf @@ -0,0 +1,29 @@ +<IfDefine EMBPERL> + <IfModule !mod_embperl.c> + LoadModule embperl_module modules/mod_embperl.so + </IfModule> +</IfDefine> + +<IfModule mod_embperl.c> + PerlModule Embperl + + AddType text/html .epl + + <Files *.epl> + SetHandler perl-script + PerlHandler Embperl + Options ExecCGI + </files> + + # please edit this section below to suit your requirements + #PerlModule Embperl::Object + #<Location /Embperl> + #Embperl_AppName Test-App + #Embperl_Object_Base base.htm + #Embperl_UriMatch "\.htm.?|\.epl$" + #SetHandler perl-script + #PerlHandler Embperl::Object + #Options ExecCGI + #</Location> + +</ifModule> diff --git a/www-apache/Embperl/files/Embperl-2.0_rc4-Makefile.PL.patch b/www-apache/Embperl/files/Embperl-2.0_rc4-Makefile.PL.patch new file mode 100644 index 000000000000..076d725fedb7 --- /dev/null +++ b/www-apache/Embperl/files/Embperl-2.0_rc4-Makefile.PL.patch @@ -0,0 +1,32 @@ +--- Makefile.PL.orig 2005-07-30 20:57:42.000000000 +1000 ++++ Makefile.PL 2005-07-30 21:31:49.000000000 +1000 +@@ -619,7 +619,8 @@ + $base = $ENV{'ProgramFiles'} if ($win32) ; + + +-$apache = GetYesNo ("Build with support for Apache mod_perl?", 'y') if (!$apache) ; ++#$apache = GetYesNo ("Build with support for Apache mod_perl?", 'y') if (!$apache) ; ++$apache = 1; + + if ($apache && $apache_src ne '') + { +@@ -634,7 +635,8 @@ + + if (-e "$apache_src/httpd.h" || -e "$apache_src/main/httpd.h" || -e "$apache_src/include/httpd.h") + { +- $b = GetYesNo ("Use $apache_src as Apache source", 'y') if (!$b) ; ++ #$b = GetYesNo ("Use $apache_src as Apache source", 'y') if (!$b) ; ++ $b = 1; + } + } + +@@ -652,7 +654,8 @@ + + if (-e "$src_dir/httpd.h" || -e "$src_dir/main/httpd.h" || -e "$src_dir/include/httpd.h") + { +- $b = GetYesNo ("Use $src_dir as Apache source", 'y') ; ++ #$b = GetYesNo ("Use $src_dir as Apache source", 'y') ; ++ $b = 1; + if ($b) + { + $apache_src = $src_dir ; diff --git a/www-apache/Embperl/files/digest-Embperl-2.0_rc4 b/www-apache/Embperl/files/digest-Embperl-2.0_rc4 new file mode 100644 index 000000000000..ebd32e4d9e71 --- /dev/null +++ b/www-apache/Embperl/files/digest-Embperl-2.0_rc4 @@ -0,0 +1 @@ +MD5 631fcaf865348ed4b9e9bf69d4d7ac47 Embperl-2.0rc4.tar.gz 653673 diff --git a/www-apache/Embperl/metadata.xml b/www-apache/Embperl/metadata.xml new file mode 100644 index 000000000000..86672fe64c10 --- /dev/null +++ b/www-apache/Embperl/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>perl</herd> + <maintainer> + <email>perl@gentoo.org</email> + <description>Primary Maintainer</description> + </maintainer> + <longdescription></longdescription> +</pkgmetadata> |