summaryrefslogtreecommitdiff
path: root/devel/ruby-strscan
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 07:23:43 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 07:23:43 +0000
commitef19b346c19e1e342e952f369c5aff7ab7128a10 (patch)
tree96f18b40648c777428642c9a33c84009552196c4 /devel/ruby-strscan
parentAdd ruby-setup-install target which I forgot to add. (diff)
Update fundamental ruby ports first with bsd.ruby.mk.
Notes
Notes: svn path=/head/; revision=32370
Diffstat (limited to 'devel/ruby-strscan')
-rw-r--r--devel/ruby-strscan/Makefile38
-rw-r--r--devel/ruby-strscan/pkg-plist26
2 files changed, 23 insertions, 41 deletions
diff --git a/devel/ruby-strscan/Makefile b/devel/ruby-strscan/Makefile
index 194678382296..cebd164df5e1 100644
--- a/devel/ruby-strscan/Makefile
+++ b/devel/ruby-strscan/Makefile
@@ -9,24 +9,14 @@ PORTNAME= strscan
PORTVERSION= 0.5.8
CATEGORIES= devel ruby
MASTER_SITES= http://www1.u-netsurf.ne.jp/~brew/mine/soft/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
- ${RUBY_SITELIBDIR}/amstd/info.rb:${PORTSDIR}/devel/ruby-amstd
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
- ${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}
+USE_RUBY= yes
+USE_RUBY_AMSTD= yes
+USE_RUBY_SETUP= yes
DOCS_EN= README.en \
doc.en/changes.html doc.en/index.html \
@@ -38,25 +28,17 @@ 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}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} setup.rb config
-
-do-build:
- @cd ${WRKSRC}; \
- ${SETENV} ${MAKE_ENV} ${RUBY} setup.rb setup
-
do-install:
- @cd ${WRKSRC}; \
- ${SETENV} ${MAKE_ENV} ${RUBY} setup.rb install
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/strscan/ja
+ ${MKDIR} ${RUBY_DOCDIR}/strscan/ja
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/strscan/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/strscan/
.endfor
.for f in ${DOCS_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/strscan/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/strscan/ja/
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/devel/ruby-strscan/pkg-plist b/devel/ruby-strscan/pkg-plist
index 483e0514cd24..1044a293c4e3 100644
--- a/devel/ruby-strscan/pkg-plist
+++ b/devel/ruby-strscan/pkg-plist
@@ -1,13 +1,13 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/strscan.so
-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
-share/doc/ruby/strscan/reference.html
-share/doc/ruby/strscan/usage.html
-share/doc/ruby/strscan/ja/changes.html
-share/doc/ruby/strscan/ja/index.html
-share/doc/ruby/strscan/ja/reference.html
-share/doc/ruby/strscan/ja/usage.html
-@dirrm share/doc/ruby/strscan/ja
-@dirrm share/doc/ruby/strscan
+%%RUBY_SITEARCHLIBDIR%%/strscan.so
+%%RUBY_SITELIBDIR%%/scanner.rb
+%%RUBY_DOCDIR%%/strscan/README.en
+%%RUBY_DOCDIR%%/strscan/changes.html
+%%RUBY_DOCDIR%%/strscan/index.html
+%%RUBY_DOCDIR%%/strscan/reference.html
+%%RUBY_DOCDIR%%/strscan/usage.html
+%%RUBY_DOCDIR%%/strscan/ja/changes.html
+%%RUBY_DOCDIR%%/strscan/ja/index.html
+%%RUBY_DOCDIR%%/strscan/ja/reference.html
+%%RUBY_DOCDIR%%/strscan/ja/usage.html
+@dirrm %%RUBY_DOCDIR%%/strscan/ja
+@dirrm %%RUBY_DOCDIR%%/strscan