svn commit: r343536 - head/net/py-dpkt
Antoine Brodin
antoine at FreeBSD.org
Sun Feb 9 18:49:02 UTC 2014
Author: antoine
Date: Sun Feb 9 18:49:01 2014
New Revision: 343536
URL: http://svnweb.freebsd.org/changeset/ports/343536
QAT: https://qat.redports.org/buildarchive/r343536/
Log:
- Stage support
- Add LICENSE
- Use PYDISTUTILS_AUTOPLIST
- Don't override DOCSDIR and EXAMPLESDIR, mva@'s patch will do that soon for us
Deleted:
head/net/py-dpkt/pkg-plist
Modified:
head/net/py-dpkt/Makefile
Modified: head/net/py-dpkt/Makefile
==============================================================================
--- head/net/py-dpkt/Makefile Sun Feb 9 18:26:02 2014 (r343535)
+++ head/net/py-dpkt/Makefile Sun Feb 9 18:49:01 2014 (r343536)
@@ -9,29 +9,24 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sbz at FreeBSD.org
COMMENT= Python fast, simple packet creation / parsing module
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_PYTHON_PREFIX= yes
+PYDISTUTILS_AUTOPLIST= yes
-DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX:C/[0-9]+//}${PORTNAME}
-EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX:C/[0-9]+//}${PORTNAME}
-
-OPTIONS_DEFINE= DOCS
-
-PORTDOCS= AUTHORS CHANGES HACKING LICENSE PKG-INFO README
+OPTIONS_DEFINE= DOCS EXAMPLES
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+PORTDOCS= AUTHORS CHANGES HACKING PKG-INFO README
+PORTEXAMPLES= *
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
regression-test: extract
@(cd ${WRKSRC} && ${PYTHON_CMD} tests/test-perf2.py)
More information about the svn-ports-head
mailing list