aboutsummaryrefslogtreecommitdiff
path: root/www/py-qp/Makefile
blob: c66550d0dd2649028d2096fdf8b2f8fb3a008a4b (plain) (blame)
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
34
35
36
37
38
39
40
# Created by: Dryice Liu <dryice@dryice.name>
# $FreeBSD$

PORTNAME=	qp
PORTVERSION=	2.2
PORTREVISION=	3
CATEGORIES=	www python
MASTER_SITES=	http://www.mems-exchange.org/software/qp/ \
		LOCAL/sunpoet
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Python web framework to use qpy and durus together

DEPRECATED=	Uses deprecated version of python
EXPIRATION_DATE=	2020-09-15

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}durus>=0:devel/py-durus@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}qpy>=1.7:www/py-qpy@${PY_FLAVOR}

OPTIONS_DEFINE=	DOCS EXAMPLES

USES=		python:2.7
USE_PYTHON=	distutils

SUB_FILES=	pkg-message

PORTDOCS=	CHANGES.txt LICENSE.txt README.txt
PORTEXAMPLES=	*

post-build:
	@${STRIP_CMD} ${WRKSRC}/build/lib.*/qp/hub/passfd.so

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
	cd ${WRKSRC}/ && ${PYTHON_CMD} setup.py install_demo_sites ${STAGEDIR}${EXAMPLESDIR}/

.include <bsd.port.mk>