aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-03-31 20:02:47 +0800
committerknu <knu@FreeBSD.org>2001-03-31 20:02:47 +0800
commit02366e199feda27b31e2a6672033a3eca7837e74 (patch)
tree67980af648acb5376fb508769a387bfeb0ed75a2 /www
parentda9f54a8029675dc0d8395165c46f146a6453a23 (diff)
downloadfreebsd-ports-graphics-02366e199feda27b31e2a6672033a3eca7837e74.tar.gz
freebsd-ports-graphics-02366e199feda27b31e2a6672033a3eca7837e74.tar.zst
freebsd-ports-graphics-02366e199feda27b31e2a6672033a3eca7837e74.zip
Add ruby-http-access, a Ruby library to access the Internet via HTTP.
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-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
7 files changed, 73 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index ee48bd63b42..19779590fbd 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -206,6 +206,7 @@
SUBDIR += reportmagic
SUBDIR += roxen
SUBDIR += ruboard
+ SUBDIR += ruby-http-access
SUBDIR += screem
SUBDIR += sitecopy
SUBDIR += skipstone
diff --git a/www/ruby-http-access/Makefile b/www/ruby-http-access/Makefile
new file mode 100644
index 00000000000..d57e1f16e13
--- /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 00000000000..758f5d1adf6
--- /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 00000000000..5c7f7072b29
--- /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 00000000000..279d6164105
--- /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 00000000000..c43c293ef3a
--- /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 00000000000..f7e604ec2a7
--- /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