svn commit: r323231 - head/textproc/py-feedparser
Sofian Brabez
sbz at FreeBSD.org
Thu Jul 18 13:26:17 UTC 2013
Author: sbz
Date: Thu Jul 18 13:26:16 2013
New Revision: 323231
URL: http://svnweb.freebsd.org/changeset/ports/323231
Log:
- Convert new option framework
- Respect PORTDOCS
- Update RUN_DEPENDS
Modified:
head/textproc/py-feedparser/Makefile
Modified: head/textproc/py-feedparser/Makefile
==============================================================================
--- head/textproc/py-feedparser/Makefile Thu Jul 18 13:25:19 2013 (r323230)
+++ head/textproc/py-feedparser/Makefile Thu Jul 18 13:26:16 2013 (r323231)
@@ -8,25 +8,29 @@ MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sbz at FreeBSD.org
-COMMENT= An RSS feed parser written in Python
+COMMENT= RSS feed parser written in Python
LICENSE= BSD
-RUN_DEPENDS= ${PYTHON_SITELIBDIR}/chardet/__init__.py:${PORTSDIR}/textproc/py-chardet
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>0:${PORTSDIR}/textproc/py-chardet
USE_PYTHON= yes
USE_BZIP2= yes
-USE_PYDISTUTILS= yes
+USE_PYDISTUTILS=yes
+
+OPTIONS_DEFINE= DOCS
PORTDOCS= NEWS PKG-INFO README
+.include <bsd.port.options.mk>
+
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
-regression-test:
- @(cd ${WRKSRC}/${PORTNAME} && ${PYTHON_CMD} ${PORTNAME}test.py)
+regression-test: extract
+ @(cd ${WRKSRC}/${PORTNAME}; ${PYTHON_CMD} ${PORTNAME}test.py)
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list