Update fundamental ruby ports first with bsd.ruby.mk.
This commit is contained in:
parent
3c53b6626b
commit
ef19b346c1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32370
11 changed files with 189 additions and 231 deletions
|
@ -9,21 +9,15 @@ PORTNAME= amstd
|
||||||
PORTVERSION= 1.9.3
|
PORTVERSION= 1.9.3
|
||||||
CATEGORIES= devel ruby
|
CATEGORIES= devel ruby
|
||||||
MASTER_SITES= http://www1.u-netsurf.ne.jp/~brew/mine/soft/
|
MASTER_SITES= http://www1.u-netsurf.ne.jp/~brew/mine/soft/
|
||||||
PKGNAMEPREFIX= ruby-
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||||
DIST_SUBDIR= ruby
|
DIST_SUBDIR= ruby
|
||||||
|
|
||||||
MAINTAINER= knu@FreeBSD.org
|
MAINTAINER= knu@FreeBSD.org
|
||||||
|
|
||||||
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
USE_RUBY= yes
|
||||||
|
|
||||||
NO_BUILD= yes
|
NO_BUILD= yes
|
||||||
|
|
||||||
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
|
||||||
|
|
||||||
RUBY?= ${LOCALBASE}/bin/ruby
|
|
||||||
RUBY_VER?= 1.4
|
|
||||||
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
|
||||||
|
|
||||||
DOCS_EN= README.en
|
DOCS_EN= README.en
|
||||||
DOCS_JA= README.ja
|
DOCS_JA= README.ja
|
||||||
MODULES= bench.rb \
|
MODULES= bench.rb \
|
||||||
|
@ -49,19 +43,21 @@ MODULES= bench.rb \
|
||||||
version.rb
|
version.rb
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${MKDIR} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/amstd
|
${MKDIR} ${RUBY_SITELIBDIR}/amstd
|
||||||
.for f in ${MODULES}
|
.for f in ${MODULES}
|
||||||
${INSTALL_DATA} ${WRKSRC}/lib/amstd/${f} \
|
${INSTALL_DATA} ${WRKSRC}/lib/amstd/${f} \
|
||||||
${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/amstd/
|
${RUBY_SITELIBDIR}/amstd/
|
||||||
.endfor
|
.endfor
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
${MKDIR} ${PREFIX}/share/doc/ruby/amstd/ja
|
${MKDIR} ${RUBY_DOCDIR}/amstd/ja
|
||||||
.for f in ${DOCS_EN}
|
.for f in ${DOCS_EN}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/amstd/
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/amstd/
|
||||||
.endfor
|
.endfor
|
||||||
.for f in ${DOCS_JA}
|
.for f in ${DOCS_JA}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/amstd/ja/
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/amstd/ja/
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/bench.rb
|
%%RUBY_SITELIBDIR%%/amstd/bench.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/bug.rb
|
%%RUBY_SITELIBDIR%%/amstd/bug.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/collfrom.rb
|
%%RUBY_SITELIBDIR%%/amstd/collfrom.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/dispatch.rb
|
%%RUBY_SITELIBDIR%%/amstd/dispatch.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/errutil.rb
|
%%RUBY_SITELIBDIR%%/amstd/errutil.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/extmod.rb
|
%%RUBY_SITELIBDIR%%/amstd/extmod.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/fileutils.rb
|
%%RUBY_SITELIBDIR%%/amstd/fileutils.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/futils.rb
|
%%RUBY_SITELIBDIR%%/amstd/futils.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/gconst.rb
|
%%RUBY_SITELIBDIR%%/amstd/gconst.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/getdep.rb
|
%%RUBY_SITELIBDIR%%/amstd/getdep.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/info.rb
|
%%RUBY_SITELIBDIR%%/amstd/info.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/must.rb
|
%%RUBY_SITELIBDIR%%/amstd/must.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/pipeline.rb
|
%%RUBY_SITELIBDIR%%/amstd/pipeline.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/rbparams.rb
|
%%RUBY_SITELIBDIR%%/amstd/rbparams.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/recycle.rb
|
%%RUBY_SITELIBDIR%%/amstd/recycle.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/rubyemu.rb
|
%%RUBY_SITELIBDIR%%/amstd/rubyemu.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/strquote.rb
|
%%RUBY_SITELIBDIR%%/amstd/strquote.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/symbol.rb
|
%%RUBY_SITELIBDIR%%/amstd/symbol.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/timer.rb
|
%%RUBY_SITELIBDIR%%/amstd/timer.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/to_s.rb
|
%%RUBY_SITELIBDIR%%/amstd/to_s.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/amstd/version.rb
|
%%RUBY_SITELIBDIR%%/amstd/version.rb
|
||||||
@dirrm lib/ruby/site_ruby/%%RUBY_VER%%/amstd
|
@dirrm %%RUBY_SITELIBDIR%%/amstd
|
||||||
share/doc/ruby/amstd/README.en
|
%%RUBY_DOCDIR%%/amstd/README.en
|
||||||
share/doc/ruby/amstd/ja/README.ja
|
%%RUBY_DOCDIR%%/amstd/ja/README.ja
|
||||||
@dirrm share/doc/ruby/amstd/ja
|
@dirrm %%RUBY_DOCDIR%%/amstd/ja
|
||||||
@dirrm share/doc/ruby/amstd
|
@dirrm %%RUBY_DOCDIR%%/amstd
|
||||||
|
|
|
@ -9,42 +9,37 @@ PORTNAME= optparse
|
||||||
PORTVERSION= 0.7.5
|
PORTVERSION= 0.7.5
|
||||||
CATEGORIES= devel ruby
|
CATEGORIES= devel ruby
|
||||||
MASTER_SITES= http://member.nifty.ne.jp/nokada/archive/
|
MASTER_SITES= http://member.nifty.ne.jp/nokada/archive/
|
||||||
PKGNAMEPREFIX= ruby-
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||||
DIST_SUBDIR= ruby
|
DIST_SUBDIR= ruby
|
||||||
|
|
||||||
MAINTAINER= knu@FreeBSD.org
|
MAINTAINER= knu@FreeBSD.org
|
||||||
|
|
||||||
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
USE_RUBY= yes
|
||||||
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
||||||
|
|
||||||
NO_BUILD= yes
|
NO_BUILD= yes
|
||||||
|
|
||||||
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
|
||||||
|
|
||||||
RUBY?= ${LOCALBASE}/bin/ruby
|
|
||||||
RUBY_VER?= 1.4
|
|
||||||
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${MKDIR} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/optparse
|
${MKDIR} ${RUBY_SITELIBDIR}/optparse
|
||||||
.for f in optparse.rb optparse/shellwords.rb optparse/time.rb
|
.for f in optparse.rb optparse/shellwords.rb optparse/time.rb
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/${f}
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}/${f}
|
||||||
.endfor
|
.endfor
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
${MKDIR} ${PREFIX}/share/examples/ruby/optparse/ja
|
${MKDIR} ${RUBY_EXAMPLESDIR}/optparse/ja
|
||||||
${MKDIR} ${PREFIX}/share/doc/ruby/optparse/ja
|
${MKDIR} ${RUBY_DOCDIR}/optparse/ja
|
||||||
.for f in optparse.rlog
|
.for f in optparse.rlog
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/optparse/
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/optparse/
|
||||||
.endfor
|
.endfor
|
||||||
.for f in optparse.ja.rd
|
.for f in optparse.ja.rd
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/optparse/ja/
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/optparse/ja/
|
||||||
.endfor
|
.endfor
|
||||||
.for f in cmd-ls.rb cmd.rb getopts.test.en opttest.rb
|
.for f in cmd-ls.rb cmd.rb getopts.test.en opttest.rb
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/ruby/optparse/
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/optparse/
|
||||||
.endfor
|
.endfor
|
||||||
.for f in getopts.test
|
.for f in getopts.test
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/ruby/optparse/ja
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/optparse/ja
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/optparse/shellwords.rb
|
%%RUBY_SITELIBDIR%%/optparse/shellwords.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/optparse/time.rb
|
%%RUBY_SITELIBDIR%%/optparse/time.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/optparse.rb
|
%%RUBY_SITELIBDIR%%/optparse.rb
|
||||||
@dirrm lib/ruby/site_ruby/%%RUBY_VER%%/optparse
|
@dirrm %%RUBY_SITELIBDIR%%/optparse
|
||||||
share/examples/ruby/optparse/ja/getopts.test
|
%%RUBY_EXAMPLESDIR%%/optparse/ja/getopts.test
|
||||||
share/examples/ruby/optparse/cmd-ls.rb
|
%%RUBY_EXAMPLESDIR%%/optparse/cmd-ls.rb
|
||||||
share/examples/ruby/optparse/cmd.rb
|
%%RUBY_EXAMPLESDIR%%/optparse/cmd.rb
|
||||||
share/examples/ruby/optparse/getopts.test.en
|
%%RUBY_EXAMPLESDIR%%/optparse/getopts.test.en
|
||||||
share/examples/ruby/optparse/opttest.rb
|
%%RUBY_EXAMPLESDIR%%/optparse/opttest.rb
|
||||||
share/doc/ruby/optparse/ja/optparse.ja.rd
|
%%RUBY_DOCDIR%%/optparse/ja/optparse.ja.rd
|
||||||
share/doc/ruby/optparse/optparse.rlog
|
%%RUBY_DOCDIR%%/optparse/optparse.rlog
|
||||||
@dirrm share/examples/ruby/optparse/ja
|
@dirrm %%RUBY_EXAMPLESDIR%%/optparse/ja
|
||||||
@dirrm share/examples/ruby/optparse
|
@dirrm %%RUBY_EXAMPLESDIR%%/optparse
|
||||||
@dirrm share/doc/ruby/optparse/ja
|
@dirrm %%RUBY_DOCDIR%%/optparse/ja
|
||||||
@dirrm share/doc/ruby/optparse
|
@dirrm %%RUBY_DOCDIR%%/optparse
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/racc/parser.rb
|
%%RUBY_SITELIBDIR%%/racc/parser.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/racc/cparse.so
|
%%RUBY_SITEARCHLIBDIR%%/racc/cparse.so
|
||||||
@dirrm lib/ruby/site_ruby/%%RUBY_VER%%/racc
|
@dirrm %%RUBY_SITELIBDIR%%/racc
|
||||||
@dirrm lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/racc
|
@dirrm %%RUBY_SITEARCHLIBDIR%%/racc
|
||||||
|
|
|
@ -9,37 +9,40 @@ PORTNAME= racc
|
||||||
PORTVERSION= 1.2.3
|
PORTVERSION= 1.2.3
|
||||||
CATEGORIES= devel ruby
|
CATEGORIES= devel ruby
|
||||||
MASTER_SITES= http://www1.u-netsurf.ne.jp/~brew/mine/soft/
|
MASTER_SITES= http://www1.u-netsurf.ne.jp/~brew/mine/soft/
|
||||||
PKGNAMEPREFIX= ruby-
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||||
DIST_SUBDIR= ruby
|
DIST_SUBDIR= ruby
|
||||||
|
|
||||||
MAINTAINER= knu@FreeBSD.org
|
MAINTAINER= knu@FreeBSD.org
|
||||||
|
|
||||||
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
||||||
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
|
|
||||||
${RUBY_SITELIBDIR}/amstd/info.rb:${PORTSDIR}/devel/ruby-amstd
|
|
||||||
|
|
||||||
.if !defined(RUNTIME)
|
.if !defined(RUNTIME)
|
||||||
RUN_DEPENDS+= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime
|
RUN_DEPENDS= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime
|
||||||
.endif[
|
.endif[
|
||||||
|
|
||||||
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
USE_RUBY= yes
|
||||||
|
USE_RUBY_AMSTD= yes
|
||||||
|
USE_RUBY_SETUP= yes
|
||||||
|
|
||||||
RUBY?= ${LOCALBASE}/bin/ruby
|
|
||||||
RUBY_VER?= 1.4
|
|
||||||
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
|
||||||
|
|
||||||
RUBY_SITELIBDIR?= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}
|
|
||||||
RUBY_SITEARCHLIBDIR?= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}
|
|
||||||
|
|
||||||
MODULES= facade.rb format.rb grammer.rb info.rb iset.rb \
|
|
||||||
libracc.rb raccp.rb raccs.rb state.rb
|
|
||||||
MODULES_RT= parser.rb
|
|
||||||
DOCS_EN= changes.html command.html debug.html grammer.html \
|
DOCS_EN= changes.html command.html debug.html grammer.html \
|
||||||
index.html usage.html
|
index.html usage.html
|
||||||
DOCS_JA= changes.html command.html debug.html grammer.html \
|
DOCS_JA= changes.html command.html debug.html grammer.html \
|
||||||
index.html parser.html usage.html
|
index.html parser.html usage.html
|
||||||
EXAMPLES= calc-ja.y calc.y conflict.y lalr.y syntax.y yyerr.y
|
EXAMPLES= calc-ja.y calc.y conflict.y lalr.y syntax.y yyerr.y
|
||||||
|
|
||||||
|
post-extract:
|
||||||
|
${PERL} -i -ne '/^amstd\b/ || print' ${WRKSRC}/lib/PATHCONV
|
||||||
|
${RM} -rf ${WRKSRC}/lib/amstd
|
||||||
|
.if defined(RUNTIME)
|
||||||
|
${PERL} -i -ne '/^racc\b/ || print' ${WRKSRC}/bin/PATHCONV
|
||||||
|
${RM} -rf ${WRKSRC}/bin/racc
|
||||||
|
${PERL} -i -ne '/^racc\b/ || print' ${WRKSRC}/lib/PATHCONV
|
||||||
|
${RM} -rf ${WRKSRC}/lib/racc
|
||||||
|
.else
|
||||||
|
${PERL} -i -ne '/^cparse\b/ || print' ${WRKSRC}/ext/PATHCONV
|
||||||
|
${RM} -rf ${WRKSRC}/ext/cparse
|
||||||
|
${PERL} -i -ne '/^raccrt\b/ || print' ${WRKSRC}/lib/PATHCONV
|
||||||
|
${RM} -rf ${WRKSRC}/lib/raccrt
|
||||||
|
.endif
|
||||||
|
|
||||||
.if !defined(RUNTIME)
|
.if !defined(RUNTIME)
|
||||||
post-patch:
|
post-patch:
|
||||||
${RM} -rf ${WRKSRC}/ext
|
${RM} -rf ${WRKSRC}/ext
|
||||||
|
@ -48,39 +51,28 @@ post-patch:
|
||||||
${WRKSRC}/misc/y2racc
|
${WRKSRC}/misc/y2racc
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
do-configure:
|
|
||||||
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} setup.rb config
|
|
||||||
|
|
||||||
do-build:
|
|
||||||
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${RUBY} setup.rb setup
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
.if defined(RUNTIME)
|
.if defined(RUNTIME)
|
||||||
${MKDIR} ${RUBY_SITELIBDIR}/racc
|
${MKDIR} ${RUBY_SITELIBDIR}/racc
|
||||||
.for f in ${MODULES_RT}
|
|
||||||
${INSTALL_DATA} ${WRKSRC}/lib/raccrt/${f} ${RUBY_SITELIBDIR}/racc/
|
|
||||||
.endfor
|
|
||||||
${MKDIR} ${RUBY_SITEARCHLIBDIR}/racc
|
${MKDIR} ${RUBY_SITEARCHLIBDIR}/racc
|
||||||
${INSTALL_DATA} ${WRKSRC}/ext/cparse/cparse.so ${RUBY_SITEARCHLIBDIR}/racc/
|
|
||||||
.else
|
.else
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/bin/racc/racc \
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/racc/racc \
|
||||||
${WRKSRC}/misc/racc2y ${WRKSRC}/misc/y2racc ${PREFIX}/bin/
|
${WRKSRC}/misc/racc2y ${WRKSRC}/misc/y2racc ${PREFIX}/bin/
|
||||||
.for f in ${MODULES}
|
|
||||||
${INSTALL_DATA} ${WRKSRC}/lib/racc/${f} ${RUBY_SITELIBDIR}/racc/
|
|
||||||
.endfor
|
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
${MKDIR} ${PREFIX}/share/examples/ruby/racc
|
${MKDIR} ${RUBY_EXAMPLESDIR}/racc
|
||||||
.for f in ${EXAMPLES}
|
.for f in ${EXAMPLES}
|
||||||
${INSTALL_DATA} ${WRKSRC}/sample/${f} ${PREFIX}/share/examples/ruby/racc/
|
${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_EXAMPLESDIR}/racc/
|
||||||
.endfor
|
.endfor
|
||||||
${MKDIR} ${PREFIX}/share/doc/ruby/racc/ja
|
${MKDIR} ${RUBY_DOCDIR}/racc/ja
|
||||||
.for f in ${DOCS_EN}
|
.for f in ${DOCS_EN}
|
||||||
${INSTALL_DATA} ${WRKSRC}/doc.en/${f} ${PREFIX}/share/doc/ruby/racc/
|
${INSTALL_DATA} ${WRKSRC}/doc.en/${f} ${RUBY_DOCDIR}/racc/
|
||||||
.endfor
|
.endfor
|
||||||
.for f in ${DOCS_JA}
|
.for f in ${DOCS_JA}
|
||||||
${INSTALL_DATA} ${WRKSRC}/doc.ja/${f} ${PREFIX}/share/doc/ruby/racc/ja/
|
${INSTALL_DATA} ${WRKSRC}/doc.ja/${f} ${RUBY_DOCDIR}/racc/ja/
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
bin/racc
|
bin/racc
|
||||||
bin/racc2y
|
bin/racc2y
|
||||||
bin/y2racc
|
bin/y2racc
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/racc/facade.rb
|
%%RUBY_SITELIBDIR%%/racc/facade.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/racc/format.rb
|
%%RUBY_SITELIBDIR%%/racc/format.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/racc/grammer.rb
|
%%RUBY_SITELIBDIR%%/racc/grammer.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/racc/info.rb
|
%%RUBY_SITELIBDIR%%/racc/info.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/racc/iset.rb
|
%%RUBY_SITELIBDIR%%/racc/iset.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/racc/libracc.rb
|
%%RUBY_SITELIBDIR%%/racc/libracc.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/racc/raccp.rb
|
%%RUBY_SITELIBDIR%%/racc/raccp.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/racc/raccs.rb
|
%%RUBY_SITELIBDIR%%/racc/raccs.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/racc/state.rb
|
%%RUBY_SITELIBDIR%%/racc/state.rb
|
||||||
share/examples/ruby/racc/calc-ja.y
|
%%RUBY_EXAMPLESDIR%%/racc/calc-ja.y
|
||||||
share/examples/ruby/racc/calc.y
|
%%RUBY_EXAMPLESDIR%%/racc/calc.y
|
||||||
share/examples/ruby/racc/conflict.y
|
%%RUBY_EXAMPLESDIR%%/racc/conflict.y
|
||||||
share/examples/ruby/racc/lalr.y
|
%%RUBY_EXAMPLESDIR%%/racc/lalr.y
|
||||||
share/examples/ruby/racc/syntax.y
|
%%RUBY_EXAMPLESDIR%%/racc/syntax.y
|
||||||
share/examples/ruby/racc/yyerr.y
|
%%RUBY_EXAMPLESDIR%%/racc/yyerr.y
|
||||||
share/doc/ruby/racc/ja/changes.html
|
%%RUBY_DOCDIR%%/racc/ja/changes.html
|
||||||
share/doc/ruby/racc/ja/command.html
|
%%RUBY_DOCDIR%%/racc/ja/command.html
|
||||||
share/doc/ruby/racc/ja/debug.html
|
%%RUBY_DOCDIR%%/racc/ja/debug.html
|
||||||
share/doc/ruby/racc/ja/grammer.html
|
%%RUBY_DOCDIR%%/racc/ja/grammer.html
|
||||||
share/doc/ruby/racc/ja/index.html
|
%%RUBY_DOCDIR%%/racc/ja/index.html
|
||||||
share/doc/ruby/racc/ja/parser.html
|
%%RUBY_DOCDIR%%/racc/ja/parser.html
|
||||||
share/doc/ruby/racc/ja/usage.html
|
%%RUBY_DOCDIR%%/racc/ja/usage.html
|
||||||
share/doc/ruby/racc/changes.html
|
%%RUBY_DOCDIR%%/racc/changes.html
|
||||||
share/doc/ruby/racc/command.html
|
%%RUBY_DOCDIR%%/racc/command.html
|
||||||
share/doc/ruby/racc/debug.html
|
%%RUBY_DOCDIR%%/racc/debug.html
|
||||||
share/doc/ruby/racc/grammer.html
|
%%RUBY_DOCDIR%%/racc/grammer.html
|
||||||
share/doc/ruby/racc/index.html
|
%%RUBY_DOCDIR%%/racc/index.html
|
||||||
share/doc/ruby/racc/usage.html
|
%%RUBY_DOCDIR%%/racc/usage.html
|
||||||
@dirrm share/examples/ruby/racc
|
@dirrm %%RUBY_EXAMPLESDIR%%/racc
|
||||||
@dirrm share/doc/ruby/racc/ja
|
@dirrm %%RUBY_DOCDIR%%/racc/ja
|
||||||
@dirrm share/doc/ruby/racc
|
@dirrm %%RUBY_DOCDIR%%/racc
|
||||||
|
|
|
@ -9,24 +9,14 @@ PORTNAME= strscan
|
||||||
PORTVERSION= 0.5.8
|
PORTVERSION= 0.5.8
|
||||||
CATEGORIES= devel ruby
|
CATEGORIES= devel ruby
|
||||||
MASTER_SITES= http://www1.u-netsurf.ne.jp/~brew/mine/soft/
|
MASTER_SITES= http://www1.u-netsurf.ne.jp/~brew/mine/soft/
|
||||||
PKGNAMEPREFIX= ruby-
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||||
DIST_SUBDIR= ruby
|
DIST_SUBDIR= ruby
|
||||||
|
|
||||||
MAINTAINER= knu@FreeBSD.org
|
MAINTAINER= knu@FreeBSD.org
|
||||||
|
|
||||||
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
|
USE_RUBY= yes
|
||||||
${RUBY_SITELIBDIR}/amstd/info.rb:${PORTSDIR}/devel/ruby-amstd
|
USE_RUBY_AMSTD= yes
|
||||||
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
|
USE_RUBY_SETUP= yes
|
||||||
${RUBY_SITELIBDIR}/amstd/info.rb:${PORTSDIR}/devel/ruby-amstd
|
|
||||||
|
|
||||||
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
|
||||||
|
|
||||||
RUBY?= ${LOCALBASE}/bin/ruby
|
|
||||||
RUBY_VER?= 1.4
|
|
||||||
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
|
||||||
|
|
||||||
RUBY_SITELIBDIR?= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}
|
|
||||||
RUBY_SITEARCHLIBDIR?= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}
|
|
||||||
|
|
||||||
DOCS_EN= README.en \
|
DOCS_EN= README.en \
|
||||||
doc.en/changes.html doc.en/index.html \
|
doc.en/changes.html doc.en/index.html \
|
||||||
|
@ -38,25 +28,17 @@ post-patch:
|
||||||
${PERL} -i -ne '/\bstrscan\b/ and print' ${WRKSRC}/lib/PATHCONV
|
${PERL} -i -ne '/\bstrscan\b/ and print' ${WRKSRC}/lib/PATHCONV
|
||||||
for d in amstd; do ${RM} -rf ${WRKSRC}/lib/$$d; done
|
for d in amstd; do ${RM} -rf ${WRKSRC}/lib/$$d; done
|
||||||
|
|
||||||
do-configure:
|
|
||||||
@cd ${WRKSRC}; \
|
|
||||||
${SETENV} ${CONFIGURE_ENV} ${RUBY} setup.rb config
|
|
||||||
|
|
||||||
do-build:
|
|
||||||
@cd ${WRKSRC}; \
|
|
||||||
${SETENV} ${MAKE_ENV} ${RUBY} setup.rb setup
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@cd ${WRKSRC}; \
|
|
||||||
${SETENV} ${MAKE_ENV} ${RUBY} setup.rb install
|
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
${MKDIR} ${PREFIX}/share/doc/ruby/strscan/ja
|
${MKDIR} ${RUBY_DOCDIR}/strscan/ja
|
||||||
.for f in ${DOCS_EN}
|
.for f in ${DOCS_EN}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/strscan/
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/strscan/
|
||||||
.endfor
|
.endfor
|
||||||
.for f in ${DOCS_JA}
|
.for f in ${DOCS_JA}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/strscan/ja/
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/strscan/ja/
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/strscan.so
|
%%RUBY_SITEARCHLIBDIR%%/strscan.so
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/scanner.rb
|
%%RUBY_SITELIBDIR%%/scanner.rb
|
||||||
share/doc/ruby/strscan/README.en
|
%%RUBY_DOCDIR%%/strscan/README.en
|
||||||
share/doc/ruby/strscan/changes.html
|
%%RUBY_DOCDIR%%/strscan/changes.html
|
||||||
share/doc/ruby/strscan/index.html
|
%%RUBY_DOCDIR%%/strscan/index.html
|
||||||
share/doc/ruby/strscan/reference.html
|
%%RUBY_DOCDIR%%/strscan/reference.html
|
||||||
share/doc/ruby/strscan/usage.html
|
%%RUBY_DOCDIR%%/strscan/usage.html
|
||||||
share/doc/ruby/strscan/ja/changes.html
|
%%RUBY_DOCDIR%%/strscan/ja/changes.html
|
||||||
share/doc/ruby/strscan/ja/index.html
|
%%RUBY_DOCDIR%%/strscan/ja/index.html
|
||||||
share/doc/ruby/strscan/ja/reference.html
|
%%RUBY_DOCDIR%%/strscan/ja/reference.html
|
||||||
share/doc/ruby/strscan/ja/usage.html
|
%%RUBY_DOCDIR%%/strscan/ja/usage.html
|
||||||
@dirrm share/doc/ruby/strscan/ja
|
@dirrm %%RUBY_DOCDIR%%/strscan/ja
|
||||||
@dirrm share/doc/ruby/strscan
|
@dirrm %%RUBY_DOCDIR%%/strscan
|
||||||
|
|
|
@ -9,28 +9,19 @@ PORTNAME= rdtool
|
||||||
PORTVERSION= 0.6.5
|
PORTVERSION= 0.6.5
|
||||||
CATEGORIES= textproc ruby
|
CATEGORIES= textproc ruby
|
||||||
MASTER_SITES= http://www2.pos.to/~tosh/ruby/rdtool/archive/
|
MASTER_SITES= http://www2.pos.to/~tosh/ruby/rdtool/archive/
|
||||||
PKGNAMEPREFIX= ruby-
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||||
DIST_SUBDIR= ruby
|
DIST_SUBDIR= ruby
|
||||||
|
|
||||||
MAINTAINER= knu@FreeBSD.org
|
MAINTAINER= knu@FreeBSD.org
|
||||||
|
|
||||||
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
|
BUILD_DEPENDS= racc:${PORTSDIR}/devel/ruby-racc \
|
||||||
racc:${PORTSDIR}/devel/ruby-racc \
|
|
||||||
${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/devel/ruby-strscan \
|
${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/devel/ruby-strscan \
|
||||||
${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
|
${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
|
||||||
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
|
RUN_DEPENDS= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime \
|
||||||
${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime \
|
|
||||||
${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/devel/ruby-strscan \
|
${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/devel/ruby-strscan \
|
||||||
${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
|
${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
|
||||||
|
|
||||||
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
USE_RUBY= yes
|
||||||
|
|
||||||
RUBY?= ${LOCALBASE}/bin/ruby
|
|
||||||
RUBY_VER?= 1.4
|
|
||||||
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
|
||||||
|
|
||||||
RUBY_SITELIBDIR?= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}
|
|
||||||
RUBY_SITEARCHLIBDIR?= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}
|
|
||||||
|
|
||||||
EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
|
EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
|
||||||
XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp
|
XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp
|
||||||
|
@ -69,18 +60,20 @@ post-install:
|
||||||
${LN} -sf ${EMACSLISPDIR}/rd-mode.el ${XEMACSLISPDIR}
|
${LN} -sf ${EMACSLISPDIR}/rd-mode.el ${XEMACSLISPDIR}
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/utils/rdswap.rb ${PREFIX}/bin/rdswap
|
${INSTALL_SCRIPT} ${WRKSRC}/utils/rdswap.rb ${PREFIX}/bin/rdswap
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
rd2 ${PREFIX}/share/doc/ruby/optparse/ja/optparse.ja.rd \
|
rd2 ${RUBY_DOCDIR}/optparse/ja/optparse.ja.rd \
|
||||||
> ${PREFIX}/share/doc/ruby/optparse/ja/optparse.ja.html
|
> ${RUBY_DOCDIR}/optparse/ja/optparse.ja.html
|
||||||
${MKDIR} ${PREFIX}/share/examples/ruby/rd
|
${MKDIR} ${RUBY_EXAMPLESDIR}/rd
|
||||||
${CP} ${RUBY_SITELIBDIR}/rd/dot.rd2rc ${PREFIX}/share/examples/ruby/rd/
|
${CP} ${RUBY_SITELIBDIR}/rd/dot.rd2rc ${RUBY_EXAMPLESDIR}/rd/
|
||||||
${MKDIR} ${PREFIX}/share/doc/ruby/rd/ja
|
${MKDIR} ${RUBY_DOCDIR}/rd/ja
|
||||||
.for f in ${DOCS_EN}
|
.for f in ${DOCS_EN}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/rd/
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rd/
|
||||||
.endfor
|
.endfor
|
||||||
.for f in ${DOCS_JA}
|
.for f in ${DOCS_JA}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/rd/ja/
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rd/ja/
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
@${CAT} ${PKGMESSAGE}
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -2,32 +2,32 @@ bin/rd2
|
||||||
bin/rdswap
|
bin/rdswap
|
||||||
bin/rmi2html
|
bin/rmi2html
|
||||||
bin/rmi2html.rb
|
bin/rmi2html.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/rd/dot.rd2rc
|
%%RUBY_SITELIBDIR%%/rd/dot.rd2rc
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/rd/filter.rb
|
%%RUBY_SITELIBDIR%%/rd/filter.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/rd/rd2html-lib.rb
|
%%RUBY_SITELIBDIR%%/rd/rd2html-lib.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/rd/rd2html-opt.rb
|
%%RUBY_SITELIBDIR%%/rd/rd2html-opt.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/rd/rd2man-lib.rb
|
%%RUBY_SITELIBDIR%%/rd/rd2man-lib.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/rd/rd2rdo-lib.rb
|
%%RUBY_SITELIBDIR%%/rd/rd2rdo-lib.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/rd/rd2rmi-lib.rb
|
%%RUBY_SITELIBDIR%%/rd/rd2rmi-lib.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/rd/rdblockparser.tab.rb
|
%%RUBY_SITELIBDIR%%/rd/rdblockparser.tab.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/rd/rdfmt.rb
|
%%RUBY_SITELIBDIR%%/rd/rdfmt.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/rd/rdinlineparser.tab.rb
|
%%RUBY_SITELIBDIR%%/rd/rdinlineparser.tab.rb
|
||||||
lib/ruby/site_ruby/%%RUBY_VER%%/rd/rdvisitor.rb
|
%%RUBY_SITELIBDIR%%/rd/rdvisitor.rb
|
||||||
@dirrm lib/ruby/site_ruby/%%RUBY_VER%%/rd
|
@dirrm %%RUBY_SITELIBDIR%%/rd
|
||||||
share/examples/ruby/rd/dot.rd2rc
|
%%RUBY_EXAMPLESDIR%%/rd/dot.rd2rc
|
||||||
@dirrm share/examples/ruby/rd
|
@dirrm %%RUBY_EXAMPLESDIR%%/rd
|
||||||
share/emacs/site-lisp/rd-mode.el
|
share/emacs/site-lisp/rd-mode.el
|
||||||
lib/xemacs/site-lisp/rd-mode.el
|
lib/xemacs/site-lisp/rd-mode.el
|
||||||
@unexec rmdir -p %D/share/emacs/site-lisp 2>/dev/null || true
|
@unexec rmdir -p %D/share/emacs/site-lisp 2>/dev/null || true
|
||||||
@unexec rmdir -p %D/lib/xemacs/site-lisp 2>/dev/null || true
|
@unexec rmdir -p %D/lib/xemacs/site-lisp 2>/dev/null || true
|
||||||
share/doc/ruby/optparse/ja/optparse.ja.html
|
%%RUBY_DOCDIR%%/optparse/ja/optparse.ja.html
|
||||||
share/doc/ruby/rd/README.html
|
%%RUBY_DOCDIR%%/rd/README.html
|
||||||
share/doc/ruby/rd/rd-draft.html
|
%%RUBY_DOCDIR%%/rd/rd-draft.html
|
||||||
share/doc/ruby/rd/rd-draft.rd
|
%%RUBY_DOCDIR%%/rd/rd-draft.rd
|
||||||
share/doc/ruby/rd/ja/README.ja.html
|
%%RUBY_DOCDIR%%/rd/ja/README.ja.html
|
||||||
share/doc/ruby/rd/ja/dev-note.ja.html
|
%%RUBY_DOCDIR%%/rd/ja/dev-note.ja.html
|
||||||
share/doc/ruby/rd/ja/dev-note.rd.ja
|
%%RUBY_DOCDIR%%/rd/ja/dev-note.rd.ja
|
||||||
share/doc/ruby/rd/ja/rd-draft.ja.html
|
%%RUBY_DOCDIR%%/rd/ja/rd-draft.ja.html
|
||||||
share/doc/ruby/rd/ja/rd-draft.rd.ja
|
%%RUBY_DOCDIR%%/rd/ja/rd-draft.rd.ja
|
||||||
@dirrm share/doc/ruby/rd/ja
|
@dirrm %%RUBY_DOCDIR%%/rd/ja
|
||||||
@dirrm share/doc/ruby/rd
|
@dirrm %%RUBY_DOCDIR%%/rd
|
||||||
|
|
Loading…
Reference in a new issue