dd1730fa42
Wed Oct 17 14:58:24 2001 Shugo Maeda <shugo@modruby.net> * version 0.9.7 released. Mon Oct 15 13:54:18 2001 Shugo Maeda <shugo@modruby.net> * eruby_main.c (run): fix prototype of Init_stack(). Wed Oct 10 15:15:48 2001 Shugo Maeda <shugo@modruby.net> * eruby_main.c (run): call ruby_finalize(). * eruby_main.c (run): print error messages to stderr if $DEBUG is false. Tue Sep 4 15:33:38 2001 Shugo Maeda <shugo@modruby.net> * eruby_main.c (run): call Init_stack().
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2001/07/03 14:32:36 taca Exp $
|
|
#
|
|
|
|
DISTNAME= erb-1.3.3
|
|
PKGNAME= ${RUBY_PKGNAMEPREFIX}${DISTNAME}
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://www2a.biglobe.ne.jp/~seki/ruby/
|
|
|
|
MAINTAINER= taca@netbsd.org
|
|
HOMEPAGE= http://www2a.biglobe.ne.jp/~seki/ruby/
|
|
COMMENT= implementation of eRuby (embedded ruby)
|
|
|
|
DIST_SUBDIR= ruby
|
|
USE_RUBY= yes
|
|
|
|
REPLACE_RUBY= lib/erb/erbcgi.rb
|
|
REPLACE_ERBCGI= sample/cgi_test.rhtml sample/sample.rhtml
|
|
FIX_MODES= lib/erb/erb.rb lib/erb/erbl.rb
|
|
EXAMPLES= cgi_test.rhtml dot.htaccess erbux.rb err.rhtml \
|
|
sample.rhtml succ.rhtml
|
|
|
|
do-build:
|
|
.for f in ${REPLACE_ERBCGI}
|
|
@${ECHO_MSG} "===> Fixing the #! line of $f"; \
|
|
${RUBY} -i -pe '$$. == 1 and sub /^#!.*\/([a-z]+\.rb)/, "#!${RUBY_SITELIBDIR}/\\1"' ${WRKSRC}/$f
|
|
.endfor
|
|
.for f in ${FIX_MODES}
|
|
${CHMOD} -x ${WRKSRC}/$f
|
|
.endfor
|
|
|
|
do-install:
|
|
cd ${WRKSRC}; ${RUBY} install.rb
|
|
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/erb
|
|
.for f in ${EXAMPLES}
|
|
${INSTALL_DATA} ${WRKSRC}/sample/$f ${RUBY_EXAMPLESDIR}/erb
|
|
.endfor
|
|
|
|
.include "../../lang/ruby-base/Makefile.common"
|
|
.include "../../mk/bsd.pkg.mk"
|