Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jun 2017 23:25:16 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r442709 - head/japanese/another-htmllint
Message-ID:  <201706052325.v55NPG8j063803@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Mon Jun  5 23:25:16 2017
New Revision: 442709
URL: https://svnweb.freebsd.org/changeset/ports/442709

Log:
  Remove outdated PERL_LEVEL check
  
  - While I'm here, convert to options target helper
  
  With hat:	perl
  Approved by:	portmgr (blanket)

Modified:
  head/japanese/another-htmllint/Makefile

Modified: head/japanese/another-htmllint/Makefile
==============================================================================
--- head/japanese/another-htmllint/Makefile	Mon Jun  5 23:25:11 2017	(r442708)
+++ head/japanese/another-htmllint/Makefile	Mon Jun  5 23:25:16 2017	(r442709)
@@ -9,7 +9,8 @@ DISTNAME=	htmllint
 MAINTAINER=	kuriyama@FreeBSD.org
 COMMENT=	Another HTML-lint (all messages are written in Japanese)
 
-RUN_DEPENDS=	p5-libwww>=0:www/p5-libwww \
+RUN_DEPENDS=	p5-CGI.pm>=0:www/p5-CGI.pm \
+		p5-libwww>=0:www/p5-libwww \
 		ja-p5-Jcode>=0:japanese/p5-Jcode
 
 USES=		dos2unix perl5 shebangfix zip
@@ -32,20 +33,14 @@ SEDSUB=		${SED} -i.bak -e 's@%%PREFIX%%@${PREFIX}@ ; s
 # Please set this!
 HTMLLINT_ADMIN?=	kuriyama@FreeBSD.org
 
-.include <bsd.port.pre.mk>
-
-.if ${PERL_LEVEL} >= 502200
-RUN_DEPENDS+=	p5-CGI.pm>=0:www/p5-CGI.pm
-.endif
-
 do-build:
 	@${SEDSUB} ${WRKSRC}/htmllintenv
 	@${MV} ${WRKSRC}/htmllintenv ${WRKSRC}/htmllint.env
 	@${SEDSUB} ${WRKSRC}/htmllint.cgi
 	@${SED} -i.bak -e 's|^</address>|</address><br>Maintained by <address>${HTMLLINT_ADMIN}</address>|' ${WRKSRC}/*.html
-.if ${PORT_OPTIONS:MW3M}
+
+do-build-W3M-on:
 	@${SED} -i.bak -e 's|^#$$W3M|$$W3M|' ${WRKSRC}/htmllint.env
-.endif
 
 do-install:
 	${MKDIR} ${STAGEDIR}${DATADIR}/rule ${STAGEDIR}${DATADIR}/html
@@ -54,4 +49,4 @@ do-install:
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PM} ${STAGEDIR}${DATADIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${RULE} ${STAGEDIR}${DATADIR}/rule
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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