1 |
commit: ed320c5426c615d428641419128653ad05fc49ea |
2 |
Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 8 13:43:32 2021 +0000 |
4 |
Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 8 13:44:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed320c54 |
7 |
|
8 |
www-apache/mod_wsgi: revbump to add python3.9 compat |
9 |
|
10 |
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=768642 |
11 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
12 |
Signed-off-by: Dirkjan Ochtman <djc <AT> gentoo.org> |
13 |
|
14 |
www-apache/mod_wsgi/mod_wsgi-4.7.1-r1.ebuild | 51 ++++++++++++++++++++++++++++ |
15 |
1 file changed, 51 insertions(+) |
16 |
|
17 |
diff --git a/www-apache/mod_wsgi/mod_wsgi-4.7.1-r1.ebuild b/www-apache/mod_wsgi/mod_wsgi-4.7.1-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..609e961c96e |
20 |
--- /dev/null |
21 |
+++ b/www-apache/mod_wsgi/mod_wsgi-4.7.1-r1.ebuild |
22 |
@@ -0,0 +1,51 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
29 |
+PYTHON_REQ_USE="threads(+)" |
30 |
+ |
31 |
+inherit apache-module eutils python-single-r1 |
32 |
+ |
33 |
+DESCRIPTION="An Apache2 module for running Python WSGI applications" |
34 |
+HOMEPAGE="https://github.com/GrahamDumpleton/mod_wsgi" |
35 |
+SRC_URI="https://github.com/GrahamDumpleton/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="Apache-2.0" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
40 |
+IUSE="" |
41 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
42 |
+ |
43 |
+DEPEND="" |
44 |
+RDEPEND="${PYTHON_DEPS}" |
45 |
+ |
46 |
+APACHE2_MOD_CONF="70_${PN}" |
47 |
+APACHE2_MOD_DEFINE="WSGI" |
48 |
+APACHE2_MOD_FILE="${S}/src/server/.libs/${PN}.so" |
49 |
+ |
50 |
+DOCFILES="README.rst" |
51 |
+ |
52 |
+need_apache2 |
53 |
+ |
54 |
+pkg_setup() { |
55 |
+ python-single-r1_pkg_setup |
56 |
+ |
57 |
+ # Calling depend.apache_pkg_setup fails because we do not have |
58 |
+ # "apache2" in IUSE but the function expects this in order to call |
59 |
+ # _init_apache2_late which sets the APACHE_MODULESDIR variable. |
60 |
+ _init_apache2 |
61 |
+ _init_apache2_late |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ # configure.ac contains bashisms |
66 |
+ # (https://github.com/GrahamDumpleton/mod_wsgi/issues/567) |
67 |
+ CONFIG_SHELL="/bin/bash" \ |
68 |
+ econf --with-apxs="${APXS}" --with-python="${PYTHON}" |
69 |
+} |
70 |
+ |
71 |
+src_compile() { |
72 |
+ default |
73 |
+} |