embperl move, bug 162120
authorMichael Cummings <mcummings@gentoo.org>
Sat, 20 Jan 2007 15:30:31 +0000 (15:30 +0000)
committerMichael Cummings <mcummings@gentoo.org>
Sat, 20 Jan 2007 15:30:31 +0000 (15:30 +0000)
Package-Manager: portage-2.1.2-r1

www-apps/Embperl/ChangeLog [new file with mode: 0644]
www-apps/Embperl/Embperl-2.0_rc4.ebuild [new file with mode: 0644]
www-apps/Embperl/Manifest [new file with mode: 0644]
www-apps/Embperl/files/78_mod_embperl.conf [new file with mode: 0644]
www-apps/Embperl/files/Embperl-2.0_rc4-Makefile.PL.patch [new file with mode: 0644]
www-apps/Embperl/files/digest-Embperl-2.0_rc4 [new file with mode: 0644]
www-apps/Embperl/metadata.xml [new file with mode: 0644]

diff --git a/www-apps/Embperl/ChangeLog b/www-apps/Embperl/ChangeLog
new file mode 100644 (file)
index 0000000..1b77e6f
--- /dev/null
@@ -0,0 +1,23 @@
+# ChangeLog for www-apache/Embperl
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/Embperl/ChangeLog,v 1.1 2007/01/20 15:30:31 mcummings Exp $
+
+  20 Jan 2007; Michael Cummings <mcummings@gentoo.org>
+  +files/78_mod_embperl.conf, +files/Embperl-2.0_rc4-Makefile.PL.patch,
+  +metadata.xml, +Embperl-2.0_rc4.ebuild:
+  embperl move, bug 162120
+
+  04 Sep 2006; Michael Cummings <mcummings@gentoo.org>
+  Embperl-2.0_rc4.ebuild:
+  Keywording ~amd64
+
+  13 Feb 2006; Michael Cummings <mcummings@gentoo.org>
+  Embperl-2.0_rc4.ebuild:
+  Virtuals for some perl-core deps
+
+*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-apps/Embperl/Embperl-2.0_rc4.ebuild b/www-apps/Embperl/Embperl-2.0_rc4.ebuild
new file mode 100644 (file)
index 0000000..d789025
--- /dev/null
@@ -0,0 +1,81 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/Embperl/Embperl-2.0_rc4.ebuild,v 1.1 2007/01/20 15:30:31 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="~amd64 ~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
+       virtual/perl-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-apps/Embperl/Manifest b/www-apps/Embperl/Manifest
new file mode 100644 (file)
index 0000000..c8bfd22
--- /dev/null
@@ -0,0 +1,34 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 78_mod_embperl.conf 685 RMD160 f4c0ba67af72a83088e97465d7c82362ebe5731a SHA1 1aeaba6197cd60b654b2d59902aed5e8fb7a3aad SHA256 3a3f6189e1bd81269d08eac33bcf343550d4b3c7806e531e522391c3fb8de2d5
+MD5 4c7ce26a3b5030b2f1386e5cc57c2562 files/78_mod_embperl.conf 685
+RMD160 f4c0ba67af72a83088e97465d7c82362ebe5731a files/78_mod_embperl.conf 685
+SHA256 3a3f6189e1bd81269d08eac33bcf343550d4b3c7806e531e522391c3fb8de2d5 files/78_mod_embperl.conf 685
+AUX Embperl-2.0_rc4-Makefile.PL.patch 1012 RMD160 9e6257d5a38c1be2f15fa1a2b3262706b44a052f SHA1 32196675c3d154d6810a9226b58d50c875baa330 SHA256 7390ba068c34f11cbde8c19ac0148f0a7e1992fb0a2d292d6f999fd7dcc65045
+MD5 22136f2c88c432c9e2a284531451d2b7 files/Embperl-2.0_rc4-Makefile.PL.patch 1012
+RMD160 9e6257d5a38c1be2f15fa1a2b3262706b44a052f files/Embperl-2.0_rc4-Makefile.PL.patch 1012
+SHA256 7390ba068c34f11cbde8c19ac0148f0a7e1992fb0a2d292d6f999fd7dcc65045 files/Embperl-2.0_rc4-Makefile.PL.patch 1012
+DIST Embperl-2.0rc4.tar.gz 653673 RMD160 43de01d36fc3fbd3606ee812fcab4c3829d1af60 SHA1 12f377d98fee59777b9f1d7815349fe732053c3c SHA256 b1512f36d4ceb6d404eaff236334c338fca7d916cf0373a435fcc21009e8f866
+EBUILD Embperl-2.0_rc4.ebuild 2060 RMD160 67d46eafa6a4426b711594162d1b3473844aa62c SHA1 c2cbeccb79f37e002374cf14616c647f0721ad07 SHA256 bedabecfe9c2f687cff772a65a1df95613f822eda5b906da864917542c9aa8b1
+MD5 b10938ecfacb1893f480597fc26aaa69 Embperl-2.0_rc4.ebuild 2060
+RMD160 67d46eafa6a4426b711594162d1b3473844aa62c Embperl-2.0_rc4.ebuild 2060
+SHA256 bedabecfe9c2f687cff772a65a1df95613f822eda5b906da864917542c9aa8b1 Embperl-2.0_rc4.ebuild 2060
+MISC ChangeLog 789 RMD160 5042084e445552ed32111588b1991012050047c0 SHA1 4785a42ff9d51c3970c05403df9673e8b4326b8f SHA256 9e488ea19198078d304f5227d0e790670343e4e4fedf92777c32c06fa7067b1f
+MD5 2b3a6f13476f9123b1a3b9f8eb1927ce ChangeLog 789
+RMD160 5042084e445552ed32111588b1991012050047c0 ChangeLog 789
+SHA256 9e488ea19198078d304f5227d0e790670343e4e4fedf92777c32c06fa7067b1f ChangeLog 789
+MISC metadata.xml 305 RMD160 647980838c590f54441a053916ea629e53e551c0 SHA1 99ef1deeae9a934fb6e46cf5fc4a5fcb8379a74a SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca
+MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305
+RMD160 647980838c590f54441a053916ea629e53e551c0 metadata.xml 305
+SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca metadata.xml 305
+MD5 80551a8c6a543487093063e2bbf4dcae files/digest-Embperl-2.0_rc4 244
+RMD160 136667df1afea07ecd2b9ffff2cb17c6fbf6388f files/digest-Embperl-2.0_rc4 244
+SHA256 eccf7ccd60b51acd5fc57377cdb27568946c2eef72de8592b00b5eace6a4a25c files/digest-Embperl-2.0_rc4 244
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFFsjWdtG5z4I8BtQoRAkwFAJ44bRTNmQqsfZwqvrPCk1USGvnI5gCfZ7ky
+Vt4eLMmOpS+y5hFPH9x9wTE=
+=Kzs4
+-----END PGP SIGNATURE-----
diff --git a/www-apps/Embperl/files/78_mod_embperl.conf b/www-apps/Embperl/files/78_mod_embperl.conf
new file mode 100644 (file)
index 0000000..6d27d85
--- /dev/null
@@ -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-apps/Embperl/files/Embperl-2.0_rc4-Makefile.PL.patch b/www-apps/Embperl/files/Embperl-2.0_rc4-Makefile.PL.patch
new file mode 100644 (file)
index 0000000..076d725
--- /dev/null
@@ -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-apps/Embperl/files/digest-Embperl-2.0_rc4 b/www-apps/Embperl/files/digest-Embperl-2.0_rc4
new file mode 100644 (file)
index 0000000..2611d51
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 631fcaf865348ed4b9e9bf69d4d7ac47 Embperl-2.0rc4.tar.gz 653673
+RMD160 43de01d36fc3fbd3606ee812fcab4c3829d1af60 Embperl-2.0rc4.tar.gz 653673
+SHA256 b1512f36d4ceb6d404eaff236334c338fca7d916cf0373a435fcc21009e8f866 Embperl-2.0rc4.tar.gz 653673
diff --git a/www-apps/Embperl/metadata.xml b/www-apps/Embperl/metadata.xml
new file mode 100644 (file)
index 0000000..86672fe
--- /dev/null
@@ -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>