blob: 03bb1af7e7a7e0e25bf35334f5cc0023fe6110a8 (
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
|
# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= json-py
DISTVERSION= 3_4
PORTREVISION= 1
CATEGORIES= devel lang www python
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= Python implementation of a JSON (http//:json.org) reader/writer
LICENSE= LGPL20
NO_WRKSUBDIR= yes
USES= python zip
do-build:
# compile python files
cd ${WRKDIR}; \
FILES=$$(${FIND} . -name "*.py" ); \
for FILE in $${FILES}; do \
${ECHO} import `basename $${FILE} .py` | ${PYTHON_CMD}; \
done; \
do-install:
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
@cd ${WRKDIR}; \
${FIND} . \( -name "*.py" -or -name "*.pyc" \) -exec ${INSTALL_SCRIPT} \{\} ${STAGEDIR}${PYTHON_SITELIBDIR} \;
.include <bsd.port.mk>
|