aboutsummaryrefslogtreecommitdiff
path: root/net/libproxy
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2016-01-19 09:50:10 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2016-01-19 09:50:10 +0000
commite799f2f50a6645721a225a0326ff014b4e8aa24d (patch)
tree1454115eb8e2fdbab72c0980c8f71e1d16094f13 /net/libproxy
parent9411038eacf8c027319e1ce2f480630a0e063c5d (diff)
downloadports-e799f2f50a6645721a225a0326ff014b4e8aa24d.tar.gz
ports-e799f2f50a6645721a225a0326ff014b4e8aa24d.zip
Modernize net/libproxy-python and fix dependencies.
In preparation for updating the libproxy ports to 0.4.12, first land some changes that also apply to 0.4.6 and can be MFH'ed. - Make net/libproxy a run-time dependency: we only install .py files in this port, and they only load libproxy.so when being run. Consequently, also set NO_ARCH=yes. - Set NO_BUILD=yes and modernize the installation. Instead of having an empty do-build target and invoking Python's compileall.py in post-build, do it like most other ports and call it in post-install (this requires guarding the post-install target in net/libproxy's Makefile). We also pass -d to compileall.py to avoid having ${STAGEDIR} in the .pyc and .pyo files (and shown in exception tracebacks). - Let the port handle installation instead of defining do-install. We just need to set INSTALL_WRKSRC appropriately to avoid installing more files than we want. Approved by: gnome (kwm)
Notes
Notes: svn path=/head/; revision=406678
Diffstat (limited to 'net/libproxy')
-rw-r--r--net/libproxy/Makefile3
1 files changed, 3 insertions, 0 deletions
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>