freebsd-ports/www/jspacker/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

42 lines
1,002 B
Makefile

# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
PORTNAME= jspacker
DISTVERSION= 1.00b
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://nivi.interfree.it/distfiles/${PORTNAME}/ \
http://deanedwards.googlecode.com/svn/trunk/download/
DISTNAME= packer2.perl
MAINTAINER= nivit@FreeBSD.org
COMMENT= JavaScript compressor/obfuscator (Perl version)
JSPACKER= jsPacker.pl
NO_BUILD= yes
NO_ARCH= yes
NO_WRKSUBDIR= yes
USES= perl5 shebangfix zip
USE_PERL5= run
SHEBANG_FILES= jsPacker.pl
perl_OLD_CMD= perl
SUB_FILES= ${PORTNAME}
SUB_LIST= JSPACKER=${JSPACKER} \
PERL5=${PERL}
OPTIONS_DEFINE= EXAMPLES
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${MKDIR} ${STAGEDIR}${DATADIR} && \
cd ${WRKSRC} && \
${INSTALL_DATA} *.pm ${STAGEDIR}${DATADIR} && \
${INSTALL_SCRIPT} ${JSPACKER} ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} && \
cd ${WRKSRC} && \
${INSTALL_DATA} *.htm ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>