aboutsummaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
Diffstat (limited to 'japanese')
-rw-r--r--japanese/ruby-kakasi/Makefile27
-rw-r--r--japanese/ruby-kakasi/pkg-plist20
-rw-r--r--japanese/ruby-uconv/Makefile29
-rw-r--r--japanese/ruby-uconv/pkg-plist26
-rw-r--r--japanese/ruby-usersguide/pkg-plist58
5 files changed, 72 insertions, 88 deletions
diff --git a/japanese/ruby-kakasi/Makefile b/japanese/ruby-kakasi/Makefile
index 85b324f33d53..90ad0f620193 100644
--- a/japanese/ruby-kakasi/Makefile
+++ b/japanese/ruby-kakasi/Makefile
@@ -13,45 +13,38 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= kakasi.2:${PORTSDIR}/japanese/kakasi
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
INSTALL_TARGET= site-install
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}
DOCS_EN= ChangeLog README wdcnt.html
DOCS_JA= README.jp
.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
-PKGNAMEPREFIX:= ${PKGNAMEPREFIX}ruby-
+PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
post-patch:
${PERL} -i -pe 's,/usr/local,${PREFIX},g' ${WRKSRC}/extconf.rb
${PERL} -i -pe 's,\./(kakasi),$$1,g' ${WRKSRC}/test.rb
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
-
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/wdcnt ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/kakasi/ja/
- ${INSTALL_DATA} ${WRKSRC}/test.rb ${PREFIX}/share/examples/ruby/kakasi/ja/
- ${MKDIR} ${PREFIX}/share/doc/ruby/kakasi/ja
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/kakasi/ja/
+ ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_EXAMPLESDIR}/kakasi/ja/
+ ${MKDIR} ${RUBY_DOCDIR}/kakasi/ja
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/kakasi/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/kakasi/
.endfor
.for f in ${DOCS_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/kakasi/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/kakasi/ja/
.endfor
.endif
diff --git a/japanese/ruby-kakasi/pkg-plist b/japanese/ruby-kakasi/pkg-plist
index 3dfaf6ef31fb..4dfc878aa4fb 100644
--- a/japanese/ruby-kakasi/pkg-plist
+++ b/japanese/ruby-kakasi/pkg-plist
@@ -1,11 +1,11 @@
bin/wdcnt
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/kakasi.so
-share/examples/ruby/kakasi/ja/test.rb
-@dirrm share/examples/ruby/kakasi/ja
-@dirrm share/examples/ruby/kakasi
-share/doc/ruby/kakasi/ChangeLog
-share/doc/ruby/kakasi/README
-share/doc/ruby/kakasi/wdcnt.html
-share/doc/ruby/kakasi/ja/README.jp
-@dirrm share/doc/ruby/kakasi/ja
-@dirrm share/doc/ruby/kakasi
+%%RUBY_SITEARCHLIBDIR%%/kakasi.so
+%%RUBY_EXAMPLESDIR%%/kakasi/ja/test.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/kakasi/ja
+@dirrm %%RUBY_EXAMPLESDIR%%/kakasi
+%%RUBY_DOCDIR%%/kakasi/ChangeLog
+%%RUBY_DOCDIR%%/kakasi/README
+%%RUBY_DOCDIR%%/kakasi/wdcnt.html
+%%RUBY_DOCDIR%%/kakasi/ja/README.jp
+@dirrm %%RUBY_DOCDIR%%/kakasi/ja
+@dirrm %%RUBY_DOCDIR%%/kakasi
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
diff --git a/japanese/ruby-usersguide/pkg-plist b/japanese/ruby-usersguide/pkg-plist
index d5d8c62b7f6d..a651efd7cc4f 100644
--- a/japanese/ruby-usersguide/pkg-plist
+++ b/japanese/ruby-usersguide/pkg-plist
@@ -1,29 +1,29 @@
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/index.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide00.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide01.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide02.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide03.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide04.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide05.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide06.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide07.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide08.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide09.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide10.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide11.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide12.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide13.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide14.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide15.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide16.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide17.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide18.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide19.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide20.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide21.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide22.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide23.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide24.html
-share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%/uguide25.html
-@dirrm share/doc/ruby/ruby-usersguide%%LANGSUFFIX%%
-@unexec rmdir %D/share/doc/ruby 2>/dev/null || true
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/index.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide00.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide01.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide02.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide03.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide04.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide05.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide06.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide07.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide08.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide09.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide10.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide11.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide12.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide13.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide14.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide15.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide16.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide17.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide18.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide19.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide20.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide21.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide22.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide23.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide24.html
+%%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%/uguide25.html
+@dirrm %%RUBY_DOCDIR%%/ruby-usersguide%%LANGSUFFIX%%
+@unexec rmdir %D/%%RUBY_DOCDIR%% 2>/dev/null || true