aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-pcapy
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2009-04-21 16:25:09 +0800
committerlwhsu <lwhsu@FreeBSD.org>2009-04-21 16:25:09 +0800
commit718016d4e5f35bf386bf81b124a52a3caa3d40b6 (patch)
tree34d61cef4a2adf5efae94c399ecfc34191058e2e /net/py-pcapy
parent97fecfd3287c34a65cb43ca3c81b1f047369e14c (diff)
downloadfreebsd-ports-gnome-718016d4e5f35bf386bf81b124a52a3caa3d40b6.tar.gz
freebsd-ports-gnome-718016d4e5f35bf386bf81b124a52a3caa3d40b6.tar.zst
freebsd-ports-gnome-718016d4e5f35bf386bf81b124a52a3caa3d40b6.zip
- Respect to NOPORTDOCS
PR: ports/133821 Submitted by: Yi-Jheng Lin <yzlin AT cs.nctu.edu.tw>
Diffstat (limited to 'net/py-pcapy')
-rw-r--r--net/py-pcapy/Makefile8
-rw-r--r--net/py-pcapy/files/patch-setup.py10
2 files changed, 18 insertions, 0 deletions
diff --git a/net/py-pcapy/Makefile b/net/py-pcapy/Makefile
index b1b1a7d3305b..b9420bb01133 100644
--- a/net/py-pcapy/Makefile
+++ b/net/py-pcapy/Makefile
@@ -16,7 +16,15 @@ COMMENT= Python extension module to capture packets on the network
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+
PLIST_FILES= %%PYTHON_SITELIBDIR%%/pcapy.so
PORTDOCS= README LICENSE pcapy.html
+.if !defined(NOPORTDOCS)
+post-install:
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+.endif
+
.include <bsd.port.mk>
diff --git a/net/py-pcapy/files/patch-setup.py b/net/py-pcapy/files/patch-setup.py
new file mode 100644
index 000000000000..a12859a8987b
--- /dev/null
+++ b/net/py-pcapy/files/patch-setup.py
@@ -0,0 +1,10 @@
+--- setup.py.orig 2009-04-19 02:22:16.549958526 +0800
++++ setup.py 2009-04-19 02:24:10.837075743 +0800
+@@ -60,7 +60,5 @@
+ include_dirs = include_dirs,
+ library_dirs = library_dirs,
+ libraries = libraries)],
+- data_files = [(os.path.join('share', 'doc', PACKAGE_NAME),
+- ['README', 'LICENSE', 'pcapy.html'])],
+ )
+