Date: 3 Apr 2007 08:43:16 -0000 From: nivit@email.it (Nicola Vitale) To: FreeBSD-gnats-submit@FreeBSD.org Cc: python@FreeBSD.org Subject: ports/111182: [PATCH] devel/py-simplejson: fix build on pointyhat Message-ID: <20070403084316.3471.qmail@arancino> Resent-Message-ID: <200704030910.l339A3Wv052092@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 111182 >Category: ports >Synopsis: [PATCH] devel/py-simplejson: fix build on pointyhat >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Apr 03 09:10:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Nicola Vitale >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD arancino.domo.sva 6.2-STABLE FreeBSD 6.2-STABLE #13: Fri Mar 30 10:55:00 CEST 2007 >Description: - Fix build on pointyhat (see http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.5.2007032502/py24-simplejson-1.7.log ) Port maintainer (python@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- py24-simplejson-1.7.1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/devel/py-simplejson/Makefile /usr/ports/devel/py-simplejson.fix_build/Makefile --- /usr/ports/devel/py-simplejson/Makefile Tue Apr 3 10:17:59 2007 +++ /usr/ports/devel/py-simplejson.fix_build/Makefile Tue Apr 3 10:14:00 2007 @@ -20,15 +20,21 @@ 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) diff -ruN --exclude=CVS /usr/ports/devel/py-simplejson/pkg-plist /usr/ports/devel/py-simplejson.fix_build/pkg-plist --- /usr/ports/devel/py-simplejson/pkg-plist Sat Jan 27 21:34:18 2007 +++ /usr/ports/devel/py-simplejson.fix_build/pkg-plist Mon Mar 19 19:59:00 2007 @@ -1,4 +1,4 @@ @comment $FreeBSD: ports/devel/py-simplejson/pkg-plist,v 1.3 2007/01/27 00:35:01 nivit Exp $ -@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%% --- py24-simplejson-1.7.1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070403084316.3471.qmail>