summaryrefslogtreecommitdiff
path: root/japanese/ruby-uconv
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
commit6be33926020dcfa43ec8a1bf94700238962f3b92 (patch)
treeb915338a31558eaf368cfd16cdf2b7ec1e6e80db /japanese/ruby-uconv
parentFix the error detection routines at the end. (diff)
Update with bsd.ruby.mk. :>
Notes
Notes: svn path=/head/; revision=32391
Diffstat (limited to 'japanese/ruby-uconv')
-rw-r--r--japanese/ruby-uconv/Makefile29
-rw-r--r--japanese/ruby-uconv/pkg-plist26
2 files changed, 23 insertions, 32 deletions
diff --git a/japanese/ruby-uconv/Makefile b/japanese/ruby-uconv/Makefile
index c9a9cf73b538..52806533f885 100644
--- a/japanese/ruby-uconv/Makefile
+++ b/japanese/ruby-uconv/Makefile
@@ -15,38 +15,29 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-
-INSTALL_TARGET= site-install
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY= ${LOCALBASE}/bin/ruby
-RUBY_VER= 1.4
-RUBY_ARCH= ${ARCH}-freebsd${OSREL}
+INSTALL_TARGET= site-install
EXAMPLES= euc2unicode.rb test_euc.txt test_euc.xml \
trilang.xml unicode2euc.rb xmlconv.rb
.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
-PKGNAMEPREFIX:= ${PKGNAMEPREFIX}ruby-
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
+PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
post-install:
- ${MKDIR} ${PREFIX}/share/examples/ruby/uconv/ja
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/uconv/ja
.for f in ${EXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${PREFIX}/share/examples/ruby/uconv/ja
+ ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${RUBY_EXAMPLESDIR}/uconv/ja
.endfor
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/uconv/ja
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/uconv/
- ${INSTALL_DATA} ${WRKSRC}/README.ja ${PREFIX}/share/doc/ruby/uconv/ja/
+ ${MKDIR} ${RUBY_DOCDIR}/uconv/ja
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/uconv/
+ ${INSTALL_DATA} ${WRKSRC}/README.ja ${RUBY_DOCDIR}/uconv/ja/
.endif
.include <bsd.port.post.mk>
diff --git a/japanese/ruby-uconv/pkg-plist b/japanese/ruby-uconv/pkg-plist
index 6589840701d2..16b32fda6aa4 100644
--- a/japanese/ruby-uconv/pkg-plist
+++ b/japanese/ruby-uconv/pkg-plist
@@ -1,13 +1,13 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/uconv.so
-share/examples/ruby/uconv/ja/euc2unicode.rb
-share/examples/ruby/uconv/ja/test_euc.txt
-share/examples/ruby/uconv/ja/test_euc.xml
-share/examples/ruby/uconv/ja/trilang.xml
-share/examples/ruby/uconv/ja/unicode2euc.rb
-share/examples/ruby/uconv/ja/xmlconv.rb
-@dirrm share/examples/ruby/uconv/ja
-@dirrm share/examples/ruby/uconv
-share/doc/ruby/uconv/README
-share/doc/ruby/uconv/ja/README.ja
-@dirrm share/doc/ruby/uconv/ja
-@dirrm share/doc/ruby/uconv
+%%RUBY_SITEARCHLIBDIR%%/uconv.so
+%%RUBY_EXAMPLESDIR%%/uconv/ja/euc2unicode.rb
+%%RUBY_EXAMPLESDIR%%/uconv/ja/test_euc.txt
+%%RUBY_EXAMPLESDIR%%/uconv/ja/test_euc.xml
+%%RUBY_EXAMPLESDIR%%/uconv/ja/trilang.xml
+%%RUBY_EXAMPLESDIR%%/uconv/ja/unicode2euc.rb
+%%RUBY_EXAMPLESDIR%%/uconv/ja/xmlconv.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/uconv/ja
+@dirrm %%RUBY_EXAMPLESDIR%%/uconv
+%%RUBY_DOCDIR%%/uconv/README
+%%RUBY_DOCDIR%%/uconv/ja/README.ja
+@dirrm %%RUBY_DOCDIR%%/uconv/ja
+@dirrm %%RUBY_DOCDIR%%/uconv