freebsd-ports/devel/py-json-py/Makefile
Martin Wilke 5e9f42cbda - Move from py24 over to py25 or above
- Drop md5 support
2011-02-25 07:50:41 +00:00

37 lines
869 B
Makefile

# New ports collection makefile for: py-json-py
# Date created: 2006-01-11
# Whom: 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/./_/}
EXTRACT_SUFX= .zip
MAINTAINER= nivit@FreeBSD.org
COMMENT= A python implementation of a JSON (http//:json.org) reader/writer
NO_WRKSUBDIR= yes
USE_PYTHON= 2.5+
USE_ZIP= 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>