mod_wsgi: update to 4.7.1, change to python 3

This commit is contained in:
Đoàn Trần Công Danh 2020-05-22 06:37:25 +07:00 committed by Danh Doan
parent 2af30cdd78
commit da72558a49

View file

@ -1,17 +1,17 @@
# Template file for 'mod_wsgi'
pkgname=mod_wsgi
version=4.6.5
revision=2
version=4.7.1
revision=1
build_style=gnu-configure
hostmakedepends="python perl automake libtool"
makedepends="apache-devel python-devel apr-devel"
hostmakedepends="python3 perl automake libtool"
makedepends="apache-devel python3-devel apr-devel"
short_desc="Python WSGI adapter module for Apache"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://modwsgi.readthedocs.io/en/develop/"
changelog="https://modwsgi.readthedocs.io/en/latest/release-notes/version-${version}.html"
distfiles="https://github.com/GrahamDumpleton/${pkgname}/archive/${version}.tar.gz"
checksum=5cbe05f8b9b21a9e40d5d7226f4976643b1ee5e23a2d114bceae34d9948be5e0
checksum=2674e506719afe60fbc0547c832e8948d6caa2e054d40d336309993e6e867d35
lib32disabled=yes
pre_configure() {
@ -21,8 +21,8 @@ pre_configure() {
# Use the modified apxs
configure_args+=" --with-apxs=${wrksrc}/apxs"
configure_args+=" --with-python=$XBPS_WRAPPERDIR/python"
configure_args+=" PYTHON_VERSION=2.7 PYTHON_LDVERSION=2.7"
configure_args+=" --with-python=$XBPS_WRAPPERDIR/python3"
configure_args+=" PYTHON_VERSION=$py3_ver PYTHON_LDVERSION=$py3_ver"
# Use the ${wrksrc}/config_vars.mk
vsed -i apxs \
@ -35,6 +35,8 @@ pre_configure() {
-e "/^APU_CONFIG/ s;=.*;= ${XBPS_WRAPPERDIR}/apu-1-config;" \
-e "/^includedir/ s;=.*;= $XBPS_CROSS_BASE/usr/include/httpd;" \
-e "s;\([I ]\)/usr/include;\1$XBPS_CROSS_BASE/usr/include;g"
else
configure_args+=" --with-python=/usr/bin/python3"
fi
autoreconf -fi
}