Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2017 12:25:40 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438837 - in head: devel/pycount www/py-HTMLgen
Message-ID:  <201704191225.v3JCPftQ076693@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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})
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704191225.v3JCPftQ076693>