From 77d5f72a032021098eac3fdd6d2063f22630f880 Mon Sep 17 00:00:00 2001 From: taca Date: Wed, 27 Mar 2002 13:52:52 +0000 Subject: [PATCH] Importing ruby-uconv 0.4.9 package. Here is quote from README. Unicode Conversion Module for Ruby version 0.4.9 Yoshida Masato - Introduction This is the module to convert ISO/IEC 10646 (Unicode) string and Japanese string each other. Supported character encodings are UCS-4, UTF-16, UTF-8, EUC-JP, CP932 (a variant of Shift_JIS for Japanese Windows). This cannot detect character encoding automatically. Note that EUC-JP conversion table has been changed. --- japanese/ruby-uconv/DESCR | 7 +++++++ japanese/ruby-uconv/Makefile | 35 +++++++++++++++++++++++++++++++++++ japanese/ruby-uconv/PLIST | 12 ++++++++++++ japanese/ruby-uconv/distinfo | 4 ++++ 4 files changed, 58 insertions(+) create mode 100644 japanese/ruby-uconv/DESCR create mode 100644 japanese/ruby-uconv/Makefile create mode 100644 japanese/ruby-uconv/PLIST create mode 100644 japanese/ruby-uconv/distinfo diff --git a/japanese/ruby-uconv/DESCR b/japanese/ruby-uconv/DESCR new file mode 100644 index 000000000000..b7d28c5cc57d --- /dev/null +++ b/japanese/ruby-uconv/DESCR @@ -0,0 +1,7 @@ +This is an Unicode conversion library with Japanese codesets support +for Ruby. + +Supported character encoding schemes are UCS-4, UTF-16, UTF-8, EUC-JP, +CP932 (a variant of Shift_JIS for Japanese Windows). + +WWW: http://www.yoshidam.net/Ruby.html#uconv diff --git a/japanese/ruby-uconv/Makefile b/japanese/ruby-uconv/Makefile new file mode 100644 index 000000000000..8b717646f6c6 --- /dev/null +++ b/japanese/ruby-uconv/Makefile @@ -0,0 +1,35 @@ +# $NetBSD$ +# FreeBSD: ports/japanese/ruby-uconv/Makefile,v 1.8 2001/01/30 19:26:22 knu Exp + +DISTNAME= uconv-0.4.9 +PKGNAME= ${RUBY_PKGNAMEPREFIX}${DISTNAME} +CATEGORIES= japanese converters +MASTER_SITES= http://www.yoshidam.net/ + +MAINTAINER= taca@netbsd.org +HOMEPAGE= http://www.yoshidam.net/Ruby.html#uconv +COMMENT= Unicode conversion library with Japanese codesets support + +DIST_SUBDIR= ruby +USE_RUBY= yes +USE_RUBY_EXTCONF= yes + +WRKSRC= ${WRKDIR}/uconv +INSTALL_TARGET= site-install + +REPLACE_RUBY= samples/euc2unicode.rb samples/unicode2euc.rb \ + samples/xmlconv.rb +EXAMPLES= euc2unicode.rb test_euc.txt test_euc.xml trilang.xml \ + unicode2euc.rb xmlconv.rb + +post-install: + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/uconv +.for f in ${EXAMPLES} + ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${RUBY_EXAMPLESDIR}/uconv +.endfor + ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/uconv + ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/uconv + ${INSTALL_DATA} ${WRKSRC}/README.ja ${RUBY_DOCDIR}/uconv + +.include "../../lang/ruby-base/Makefile.common" +.include "../../mk/bsd.pkg.mk" diff --git a/japanese/ruby-uconv/PLIST b/japanese/ruby-uconv/PLIST new file mode 100644 index 000000000000..09d761115860 --- /dev/null +++ b/japanese/ruby-uconv/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD$ +${RUBY_SITEARCHLIBDIR}/uconv.so +${RUBY_DOCDIR}/uconv/README +${RUBY_DOCDIR}/uconv/README.ja +@dirrm ${RUBY_DOCDIR}/uconv +${RUBY_EXAMPLESDIR}/uconv/euc2unicode.rb +${RUBY_EXAMPLESDIR}/uconv/test_euc.txt +${RUBY_EXAMPLESDIR}/uconv/test_euc.xml +${RUBY_EXAMPLESDIR}/uconv/trilang.xml +${RUBY_EXAMPLESDIR}/uconv/unicode2euc.rb +${RUBY_EXAMPLESDIR}/uconv/xmlconv.rb +@dirrm ${RUBY_EXAMPLESDIR}/uconv diff --git a/japanese/ruby-uconv/distinfo b/japanese/ruby-uconv/distinfo new file mode 100644 index 000000000000..fd5a51222d40 --- /dev/null +++ b/japanese/ruby-uconv/distinfo @@ -0,0 +1,4 @@ +$NetBSD$ + +SHA1 (ruby/uconv-0.4.9.tar.gz) = 28f5692fa4705fdefa19dc9fbc7470c0f01cc750 +Size (ruby/uconv-0.4.9.tar.gz) = 585698 bytes -- 2.41.0