From owner-svn-ports-head@freebsd.org Thu Oct 29 09:36:53 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AD136A1EA4E; Thu, 29 Oct 2015 09:36:53 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6E22F1A35; Thu, 29 Oct 2015 09:36:53 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9T9aqxY037274; Thu, 29 Oct 2015 09:36:52 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9T9aqKv037271; Thu, 29 Oct 2015 09:36:52 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201510290936.t9T9aqKv037271@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Thu, 29 Oct 2015 09:36:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r400449 - in head/www/uwsgi: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2015 09:36:53 -0000 Author: koobs Date: Thu Oct 29 09:36:52 2015 New Revision: 400449 URL: https://svnweb.freebsd.org/changeset/ports/400449 Log: 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 Modified: head/www/uwsgi/Makefile head/www/uwsgi/files/patch-buildconf-base.ini head/www/uwsgi/files/patch-uwsgiconfig.py Modified: head/www/uwsgi/Makefile ============================================================================== --- head/www/uwsgi/Makefile Thu Oct 29 09:34:05 2015 (r400448) +++ head/www/uwsgi/Makefile Thu Oct 29 09:36:52 2015 (r400449) @@ -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/ Modified: head/www/uwsgi/files/patch-buildconf-base.ini ============================================================================== --- head/www/uwsgi/files/patch-buildconf-base.ini Thu Oct 29 09:34:05 2015 (r400448) +++ head/www/uwsgi/files/patch-buildconf-base.ini Thu Oct 29 09:36:52 2015 (r400449) @@ -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 Modified: head/www/uwsgi/files/patch-uwsgiconfig.py ============================================================================== --- head/www/uwsgi/files/patch-uwsgiconfig.py Thu Oct 29 09:34:05 2015 (r400448) +++ head/www/uwsgi/files/patch-uwsgiconfig.py Thu Oct 29 09:36:52 2015 (r400449) @@ -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