# New ports collection makefile for: py-simplejson # Date created: 25 Apr 2006 # Whom: Alexander Botero-Lowry # # $FreeBSD$ # PORTNAME= simplejson PORTVERSION= 1.7.3 CATEGORIES= devel python MASTER_SITES= http://cheeseshop.python.org/packages/source/s/simplejson/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org COMMENT= Simplejson is a simple, fast, extensible JSON encoder/decoder BUILD_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools RUN_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_NOEGGINFO= yes # XXX use bsd.python.mk's PYSIMPLEJSON_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}-${OSINFOS}.egg OSINFOS= ${OPSYS:L}-${OSRELEASE}-${ARCH} PLIST_SUB+= PYSIMPLEJSON_EGG=${PYSIMPLEJSON_EGG} .if !defined(NOPORTDOCS) DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} PORTDOCS= * .endif pre-build: @cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-platlib -s lib.${OSINFOS} @cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-temp -s temp.${OSINFOS}-${PYTHON_VER} @cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist_egg -o plat-name -s ${OSINFOS} @cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist -o plat-name -s ${OSINFOS} post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${CP} -R ${WRKSRC}/docs/ ${DOCSDIR} .endif .include OSRELEASE!= uname -r .include