diff options
-rw-r--r-- | japanese/Makefile | 1 | ||||
-rw-r--r-- | japanese/ruby-chasen/Makefile | 38 | ||||
-rw-r--r-- | japanese/ruby-chasen/distinfo | 1 | ||||
-rw-r--r-- | japanese/ruby-chasen/files/patch-extconf.rb | 25 | ||||
-rw-r--r-- | japanese/ruby-chasen/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/ruby-chasen/pkg-descr | 5 | ||||
-rw-r--r-- | japanese/ruby-chasen/pkg-plist | 8 |
7 files changed, 79 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile index ed2ab3eb701c..5009726797da 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -261,6 +261,7 @@ SUBDIR += roget-fpw SUBDIR += rogue_s SUBDIR += rskkserv + SUBDIR += ruby-chasen SUBDIR += ruby-eb SUBDIR += ruby-kakasi SUBDIR += ruby-man diff --git a/japanese/ruby-chasen/Makefile b/japanese/ruby-chasen/Makefile new file mode 100644 index 000000000000..dbc10ebe7201 --- /dev/null +++ b/japanese/ruby-chasen/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: Ruby-ChaSen +# Date created: 1 Mar 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= chasen +PORTVERSION= 1.6 +CATEGORIES= japanese ruby +MASTER_SITES= http://www.itlb.te.noda.sut.ac.jp/~ikarashi/ruby/ +DISTNAME= ${PORTNAME}${PORTVERSION} +DIST_SUBDIR= ruby + +MAINTAINER= knu@FreeBSD.org + +LIB_DEPENDS= chasen.0:${PORTSDIR}/japanese/chasen + +USE_RUBY= yes +USE_RUBY_EXTCONF= yes + +CONFIGURE_ARGS= --with-chasen-include="${PREFIX}/include/chasen" \ + --with-chasen-lib="${PREFIX}/lib" +INSTALL_TARGET= site-install + +.include <bsd.port.pre.mk> + +PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX} + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_EXAMPLESDIR}/chasen/ja/ + ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/chasen/ja/ + ${MKDIR} ${RUBY_DOCDIR}/chasen/ja + ${INSTALL_DATA} ${WRKSRC}/chasen.html ${RUBY_DOCDIR}/chasen/ja/ +.endif + +.include <bsd.port.post.mk> diff --git a/japanese/ruby-chasen/distinfo b/japanese/ruby-chasen/distinfo new file mode 100644 index 000000000000..b36f422c80ac --- /dev/null +++ b/japanese/ruby-chasen/distinfo @@ -0,0 +1 @@ +MD5 (ruby/chasen1.6.tar.gz) = 534c5865e62b228f544f22f7aeee1335 diff --git a/japanese/ruby-chasen/files/patch-extconf.rb b/japanese/ruby-chasen/files/patch-extconf.rb new file mode 100644 index 000000000000..a61be34e22d5 --- /dev/null +++ b/japanese/ruby-chasen/files/patch-extconf.rb @@ -0,0 +1,25 @@ +--- extconf.rb.orig Thu Sep 9 21:57:36 1999 ++++ extconf.rb Thu Mar 1 19:09:18 2001 +@@ -1,20 +1,6 @@ + require "mkmf" +-require "parsearg" + +-def usage() +- printf "Usage:\n" +- printf "%s [-L library_path]\n", $0 +-end +- +-$USAGE = 'usage' +-parseArgs(0, "L", nil, "L:.") +- +-unless have_library("chasen", "chasen_getopt_argv") +- $objs = Dir["*.{c,cc}"] +- for f in $objs +- f.sub!(/\.(c|cc)$/, ".o") +- end +- $objs.push File.join(["#{$OPT_L}", "libchasen.a"]) +-end ++dir_config("chasen") + ++have_library("chasen", "chasen_getopt_argv") && + create_makefile("chasen") diff --git a/japanese/ruby-chasen/pkg-comment b/japanese/ruby-chasen/pkg-comment new file mode 100644 index 000000000000..cbc675751309 --- /dev/null +++ b/japanese/ruby-chasen/pkg-comment @@ -0,0 +1 @@ +ChaSen module for Ruby diff --git a/japanese/ruby-chasen/pkg-descr b/japanese/ruby-chasen/pkg-descr new file mode 100644 index 000000000000..65814afcd12a --- /dev/null +++ b/japanese/ruby-chasen/pkg-descr @@ -0,0 +1,5 @@ +Ruby/ChaSen -- ChaSen module for Ruby. + + +Author: IKARASHI Akira <ikarashi@d3.dion.ne.jp> +WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=Ruby%2FChaSen diff --git a/japanese/ruby-chasen/pkg-plist b/japanese/ruby-chasen/pkg-plist new file mode 100644 index 000000000000..f0ce0a77fdf7 --- /dev/null +++ b/japanese/ruby-chasen/pkg-plist @@ -0,0 +1,8 @@ +%%RUBY_SITEARCHLIBDIR%%/chasen.so +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/chasen/ja/chasenc.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/chasen/ja/test.rb +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/chasen/ja +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/chasen +%%PORTDOCS%%%%RUBY_DOCDIR%%/chasen/ja/chasen.html +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/chasen/ja +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/chasen |