pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-uwsgi Unbreak the option handling. Restore open...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7cd235061b34
branches:  trunk
changeset: 377420:7cd235061b34
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Mar 16 23:39:54 2018 +0000

description:
Unbreak the option handling. Restore openssl and PCRE option.

diffstat:

 www/py-uwsgi/Makefile        |  10 ++++++++--
 www/py-uwsgi/Makefile.common |   7 +------
 www/py-uwsgi/options.mk      |  24 +++++++++++++++++-------
 3 files changed, 26 insertions(+), 15 deletions(-)

diffs (115 lines):

diff -r d4bca3967d48 -r 7cd235061b34 www/py-uwsgi/Makefile
--- a/www/py-uwsgi/Makefile     Fri Mar 16 23:39:33 2018 +0000
+++ b/www/py-uwsgi/Makefile     Fri Mar 16 23:39:54 2018 +0000
@@ -1,16 +1,21 @@
-# $NetBSD: Makefile,v 1.39 2018/03/02 16:14:46 joerg Exp $
+# $NetBSD: Makefile,v 1.40 2018/03/16 23:39:54 joerg Exp $
 
 .include  "Makefile.common"
 
+LICENSE=       gnu-gpl-v2 # with linking exception
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 COMMENT=       Feature-rich WSGI server
 
+USE_LANGUAGES= c
+USE_TOOLS+=    pkg-config
+
 PLIST_SUBST+=  PYPKGPREFIX=${PYPKGPREFIX}
 EGG_NAME=      ${DISTNAME:S/uwsgi/uWSGI/}
 
 .include "options.mk"
 
-INSTALL_ENV+=          UWSGI_PROFILE_OVERRIDE="${UWSGI_DEBUG}${UWSGI_JSON}${UWSGI_PCRE}${UWSGI_SSL}${UWSGI_UUID}${UWSGI_XML}${UWSGI_YAML}"
+INSTALL_ENV+=          UWSGI_INCLUDES=${PREFIX}/include
+INSTALL_ENV+=          UWSGI_PROFILE_OVERRIDE="${UWSGI_DEBUG};${UWSGI_JSON};${UWSGI_PCRE};${UWSGI_SSL};${UWSGI_UUID};${UWSGI_XML};${UWSGI_YAML}"
 INSTALLATION_DIRS+=    share/examples/${PYPKGPREFIX}-uwsgi
 
 post-install:
@@ -18,5 +23,6 @@
        ${INSTALL_DATA} ${WRKSRC}/examples/* \
                ${DESTDIR}${PREFIX}/share/examples/${PYPKGPREFIX}-uwsgi
 
+.include "../../devel/zlib/buildlink3.mk"
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r d4bca3967d48 -r 7cd235061b34 www/py-uwsgi/Makefile.common
--- a/www/py-uwsgi/Makefile.common      Fri Mar 16 23:39:33 2018 +0000
+++ b/www/py-uwsgi/Makefile.common      Fri Mar 16 23:39:54 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.1 2018/03/02 16:15:35 joerg Exp $
+# $NetBSD: Makefile.common,v 1.2 2018/03/16 23:39:54 joerg Exp $
 #
 # used by www/ap-uwsgi/Makefile
 # used by www/py-uwsgi/Makefile
@@ -14,10 +14,5 @@
 PATCHDIR=              ${.CURDIR}/../../www/py-uwsgi/patches
 DISTINFO_FILE=         ${.CURDIR}/../../www/py-uwsgi/distinfo
 
-USE_LANGUAGES= c
-USE_TOOLS+=    pkg-config
-
-INSTALL_ENV+=          UWSGI_INCLUDES=${PREFIX}/include
-
 .include "../../mk/dlopen.buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
diff -r d4bca3967d48 -r 7cd235061b34 www/py-uwsgi/options.mk
--- a/www/py-uwsgi/options.mk   Fri Mar 16 23:39:33 2018 +0000
+++ b/www/py-uwsgi/options.mk   Fri Mar 16 23:39:54 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.2 2018/02/13 08:34:03 adam Exp $
+# $NetBSD: options.mk,v 1.3 2018/03/16 23:39:54 joerg Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.py-uwsgi
-PKG_SUPPORTED_OPTIONS= debug uuid yaml
-PKG_SUGGESTED_OPTIONS+=        libxml2
+PKG_SUPPORTED_OPTIONS= debug openssl pcre uuid yaml
+PKG_SUGGESTED_OPTIONS+=        libxml2 openssl
 
 PKG_OPTIONS_OPTIONAL_GROUPS+=  json xml
 PKG_OPTIONS_GROUP.json=                jansson yajl
@@ -15,7 +15,6 @@
 UWSGI_DEBUG=                   debug=true
 .endif
 
-UWSGI_XML=                     xml=auto
 .if !empty(PKG_OPTIONS:Mexpat)
 .include "../../textproc/expat/buildlink3.mk"
 UWSGI_XML=                     xml=expat
@@ -26,7 +25,6 @@
 UWSGI_XML=                     xml=false
 .endif
 
-UWSGI_JSON=                    json=auto
 .if !empty(PKG_OPTIONS:Mjansson)
 .include "../../textproc/jansson/buildlink3.mk"
 UWSGI_JSON=                    json=jansson
@@ -38,7 +36,20 @@
 UWSGI_JSON=                    json=false
 .endif
 
-UWSGI_UUID=                    uuid=auto
+.if !empty(PKG_OPTIONS:Mopenssl)
+.include "../../security/openssl/buildlink3.mk"
+UWSGI_SSL=                     ssl=true
+.else
+UWSGI_SSL=                     ssl=false
+.endif
+
+.if !empty(PKG_OPTIONS:Mpcre)
+.include "../../devel/pcre/buildlink3.mk"
+UWSGI_PCRE=                    pcre=true
+.else
+UWSGI_PCRE=                    pcre=false
+.endif
+
 .if !empty(PKG_OPTIONS:Muuid)
 .include "../../devel/libuuid/buildlink3.mk"
 UWSGI_UUID=                    uuid=true
@@ -46,7 +57,6 @@
 UWSGI_UUID=                    uuid=false
 .endif
 
-UWSGI_YAML=                    yaml=auto
 .if !empty(PKG_OPTIONS:Myaml)
 .include "../../textproc/libyaml/buildlink3.mk"
 UWSGI_YAML=                    yaml=true



Home | Main Index | Thread Index | Old Index