summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-08-08 19:16:35 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-08-08 19:16:35 +0000
commitd25cb8686c23db5c3aad6e66a06a4f84e6d9b7db (patch)
tree1cb0080e0422f2e1a31aef0158cc0b456f9907e6 /converters
parentFix a type in the installation target (diff)
Add ruby-iconv, an iconv wrapper class for Ruby.
As I couldn't get it working with converters/iconv, I made it use converters/libiconv (giconv) instead, for the present. In any case, this module is LGPL'd anyway. :p
Notes
Notes: svn path=/head/; revision=31428
Diffstat (limited to 'converters')
-rw-r--r--converters/Makefile1
-rw-r--r--converters/ruby-iconv/Makefile53
-rw-r--r--converters/ruby-iconv/distinfo1
-rw-r--r--converters/ruby-iconv/pkg-comment1
-rw-r--r--converters/ruby-iconv/pkg-descr6
-rw-r--r--converters/ruby-iconv/pkg-plist4
6 files changed, 66 insertions, 0 deletions
diff --git a/converters/Makefile b/converters/Makefile
index f3deaca63eb9..3a60263e606a 100644
--- a/converters/Makefile
+++ b/converters/Makefile
@@ -21,6 +21,7 @@
SUBDIR += p5-Convert-UU
SUBDIR += p5-MIME-Base64
SUBDIR += recode
+ SUBDIR += ruby-iconv
SUBDIR += tcs
SUBDIR += trans
SUBDIR += tuc
diff --git a/converters/ruby-iconv/Makefile b/converters/ruby-iconv/Makefile
new file mode 100644
index 000000000000..95b25dfcb4c4
--- /dev/null
+++ b/converters/ruby-iconv/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: Ruby-iconv
+# Date created: 7 Aug 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= iconv
+PORTVERSION= 0.4.1
+CATEGORIES= converters # ruby
+MASTER_SITES= http://member.nifty.ne.jp/nokada/archive/
+PKGNAMEPREFIX= ruby-
+
+MAINTAINER= knu@FreeBSD.org
+
+BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+LIB_DEPENDS= giconv.2:${PORTSDIR}/converters/libiconv
+RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+
+.if !defined(NOPORTDOCS)
+BUILD_DEPENDS+= rd2:${PORTSDIR}/textproc/ruby-rdtool
+.endif
+
+PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
+
+RUBY= ${LOCALBASE}/bin/ruby
+RUBY_VER= 1.4
+RUBY_ARCH= ${ARCH}-freebsd${OSREL}
+
+pre-patch:
+# ${CHMOD} u+w ${WRKSRC}/extconf.rb
+
+do-configure:
+ @cd ${WRKSRC}; \
+ ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
+
+.if !defined(NOPORTDOCS)
+post-build:
+ @cd ${WRKSRC}; \
+ rd2 iconv.c > iconv.html
+.endif
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/iconv.so \
+ ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/ruby/iconv
+.for f in iconv.html rd.css
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/iconv/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/converters/ruby-iconv/distinfo b/converters/ruby-iconv/distinfo
new file mode 100644
index 000000000000..df4b9c25f7a5
--- /dev/null
+++ b/converters/ruby-iconv/distinfo
@@ -0,0 +1 @@
+MD5 (iconv-0.4.1.tar.gz) = 815258b3ac82589f1bdb7baa90b4d972
diff --git a/converters/ruby-iconv/pkg-comment b/converters/ruby-iconv/pkg-comment
new file mode 100644
index 000000000000..f4284f6232f2
--- /dev/null
+++ b/converters/ruby-iconv/pkg-comment
@@ -0,0 +1 @@
+An iconv wrapper class for Ruby
diff --git a/converters/ruby-iconv/pkg-descr b/converters/ruby-iconv/pkg-descr
new file mode 100644
index 000000000000..c2465e1ded1d
--- /dev/null
+++ b/converters/ruby-iconv/pkg-descr
@@ -0,0 +1,6 @@
+This is an iconv wrapper class for Ruby.
+
+Note that this version is still experimental. Report any problems to
+the author.
+
+Author: Nobuyoshi.Nakada <nobu.nokada@softhome.net>
diff --git a/converters/ruby-iconv/pkg-plist b/converters/ruby-iconv/pkg-plist
new file mode 100644
index 000000000000..3fd7415f8310
--- /dev/null
+++ b/converters/ruby-iconv/pkg-plist
@@ -0,0 +1,4 @@
+lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/iconv.so
+share/doc/ruby/iconv/iconv.html
+share/doc/ruby/iconv/rd.css
+@dirrm share/doc/ruby/iconv