1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/devel/py-json-py/Makefile
2014-03-07 16:49:09 +00:00

34 lines
785 B
Makefile

# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= json-py
PORTVERSION= 3.4
PORTREVISION= 1
CATEGORIES= devel lang www python
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/3_4
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A python implementation of a JSON (http//:json.org) reader/writer
NO_WRKSUBDIR= yes
USES= zip
USE_PYTHON= yes
NO_STAGE= yes
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:
@cd ${WRKDIR}; \
${FIND} . \( -name "*.py" -or -name "*.pyc" \) -exec ${INSTALL_SCRIPT} \{\} ${PYTHON_SITELIBDIR} \;
.include <bsd.port.mk>