diff options
author | tobez <tobez@FreeBSD.org> | 2006-06-02 21:24:55 +0800 |
---|---|---|
committer | tobez <tobez@FreeBSD.org> | 2006-06-02 21:24:55 +0800 |
commit | bea4a420e49ebd00b566e44eca93956a7dfd3423 (patch) | |
tree | 73ad89359c37f9ad63932fe8cb20c0c85ce35dfa /lang | |
parent | 09b8a252225b2ae247006d6cf8b9430eb6627219 (diff) | |
download | freebsd-ports-gnome-bea4a420e49ebd00b566e44eca93956a7dfd3423.tar.gz freebsd-ports-gnome-bea4a420e49ebd00b566e44eca93956a7dfd3423.tar.zst freebsd-ports-gnome-bea4a420e49ebd00b566e44eca93956a7dfd3423.zip |
Add p5-JavaScript 0.55, perl extension for executing embedded
JavaScript.
PR: ports/98372
Submitted by: dom@happygiraffe.net
Diffstat (limited to 'lang')
-rw-r--r-- | lang/Makefile | 1 | ||||
-rw-r--r-- | lang/p5-JavaScript/Makefile | 35 | ||||
-rw-r--r-- | lang/p5-JavaScript/distinfo | 3 | ||||
-rw-r--r-- | lang/p5-JavaScript/pkg-descr | 8 | ||||
-rw-r--r-- | lang/p5-JavaScript/pkg-plist | 7 |
5 files changed, 54 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile index 1b5aa3d42b0e..0d8bfabdfae4 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -175,6 +175,7 @@ SUBDIR += p5-Expect SUBDIR += p5-F77 SUBDIR += p5-Interpolation + SUBDIR += p5-JavaScript SUBDIR += p5-JavaScript-SpiderMonkey SUBDIR += p5-JavaScript-Squish SUBDIR += p5-List-MoreUtils diff --git a/lang/p5-JavaScript/Makefile b/lang/p5-JavaScript/Makefile new file mode 100644 index 000000000000..a833a559217c --- /dev/null +++ b/lang/p5-JavaScript/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: p5-JavaScript +# Date created: 02 June 2006 +# Whom: dom@happygiraffe.net +# +# $FreeBSD$ +# + +PORTNAME= JavaScript +PORTVERSION= 0.55 +CATEGORIES= lang perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= JavaScript +PKGNAMEPREFIX= p5- + +MAINTAINER= dom@happygiraffe.net +COMMENT= Perl extension for executing embedded JavaScript + +BUILD_DEPENDS= ${LOCALBASE}/lib/libjs.so:${PORTSDIR}/lang/spidermonkey +RUN_DEPENDS= ${BUILD_DEPENDS} + +MAN3= JavaScript.3 + +PERL_CONFIGURE= yes +CONFIGURE_ARGS= INC=-I${LOCALBASE}/include + +post-patch: + ${REINPLACE_CMD} -e 's/<malloc.h>/<stdlib.h>/' ${WRKSRC}/JavaScript.xs + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +BROKEN= a dependency does not compile on FreeBSD 4.x +.endif + +.include <bsd.port.post.mk> diff --git a/lang/p5-JavaScript/distinfo b/lang/p5-JavaScript/distinfo new file mode 100644 index 000000000000..20441d14e557 --- /dev/null +++ b/lang/p5-JavaScript/distinfo @@ -0,0 +1,3 @@ +MD5 (JavaScript-0.55.tar.gz) = 40984476f20c7bc68a685759ec38fd64 +SHA256 (JavaScript-0.55.tar.gz) = f209663e92370d702b79ab9b2490ef299eeeadaff737282d64e085276ec91ba8 +SIZE (JavaScript-0.55.tar.gz) = 18169 diff --git a/lang/p5-JavaScript/pkg-descr b/lang/p5-JavaScript/pkg-descr new file mode 100644 index 000000000000..19cae987f444 --- /dev/null +++ b/lang/p5-JavaScript/pkg-descr @@ -0,0 +1,8 @@ +Always thought JavaScript was for web only? well, think again... + +JavaScript.pm gives you the power of embedded JavaScript in your +applications. You can write your subs, classes etc in perl and bind them +to the JavaScript engine. Variables are converted between the language +automaticlly and you don't have to worry about that. + +WWW: http://search.cpan.org/dist/JavaScript/ diff --git a/lang/p5-JavaScript/pkg-plist b/lang/p5-JavaScript/pkg-plist new file mode 100644 index 000000000000..37612c5fe7d6 --- /dev/null +++ b/lang/p5-JavaScript/pkg-plist @@ -0,0 +1,7 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/JavaScript.pm +%%SITE_PERL%%/%%PERL_ARCH%%/JavaScript.pod +%%SITE_PERL%%/%%PERL_ARCH%%/auto/JavaScript/JavaScript.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/JavaScript/JavaScript.so +%%SITE_PERL%%/%%PERL_ARCH%%/auto/JavaScript/autosplit.ix +%%SITE_PERL%%/%%PERL_ARCH%%/auto/JavaScript/.packlist +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/JavaScript |