Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Sep 2015 16:56:12 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r397998 - head/www/webcheck
Message-ID:  <201509261656.t8QGuC7w075815@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Sep 26 16:56:11 2015
New Revision: 397998
URL: https://svnweb.freebsd.org/changeset/ports/397998

Log:
  Generate .pyc/.pyo at buildtime
  Remove useless @exec by always packaging symlinks
  Use options helpers

Modified:
  head/www/webcheck/Makefile
  head/www/webcheck/pkg-plist

Modified: head/www/webcheck/Makefile
==============================================================================
--- head/www/webcheck/Makefile	Sat Sep 26 16:55:59 2015	(r397997)
+++ head/www/webcheck/Makefile	Sat Sep 26 16:56:11 2015	(r397998)
@@ -3,6 +3,7 @@
 
 PORTNAME=	webcheck
 PORTVERSION=	1.10.3
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	http://arthurdejong.org/webcheck/
 EXTRACT_SUFX=	.tar.gz
@@ -29,8 +30,13 @@ do-install:
 	@${MKDIR} ${STAGEDIR}${DATADIR}/fancytooltips
 	${INSTALL_DATA} ${WRKSRC}/fancytooltips/* ${STAGEDIR}${DATADIR}/fancytooltips
 	${INSTALL_SCRIPT} ${WRKSRC}/webcheck.py ${STAGEDIR}${DATADIR}
+	${LN} -sf ${DATADIR}/webcheck.py ${STAGEDIR}${PREFIX}/bin
+	cd ${STAGEDIR}${DATADIR}; ${PYTHON_CMD} -m compileall .
+	cd ${STAGEDIR}${DATADIR}; ${PYTHON_CMD} -O -m compileall .
+
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
-	@${INSTALL_MAN} ${WRKSRC}/webcheck.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/webcheck.1 ${STAGEDIR}${MANPREFIX}/man/man1
 
 .include <bsd.port.mk>

Modified: head/www/webcheck/pkg-plist
==============================================================================
--- head/www/webcheck/pkg-plist	Sat Sep 26 16:55:59 2015	(r397997)
+++ head/www/webcheck/pkg-plist	Sat Sep 26 16:56:11 2015	(r397998)
@@ -1,48 +1,101 @@
-share/webcheck/config.py
-share/webcheck/crawler.py
-share/webcheck/debugio.py
-share/webcheck/myurllib.py
-share/webcheck/serialize.py
-share/webcheck/webcheck.py
-share/webcheck/webcheck.css
-share/webcheck/favicon.ico
-share/webcheck/fancytooltips/fancytooltips.js
-share/webcheck/fancytooltips/readme.txt
-share/webcheck/fancytooltips/fancytooltips.css
-share/webcheck/parsers/__init__.py
-share/webcheck/parsers/css.py
-share/webcheck/parsers/html/__init__.py
-share/webcheck/parsers/html/beautifulsoup.py
-share/webcheck/parsers/html/calltidy.py
-share/webcheck/parsers/html/htmlparser.py
-share/webcheck/plugins/__init__.py
-share/webcheck/plugins/about.py
-share/webcheck/plugins/anchors.py
-share/webcheck/plugins/badlinks.py
-share/webcheck/plugins/external.py
-share/webcheck/plugins/images.py
-share/webcheck/plugins/new.py
-share/webcheck/plugins/notchkd.py
-share/webcheck/plugins/notitles.py
-share/webcheck/plugins/old.py
-share/webcheck/plugins/problems.py
-share/webcheck/plugins/sitemap.py
-share/webcheck/plugins/size.py
-share/webcheck/plugins/urllist.py
-share/webcheck/schemes/__init__.py
-share/webcheck/schemes/file.py
-share/webcheck/schemes/ftp.py
-share/webcheck/schemes/http.py
-share/webcheck/schemes/https.py
+bin/webcheck.py
+%%DATADIR%%/config.py
+%%DATADIR%%/config.pyc
+%%DATADIR%%/config.pyo
+%%DATADIR%%/crawler.py
+%%DATADIR%%/crawler.pyc
+%%DATADIR%%/crawler.pyo
+%%DATADIR%%/debugio.py
+%%DATADIR%%/debugio.pyc
+%%DATADIR%%/debugio.pyo
+%%DATADIR%%/fancytooltips/fancytooltips.css
+%%DATADIR%%/fancytooltips/fancytooltips.js
+%%DATADIR%%/fancytooltips/readme.txt
+%%DATADIR%%/favicon.ico
+%%DATADIR%%/myurllib.py
+%%DATADIR%%/myurllib.pyc
+%%DATADIR%%/myurllib.pyo
+%%DATADIR%%/parsers/__init__.py
+%%DATADIR%%/parsers/__init__.pyc
+%%DATADIR%%/parsers/__init__.pyo
+%%DATADIR%%/parsers/css.py
+%%DATADIR%%/parsers/css.pyc
+%%DATADIR%%/parsers/css.pyo
+%%DATADIR%%/parsers/html/__init__.py
+%%DATADIR%%/parsers/html/__init__.pyc
+%%DATADIR%%/parsers/html/__init__.pyo
+%%DATADIR%%/parsers/html/beautifulsoup.py
+%%DATADIR%%/parsers/html/beautifulsoup.pyc
+%%DATADIR%%/parsers/html/beautifulsoup.pyo
+%%DATADIR%%/parsers/html/calltidy.py
+%%DATADIR%%/parsers/html/calltidy.pyc
+%%DATADIR%%/parsers/html/calltidy.pyo
+%%DATADIR%%/parsers/html/htmlparser.py
+%%DATADIR%%/parsers/html/htmlparser.pyc
+%%DATADIR%%/parsers/html/htmlparser.pyo
+%%DATADIR%%/plugins/__init__.py
+%%DATADIR%%/plugins/__init__.pyc
+%%DATADIR%%/plugins/__init__.pyo
+%%DATADIR%%/plugins/about.py
+%%DATADIR%%/plugins/about.pyc
+%%DATADIR%%/plugins/about.pyo
+%%DATADIR%%/plugins/anchors.py
+%%DATADIR%%/plugins/anchors.pyc
+%%DATADIR%%/plugins/anchors.pyo
+%%DATADIR%%/plugins/badlinks.py
+%%DATADIR%%/plugins/badlinks.pyc
+%%DATADIR%%/plugins/badlinks.pyo
+%%DATADIR%%/plugins/external.py
+%%DATADIR%%/plugins/external.pyc
+%%DATADIR%%/plugins/external.pyo
+%%DATADIR%%/plugins/images.py
+%%DATADIR%%/plugins/images.pyc
+%%DATADIR%%/plugins/images.pyo
+%%DATADIR%%/plugins/new.py
+%%DATADIR%%/plugins/new.pyc
+%%DATADIR%%/plugins/new.pyo
+%%DATADIR%%/plugins/notchkd.py
+%%DATADIR%%/plugins/notchkd.pyc
+%%DATADIR%%/plugins/notchkd.pyo
+%%DATADIR%%/plugins/notitles.py
+%%DATADIR%%/plugins/notitles.pyc
+%%DATADIR%%/plugins/notitles.pyo
+%%DATADIR%%/plugins/old.py
+%%DATADIR%%/plugins/old.pyc
+%%DATADIR%%/plugins/old.pyo
+%%DATADIR%%/plugins/problems.py
+%%DATADIR%%/plugins/problems.pyc
+%%DATADIR%%/plugins/problems.pyo
+%%DATADIR%%/plugins/sitemap.py
+%%DATADIR%%/plugins/sitemap.pyc
+%%DATADIR%%/plugins/sitemap.pyo
+%%DATADIR%%/plugins/size.py
+%%DATADIR%%/plugins/size.pyc
+%%DATADIR%%/plugins/size.pyo
+%%DATADIR%%/plugins/urllist.py
+%%DATADIR%%/plugins/urllist.pyc
+%%DATADIR%%/plugins/urllist.pyo
+%%DATADIR%%/schemes/__init__.py
+%%DATADIR%%/schemes/__init__.pyc
+%%DATADIR%%/schemes/__init__.pyo
+%%DATADIR%%/schemes/file.py
+%%DATADIR%%/schemes/file.pyc
+%%DATADIR%%/schemes/file.pyo
+%%DATADIR%%/schemes/ftp.py
+%%DATADIR%%/schemes/ftp.pyc
+%%DATADIR%%/schemes/ftp.pyo
+%%DATADIR%%/schemes/http.py
+%%DATADIR%%/schemes/http.pyc
+%%DATADIR%%/schemes/http.pyo
+%%DATADIR%%/schemes/https.py
+%%DATADIR%%/schemes/https.pyc
+%%DATADIR%%/schemes/https.pyo
+%%DATADIR%%/serialize.py
+%%DATADIR%%/serialize.pyc
+%%DATADIR%%/serialize.pyo
+%%DATADIR%%/webcheck.css
+%%DATADIR%%/webcheck.py
+%%DATADIR%%/webcheck.pyc
+%%DATADIR%%/webcheck.pyo
 man/man1/webcheck.1.gz
-%%PORTDOCS%%share/doc/webcheck/README
-%%PORTDOCS%%@dirrm share/doc/webcheck
-@unexec rm -f %D/share/webcheck/*.py[co] %D/share/webcheck/*/*.py[co]
-@dirrm share/webcheck/plugins
-@dirrm share/webcheck/schemes
-@dirrm share/webcheck/parsers/html
-@dirrm share/webcheck/parsers
-@dirrm share/webcheck/fancytooltips/
-@dirrm share/webcheck
-@exec ln -fs %D/share/webcheck/webcheck.py %D/bin/webcheck
-@unexec rm %D/bin/webcheck
+%%PORTDOCS%%%%DOCSDIR%%/README



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