aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2003-09-29 21:33:12 +0800
committerknu <knu@FreeBSD.org>2003-09-29 21:33:12 +0800
commitc539defdbc1a18791193391f184f3aefe6300d94 (patch)
tree162bf97471e6d572793195fc500e10479ada7267 /textproc
parent22eeca0d9a7b556181a662324820caed65ec8513 (diff)
downloadfreebsd-ports-gnome-c539defdbc1a18791193391f184f3aefe6300d94.tar.gz
freebsd-ports-gnome-c539defdbc1a18791193391f184f3aefe6300d94.tar.zst
freebsd-ports-gnome-c539defdbc1a18791193391f184f3aefe6300d94.zip
Add ruby-rwv2, a Ruby extension that wraps around wv2.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-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
5 files changed, 52 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 6d11a443a432..dc6e6887db6d 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -385,6 +385,7 @@
SUBDIR += ruby-rexml
SUBDIR += ruby-rss
SUBDIR += ruby-rss.alt
+ SUBDIR += ruby-rwv2
SUBDIR += ruby-sablot
SUBDIR += ruby-sary
SUBDIR += ruby-spreadsheet-excel
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%%