aboutsummaryrefslogtreecommitdiffstats
path: root/www/uwsgi
diff options
context:
space:
mode:
authorkoobs <koobs@FreeBSD.org>2015-10-29 17:36:52 +0800
committerkoobs <koobs@FreeBSD.org>2015-10-29 17:36:52 +0800
commitfc33891b83d8c042c75d06fa40ee5e475250fa59 (patch)
tree85c4ae51341089612f5a928cdfdbed32ed61d1be /www/uwsgi
parent0f8931806a9b2ca3ac9f6fbc40ead1c9c2078714 (diff)
downloadfreebsd-ports-gnome-fc33891b83d8c042c75d06fa40ee5e475250fa59.tar.gz
freebsd-ports-gnome-fc33891b83d8c042c75d06fa40ee5e475250fa59.tar.zst
freebsd-ports-gnome-fc33891b83d8c042c75d06fa40ee5e475250fa59.zip
www/uwsgi: Use distutils, Add DEBUG option
- Use distutils over Makefile for building - Allow concurrent (multiple Python version) installation - Add DEBUG option - Build verbose by default - Add support for MAKE_JOBS - Remove post-patch REINPLACE_CMD (no longer needed) - Make patches makepatch compatible (portlint) Approved by: demon (maintainer) Differential Revision: https://reviews.freebsd.org/D4022
Diffstat (limited to 'www/uwsgi')
-rw-r--r--www/uwsgi/Makefile16
-rw-r--r--www/uwsgi/files/patch-buildconf-base.ini4
-rw-r--r--www/uwsgi/files/patch-uwsgiconfig.py6
3 files changed, 18 insertions, 8 deletions
diff --git a/www/uwsgi/Makefile b/www/uwsgi/Makefile
index 4fa1cfe2c4f1..5d7101688277 100644
--- a/www/uwsgi/Makefile
+++ b/www/uwsgi/Makefile
@@ -3,7 +3,7 @@
PORTNAME= uwsgi
PORTVERSION= 2.0.11.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www python
MASTER_SITES= http://projects.unbit.it/downloads/
@@ -14,16 +14,26 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python
+USE_PYTHON= concurrent distutils
USE_RC_SUBR= uwsgi
+OPTIONS_DEFINE= DEBUG
+
+DEBUG_VARS= PYDISTUTILS_BUILDARGS+=--debug
+
LDFLAGS+= "-L${LOCALBASE}/lib"
+MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER}
MAKE_ARGS+= UWSGI_EMBED_PLUGINS=cgi
+PYSETUP= uwsgiconfig.py
+PYDISTUTILS_BUILD_TARGET= --build
+PYDISTUTILS_BUILDARGS= --verbose
+
PLIST_FILES= bin/uwsgi \
%%PYTHON_SITELIBDIR%%/uwsgidecorators.py
-post-patch:
- ${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|' ${WRKSRC}/Makefile
+do-configure:
+ @${DO_NADA}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
diff --git a/www/uwsgi/files/patch-buildconf-base.ini b/www/uwsgi/files/patch-buildconf-base.ini
index 79e0d901a86a..5c6adafcc14c 100644
--- a/www/uwsgi/files/patch-buildconf-base.ini
+++ b/www/uwsgi/files/patch-buildconf-base.ini
@@ -1,5 +1,5 @@
---- buildconf/base.ini.bak 2013-12-12 06:57:30.000000000 +0400
-+++ buildconf/base.ini 2013-12-12 14:54:32.000000000 +0400
+--- buildconf/base.ini.orig 2015-10-07 04:34:01 UTC
++++ buildconf/base.ini
@@ -1,9 +1,9 @@
[uwsgi]
-xml = auto
diff --git a/www/uwsgi/files/patch-uwsgiconfig.py b/www/uwsgi/files/patch-uwsgiconfig.py
index 4247e4687341..704318ba22a8 100644
--- a/www/uwsgi/files/patch-uwsgiconfig.py
+++ b/www/uwsgi/files/patch-uwsgiconfig.py
@@ -1,6 +1,6 @@
---- uwsgiconfig.py.bak 2013-10-11 07:59:20.000000000 +0400
-+++ uwsgiconfig.py 2013-10-11 15:06:52.000000000 +0400
-@@ -694,15 +694,6 @@
+--- uwsgiconfig.py.orig 2015-10-07 04:34:01 UTC
++++ uwsgiconfig.py
+@@ -784,15 +784,6 @@ class uConf(object):
self.cflags.append('-DUWSGI_HAS_IFADDRS')
report['ifaddrs'] = True