freebsd-ports/devel/py-simplejson/Makefile
Gabor Kovesdan 42542fb076 - Remove the DESTDIR modifications from individual ports as we have a new,
fully chrooted DESTDIR, which does not need such any more.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
2007-08-04 11:41:30 +00:00

50 lines
1.4 KiB
Makefile

# New ports collection makefile for: py-simplejson
# Date created: 25 Apr 2006
# Whom: Alexander Botero-Lowry <alex@foxybanana.com>
#
# $FreeBSD$
#
PORTNAME= simplejson
PORTVERSION= 1.7.1
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 <bsd.port.pre.mk>
OSRELEASE!= uname -r
.include <bsd.port.post.mk>