pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/py-gunicorn py-gunicorn: Add ALTERNATIVES and adju...
details: https://anonhg.NetBSD.org/pkgsrc/rev/fa74444f870d
branches: trunk
changeset: 371096:fa74444f870d
user: leot <leot%pkgsrc.org@localhost>
date: Fri Nov 03 14:39:27 2017 +0000
description:
py-gunicorn: Add ALTERNATIVES and adjust PLIST for multi-packages support
- Install bin/gunicorn and bin/gunicorn_paster with the PYVERSSUFFIX appended at
the end in order to be used by both Python 2 and a Python 3 package
- Adjust PLIST for bin/gunicorn{,_paster} and for all the files installed as
part of DOCDIR and EXAMPLESDIR
PKGREVISION++
diffstat:
www/py-gunicorn/ALTERNATIVES | 1 +
www/py-gunicorn/Makefile | 9 +-
www/py-gunicorn/PLIST | 148 +++++++++++++++++++++---------------------
3 files changed, 81 insertions(+), 77 deletions(-)
diffs (196 lines):
diff -r 874fba4679af -r fa74444f870d www/py-gunicorn/ALTERNATIVES
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-gunicorn/ALTERNATIVES Fri Nov 03 14:39:27 2017 +0000
@@ -0,0 +1,1 @@
+bin/gunicorn @PREFIX@/bin/gunicorn-@PYVERSSUFFIX@
diff -r 874fba4679af -r fa74444f870d www/py-gunicorn/Makefile
--- a/www/py-gunicorn/Makefile Fri Nov 03 11:22:43 2017 +0000
+++ b/www/py-gunicorn/Makefile Fri Nov 03 14:39:27 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2017/04/14 13:24:30 adam Exp $
+# $NetBSD: Makefile,v 1.10 2017/11/03 14:39:27 leot Exp $
DISTNAME= gunicorn-19.7.1
+PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_PYPI:=g/gunicorn/}
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -15,8 +16,8 @@
USE_TOOLS+= pax
-DOCDIR= ${PREFIX}/share/doc/py-gunicorn
-EXAMPLESDIR= ${PREFIX}/share/examples/py-gunicorn
+DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
+EXAMPLESDIR= ${PREFIX}/share/examples/${PKGBASE}
AUTO_MKDIRS= yes
post-install:
@@ -24,6 +25,8 @@
${DESTDIR}${DOCDIR}
cd ${WRKSRC}/examples && pax -wr -pma * \
${DESTDIR}${EXAMPLESDIR}
+ cd ${DESTDIR}${PREFIX}/bin && ${MV} gunicorn gunicorn-${PYVERSSUFFIX} || ${TRUE}
+ cd ${DESTDIR}${PREFIX}/bin && ${MV} gunicorn_paster gunicorn_paster-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 874fba4679af -r fa74444f870d www/py-gunicorn/PLIST
--- a/www/py-gunicorn/PLIST Fri Nov 03 11:22:43 2017 +0000
+++ b/www/py-gunicorn/PLIST Fri Nov 03 14:39:27 2017 +0000
@@ -1,6 +1,6 @@
-@comment $NetBSD: PLIST,v 1.7 2017/04/14 13:24:30 adam Exp $
-bin/gunicorn
-bin/gunicorn_paster
+@comment $NetBSD: PLIST,v 1.8 2017/11/03 14:39:27 leot Exp $
+bin/gunicorn-${PYVERSSUFFIX}
+bin/gunicorn_paster-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -127,74 +127,74 @@
${PYSITELIB}/gunicorn/workers/workertmp.py
${PYSITELIB}/gunicorn/workers/workertmp.pyc
${PYSITELIB}/gunicorn/workers/workertmp.pyo
-share/doc/py-gunicorn/2010-news.rst
-share/doc/py-gunicorn/2011-news.rst
-share/doc/py-gunicorn/2012-news.rst
-share/doc/py-gunicorn/2013-news.rst
-share/doc/py-gunicorn/2014-news.rst
-share/doc/py-gunicorn/2015-news.rst
-share/doc/py-gunicorn/2016-news.rst
-share/doc/py-gunicorn/2017-news.rst
-share/doc/py-gunicorn/community.rst
-share/doc/py-gunicorn/configure.rst
-share/doc/py-gunicorn/custom.rst
-share/doc/py-gunicorn/deploy.rst
-share/doc/py-gunicorn/design.rst
-share/doc/py-gunicorn/faq.rst
-share/doc/py-gunicorn/index.rst
-share/doc/py-gunicorn/install.rst
-share/doc/py-gunicorn/instrumentation.rst
-share/doc/py-gunicorn/news.rst
-share/doc/py-gunicorn/run.rst
-share/doc/py-gunicorn/settings.rst
-share/doc/py-gunicorn/signals.rst
-share/examples/py-gunicorn/alt_spec.py
-share/examples/py-gunicorn/bad.py
-share/examples/py-gunicorn/boot_fail.py
-share/examples/py-gunicorn/echo.py
-share/examples/py-gunicorn/example_config.py
-share/examples/py-gunicorn/frameworks/cherryapp.py
-share/examples/py-gunicorn/frameworks/django/README
-share/examples/py-gunicorn/frameworks/django/testing/manage.py
-share/examples/py-gunicorn/frameworks/django/testing/testing/__init__.py
-share/examples/py-gunicorn/frameworks/django/testing/testing/apps/__init__.py
-share/examples/py-gunicorn/frameworks/django/testing/testing/apps/someapp/__init__.py
-share/examples/py-gunicorn/frameworks/django/testing/testing/apps/someapp/middleware.py
-share/examples/py-gunicorn/frameworks/django/testing/testing/apps/someapp/models.py
-share/examples/py-gunicorn/frameworks/django/testing/testing/apps/someapp/templates/base.html
-share/examples/py-gunicorn/frameworks/django/testing/testing/apps/someapp/templates/home.html
-share/examples/py-gunicorn/frameworks/django/testing/testing/apps/someapp/tests.py
-share/examples/py-gunicorn/frameworks/django/testing/testing/apps/someapp/urls.py
-share/examples/py-gunicorn/frameworks/django/testing/testing/apps/someapp/views.py
-share/examples/py-gunicorn/frameworks/django/testing/testing/settings.py
-share/examples/py-gunicorn/frameworks/django/testing/testing/urls.py
-share/examples/py-gunicorn/frameworks/django/testing/testing/wsgi.py
-share/examples/py-gunicorn/frameworks/flask_sendfile.py
-share/examples/py-gunicorn/frameworks/flaskapp.py
-share/examples/py-gunicorn/frameworks/pyramidapp.py
-share/examples/py-gunicorn/frameworks/tornadoapp.py
-share/examples/py-gunicorn/frameworks/webpyapp.py
-share/examples/py-gunicorn/gunicorn_rc
-share/examples/py-gunicorn/hello.txt
-share/examples/py-gunicorn/log_app.ini
-share/examples/py-gunicorn/log_app.py
-share/examples/py-gunicorn/logging.conf
-share/examples/py-gunicorn/longpoll.py
-share/examples/py-gunicorn/multiapp.py
-share/examples/py-gunicorn/multidomainapp.py
-share/examples/py-gunicorn/nginx.conf
-share/examples/py-gunicorn/read_django_settings.py
-share/examples/py-gunicorn/readline.py
-share/examples/py-gunicorn/sendfile.py
-share/examples/py-gunicorn/server.crt
-share/examples/py-gunicorn/server.key
-share/examples/py-gunicorn/slowclient.py
-share/examples/py-gunicorn/standalone_app.py
-share/examples/py-gunicorn/supervisor.conf
-share/examples/py-gunicorn/test.py
-share/examples/py-gunicorn/timeout.py
-share/examples/py-gunicorn/websocket/gevent_websocket.py
-share/examples/py-gunicorn/websocket/websocket.html
-share/examples/py-gunicorn/websocket/websocket.py
-share/examples/py-gunicorn/when_ready.conf.py
-@pkgdir share/examples/py-gunicorn/frameworks/django/djangotest/testing/templates
+share/doc/${PKGBASE}/2010-news.rst
+share/doc/${PKGBASE}/2011-news.rst
+share/doc/${PKGBASE}/2012-news.rst
+share/doc/${PKGBASE}/2013-news.rst
+share/doc/${PKGBASE}/2014-news.rst
+share/doc/${PKGBASE}/2015-news.rst
+share/doc/${PKGBASE}/2016-news.rst
+share/doc/${PKGBASE}/2017-news.rst
+share/doc/${PKGBASE}/community.rst
+share/doc/${PKGBASE}/configure.rst
+share/doc/${PKGBASE}/custom.rst
+share/doc/${PKGBASE}/deploy.rst
+share/doc/${PKGBASE}/design.rst
+share/doc/${PKGBASE}/faq.rst
+share/doc/${PKGBASE}/index.rst
+share/doc/${PKGBASE}/install.rst
+share/doc/${PKGBASE}/instrumentation.rst
+share/doc/${PKGBASE}/news.rst
+share/doc/${PKGBASE}/run.rst
+share/doc/${PKGBASE}/settings.rst
+share/doc/${PKGBASE}/signals.rst
+share/examples/${PKGBASE}/alt_spec.py
+share/examples/${PKGBASE}/bad.py
+share/examples/${PKGBASE}/boot_fail.py
+share/examples/${PKGBASE}/echo.py
+share/examples/${PKGBASE}/example_config.py
+share/examples/${PKGBASE}/frameworks/cherryapp.py
+share/examples/${PKGBASE}/frameworks/django/README
+share/examples/${PKGBASE}/frameworks/django/testing/manage.py
+share/examples/${PKGBASE}/frameworks/django/testing/testing/__init__.py
+share/examples/${PKGBASE}/frameworks/django/testing/testing/apps/__init__.py
+share/examples/${PKGBASE}/frameworks/django/testing/testing/apps/someapp/__init__.py
+share/examples/${PKGBASE}/frameworks/django/testing/testing/apps/someapp/middleware.py
+share/examples/${PKGBASE}/frameworks/django/testing/testing/apps/someapp/models.py
+share/examples/${PKGBASE}/frameworks/django/testing/testing/apps/someapp/templates/base.html
+share/examples/${PKGBASE}/frameworks/django/testing/testing/apps/someapp/templates/home.html
+share/examples/${PKGBASE}/frameworks/django/testing/testing/apps/someapp/tests.py
+share/examples/${PKGBASE}/frameworks/django/testing/testing/apps/someapp/urls.py
+share/examples/${PKGBASE}/frameworks/django/testing/testing/apps/someapp/views.py
+share/examples/${PKGBASE}/frameworks/django/testing/testing/settings.py
+share/examples/${PKGBASE}/frameworks/django/testing/testing/urls.py
+share/examples/${PKGBASE}/frameworks/django/testing/testing/wsgi.py
+share/examples/${PKGBASE}/frameworks/flask_sendfile.py
+share/examples/${PKGBASE}/frameworks/flaskapp.py
+share/examples/${PKGBASE}/frameworks/pyramidapp.py
+share/examples/${PKGBASE}/frameworks/tornadoapp.py
+share/examples/${PKGBASE}/frameworks/webpyapp.py
+share/examples/${PKGBASE}/gunicorn_rc
+share/examples/${PKGBASE}/hello.txt
+share/examples/${PKGBASE}/log_app.ini
+share/examples/${PKGBASE}/log_app.py
+share/examples/${PKGBASE}/logging.conf
+share/examples/${PKGBASE}/longpoll.py
+share/examples/${PKGBASE}/multiapp.py
+share/examples/${PKGBASE}/multidomainapp.py
+share/examples/${PKGBASE}/nginx.conf
+share/examples/${PKGBASE}/read_django_settings.py
+share/examples/${PKGBASE}/readline.py
+share/examples/${PKGBASE}/sendfile.py
+share/examples/${PKGBASE}/server.crt
+share/examples/${PKGBASE}/server.key
+share/examples/${PKGBASE}/slowclient.py
+share/examples/${PKGBASE}/standalone_app.py
+share/examples/${PKGBASE}/supervisor.conf
+share/examples/${PKGBASE}/test.py
+share/examples/${PKGBASE}/timeout.py
+share/examples/${PKGBASE}/websocket/gevent_websocket.py
+share/examples/${PKGBASE}/websocket/websocket.html
+share/examples/${PKGBASE}/websocket/websocket.py
+share/examples/${PKGBASE}/when_ready.conf.py
+@pkgdir share/examples/${PKGBASE}/frameworks/django/djangotest/testing/templates
Home |
Main Index |
Thread Index |
Old Index