www-apache/mod_wsgi/mod_wsgi-5.0.2.ebuild
author gabriel
Sat, 03 May 2025 11:50:59 +0100
changeset 54 d907d3b3d677
parent 51 www-apache/mod_wsgi/mod_wsgi-5.0.0-r1.ebuild@fd2f8bf4c8c6
permissions -rw-r--r--
bump mod_wsgi to 5.0.2, hoping for python 3.13 compatibility
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
51
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
     1
# Copyright 1999-2024 Gentoo Authors
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
     2
# Distributed under the terms of the GNU General Public License v2
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
     3
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
     4
EAPI=8
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
     5
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
     6
PYTHON_COMPAT=( python3_{9..13} )
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
     7
PYTHON_REQ_USE="threads(+)"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
     8
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
     9
inherit apache-module python-single-r1
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    10
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    11
DESCRIPTION="An Apache2 module for running Python WSGI applications"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    12
HOMEPAGE="https://github.com/GrahamDumpleton/mod_wsgi"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    13
SRC_URI="https://github.com/GrahamDumpleton/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    14
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    15
LICENSE="Apache-2.0"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    16
SLOT="0"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    17
KEYWORDS="amd64 ~arm ~arm64 ppc ~ppc64 x86"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    18
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    19
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    20
RDEPEND="${PYTHON_DEPS}"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    21
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    22
APACHE2_MOD_CONF="70_${PN}"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    23
APACHE2_MOD_DEFINE="WSGI"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    24
APACHE2_MOD_FILE="${S}/src/server/.libs/${PN}.so"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    25
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    26
DOCFILES="README.rst"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    27
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    28
need_apache2
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    29
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    30
pkg_setup() {
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    31
	python-single-r1_pkg_setup
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    32
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    33
	# Calling depend.apache_pkg_setup fails because we do not have
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    34
	# "apache2" in IUSE but the function expects this in order to call
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    35
	# _init_apache2_late which sets the APACHE_MODULESDIR variable.
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    36
	_init_apache2
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    37
	_init_apache2_late
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    38
}
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    39
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    40
src_configure() {
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    41
	econf --with-apxs="${APXS}" --with-python="${PYTHON}"
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    42
}
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    43
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    44
src_compile() {
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    45
	default
fd2f8bf4c8c6 Attempt to make mod_wsgi compatible with python 3.13
gabriel
parents:
diff changeset
    46
}