[PATCH] devel/py-simplejson: fix build on pointyhat
Nicola Vitale
nivit at email.it
Tue Apr 3 09:04:30 UTC 2007
>Submitter-Id: current-users
>Originator: Nicola Vitale
>Organization:
>Confidential: no
>Synopsis: [PATCH] devel/py-simplejson: fix build on pointyhat
>Severity: non-critical
>Priority: low
>Category: ports
>Class: change-request
>Release: FreeBSD 6.2-STABLE i386
>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 at 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 $
- at unexec easy_install -q -m -S %D/%%PYTHON_SITELIBDIR%% %%EGG_VER%%
+ at unexec easy_install -q -N -m %D/%%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%%
%%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%%
- at exec easy_install -q -N -S %D/%%PYTHON_SITELIBDIR%% %%EGG_VER%%
+ at exec easy_install -N %D/%%PYTHON_SITELIBDIR%%/%%PYSIMPLEJSON_EGG%%
--- py24-simplejson-1.7.1.patch ends here ---
More information about the freebsd-python
mailing list