uwsgi: uwsgi-python and uwsgi-python3.4 subpackages

This commit is contained in:
Eivind Uggedal 2015-08-05 13:15:27 +00:00
parent 6e8a57af53
commit 8fd30d1b06
3 changed files with 41 additions and 12 deletions

1
srcpkgs/uwsgi-python Symbolic link
View file

@ -0,0 +1 @@
uwsgi

1
srcpkgs/uwsgi-python3.4 Symbolic link
View file

@ -0,0 +1 @@
uwsgi

View file

@ -1,22 +1,49 @@
# Template file for 'uwsgi'
pkgname=uwsgi
version=2.0.11.1
revision=4
build_style=python-module
hostmakedepends="python-devel python-setuptools"
makedepends="sqlite-devel python-devel python-setuptools libxml2-devel"
pycompile_module="uwsgidecorators.py"
revision=5
hostmakedepends="python python3.4"
makedepends="python-devel python3.4-devel"
short_desc="Fast, self-healing application container server"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="GPL-2"
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
_libdir=usr/lib/uwsgi
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -e 's/ugreen,//' -i buildconf/base.ini
;;
esac
sed -e "s|uc.get('plugin_dir')|'.'|" \
-i uwsgiconfig.py
sed -e "s|\(plugin_dir =\).*|\1 /$_libdir|" \
-i buildconf/base.ini
}
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
}
}