summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/pycount/Makefile6
-rw-r--r--www/py-HTMLgen/Makefile7
2 files changed, 11 insertions, 2 deletions
diff --git a/devel/pycount/Makefile b/devel/pycount/Makefile
index 3fb0efce1b1c..b32b34e6164d 100644
--- a/devel/pycount/Makefile
+++ b/devel/pycount/Makefile
@@ -3,6 +3,7 @@
PORTNAME= pycount
PORTVERSION= 0.0.6
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= http://python.net/crew/gherman/playground/pycount/ \
http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/
@@ -23,6 +24,11 @@ do-extract:
@${MKDIR} ${WRKDIR}
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKDIR}
+post-patch:
+ ${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \
+ ${WRKDIR}/${DISTNAME}
+ @${FIND} ${WRKSRC} -name \*.bak -delete
+
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${DISTFILES} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
diff --git a/www/py-HTMLgen/Makefile b/www/py-HTMLgen/Makefile
index ce9afba6d05c..8c342bfdebf9 100644
--- a/www/py-HTMLgen/Makefile
+++ b/www/py-HTMLgen/Makefile
@@ -3,6 +3,7 @@
PORTNAME= HTMLgen
PORTVERSION= 2.2.2
+PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= LOCAL/dryice \
http://dryice.name/computer/FreeBSD/distfiles/ \
@@ -13,8 +14,10 @@ DISTNAME= HTMLgen
MAINTAINER= python@FreeBSD.org
COMMENT= Python library for the generation of HTML documents
-USES= python:2
+USES= python:2 shebangfix
NO_BUILD= yes
+NO_ARCH= yes
+SHEBANG_FILES= HTMLutil.py barchart.py
OPTIONS_DEFINE= DOCS
@@ -23,7 +26,7 @@ PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's|python |${PYTHON_CMD} |' ${WRKSRC}/Makefile
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "README html image" ${STAGEDIR}${DOCSDIR})