summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-08-14 07:09:57 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-08-14 07:09:57 +0000
commit67b645cde63a7397aceacfccb1841de6b24852ba (patch)
treef4ec3e626e4c3447caa64835a2074e64ef9564db
parentAdd eruby, which interprets Ruby code embedded in a text file just (diff)
Add ruby-uri, Ruby interface to parse URIs according to RFC 2396.
Notes
Notes: svn path=/head/; revision=31638
-rw-r--r--net/Makefile1
-rw-r--r--net/ruby-uri/Makefile48
-rw-r--r--net/ruby-uri/distinfo1
-rw-r--r--net/ruby-uri/pkg-comment1
-rw-r--r--net/ruby-uri/pkg-descr6
-rw-r--r--net/ruby-uri/pkg-plist7
6 files changed, 64 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 5e4b5c287b80..eb79a356588d 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -213,6 +213,7 @@
SUBDIR += rshell
SUBDIR += rsync
SUBDIR += rtsp_proxy
+ SUBDIR += ruby-uri
SUBDIR += rwhois
SUBDIR += samba
SUBDIR += scotty
diff --git a/net/ruby-uri/Makefile b/net/ruby-uri/Makefile
new file mode 100644
index 000000000000..d861bb064179
--- /dev/null
+++ b/net/ruby-uri/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: Ruby-uri
+# Date created: 14 Aug 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= uri
+PORTVERSION= 3.54
+CATEGORIES= net # ruby
+MASTER_SITES= http://www02.so-net.ne.jp/%7Egreentea/ruby/uri/
+PKGNAMEPREFIX= ruby-
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+
+NO_BUILD= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
+
+RUBY?= ${LOCALBASE}/bin/ruby
+RUBY_VER?= 1.4
+RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
+
+MODULES= uri.rb urireg.rb
+
+DOCS= index.html
+EXAMPLES= in-uri.txt test-uri.rb
+
+do-install:
+.for f in ${MODULES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/ruby/site_ruby/
+.endfor
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/examples/ruby/uri
+.for f in ${EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/ruby/uri/
+.endfor
+ ${MKDIR} ${PREFIX}/share/doc/ruby/uri
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/uri/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/ruby-uri/distinfo b/net/ruby-uri/distinfo
new file mode 100644
index 000000000000..4bb6a7e8ab2a
--- /dev/null
+++ b/net/ruby-uri/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/uri-3.54.tar.gz) = 8aa74042d798d58e0616c3530a81584d
diff --git a/net/ruby-uri/pkg-comment b/net/ruby-uri/pkg-comment
new file mode 100644
index 000000000000..4e1ca37750d5
--- /dev/null
+++ b/net/ruby-uri/pkg-comment
@@ -0,0 +1 @@
+Ruby interface to parse URIs according to RFC 2396
diff --git a/net/ruby-uri/pkg-descr b/net/ruby-uri/pkg-descr
new file mode 100644
index 000000000000..9ac6852e558f
--- /dev/null
+++ b/net/ruby-uri/pkg-descr
@@ -0,0 +1,6 @@
+This is a Ruby interface to parse URIs according to RFC 2396. FTP and
+HTTP URLs are supported for the present.
+
+
+Author: Tomoyuki Kosimizu <greentea@fa2.so-net.ne.jp>
+WWW: http://www02.so-net.ne.jp/%7Egreentea/ruby/uri/
diff --git a/net/ruby-uri/pkg-plist b/net/ruby-uri/pkg-plist
new file mode 100644
index 000000000000..17673f4a1c68
--- /dev/null
+++ b/net/ruby-uri/pkg-plist
@@ -0,0 +1,7 @@
+lib/ruby/site_ruby/uri.rb
+lib/ruby/site_ruby/urireg.rb
+share/examples/ruby/uri/test-uri.rb
+share/examples/ruby/uri/in-uri.txt
+@dirrm share/examples/ruby/uri
+share/doc/ruby/uri/index.html
+@dirrm share/doc/ruby/uri