1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

Oops, scanner.rb was not an example, but a part of the library.. ;)

This commit is contained in:
Akinori MUSHA 2000-08-22 07:22:57 +00:00
parent d518b411bf
commit d0718f7153
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31851
2 changed files with 11 additions and 10 deletions

View File

@ -16,7 +16,7 @@ MAINTAINER= knu@FreeBSD.org
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/amstd/info.rb:${PORTSDIR}/devel/ruby-amstd
${RUBY_SITELIBDIR}/amstd/info.rb:${PORTSDIR}/devel/ruby-amstd
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
@ -24,12 +24,18 @@ 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 \
doc.en/changes.html doc.en/index.html \
doc.en/reference.html doc.en/usage.html
DOCS_JA= doc.ja/changes.html doc.ja/index.html \
doc.ja/reference.html doc.ja/usage.html
EXAMPLES= lib/strscan/scanner.rb
post-patch:
${PERL} -i -ne '/\bstrscan\b/ and print' ${WRKSRC}/lib/PATHCONV
for d in amstd; do ${RM} -rf ${WRKSRC}/lib/$$d; done
do-configure:
@cd ${WRKSRC}; \
@ -40,13 +46,9 @@ do-build:
${SETENV} ${MAKE_ENV} ${RUBY} setup.rb setup
do-install:
${INSTALL_DATA} ${WRKSRC}/ext/strscanso/strscan.so \
${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}/
@cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} ${RUBY} setup.rb install
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/examples/ruby/strscan
.for f in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/ruby/strscan/
.endfor
${MKDIR} ${PREFIX}/share/doc/ruby/strscan/ja
.for f in ${DOCS_EN}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/strscan/

View File

@ -1,6 +1,5 @@
lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/strscan.so
share/examples/ruby/strscan/scanner.rb
@dirrm share/examples/ruby/strscan
lib/ruby/site_ruby/%%RUBY_VER%%/scanner.rb
share/doc/ruby/strscan/README.en
share/doc/ruby/strscan/changes.html
share/doc/ruby/strscan/index.html