ports/123298: [NEW PORT] www/dojo-shrinksafe: A Javascript code compressor

Greg Larkin glarkin at sourcehosting.net
Thu May 1 13:50:02 UTC 2008


>Number:         123298
>Category:       ports
>Synopsis:       [NEW PORT] www/dojo-shrinksafe: A Javascript code compressor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 01 13:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Greg Larkin
>Release:        FreeBSD 7.0-RELEASE i386
>Organization:
SourceHosting.net, LLC
>Environment:
System: FreeBSD fbsd70.localdomain 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
>Description:
The Dojo Toolkit's compressor, ShrinkSafe, uses the Rhino JavaScript
interpreter to safely rename variables and reduce the size of your
scripts without interferring with their operation. It does not
change any public APIs making it easy to use in your JavaScript
development process.

WWW:    http://dojotoolkit.org/docs/shrinksafe/

- Credit should be given to skv at FreeBSD.org for his
  www/yuicompressor Makefile that I used as a basis for this Makefile.

- NOTE: portlint warns about using a hyphen in PORTNAME, but this isn't
        a special version of www/dojo, but a completely different tool.
        If PKGNAMESUFFIX should be used anyway, let me know, and I'll
        update the Makefile.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- dojo-shrinksafe-1.1.0.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	dojo-shrinksafe
#	dojo-shrinksafe/Makefile
#	dojo-shrinksafe/pkg-descr
#	dojo-shrinksafe/distinfo
#	dojo-shrinksafe/files
#	dojo-shrinksafe/files/dojo-shrinksafe.in
#	dojo-shrinksafe/pkg-message
#
echo c - dojo-shrinksafe
mkdir -p dojo-shrinksafe > /dev/null 2>&1
echo x - dojo-shrinksafe/Makefile
sed 's/^X//' >dojo-shrinksafe/Makefile << 'END-of-dojo-shrinksafe/Makefile'
X# New ports collection makefile for:	dojo-shrinksafe
X# Date created:		2008-05-01
X# Whom:			Greg Larkin <glarkin at sourcehosting.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		dojo-shrinksafe
XPORTVERSION=		1.1.0
XCATEGORIES=		www java
XMASTER_SITES=		http://download.dojotoolkit.org/release-${PORTVERSION}/ \
X			LOCAL/beech
XDISTNAME=		dojo-release-${PORTVERSION}-shrinksafe
X
XMAINTAINER=		glarkin at sourcehosting.net
XCOMMENT=		A Javascript code compressor
X
XUSE_JAVA=	yes
XJAVA_VERSION=	1.4+
XNO_BUILD=	yes
X
XPLIST_FILES=	bin/dojo-shrinksafe %%DATADIR%%/custom_rhino.jar
XPLIST_DIRS=	%%DATADIR%%
XSUB_FILES=	dojo-shrinksafe
X
X.include <bsd.port.pre.mk>
X
Xdo-install:
X	@${MKDIR} ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/custom_rhino.jar ${DATADIR}
X	${INSTALL_SCRIPT} ${WRKDIR}/dojo-shrinksafe ${PREFIX}/bin
X	@${CAT} pkg-message
X
X.include <bsd.port.post.mk>
END-of-dojo-shrinksafe/Makefile
echo x - dojo-shrinksafe/pkg-descr
sed 's/^X//' >dojo-shrinksafe/pkg-descr << 'END-of-dojo-shrinksafe/pkg-descr'
XThe Dojo Toolkit's compressor, ShrinkSafe, uses the Rhino JavaScript
Xinterpreter to safely rename variables and reduce the size of your
Xscripts without interferring with their operation. It does not
Xchange any public APIs making it easy to use in your JavaScript
Xdevelopment process.
X
XWWW:    http://dojotoolkit.org/docs/shrinksafe/
END-of-dojo-shrinksafe/pkg-descr
echo x - dojo-shrinksafe/distinfo
sed 's/^X//' >dojo-shrinksafe/distinfo << 'END-of-dojo-shrinksafe/distinfo'
XMD5 (dojo-release-1.1.0-shrinksafe.tar.gz) = 2704351fd623493a82861798484009e8
XSHA256 (dojo-release-1.1.0-shrinksafe.tar.gz) = ff3811286dad0256e2625d413d2218f94a57e2c8763b8cf5fbf38ae6197592c2
XSIZE (dojo-release-1.1.0-shrinksafe.tar.gz) = 799117
END-of-dojo-shrinksafe/distinfo
echo c - dojo-shrinksafe/files
mkdir -p dojo-shrinksafe/files > /dev/null 2>&1
echo x - dojo-shrinksafe/files/dojo-shrinksafe.in
sed 's/^X//' >dojo-shrinksafe/files/dojo-shrinksafe.in << 'END-of-dojo-shrinksafe/files/dojo-shrinksafe.in'
X#!/bin/sh
XJAVA_VERSION="%%JAVA_VERSION%%" exec %%LOCALBASE%%/bin/java -jar %%DATADIR%%/custom_rhino.jar $@
END-of-dojo-shrinksafe/files/dojo-shrinksafe.in
echo x - dojo-shrinksafe/pkg-message
sed 's/^X//' >dojo-shrinksafe/pkg-message << 'END-of-dojo-shrinksafe/pkg-message'
X
X*********************************************************************
XYou have just installed the Dojo Toolkit Shrinksafe, a
XJavascript code compressor.
X
XFull documentation with usage examples is found at
Xhttp://dojotoolkit.org/docs/shrinksafe/.
END-of-dojo-shrinksafe/pkg-message
exit
--- dojo-shrinksafe-1.1.0.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list