add www-apache/mod_wsgi-4.7.1

This commit is contained in:
Andreas Billmeier 2020-10-03 20:39:21 +02:00 committed by root
parent ef142cf05f
commit 2b54016d49
4 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,4 @@
AUX 70_mod_wsgi.conf 100 BLAKE2B e0df283f4b825628cceb7538231afbba10d3dc1eaab64da22d336c1426c4f8f0379e1958b3599811b2efc3cdb16f9543ad3f72d6139da9be01897bf200c06100 SHA512 6e0310d3f5dd8da4653c8502ad297ffe73c04e04c5fdd87721c407e839ba81ba4060394bcd1f06ef26d2d98cf007b585a382eb5f566345817999cd237adfa833
DIST mod_wsgi-4.7.1.tar.gz 696111 BLAKE2B 69fea421077f1ecbf1cef5c9eac4ba296fa676e0bfbb860ca8a7cb701701f405edb3760486b87e8d9dd93efcb4c23385197d770ca32e16a473d5d252d292fb76 SHA512 cbb5ec53d55e47a83f2b0630527c6a52b48ef21d5d2c18adcb875fc455795b39b3c93f4a86dfbf9738c0bd554d86cc4912cc9ff83c428af302ab94a61f66b5b4
EBUILD mod_wsgi-4.7.1.ebuild 1240 BLAKE2B ec3c657361e9490b534c2c2529f2ae7820451ae72a62d2b721859a5e5ea145ded8bf6d1f091c791463dc5a44f77960d9e20c046728a7533ef73b043676ad3cbd SHA512 76cbb9e16745d9f4ff78d267efa2af2c5b3739b33c8e7f5fcfd04d2679241a9fead3bbd723e29bff4672d0d7cf950759088a4e7768ef0a1fc6c98280b8f7a164
MISC metadata.xml 380 BLAKE2B 1b06e8ab30ece204c3b5926675346cca70352c9a0ffd7fef754fc25473b9e4040111da0005e24da304add76f1a56ccd0ab9247ae10faca316dca982052c6853a SHA512 b62536a8a79d3d5198b6cbd7eb51be455a8c7de53add3810120edc1beee7d0684e09e43de355c5da7a61486c8764c4619c809d9fadde9e9502cb5c0b364d7b68

View File

@ -0,0 +1,5 @@
<IfDefine WSGI>
LoadModule wsgi_module modules/mod_wsgi.so
</IfDefine>
# vim: ts=4 filetype=apache

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>djc@gentoo.org</email>
<name>Dirkjan Ochtman</name>
</maintainer>
<upstream>
<remote-id type="pypi">mod_wsgi</remote-id>
<remote-id type="github">GrahamDumpleton/mod_wsgi</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,51 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{6,7,8} )
PYTHON_REQ_USE="threads(+)"
inherit apache-module eutils python-single-r1
DESCRIPTION="An Apache2 module for running Python WSGI applications"
HOMEPAGE="https://github.com/GrahamDumpleton/mod_wsgi"
SRC_URI="https://github.com/GrahamDumpleton/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND=""
RDEPEND="${PYTHON_DEPS}"
APACHE2_MOD_CONF="70_${PN}"
APACHE2_MOD_DEFINE="WSGI"
APACHE2_MOD_FILE="${S}/src/server/.libs/${PN}.so"
DOCFILES="README.rst"
need_apache2
pkg_setup() {
python-single-r1_pkg_setup
# Calling depend.apache_pkg_setup fails because we do not have
# "apache2" in IUSE but the function expects this in order to call
# _init_apache2_late which sets the APACHE_MODULESDIR variable.
_init_apache2
_init_apache2_late
}
src_configure() {
# configure.ac contains bashisms
# (https://github.com/GrahamDumpleton/mod_wsgi/issues/567)
CONFIG_SHELL="/bin/bash" \
econf --with-apxs="${APXS}" --with-python="${PYTHON}"
}
src_compile() {
default
}