mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
ObfuscateJS compress your Javascript files.
The obfuscator currently removes whitespace and comments. It renames variable names with a local scope to a shorter version, and as an advanced option it renames all variables with a certain prefix to a shorter name WWW: http://tools.2vi.nl/ PR: 98376 Submitted by: Nicola Vitale <nivit@email.it>
This commit is contained in:
parent
fa698ae3b4
commit
6e11b5eae6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164799
@ -666,6 +666,7 @@
|
||||
SUBDIR += nx
|
||||
SUBDIR += oaf
|
||||
SUBDIR += obby
|
||||
SUBDIR += obfuscatejs
|
||||
SUBDIR += ocaml-camomile
|
||||
SUBDIR += ocaml-classes
|
||||
SUBDIR += ocaml-equeue
|
||||
|
39
devel/obfuscatejs/Makefile
Normal file
39
devel/obfuscatejs/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# New ports collection makefile for: obfuscatejs
|
||||
# Date created: 2006-04-21
|
||||
# Whom: Nicola Vitale <nivit@email.it>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= obfuscatejs
|
||||
PORTVERSION= 0.3.1
|
||||
CATEGORIES= devel java
|
||||
MASTER_SITES= http://tools.2vi.nl/ \
|
||||
http://nivi.interfree.it/distfiles/${DIST_SUBDIR}/
|
||||
DISTNAME= consyntools
|
||||
EXTRACT_SUFX= .jar
|
||||
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
||||
EXTRACT_ONLY=
|
||||
|
||||
MAINTAINER= nivit@email.it
|
||||
COMMENT= A JavaScript code obfuscator
|
||||
|
||||
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
|
||||
|
||||
NO_BUILD= yes
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.4+
|
||||
|
||||
SUB_FILES= ${PORTNAME}
|
||||
SUB_LIST= OBFUSCATEJSJAR=${DATADIR}/${OBFUSCATEJSJAR}
|
||||
|
||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||
|
||||
OBFUSCATEJSJAR= ${DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${DATADIR}
|
||||
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${OBFUSCATEJSJAR} ${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/obfuscatejs/distinfo
Normal file
3
devel/obfuscatejs/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (obfuscatejs/0.3.1/consyntools.jar) = 4f8f78e0ec6c84dffaccf32b36b02784
|
||||
SHA256 (obfuscatejs/0.3.1/consyntools.jar) = 3fc9ca1e67006ce9271449f977e90ae269e1199e7e402bd29cc4a47df70bbada
|
||||
SIZE (obfuscatejs/0.3.1/consyntools.jar) = 13550
|
4
devel/obfuscatejs/files/obfuscatejs.in
Normal file
4
devel/obfuscatejs/files/obfuscatejs.in
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" \
|
||||
exec "%%LOCALBASE%%/bin/java" -jar "%%OBFUSCATEJSJAR%%" Obfuscator "$@"
|
9
devel/obfuscatejs/pkg-descr
Normal file
9
devel/obfuscatejs/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
ObfuscateJS compress your Javascript files.
|
||||
The obfuscator currently removes whitespace and comments.
|
||||
It renames variable names with a local scope to a shorter version,
|
||||
and as an advanced option it renames all variables with a certain
|
||||
prefix to a shorter name
|
||||
|
||||
usage: obfuscatejs {src} {dst} {prefix}
|
||||
|
||||
WWW: http://tools.2vi.nl/
|
4
devel/obfuscatejs/pkg-plist
Normal file
4
devel/obfuscatejs/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $FreeBSD$
|
||||
bin/obfuscatejs
|
||||
%%DATADIR%%/consyntools.jar
|
||||
@dirrm %%DATADIR%%
|
Loading…
Reference in New Issue
Block a user