freebsd-ports/devel/py-json-py/Makefile
Pav Lucistnik 6783597ccc json-py is a simple, pure-python implementation of a JSON (http://json.org)
reader and writer. JSON is used to exchange data across systems written in
various languages. It is particularly suited to dynamic languages like Python,
Javascript, etc. JSON = Javascript Object Notation implies it is suitable for
AJAX applications that exchange data from servers to Javascript applications
running on web browser clients.

Author:	<patrickdlogan@stardecisions.com>
WWW:	http://sourceforge.net/projects/json-py/

PR:		ports/91688
Submitted by:	Nicola Vitale <nivit@email.it>
2006-01-14 22:29:30 +00:00

37 lines
863 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
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>