summaryrefslogtreecommitdiff
path: root/www/ruby-http-access
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-03-31 12:02:47 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-03-31 12:02:47 +0000
commit00604910a1b955fa93679473b85607802941304f (patch)
tree750ec662b0825e657bf37221909c60231142dd4d /www/ruby-http-access
parentUpdate to 2.4.1. (diff)
Add ruby-http-access, a Ruby library to access the Internet via HTTP.
Notes
Notes: svn path=/head/; revision=40655
Diffstat (limited to 'www/ruby-http-access')
-rw-r--r--www/ruby-http-access/Makefile38
-rw-r--r--www/ruby-http-access/distinfo1
-rw-r--r--www/ruby-http-access/files/patch-http-access.rb24
-rw-r--r--www/ruby-http-access/pkg-comment1
-rw-r--r--www/ruby-http-access/pkg-descr3
-rw-r--r--www/ruby-http-access/pkg-plist5
6 files changed, 72 insertions, 0 deletions
diff --git a/www/ruby-http-access/Makefile b/www/ruby-http-access/Makefile
new file mode 100644
index 000000000000..d57e1f16e13b
--- /dev/null
+++ b/www/ruby-http-access/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: Ruby/http-access
+# Date created: 31 March 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= http-access
+PORTVERSION= 0.0.4p3
+CATEGORIES= www ruby
+MASTER_SITES= http://www.jin.gr.jp/~nahi/Ruby/http-access/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+RUN_DEPENDS= ${RUBY_SITELIBDIR}/uri.rb:${PORTSDIR}/net/ruby-uri
+
+USE_RUBY= yes
+
+NO_BUILD= yes
+
+DOCS_EN= README_en.txt
+DOCS_JA= README_ja.txt
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/http-access.rb ${RUBY_SITELIBDIR}/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/www/ruby-http-access/distinfo b/www/ruby-http-access/distinfo
new file mode 100644
index 000000000000..758f5d1adf69
--- /dev/null
+++ b/www/ruby-http-access/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/http-access-0.0.4p3.tar.gz) = d55c36317a08bbba4d9cb7422dcd227d
diff --git a/www/ruby-http-access/files/patch-http-access.rb b/www/ruby-http-access/files/patch-http-access.rb
new file mode 100644
index 000000000000..5c7f7072b295
--- /dev/null
+++ b/www/ruby-http-access/files/patch-http-access.rb
@@ -0,0 +1,24 @@
+--- http-access.rb.orig Fri Jun 9 21:09:28 2000
++++ http-access.rb Sat Mar 31 20:31:39 2001
+@@ -28,7 +28,6 @@
+
+ #----------------------------------------------------------------------
+ class HTTPAccess
+- include URIModule
+
+ HTTP_Port = 80
+ attr_reader :http_version, :code, :message, :headers
+@@ -109,7 +108,12 @@
+ end
+
+ def request_post(path, query, header=nil, maxbytes=nil, &block)
+- queryStr = escape_query(query)
++ queryStr = case query
++ when Array
++ escape_query(query)
++ else
++ query.to_s
++ end
+ request('POST', path, header, queryStr)
+ if block
+ get_response
diff --git a/www/ruby-http-access/pkg-comment b/www/ruby-http-access/pkg-comment
new file mode 100644
index 000000000000..279d61641058
--- /dev/null
+++ b/www/ruby-http-access/pkg-comment
@@ -0,0 +1 @@
+A Ruby library to access the Internet via HTTP
diff --git a/www/ruby-http-access/pkg-descr b/www/ruby-http-access/pkg-descr
new file mode 100644
index 000000000000..c43c293ef3a2
--- /dev/null
+++ b/www/ruby-http-access/pkg-descr
@@ -0,0 +1,3 @@
+This is a Ruby library to access the Internet via HTTP.
+
+WWW: http://www.jin.gr.jp/~nahi/Ruby/http-access/README_en.txt
diff --git a/www/ruby-http-access/pkg-plist b/www/ruby-http-access/pkg-plist
new file mode 100644
index 000000000000..f7e604ec2a75
--- /dev/null
+++ b/www/ruby-http-access/pkg-plist
@@ -0,0 +1,5 @@
+%%RUBY_SITELIBDIR%%/http-access.rb
+%%PORTDOCS%%%%RUBY_DOCDIR%%/http-access/README_en.txt
+%%PORTDOCS%%%%RUBY_DOCDIR%%/http-access/ja/README_ja.txt
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/http-access/ja
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/http-access