summaryrefslogtreecommitdiff
path: root/converters/py-simplejson
diff options
context:
space:
mode:
authormjl <mjl@pkgsrc.org>2008-09-11 16:32:06 +0000
committermjl <mjl@pkgsrc.org>2008-09-11 16:32:06 +0000
commit840959f0bb204600800b217711e1611a80cb9e3d (patch)
treea51614a3875c688698625aa86cbd0d337d9f23c1 /converters/py-simplejson
parentd93e7deba20dd68e2fd7d1137891745af1b0db6f (diff)
downloadpkgsrc-840959f0bb204600800b217711e1611a80cb9e3d.tar.gz
Use egg.mk instead of manually infer egg name and add destdir support.
Thanks to Eric Gillespie epg@ for the patch.
Diffstat (limited to 'converters/py-simplejson')
-rw-r--r--converters/py-simplejson/Makefile9
-rw-r--r--converters/py-simplejson/PLIST16
2 files changed, 13 insertions, 12 deletions
diff --git a/converters/py-simplejson/Makefile b/converters/py-simplejson/Makefile
index 139cde20e99..38356387a1a 100644
--- a/converters/py-simplejson/Makefile
+++ b/converters/py-simplejson/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.3 2008/09/10 14:01:35 mjl Exp $
+# $NetBSD: Makefile,v 1.4 2008/09/11 16:32:06 mjl Exp $
#
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
DISTNAME= simplejson-1.9.2
+EGG_NAME= ${DISTNAME}
CATEGORIES= converters
MASTER_SITES= http://pypi.python.org/packages/source/s/simplejson/
@@ -10,12 +11,12 @@ MAINTAINER= pkgsrc@NetBSD.org
HOMEPAGE= http://undefined.org/python/#simplejson
COMMENT= Simplejson is a simple, fast, extensible JSON encoder/decoder
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_LANGUAGES= c
PYDISTUTILSPKG= yes
PYBINMODULE= yes
-PYSETUPINSTALLARGS= --single-version-externally-managed --record plist.txt
-PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
-.include "../../lang/python/extension.mk"
+.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/converters/py-simplejson/PLIST b/converters/py-simplejson/PLIST
index fb926bf8de2..d4e1c2f3a8e 100644
--- a/converters/py-simplejson/PLIST
+++ b/converters/py-simplejson/PLIST
@@ -1,10 +1,10 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2008/09/10 13:53:29 mjl Exp $
-${PYSITELIB}/simplejson-1.9.2-py${PYVERSSUFFIX}.egg-info/PKG-INFO
-${PYSITELIB}/simplejson-1.9.2-py${PYVERSSUFFIX}.egg-info/SOURCES.txt
-${PYSITELIB}/simplejson-1.9.2-py${PYVERSSUFFIX}.egg-info/dependency_links.txt
-${PYSITELIB}/simplejson-1.9.2-py${PYVERSSUFFIX}.egg-info/native_libs.txt
-${PYSITELIB}/simplejson-1.9.2-py${PYVERSSUFFIX}.egg-info/top_level.txt
-${PYSITELIB}/simplejson-1.9.2-py${PYVERSSUFFIX}.egg-info/zip-safe
+@comment $NetBSD: PLIST,v 1.2 2008/09/11 16:32:06 mjl Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/native_libs.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${EGG_INFODIR}/zip-safe
${PYSITELIB}/simplejson/__init__.py
${PYSITELIB}/simplejson/__init__.pyc
${PYSITELIB}/simplejson/__init__.pyo
@@ -66,6 +66,6 @@ ${PYSITELIB}/simplejson/tests/test_unicode.pyo
${PYSITELIB}/simplejson/tool.py
${PYSITELIB}/simplejson/tool.pyc
${PYSITELIB}/simplejson/tool.pyo
-@dirrm ${PYSITELIB}/simplejson-1.9.2-py${PYVERSSUFFIX}.egg-info
@dirrm ${PYSITELIB}/simplejson/tests
+@dirrm ${PYSITELIB}/${EGG_INFODIR}
@dirrm ${PYSITELIB}/simplejson