svn commit: r438837 - in head: devel/pycount www/py-HTMLgen

Martin Wilke miwi at FreeBSD.org
Wed Apr 19 12:25:42 UTC 2017


Author: miwi
Date: Wed Apr 19 12:25:40 2017
New Revision: 438837
URL: https://svnweb.freebsd.org/changeset/ports/438837

Log:
  - Fix shebangs
  - Added options helpers
  - NO_ARCH

Modified:
  head/devel/pycount/Makefile
  head/www/py-HTMLgen/Makefile

Modified: head/devel/pycount/Makefile
==============================================================================
--- head/devel/pycount/Makefile	Wed Apr 19 11:00:25 2017	(r438836)
+++ head/devel/pycount/Makefile	Wed Apr 19 12:25:40 2017	(r438837)
@@ -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}

Modified: head/www/py-HTMLgen/Makefile
==============================================================================
--- head/www/py-HTMLgen/Makefile	Wed Apr 19 11:00:25 2017	(r438836)
+++ head/www/py-HTMLgen/Makefile	Wed Apr 19 12:25:40 2017	(r438837)
@@ -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 at 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})
 


More information about the svn-ports-head mailing list