diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/libproxy-python/Makefile | 30 | ||||
-rw-r--r-- | net/libproxy-python/pkg-plist | 1 | ||||
-rw-r--r-- | net/libproxy/Makefile | 3 |
3 files changed, 16 insertions, 18 deletions
diff --git a/net/libproxy-python/Makefile b/net/libproxy-python/Makefile index c6322f1fea9c..87fd63916fb5 100644 --- a/net/libproxy-python/Makefile +++ b/net/libproxy-python/Makefile @@ -2,36 +2,32 @@ # $FreeBSD$ # $MCom: ports/net/libproxy-python/Makefile,v 1.1 2011/01/12 13:10:54 kwm Exp $ -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= net lang PKGNAMESUFFIX= -python MAINTAINER= gnome@FreeBSD.org COMMENT= python binding for libproxy -LIB_DEPENDS= libproxy.so:${PORTSDIR}/net/libproxy +RUN_DEPENDS= libproxy>=${PORTVERSION}:${PORTSDIR}/net/libproxy MASTERDIR= ${.CURDIR}/../libproxy DESCR= ${.CURDIR}/pkg-descr PLIST= ${.CURDIR}/pkg-plist -USES+= python -LIBPROXY_SLAVE= python +INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}/bindings/python +NO_ARCH= yes +NO_BUILD= yes +USES= python -do-build: -# empty +LIBPROXY_SLAVE= python -post-build: - ${PYTHON_CMD} -Qold ${PYTHON_LIBDIR}/compileall.py \ - ${WRKSRC}/bindings/python +post-install: + ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ + -f -d ${PYTHONPREFIX_SITELIBDIR} \ + ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ - ${WRKSRC}/bindings/python - -do-install: - @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} -.for file in libproxy.py libproxy.pyc libproxy.pyo - ${INSTALL_DATA} ${WRKSRC}/bindings/python/${file} \ - ${STAGEDIR}${PYTHON_SITELIBDIR} -.endfor + -f -d ${PYTHONPREFIX_SITELIBDIR} \ + ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} .include "${MASTERDIR}/Makefile" diff --git a/net/libproxy-python/pkg-plist b/net/libproxy-python/pkg-plist index 242e682abd7d..3c6098ab109f 100644 --- a/net/libproxy-python/pkg-plist +++ b/net/libproxy-python/pkg-plist @@ -1,4 +1,3 @@ %%PYTHON_SITELIBDIR%%/libproxy.py %%PYTHON_SITELIBDIR%%/libproxy.pyc %%PYTHON_SITELIBDIR%%/libproxy.pyo -@dir lib/libproxy/%%VERSION%%/modules diff --git a/net/libproxy/Makefile b/net/libproxy/Makefile index e8b88936121f..619ed419c3bf 100644 --- a/net/libproxy/Makefile +++ b/net/libproxy/Makefile @@ -66,7 +66,10 @@ CMAKE_ARGS+= -DWITH_MOZJS:BOOL=OFF . endif .endif +# This will be removed after the update to 0.4.12. +.if !target(post-install) post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/libproxy/${PORTVERSION}/modules/ +.endif .include <bsd.port.mk> |