c1adb9d484
- 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++
32 lines
933 B
Makefile
32 lines
933 B
Makefile
# $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}
|
|
|
|
MAINTAINER= gls@NetBSD.org
|
|
HOMEPAGE= http://gunicorn.org/
|
|
COMMENT= Python WSGI HTTP server
|
|
LICENSE= mit
|
|
|
|
# These depends is used for test
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-cov>=0:../../devel/py-test-cov
|
|
|
|
USE_TOOLS+= pax
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
AUTO_MKDIRS= yes
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/docs/source && pax -wr -pma *.rst \
|
|
${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"
|