freebsd-ports/textproc/man2html/Makefile
Mathieu Arnold 7c47779cb9 Fix usage of ${PERL5}.
${PERL5} points to a specific version of perl, say, perl5.22.1, it is
fine to use it in a ports Makefile to do Perly things, but ports using
it must use ${PERL}, that points to /usr/local/bin/perl so that if the
minor version is updated, the shebang keep working.

While there, make some ports use shebangfix, regen a few patches, and
bump PORTREVISION where a shebang went from PERL5 to PERL.

PR:		205367
With hat:	portmgr
Sponsored by:	Absolight
2015-12-17 17:19:48 +00:00

29 lines
810 B
Makefile

# Created by: Dima Sivachenko <demon@gpad.ac.ru>
# $FreeBSD$
PORTNAME= man2html
PORTVERSION= 3.0.1
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://hydra.nac.uci.edu/indiv/ehood/tar/ \
ftp://ftp.cpan.org/pub/CPAN/modules/by-authors/Earl_Hood/ \
http://people.freebsd.org/~demon/
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= demon@FreeBSD.org
COMMENT= Convert nroff(1) man pages to HTML
USES= perl5
USE_PERL5= run
NO_BUILD= yes
CGIDIR= ${PREFIX}/www/cgi-bin
PLIST_FILES= bin/man2html man/man1/man2html.1.gz www/cgi-bin/man.cgi
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/man2html ${STAGEDIR}/${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/man2html.1 ${STAGEDIR}/${PREFIX}/man/man1
${MKDIR} ${STAGEDIR}${CGIDIR}
${INSTALL_SCRIPT} ${WRKSRC}/man.cgi ${STAGEDIR}${CGIDIR}
.include <bsd.port.mk>