summaryrefslogtreecommitdiff
path: root/www/py-mod_wsgi/Makefile
blob: bf65e9f2bb1ef28f69d58f19ddb40c136141544b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $NetBSD: Makefile,v 1.13 2017/11/23 10:35:43 adam Exp $

DISTNAME=	mod_wsgi-4.5.22
PKGNAME=	${PYPKGPREFIX}-${APACHE_PKG_PREFIX}-${DISTNAME}
CATEGORIES=	www python
MASTER_SITES=	${MASTER_SITE_PYPI:=m/mod_wsgi/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.modwsgi.org/
COMMENT=	WSGI module for apache
LICENSE=	apache-2.0

PKG_APACHE_ACCEPTED=	apache22 apache24

DEPENDS+=	${PYPKGPREFIX}-mod_wsgi-metrics>=1.0.0:../../www/py-mod_wsgi-metrics

APACHE_MODULE=		yes
MESSAGE_SUBST+=		PYSITELIB=${PYSITELIB}
MESSAGE_SUBST+=		PYPKGPREFIX=${PYPKGPREFIX}
PLIST_SUBST+=		PYPKGPREFIX=${PYPKGPREFIX}

# __init__.py is the same as in mod_wsgi-metrics; remove it to avoid conflict
post-extract:
	${RM} -f ${WRKSRC}/src/__init__.py

post-install:
	cd ${DESTDIR}${PREFIX}/bin/ && \
		${MV} mod_wsgi-express mod_wsgi-express${PYVERSSUFFIX} || ${TRUE}

.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/apache.mk"
.include "../../mk/bsd.pkg.mk"