From 63abc32bbf7b4bab13c2fa82025df65862d83b96 Mon Sep 17 00:00:00 2001 From: Nicola Vitale Date: Tue, 3 Apr 2007 12:34:32 +0000 Subject: - Fix build on pointyhat (use --plat-name option for bdist_egg, the egg filename for easy_install) PR: ports/111182 Submitted by: nivit --- devel/py-simplejson/Makefile | 12 +++++++++--- devel/py-simplejson/pkg-plist | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'devel/py-simplejson') 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%% -- cgit v1.2.3