diff options
author | knu <knu@FreeBSD.org> | 2000-08-08 19:16:35 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-08-08 19:16:35 +0000 |
commit | 91b60009df12687cf2ba681cbe2fa2dc610a23a9 (patch) | |
tree | 60714a44357e5949c55214c6e6d414397b041dc4 /converters/ruby-iconv | |
parent | d9e4c0fc33b77bd27a8f7c9c679b5abdb7bdf33d (diff) | |
download | FreeBSD-ports-91b60009df12687cf2ba681cbe2fa2dc610a23a9.zip FreeBSD-ports-91b60009df12687cf2ba681cbe2fa2dc610a23a9.tar.gz |
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
Diffstat (limited to 'converters/ruby-iconv')
-rw-r--r-- | converters/ruby-iconv/Makefile | 53 | ||||
-rw-r--r-- | converters/ruby-iconv/distinfo | 1 | ||||
-rw-r--r-- | converters/ruby-iconv/pkg-comment | 1 | ||||
-rw-r--r-- | converters/ruby-iconv/pkg-descr | 6 | ||||
-rw-r--r-- | converters/ruby-iconv/pkg-plist | 4 |
5 files changed, 65 insertions, 0 deletions
diff --git a/converters/ruby-iconv/Makefile b/converters/ruby-iconv/Makefile new file mode 100644 index 0000000..95b25df --- /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 0000000..df4b9c2 --- /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 0000000..f4284f6 --- /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 0000000..c2465e1 --- /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 0000000..3fd7415 --- /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 |