Add ruby-chasen, ChaSen module for Ruby.

This commit is contained in:
Akinori MUSHA 2001-03-02 05:20:55 +00:00
parent 2c29ff0bf7
commit 60abb6e0eb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38952
7 changed files with 79 additions and 0 deletions

View File

@ -261,6 +261,7 @@
SUBDIR += roget-fpw
SUBDIR += rogue_s
SUBDIR += rskkserv
SUBDIR += ruby-chasen
SUBDIR += ruby-eb
SUBDIR += ruby-kakasi
SUBDIR += ruby-man

View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (ruby/chasen1.6.tar.gz) = 534c5865e62b228f544f22f7aeee1335

View File

@ -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")

View File

@ -0,0 +1 @@
ChaSen module for Ruby

View File

@ -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

View File

@ -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