diff options
author | Christian Heim <phreak@gentoo.org> | 2007-08-19 11:53:44 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2007-08-19 11:53:44 +0000 |
commit | 43aa1de9431ece7ac2998820a6cfce7d0e36e6fb (patch) | |
tree | 54ed253e12b7bd5bafcc53131454f372d04e343a /www-apache/mod_python | |
parent | fix #187017 (diff) | |
download | gentoo-2-43aa1de9431ece7ac2998820a6cfce7d0e36e6fb.tar.gz gentoo-2-43aa1de9431ece7ac2998820a6cfce7d0e36e6fb.tar.bz2 gentoo-2-43aa1de9431ece7ac2998820a6cfce7d0e36e6fb.zip |
Moving dev-python/mod_python to www-apache.
(Portage version: 2.1.3.5)
Diffstat (limited to 'www-apache/mod_python')
-rw-r--r-- | www-apache/mod_python/ChangeLog | 251 | ||||
-rw-r--r-- | www-apache/mod_python/Manifest | 28 | ||||
-rw-r--r-- | www-apache/mod_python/files/16_mod_python.conf | 40 | ||||
-rw-r--r-- | www-apache/mod_python/files/digest-mod_python-3.2.10 | 3 | ||||
-rw-r--r-- | www-apache/mod_python/files/digest-mod_python-3.3.1 | 3 | ||||
-rw-r--r-- | www-apache/mod_python/metadata.xml | 20 | ||||
-rw-r--r-- | www-apache/mod_python/mod_python-3.2.10.ebuild | 60 | ||||
-rw-r--r-- | www-apache/mod_python/mod_python-3.3.1.ebuild | 66 |
8 files changed, 471 insertions, 0 deletions
diff --git a/www-apache/mod_python/ChangeLog b/www-apache/mod_python/ChangeLog new file mode 100644 index 000000000000..ec3197c55132 --- /dev/null +++ b/www-apache/mod_python/ChangeLog @@ -0,0 +1,251 @@ +# ChangeLog for dev-python/mod_python +# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_python/ChangeLog,v 1.1 2007/08/19 11:53:43 phreak Exp $ + + 19 Aug 2007; Christian Heim <phreak@gentoo.org>: + Moving dev-python/mod_python to www-apache. + + 13 Jun 2007; Luca Longinotti <chtekk@gentoo.org> + -mod_python-2.7.11.ebuild: + Remove Apache1. + + 08 Jun 2007; Joshua Kinard <kumba@gentoo.org> mod_python-3.3.1.ebuild: + Marked unstable on mips, per #181068. + +*mod_python-3.3.1 (16 Mar 2007) + + 16 Mar 2007; Tiziano Müller <dev-zero@gentoo.org> + -files/mod_python-3.1.4-configure-bash-3.1.patch, + -mod_python-3.1.4-r1.ebuild, +mod_python-3.3.1.ebuild: + Version bump (including some cleanup and added tests). Dropped old version + with security issue (bug #169286). + + 10 Mar 2007; Bryan Østergaard <kloeri@gentoo.org> + mod_python-3.2.10.ebuild: + Stable on Alpha + IA64, bug 169286. + + 08 Mar 2007; Tobias Scherbaum <dertobi123@gentoo.org> + mod_python-3.2.10.ebuild: + Stable on ppc wrt bug #169286. + + 04 Mar 2007; Jason Wever <weeve@gentoo.org> mod_python-3.2.10.ebuild: + Stable on SPARC wrt security bug #169286. + + 04 Mar 2007; Simon Stelling <blubb@gentoo.org> mod_python-3.2.10.ebuild: + stable on amd64; security bug 169286 + + 04 Mar 2007; Raúl Porcel <armin76@gentoo.org> mod_python-3.2.10.ebuild: + x86 stable wrt security bug 169286 + + 15 Jan 2007; Luca Longinotti <chtekk@gentoo.org> + +files/16_mod_python.conf, -files/16_mod_python-r1.conf, metadata.xml, + mod_python-2.7.11.ebuild, mod_python-3.1.4-r1.ebuild, + mod_python-3.2.10.ebuild: + Cleanup. + + 13 Jan 2007; Luca Longinotti <chtekk@gentoo.org> + -files/16_mod_python.conf, -files/publisher-2.diff, + -mod_python-3.1.3-r1.ebuild, -mod_python-3.1.4.ebuild: + Cleanup old, redundant versions. + + 11 Jan 2007; Christian Heim <phreak@gentoo.org> mod_python-2.7.11.ebuild, + mod_python-3.1.4.ebuild, mod_python-3.1.4-r1.ebuild, + mod_python-3.2.10.ebuild: + Fixing installation of HTML files and images (closing #149737 - thanks to + Brad Walker <bradmwalker@cableone.net>). + +*mod_python-3.2.10 (08 Oct 2006) + + 08 Oct 2006; Bryan Østergaard <kloeri@gentoo.org> + +mod_python-3.2.10.ebuild: + Version bump, bug 123852. + + 14 Jul 2006; Marien Zwart <marienz@gentoo.org> -files/mod_python.conf, + -mod_python-2.7.10.ebuild: + Remove old version, fixing bug #140371 for this package. + + 12 Jul 2006; Aron Griffis <agriffis@gentoo.org> + mod_python-3.1.4-r1.ebuild: + Mark 3.1.4-r1 stable on ia64 + + 28 Jun 2006; Simon Stelling <blubb@gentoo.org> mod_python-2.7.11.ebuild: + keywording ~amd64 and applying the -fPIC patch from bug 106916; thanks to + Mathieu Malaterre + + 04 Jun 2006; Michael Stewart <vericgar@gentoo.org> + mod_python-3.1.4-r1.ebuild: + Address dependency issues caused by depend.apache. Refer to bug 107127. + + 01 Apr 2006; Aron Griffis <agriffis@gentoo.org> + mod_python-3.1.4-r1.ebuild: + Mark 3.1.4-r1 ~ia64 + + 15 Jan 2006; Marien Zwart <marienz@gentoo.org> + +files/mod_python-3.1.4-configure-bash-3.1.patch, + mod_python-3.1.4-r1.ebuild: + Patch to make configure work with bash 3.1 (bug #118948) + + 28 Dec 2005; Simon Stelling <blubb@gentoo.org> mod_python-3.1.4-r1.ebuild: + stable on amd64 + + 11 Dec 2005; Bryan Østergaard <kloeri@gentoo.org + mod_python-2.7.11.ebuild: + x86 stable, bug 80109. + + 19 Nov 2005; Chris White <chriswhite@gentoo.org> metadata.xml: + Added japanese metadata.xml translation thanks to Yoshino-san. + + 14 Oct 2005; Aron Griffis <agriffis@gentoo.org> + mod_python-3.1.4-r1.ebuild: + Mark 3.1.4-r1 stable on alpha + + 07 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org> + mod_python-3.1.4-r1.ebuild: + Stable on sparc + + 06 Oct 2005; Michael Hanselmann <hansmi@gentoo.org> + mod_python-3.1.4-r1.ebuild: + Stable on ppc. + + 27 Sep 2005; Bryan Østergaard <kloeri@gentoo.org> + mod_python-3.1.4-r1.ebuild: + Stable for new apache layout. + +*mod_python-3.1.4-r1 (06 Jul 2005) + + 06 Jul 2005; Alastair Tse <liquidx@gentoo.org> + -mod_python-2.7.10-r1.ebuild, -mod_python-3.1.3.ebuild, + +mod_python-3.1.4-r1.ebuild: + replaced ./configure with econf to force search paths to /usr rather than + /usr/local (#97992) + + 05 May 2005; Bryan Østergaard <kloeri@gentoo.org> metadata.xml: + Add apache herd as maintainers. + + 24 Apr 2005; Simon Stelling <blubb@gentoo.org> mod_python-3.1.3-r1.ebuild: + stable on amd64 + + 27 Feb 2005; Bryan Østergaard <kloeri@gentoo.org> + +files/16_mod_python-r1.conf, mod_python-2.7.11.ebuild, + mod_python-3.1.4.ebuild: + Fix broken configuration. + +*mod_python-2.7.11 (26 Feb 2005) + + 26 Feb 2005; Bryan Østergaard <kloeri@gentoo.org> + +mod_python-2.7.11.ebuild, +mod_python-3.1.4.ebuild: + Version bump + uses new apache-module eclass. All changes by Benedikt Boehm + <hollow@gentoo.org>. + + 11 Feb 2005; Rob Cakebread <pythonhead@gentoo.org> + +files/publisher-2.diff, mod_python-3.1.3.ebuild: + Bumped and patched security bug# 80109 CAN-2005-0088 + + 30 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> : + Change encoding to UTF-8 for GLEP 31 compliance + + 17 Oct 2004; Dylan Carlson <absinthe@gentoo.org> mod_python-3.1.3.ebuild: + keywords ~amd64; closes #66176. + +*mod_python-2.7.10-r1 (04 Sep 2004) + + 04 Sep 2004; Lukasz Strzygowski <lucass@gentoo.org> metadata.xml, + +mod_python-2.7.10-r1.ebuild: + Fixed issue with detecting if python is compiled with threads. + Added description to metadata. + + 14 Jul 2004; Jason Wever <weeve@gentoo.org> mod_python-3.1.3.ebuild: + Added ~sparc keyword, resolves bug #57102. + + 12 Jul 2004; Bryan Østergaard <kloeri@gentoo.org> + -mod_python-3.0.4-r1.ebuild, -mod_python-3.0.4-r2.ebuild, + mod_python-3.1.3.ebuild: + Remove old versions, stable on alpha. + + 24 May 2004; Bryan Østergaard <kloeri@gentoo.org> mod_python-3.1.3.ebuild: + Keyworded ~alpha, requested in bug #51550. + + 24 May 2004; Chuck Short <zul@gentoo.org> mod_python-3.1.3.ebuild: + Marked stable as requested by #51420. + + 04 May 2004; Bryan Østergaard <kloeri@gentoo.org> mod_python-2.7.10.ebuild, + mod_python-3.0.4-r1.ebuild, mod_python-3.0.4-r2.ebuild, + mod_python-3.1.3.ebuild: + Change SRC_URI to mirror://.. + + 25 Apr 2004; Aron Griffis <agriffis@gentoo.org> mod_python-2.7.10.ebuild: + Add die following econf for bug 48950 + + 01 Apr 2004; Bryan Østergaard <kloeri@gentoo.org> mod_python-2.7.10.ebuild, + mod_python-3.0.4-r2.ebuild, mod_python-3.0.4.ebuild: + Stable on x86. + +*mod_python-3.1.3 (29 Feb 2004) + + 29 Feb 2004; <kloeri@gentoo.org> mod_python-3.1.3.ebuild: + Version bump. + +*mod_python-3.0.4-r2 (29 Jan 2004) + + 29 Jan 2004; Bryan Østergaard,,, <kloeri@gentoo.org> + mod_python-3.0.4-r2.ebuild: + Fix installation paths, closing bug #39757 and #39758. + +*mod_python-3.0.4-r1 (28 Jan 2004) + + 28 Jan 2004; Alastair Tse <liquidx@gentoo.org> mod_python-3.0.4-r1.ebuild: + fix missing mod_python.so, add python postinst pyc/pyo generation (#39627) + +*mod_python-2.7.10 (24 Jan 2004) + + 24 Jan 2004; Alastair Tse <liquidx@gentoo.org> mod_python-2.7.8.ebuild, + mod_python-2.7.9.ebuild, mod_python-3.0.3.ebuild, + files/mod_python-3.0.3-dest1.diff, files/mod_python-3.0.3-dest2.diff, + files/patch-2.7.8.diff: + cleanup vunerable versions, bump 2.7 series due to security update (#39154) + + 13 Dec 2003; Bryan Østergaard,,, <kloeri@gentoo.org> + mod_python-3.0.3.ebuild, mod_python-3.0.4.ebuild: + Install icons needed for html documentation, closing bug #29271 + +*mod_python-2.7.9 (12 Dec 2003) +*mod_python-3.0.4 (12 Dec 2003) + + 12 Dec 2003; Bryan Østergaard,,, <kloeri@gentoo.org> + mod_python-2.7.9.ebuild, mod_python-3.0.0_beta4.ebuild, + mod_python-3.0.1.ebuild, mod_python-3.0.4.ebuild, + files/mod_python-3.0.0_beta4-destdir.diff: + Bump versions and remove some old versions. + + 28 Oct 2003; Bryan Østergaard <kloeri@gentoo.org> + mod_python-3.0.3.ebuild: + Fix bug when using Python-2.3 closing bug #32018. + + 05 Oct 2003; Rob Cakebread <pythonhead@gentoo.org> + mod_python-3.0.0_beta4.ebuild, mod_python-3.0.1.ebuild: + Added pkg_postinst to tell users to add -D PYTHON to /etc/conf.d/apache2 + +*mod_python-3.0.3 (05 Oct 2003) + + 05 Oct 2003; Rob Cakebread <pythonhead@gentoo.org> mod_python-3.0.3.ebuild: + Version bump. Thanks Bryan Østergaard <kloeri@mailme.dk> + + 09 Jul 2003; Donny Davies <woodchip@gentoo.org> mod_python-2.7.8.ebuild: + Description clarify. + +*mod_python-3.0.1 (2 Feb 2003) + + 2 Feb 2003; Grant Goodyear <g2boojum@gentoo.org> : Beyond the beta! + +*mod_python-3.0.0_beta4 (29 Nov 2002) + + 29 Nov 2002; Donny Davies <woodchip@gentoo.org> : Updated for Apache2. + +*mod_python-2.7.8 (21 Oct 2002) + + 27 Nov 2002; phoen][x <phoenix@gentoo.org> ChangeLog, files/mod_python.conf: + Fixed a typo in files/mod_python.conf. + + 21 Oct 2002; phoen][x <phoenix@gentoo.org> ChangeLog, mod_python-2.7.8.ebuild, + files/digest-mod_python-2.7.8, files/mod_python.conf, files/patch-2.7.8.diff : + Initial import. Use this ebuild to add python support to your apache webserver. diff --git a/www-apache/mod_python/Manifest b/www-apache/mod_python/Manifest new file mode 100644 index 000000000000..3cd1d6e00992 --- /dev/null +++ b/www-apache/mod_python/Manifest @@ -0,0 +1,28 @@ +AUX 16_mod_python.conf 1101 RMD160 7221a2a77cc1481855bfac75191d666c642861b8 SHA1 2b2061929b9e2a6b2690b231718f269394151270 SHA256 fffa4ce78f0bbe242e88b19a23d1e69fcaa2cfad73954f72d78688ee3a9523d3 +MD5 fc933df167083c6c8abc4d2e28c6274d files/16_mod_python.conf 1101 +RMD160 7221a2a77cc1481855bfac75191d666c642861b8 files/16_mod_python.conf 1101 +SHA256 fffa4ce78f0bbe242e88b19a23d1e69fcaa2cfad73954f72d78688ee3a9523d3 files/16_mod_python.conf 1101 +DIST mod_python-3.2.10.tgz 365768 RMD160 2afdd0a80c815f8b9a1b33258e04ae17a12b7dbd SHA1 d3949d71c718e84b7897e9ce62fed26dea4c9584 SHA256 ac404c02ee052dcfbd8e303fe9148866c561be9b9a8a12cffee25276e147f13c +DIST mod_python-3.3.1.tgz 447954 RMD160 f78f93172963317f4318f8f2455419743c8fb4f5 SHA1 e538170fd78e09408b6d8593da980b126a0fef93 SHA256 ad2331fd5fcfd720ef9e3482973fc2d06eff36ba0c44693cfa42056a62175a6b +EBUILD mod_python-3.2.10.ebuild 1454 RMD160 4085c6543a08015ec004dfefcda184a4c07b02fa SHA1 a87fedb1bc84d6df73a3b7b7947106dd71c29a2c SHA256 59046743de2b4da6c5fd9c1313d862a3ba5b639f373a7055ec308ed0f1e10bd7 +MD5 6b02985984e0729c5bcee3a6e7bf4344 mod_python-3.2.10.ebuild 1454 +RMD160 4085c6543a08015ec004dfefcda184a4c07b02fa mod_python-3.2.10.ebuild 1454 +SHA256 59046743de2b4da6c5fd9c1313d862a3ba5b639f373a7055ec308ed0f1e10bd7 mod_python-3.2.10.ebuild 1454 +EBUILD mod_python-3.3.1.ebuild 1576 RMD160 0b0c06d7fef7863718e7845b0829dd871f1ebaa9 SHA1 78ccbe7d0722ae5c37c73285cd584ae5cf96abfb SHA256 38470a1269c8c27e7cc5e609dfa525ba6bd38c2f65ec66ef160dd5ab0a0e7bbf +MD5 354b57730de5a52658eee1207943d30c mod_python-3.3.1.ebuild 1576 +RMD160 0b0c06d7fef7863718e7845b0829dd871f1ebaa9 mod_python-3.3.1.ebuild 1576 +SHA256 38470a1269c8c27e7cc5e609dfa525ba6bd38c2f65ec66ef160dd5ab0a0e7bbf mod_python-3.3.1.ebuild 1576 +MISC ChangeLog 8943 RMD160 96dd51c9c73db9b41f84aa1b742d462ccbb08e9f SHA1 cd30c605df97180bf8221f08b4c93a5266175ca4 SHA256 24ce54e477008454b8bf560288dc3e5a4ed9b64a611321a3bb2fa48c3360c5dc +MD5 52a2c9abbb2a664a5be9480ffabbd612 ChangeLog 8943 +RMD160 96dd51c9c73db9b41f84aa1b742d462ccbb08e9f ChangeLog 8943 +SHA256 24ce54e477008454b8bf560288dc3e5a4ed9b64a611321a3bb2fa48c3360c5dc ChangeLog 8943 +MISC metadata.xml 1086 RMD160 498722cfbe864a9111382e60fbfefe7acad8015c SHA1 1dd90967f304172d9beadde4667af19f8fb91758 SHA256 bd095d51b46b1c8a2df7b8b929694e1b344c1cba184baa11d35e679296c33b91 +MD5 348eea35493dea3b9685324969ac0cef metadata.xml 1086 +RMD160 498722cfbe864a9111382e60fbfefe7acad8015c metadata.xml 1086 +SHA256 bd095d51b46b1c8a2df7b8b929694e1b344c1cba184baa11d35e679296c33b91 metadata.xml 1086 +MD5 7356bad2e0df6f2d04de41533b44a0f5 files/digest-mod_python-3.2.10 244 +RMD160 ad8a915266a5c1e9983b75d060ec14e616c9f2dd files/digest-mod_python-3.2.10 244 +SHA256 71ca744baad29cf4a061da86837b5ea7f31c11501008225018160c636be80de7 files/digest-mod_python-3.2.10 244 +MD5 5b8e0f12041549152b28d724f32acf72 files/digest-mod_python-3.3.1 241 +RMD160 975fc2da673fd54cc697ad00858f57213854527e files/digest-mod_python-3.3.1 241 +SHA256 1148b94f4afb88c2a4ef1c6836d2bfabc0bb4e307974ec050f7113997898c8d6 files/digest-mod_python-3.3.1 241 diff --git a/www-apache/mod_python/files/16_mod_python.conf b/www-apache/mod_python/files/16_mod_python.conf new file mode 100644 index 000000000000..c2df73cf8ff2 --- /dev/null +++ b/www-apache/mod_python/files/16_mod_python.conf @@ -0,0 +1,40 @@ +<IfDefine PYTHON> + <IfModule !mod_python.c> + LoadModule python_module modules/mod_python.so + </IfModule> +</IfDefine> + +<IfModule mod_python.c> +# +# Mod_python is a module that embeds the Python language interpreter +# within the server, allowing Apache handlers to be written in Python. +# + +# This will cause files beneath /home/httpd/htdocs with the extension .spam +# to be handled by the Python script /home/httpd/htdocs/eggs.py +# +#<Directory /home/httpd/htdocs> +# <IfModule mod_mime.c> +# AddHandler python-program .spam +# </IfModule> +# PythonHandler eggs +#</Directory> + +# This will cause all requests to the /python heirachy of your +# webserver to be handled by the python script /path/to/myhandler.py +# +#<Location /python> +# SetHandler python-program +# PythonPath "sys.path + ['/path/to']" +# PythonHandler myhandler +#</Location> + +# This will cause all requests to the /python heirachy of your +# webserver to be handled by mod_python's Publisher handler +# +#<Location /python> +# SetHandler python-program +# PythonHandler mod_python.publisher +#</Location> + +</IfModule> diff --git a/www-apache/mod_python/files/digest-mod_python-3.2.10 b/www-apache/mod_python/files/digest-mod_python-3.2.10 new file mode 100644 index 000000000000..6d9dfb733230 --- /dev/null +++ b/www-apache/mod_python/files/digest-mod_python-3.2.10 @@ -0,0 +1,3 @@ +MD5 cc6439f546a6e70cfff7ca51b8c62541 mod_python-3.2.10.tgz 365768 +RMD160 2afdd0a80c815f8b9a1b33258e04ae17a12b7dbd mod_python-3.2.10.tgz 365768 +SHA256 ac404c02ee052dcfbd8e303fe9148866c561be9b9a8a12cffee25276e147f13c mod_python-3.2.10.tgz 365768 diff --git a/www-apache/mod_python/files/digest-mod_python-3.3.1 b/www-apache/mod_python/files/digest-mod_python-3.3.1 new file mode 100644 index 000000000000..aa3e51bc56e3 --- /dev/null +++ b/www-apache/mod_python/files/digest-mod_python-3.3.1 @@ -0,0 +1,3 @@ +MD5 a3b0150176b726bd2833dac3a7837dc5 mod_python-3.3.1.tgz 447954 +RMD160 f78f93172963317f4318f8f2455419743c8fb4f5 mod_python-3.3.1.tgz 447954 +SHA256 ad2331fd5fcfd720ef9e3482973fc2d06eff36ba0c44693cfa42056a62175a6b mod_python-3.3.1.tgz 447954 diff --git a/www-apache/mod_python/metadata.xml b/www-apache/mod_python/metadata.xml new file mode 100644 index 000000000000..64623d02849f --- /dev/null +++ b/www-apache/mod_python/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <herd>apache</herd> + <herd>python</herd> + <longdescription> + Mod_python is an Apache module that embeds the Python interpreter within + the server. With mod_python you can write web-based applications in Python + that will run many times faster than traditional CGI and will have access + to advanced features such as ability to retain database connections and + other data between hits and access to Apache internals. + </longdescription> + <longdescription lang="ja"> + Mod_PythonはウェブサーバーにPythonインタープリタを埋め込むApacheモジュールです。 + Mod_PythonはPython言語のウェブベース・アプリケーションを従来のCGIよりも何倍も高> + 速に走らせることができ、データデータベースのコネクション保持に関するより高度なア + クセス機能やヒット間の他のデータやApache内部へのアクセス機能を持ちます。 + </longdescription> +</pkgmetadata> diff --git a/www-apache/mod_python/mod_python-3.2.10.ebuild b/www-apache/mod_python/mod_python-3.2.10.ebuild new file mode 100644 index 000000000000..a05bb01e5cc6 --- /dev/null +++ b/www-apache/mod_python/mod_python-3.2.10.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_python/mod_python-3.2.10.ebuild,v 1.1 2007/08/19 11:53:43 phreak Exp $ + +inherit python apache-module multilib autotools + +KEYWORDS="alpha amd64 ia64 ppc sparc x86" + +DESCRIPTION="An Apache2 module providing an embedded Python interpreter." +HOMEPAGE="http://www.modpython.org/" +SRC_URI="mirror://apache/httpd/modpython/${P}.tgz" +LICENSE="Apache-1.1" +SLOT="0" +IUSE="" + +DEPEND="dev-lang/python" +RDEPEND="${DEPEND}" + +APACHE2_MOD_CONF="16_${PN}" +APACHE2_MOD_DEFINE="PYTHON" + +DOCFILES="README NEWS CREDITS COPYRIGHT" + +need_apache2 + +src_unpack() { + unpack ${A} + cd "${S}" + + # Remove optimisations, we do that outside Portage + sed -ie 's:--optimize 2:--no-compile:' "dist/Makefile.in" + + # Fix compilation when using Python 2.3 or newer + if has_version ">=dev-lang/python-2.3" ; then + sed -ie 's:LONG_LONG:PY_LONG_LONG:g' "${S}/src/requestobject.c" + fi + + eautoconf +} + +src_compile() { + econf --with-apxs=${APXS2} || die "econf failed" + emake OPT="`apxs2 -q CFLAGS` -fPIC" || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dohtml -r doc-html/* + apache-module_src_install +} + +pkg_postinst() { + python_version + python_mod_optimize "/usr/$(get_libdir)/python${PYVER}/site-packages/mod_python" + apache-module_pkg_postinst +} + +pkg_postrm() { + python_mod_cleanup +} diff --git a/www-apache/mod_python/mod_python-3.3.1.ebuild b/www-apache/mod_python/mod_python-3.3.1.ebuild new file mode 100644 index 000000000000..1d59a9e0faf2 --- /dev/null +++ b/www-apache/mod_python/mod_python-3.3.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_python/mod_python-3.3.1.ebuild,v 1.1 2007/08/19 11:53:43 phreak Exp $ + +inherit python apache-module multilib + +KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86" + +DESCRIPTION="An Apache2 module providing an embedded Python interpreter." +HOMEPAGE="http://www.modpython.org/" +SRC_URI="mirror://apache/httpd/modpython/${P}.tgz" +LICENSE="Apache-1.1" +SLOT="0" +IUSE="" + +DEPEND="dev-lang/python" +RDEPEND="${DEPEND}" + +APACHE2_MOD_CONF="16_${PN}" +APACHE2_MOD_DEFINE="PYTHON" + +DOCFILES="README NEWS CREDITS" + +need_apache2 + +src_unpack() { + unpack ${A} + cd "${S}" + + # Remove optimisations, we do that outside Portage + sed -i \ + -e 's:--optimize 2:--no-compile:' \ + "dist/Makefile.in" +} + +src_compile() { + econf --with-apxs=${APXS2} || die "econf failed" + emake OPT="`apxs2 -q CFLAGS` -fPIC" || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dohtml -r doc-html/* + apache-module_src_install +} + +src_test() { + python_version + cd test + PYTHONPATH="$(ls -d ${S}/dist/build/lib.*)" + sed -i \ + -e "120ios.environ['PYTHONPATH']=\"${PYTHONPATH}\"" \ + test.py || die "sed failed" + "${python}" test.py || die "tests failed" +} + +pkg_postinst() { + python_version + python_mod_optimize "/usr/$(get_libdir)/python${PYVER}/site-packages/mod_python" + apache-module_pkg_postinst +} + +pkg_postrm() { + python_version + python_mod_cleanup "/usr/$(get_libdir)/python${PYVER}/site-packages/mod_python" +} |