aboutsummaryrefslogtreecommitdiffstats
path: root/dns/py-dns
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-02-20 01:50:58 +0800
committerantoine <antoine@FreeBSD.org>2014-02-20 01:50:58 +0800
commit2b4e72fe249d65b815528c78480c05eed198ded6 (patch)
tree7e7ba2b76e1f8161e29c47ee08ea60924e035765 /dns/py-dns
parentac31f660863b836c7d987fc98edf30a3468fcb07 (diff)
downloadfreebsd-ports-gnome-2b4e72fe249d65b815528c78480c05eed198ded6.tar.gz
freebsd-ports-gnome-2b4e72fe249d65b815528c78480c05eed198ded6.tar.zst
freebsd-ports-gnome-2b4e72fe249d65b815528c78480c05eed198ded6.zip
- Stage support
- Use PYDISTUTILS_AUTOPLIST
Diffstat (limited to 'dns/py-dns')
-rw-r--r--dns/py-dns/Makefile16
-rw-r--r--dns/py-dns/pkg-plist31
2 files changed, 4 insertions, 43 deletions
diff --git a/dns/py-dns/Makefile b/dns/py-dns/Makefile
index d5140f6d210f..e7ab18a20863 100644
--- a/dns/py-dns/Makefile
+++ b/dns/py-dns/Makefile
@@ -19,23 +19,15 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USE_PYTHON= 2
USE_PYDISTUTILS= yes
-PYDISTUTILS_PKGNAME= pydns
+PYDISTUTILS_AUTOPLIST= yes
-DOCS= README.txt README-guido.txt
+PORTDOCS= README.txt README-guido.txt
DOCSDIR= ${PREFIX}/share/doc/py-dns
-NO_STAGE= yes
-
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
post-install:
- @${MKDIR} ${DOCSDIR}
-.for file in ${DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/dns/py-dns/pkg-plist b/dns/py-dns/pkg-plist
deleted file mode 100644
index 452036140402..000000000000
--- a/dns/py-dns/pkg-plist
+++ /dev/null
@@ -1,31 +0,0 @@
-%%PYTHON_SITELIBDIR%%/DNS/Base.py
-%%PYTHON_SITELIBDIR%%/DNS/Base.pyc
-%%PYTHON_SITELIBDIR%%/DNS/Base.pyo
-%%PYTHON_SITELIBDIR%%/DNS/Class.py
-%%PYTHON_SITELIBDIR%%/DNS/Class.pyc
-%%PYTHON_SITELIBDIR%%/DNS/Class.pyo
-%%PYTHON_SITELIBDIR%%/DNS/Lib.py
-%%PYTHON_SITELIBDIR%%/DNS/Lib.pyc
-%%PYTHON_SITELIBDIR%%/DNS/Lib.pyo
-%%PYTHON_SITELIBDIR%%/DNS/Opcode.py
-%%PYTHON_SITELIBDIR%%/DNS/Opcode.pyc
-%%PYTHON_SITELIBDIR%%/DNS/Opcode.pyo
-%%PYTHON_SITELIBDIR%%/DNS/Status.py
-%%PYTHON_SITELIBDIR%%/DNS/Status.pyc
-%%PYTHON_SITELIBDIR%%/DNS/Status.pyo
-%%PYTHON_SITELIBDIR%%/DNS/Type.py
-%%PYTHON_SITELIBDIR%%/DNS/Type.pyc
-%%PYTHON_SITELIBDIR%%/DNS/Type.pyo
-%%PYTHON_SITELIBDIR%%/DNS/__init__.py
-%%PYTHON_SITELIBDIR%%/DNS/__init__.pyc
-%%PYTHON_SITELIBDIR%%/DNS/__init__.pyo
-%%PYTHON_SITELIBDIR%%/DNS/lazy.py
-%%PYTHON_SITELIBDIR%%/DNS/lazy.pyc
-%%PYTHON_SITELIBDIR%%/DNS/lazy.pyo
-%%PYTHON_SITELIBDIR%%/DNS/win32dns.py
-%%PYTHON_SITELIBDIR%%/DNS/win32dns.pyc
-%%PYTHON_SITELIBDIR%%/DNS/win32dns.pyo
-@dirrm %%PYTHON_SITELIBDIR%%/DNS
-%%PORTDOCS%%share/doc/py-dns/README.txt
-%%PORTDOCS%%share/doc/py-dns/README-guido.txt
-%%PORTDOCS%%@dirrm share/doc/py-dns