aboutsummaryrefslogtreecommitdiff
path: root/devel/py-simplejson
diff options
context:
space:
mode:
authorNicola Vitale <nivit@FreeBSD.org>2007-04-03 12:34:32 +0000
committerNicola Vitale <nivit@FreeBSD.org>2007-04-03 12:34:32 +0000
commit63abc32bbf7b4bab13c2fa82025df65862d83b96 (patch)
treefa9be081a03056ce4d50aae339dc1a0937f96fe0 /devel/py-simplejson
parent202ad5ce78aca611ad92e07f9669da0f51af88fe (diff)
downloadports-63abc32bbf7b4bab13c2fa82025df65862d83b96.tar.gz
ports-63abc32bbf7b4bab13c2fa82025df65862d83b96.zip
Notes
Diffstat (limited to 'devel/py-simplejson')
-rw-r--r--devel/py-simplejson/Makefile12
-rw-r--r--devel/py-simplejson/pkg-plist4
2 files changed, 11 insertions, 5 deletions
diff --git a/devel/py-simplejson/Makefile b/devel/py-simplejson/Makefile
index 849b13cee6b7..526beb69e09c 100644
--- a/devel/py-simplejson/Makefile
+++ b/devel/py-simplejson/Makefile
@@ -20,16 +20,22 @@ RUN_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-PYSIMPLEJSON_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}-freebsd-${OSRELEASE}-${ARCH}.egg
+PYSIMPLEJSON_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}-${OSINFOS}.egg
+OSINFOS= ${OPSYS:L}-${OSRELEASE}-${ARCH}
-PLIST_SUB+= PYSIMPLEJSON_EGG=${PYSIMPLEJSON_EGG} \
- EGG_VER="${PORTNAME}==${PORTVERSION}"
+PLIST_SUB+= PYSIMPLEJSON_EGG=${PYSIMPLEJSON_EGG}
.if !defined(NOPORTDOCS)
DOCSDIR= ${TARGETDIR}/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}
diff --git a/devel/py-simplejson/pkg-plist b/devel/py-simplejson/pkg-plist
index cef763fff859..4dddf1c86727 100644
--- a/devel/py-simplejson/pkg-plist
+++ b/devel/py-simplejson/pkg-plist
@@ -1,4 +1,4 @@
@comment $FreeBSD$
-@unexec easy_install -q -m -S %D/%%PYTHON_SITELIBDIR%% %%EGG_VER%%
+@unexec easy_install -q -N -m %D/%%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%%
%%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%%
-@exec easy_install -q -N -S %D/%%PYTHON_SITELIBDIR%% %%EGG_VER%%
+@exec easy_install -N %D/%%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%%