aboutsummaryrefslogtreecommitdiff
path: root/devel/py-json-py/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-01-14 22:29:30 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-01-14 22:29:30 +0000
commit6783597ccc80608a9bafa728532f927fb26bb204 (patch)
tree82e5c211b02afb52cf118beffd36452ca23e83c4 /devel/py-json-py/Makefile
parenta4d00ebb66b2229ece0c745d99ec198fb2b26da7 (diff)
downloadports-6783597ccc80608a9bafa728532f927fb26bb204.tar.gz
ports-6783597ccc80608a9bafa728532f927fb26bb204.zip
Notes
Diffstat (limited to 'devel/py-json-py/Makefile')
-rw-r--r--devel/py-json-py/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/devel/py-json-py/Makefile b/devel/py-json-py/Makefile
new file mode 100644
index 000000000000..10eabf904261
--- /dev/null
+++ b/devel/py-json-py/Makefile
@@ -0,0 +1,37 @@
+# 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
+CATEGORIES= devel lang www
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= nivit@email.it
+COMMENT= A python implementation of a JSON (http//:json.org) reader/writer
+
+NO_WRKSUBDIR= yes
+
+USE_PYTHON= 2.4
+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; \
+ done; \
+
+do-install:
+ @cd ${WRKDIR}; \
+ ${FIND} . \( -name "*.py" -or -name "*.pyc" \) -exec ${INSTALL_SCRIPT} \{\} ${PYTHON_SITELIBDIR} \;
+
+.include <bsd.port.mk>