summaryrefslogtreecommitdiff
path: root/textproc/ruby-rwv2
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-09-29 13:33:12 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-09-29 13:33:12 +0000
commit87f9e32a0edc517449019ccc5a3e99d3f8874d64 (patch)
treeebbc5f375ab613319df41da8ab8729130f3e05e2 /textproc/ruby-rwv2
parentdevel/jakarta-ant -> devel/apache-ant (diff)
Add ruby-rwv2, a Ruby extension that wraps around wv2.
Notes
Notes: svn path=/head/; revision=89807
Diffstat (limited to 'textproc/ruby-rwv2')
-rw-r--r--textproc/ruby-rwv2/Makefile40
-rw-r--r--textproc/ruby-rwv2/distinfo1
-rw-r--r--textproc/ruby-rwv2/pkg-descr5
-rw-r--r--textproc/ruby-rwv2/pkg-plist5
4 files changed, 51 insertions, 0 deletions
diff --git a/textproc/ruby-rwv2/Makefile b/textproc/ruby-rwv2/Makefile
new file mode 100644
index 000000000000..ef659d1fcb18
--- /dev/null
+++ b/textproc/ruby-rwv2/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: RwV2
+# Date created: 29 September 2003
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= rwv2
+PORTVERSION= 0.5.0
+CATEGORIES= textproc ruby
+MASTER_SITES= http://download.ywesee.com/ruby/rwv2/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+COMMENT= A Ruby extension that wraps around wv2
+
+LIB_DEPENDS= wv2.1:${PORTSDIR}/textproc/wv2
+
+USE_RUBY= yes
+USE_RUBY_SETUP= yes
+RUBY_SETUP= install.rb
+
+CONFIGURE_ARGS= -- \
+ --with-wv2-include="${LOCALBASE}/include/wv2" \
+ --with-wv2-lib="${LOCALBASE}/lib"
+
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} < 1.8
+IGNORE= only works with ruby 1.8 or later
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_MODDOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_MODDOCDIR}/
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/ruby-rwv2/distinfo b/textproc/ruby-rwv2/distinfo
new file mode 100644
index 000000000000..da96b077fea0
--- /dev/null
+++ b/textproc/ruby-rwv2/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/rwv2-0.5.0.tar.gz) = 295a11c084dcc446327f9742d2c2d405
diff --git a/textproc/ruby-rwv2/pkg-descr b/textproc/ruby-rwv2/pkg-descr
new file mode 100644
index 000000000000..f8f7fc97f5f4
--- /dev/null
+++ b/textproc/ruby-rwv2/pkg-descr
@@ -0,0 +1,5 @@
+RWV2 Library is a wrapper around the wv2 library for Ruby: parses
+Microsoft Word files.
+
+Author: Hannes Wyss <hwyss@ywesee.com>
+WWW: http://www.ywesee.com/index.cgi?RwV2
diff --git a/textproc/ruby-rwv2/pkg-plist b/textproc/ruby-rwv2/pkg-plist
new file mode 100644
index 000000000000..e7a8ba6ec3bd
--- /dev/null
+++ b/textproc/ruby-rwv2/pkg-plist
@@ -0,0 +1,5 @@
+%%RUBY_SITEARCHLIBDIR%%/rwv2.so
+%%RUBY_SITELIBDIR%%/rwv2/handlers.rb
+@dirrm %%RUBY_SITELIBDIR%%/rwv2
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
+%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%