2003-02-25 07:21:09 +01:00
|
|
|
# New ports collection makefile for: Ruby/JS
|
|
|
|
# Date created: 25 February 2003
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= js
|
2003-02-26 20:58:22 +01:00
|
|
|
PORTVERSION= 0.0.3
|
2003-02-25 07:21:09 +01:00
|
|
|
CATEGORIES= lang ruby
|
2003-02-26 20:58:22 +01:00
|
|
|
MASTER_SITES= http://www.ruby-lang.org/~tamura/ruby/ruby-js/
|
2003-02-25 07:21:09 +01:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ruby${PORTNAME}-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
COMMENT= A Ruby binding to NJS JavaScript Interpreter
|
|
|
|
|
|
|
|
LIB_DEPENDS= js.0:${PORTSDIR}/lang/njs
|
|
|
|
|
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
|
|
|
|
2003-02-26 20:58:22 +01:00
|
|
|
WRKSRC= ${WRKDIR}/JS
|
2003-02-25 07:21:09 +01:00
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
2003-02-26 20:58:22 +01:00
|
|
|
EXAMPLES= classtest.rb
|
|
|
|
DOCS_EN= README.rd
|
|
|
|
DOCS_JA= README.rd.ja
|
2003-02-25 07:21:09 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
|
|
|
.for f in ${EXAMPLES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/
|
|
|
|
.endfor
|
2003-02-26 20:58:22 +01:00
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja
|
|
|
|
.for f in ${DOCS_EN}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
|
|
|
|
.endfor
|
2003-02-25 07:21:09 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|