From 40a22c9f4dc774a71146ff7f85264f8e872b8faf Mon Sep 17 00:00:00 2001 From: nivit Date: Wed, 5 Aug 2009 07:52:22 +0000 Subject: A Javascript compressor/obfuscator written in Perl WWW: http://dean.edwards.name/packer/ --- www/jspacker/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ www/jspacker/distinfo | 3 +++ www/jspacker/files/jspacker.in | 5 +++++ www/jspacker/pkg-descr | 3 +++ www/jspacker/pkg-plist | 8 ++++++++ 5 files changed, 61 insertions(+) create mode 100644 www/jspacker/Makefile create mode 100644 www/jspacker/distinfo create mode 100644 www/jspacker/files/jspacker.in create mode 100644 www/jspacker/pkg-descr create mode 100644 www/jspacker/pkg-plist (limited to 'www/jspacker') diff --git a/www/jspacker/Makefile b/www/jspacker/Makefile new file mode 100644 index 00000000000..33c469c67dd --- /dev/null +++ b/www/jspacker/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: jspacker +# Date created: 2009-07-04 +# Whom: Nicola Vitale +# +# $FreeBSD$ +# + +PORTNAME= jspacker +DISTVERSION= 1.00b +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_WRKSUBDIR= yes + +USE_PERL5_RUN= yes +USE_ZIP= yes + +SUB_FILES= ${PORTNAME} +SUB_LIST= JSPACKER=${JSPACKER} \ + PERL5=${PERL5} + +do-install: + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} + ${MKDIR} ${DATADIR} && \ + cd ${WRKSRC} && \ + ${INSTALL_DATA} *.pm ${DATADIR} && \ + ${INSTALL_SCRIPT} ${JSPACKER} ${DATADIR} +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR} && \ + cd ${WRKSRC} && \ + ${INSTALL_DATA} *.htm ${EXAMPLESDIR} +.endif + +.include diff --git a/www/jspacker/distinfo b/www/jspacker/distinfo new file mode 100644 index 00000000000..ae913840ce9 --- /dev/null +++ b/www/jspacker/distinfo @@ -0,0 +1,3 @@ +MD5 (packer2.perl.zip) = 772ef2b1ce26e285f4ae73515b26dab1 +SHA256 (packer2.perl.zip) = 6d77b25fc6feca72ba92c7cb926c7ba00c9bdb66a3db51d4c297d9e4f9befa9c +SIZE (packer2.perl.zip) = 478775 diff --git a/www/jspacker/files/jspacker.in b/www/jspacker/files/jspacker.in new file mode 100644 index 00000000000..73bf740d78c --- /dev/null +++ b/www/jspacker/files/jspacker.in @@ -0,0 +1,5 @@ +#!/bin/sh +# +# $FreeBSD$ +# +%%PERL5%% -I%%DATADIR%% %%DATADIR%%/%%JSPACKER%% $@ diff --git a/www/jspacker/pkg-descr b/www/jspacker/pkg-descr new file mode 100644 index 00000000000..7d8dc0bb792 --- /dev/null +++ b/www/jspacker/pkg-descr @@ -0,0 +1,3 @@ +A Javascript compressor/obfuscator written in Perl + +WWW: http://dean.edwards.name/packer/ diff --git a/www/jspacker/pkg-plist b/www/jspacker/pkg-plist new file mode 100644 index 00000000000..3d9746a6e08 --- /dev/null +++ b/www/jspacker/pkg-plist @@ -0,0 +1,8 @@ +@comment $FreeBSD$ +bin/jspacker +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/SamplePacked.htm +%%DATADIR%%/Pack.pm +%%DATADIR%%/ParseMaster.pm +%%DATADIR%%/jsPacker.pl +@dirrm %%DATADIR%% +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% -- cgit