mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
Add ruby-http-access, a Ruby library to access the Internet via HTTP.
This commit is contained in:
parent
556a496fdc
commit
00604910a1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40655
@ -206,6 +206,7 @@
|
||||
SUBDIR += reportmagic
|
||||
SUBDIR += roxen
|
||||
SUBDIR += ruboard
|
||||
SUBDIR += ruby-http-access
|
||||
SUBDIR += screem
|
||||
SUBDIR += sitecopy
|
||||
SUBDIR += skipstone
|
||||
|
38
www/ruby-http-access/Makefile
Normal file
38
www/ruby-http-access/Makefile
Normal file
@ -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>
|
1
www/ruby-http-access/distinfo
Normal file
1
www/ruby-http-access/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (ruby/http-access-0.0.4p3.tar.gz) = d55c36317a08bbba4d9cb7422dcd227d
|
24
www/ruby-http-access/files/patch-http-access.rb
Normal file
24
www/ruby-http-access/files/patch-http-access.rb
Normal file
@ -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
|
1
www/ruby-http-access/pkg-comment
Normal file
1
www/ruby-http-access/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A Ruby library to access the Internet via HTTP
|
3
www/ruby-http-access/pkg-descr
Normal file
3
www/ruby-http-access/pkg-descr
Normal file
@ -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
|
5
www/ruby-http-access/pkg-plist
Normal file
5
www/ruby-http-access/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user