aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsbz <sbz@FreeBSD.org>2013-07-18 21:26:16 +0800
committersbz <sbz@FreeBSD.org>2013-07-18 21:26:16 +0800
commit45b34b65a667e6d8073081aa21b829a970f3676a (patch)
treebcfa82c7685895c7ec933567e13dc797d668dd72
parenta9a203f40f867b9882a8519d4fda463b39796932 (diff)
downloadfreebsd-ports-gnome-45b34b65a667e6d8073081aa21b829a970f3676a.tar.gz
freebsd-ports-gnome-45b34b65a667e6d8073081aa21b829a970f3676a.tar.zst
freebsd-ports-gnome-45b34b65a667e6d8073081aa21b829a970f3676a.zip
- Convert new option framework
- Respect PORTDOCS - Update RUN_DEPENDS
-rw-r--r--textproc/py-feedparser/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/textproc/py-feedparser/Makefile b/textproc/py-feedparser/Makefile
index 3fec3f928999..d0e9f944d2bd 100644
--- a/textproc/py-feedparser/Makefile
+++ b/textproc/py-feedparser/Makefile
@@ -8,25 +8,29 @@ MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sbz@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>