uwsgi: uwsgi-python and uwsgi-python3.4 subpackages
This commit is contained in:
parent
6e8a57af53
commit
8fd30d1b06
3 changed files with 41 additions and 12 deletions
1
srcpkgs/uwsgi-python
Symbolic link
1
srcpkgs/uwsgi-python
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
uwsgi
|
1
srcpkgs/uwsgi-python3.4
Symbolic link
1
srcpkgs/uwsgi-python3.4
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
uwsgi
|
|
@ -1,22 +1,49 @@
|
||||||
# Template file for 'uwsgi'
|
# Template file for 'uwsgi'
|
||||||
pkgname=uwsgi
|
pkgname=uwsgi
|
||||||
version=2.0.11.1
|
version=2.0.11.1
|
||||||
revision=4
|
revision=5
|
||||||
build_style=python-module
|
hostmakedepends="python python3.4"
|
||||||
hostmakedepends="python-devel python-setuptools"
|
makedepends="python-devel python3.4-devel"
|
||||||
makedepends="sqlite-devel python-devel python-setuptools libxml2-devel"
|
|
||||||
pycompile_module="uwsgidecorators.py"
|
|
||||||
short_desc="Fast, self-healing application container server"
|
short_desc="Fast, self-healing application container server"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="http://projects.unbit.it/uwsgi"
|
homepage="http://projects.unbit.it/uwsgi"
|
||||||
distfiles="http://projects.unbit.it/downloads/uwsgi-$version.tar.gz"
|
distfiles="http://projects.unbit.it/downloads/uwsgi-$version.tar.gz
|
||||||
checksum=75a7d3138cfa9cd81a760c2f8a43f3d80961edc8e4f27043dc1412206c926287
|
checksum=75a7d3138cfa9cd81a760c2f8a43f3d80961edc8e4f27043dc1412206c926287
|
||||||
|
|
||||||
|
_libdir=usr/lib/uwsgi
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
sed -e "s|uc.get('plugin_dir')|'.'|" \
|
||||||
*-musl)
|
-i uwsgiconfig.py
|
||||||
sed -e 's/ugreen,//' -i buildconf/base.ini
|
sed -e "s|\(plugin_dir =\).*|\1 /$_libdir|" \
|
||||||
;;
|
-i buildconf/base.ini
|
||||||
esac
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
python uwsgiconfig.py --build core
|
||||||
|
python uwsgiconfig.py --plugin plugins/python core python
|
||||||
|
python3.4 uwsgiconfig.py --plugin plugins/python core python3
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
mkdir -p $PKGDESTDIR/usr/bin $PKGDESTDIR/$_libdir
|
||||||
|
cp uwsgi $PKGDESTDIR/usr/bin
|
||||||
|
cp *_plugin.so $PKGDESTDIR/$_libdir
|
||||||
|
}
|
||||||
|
|
||||||
|
uwsgi-python_package() {
|
||||||
|
short_desc="$short_desc (Python2 plugin)"
|
||||||
|
|
||||||
|
pkg_install() {
|
||||||
|
vmove $_libdir/python_plugin.so
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
uwsgi-python3.4_package() {
|
||||||
|
short_desc="$short_desc (Python3.4 plugin)"
|
||||||
|
|
||||||
|
pkg_install() {
|
||||||
|
vmove $_libdir/python3_plugin.so
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue