summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-02-25 02:25:59 +0000
committerobache <obache@pkgsrc.org>2011-02-25 02:25:59 +0000
commitf872c750500021e72a1b8478084a87f973f39ebd (patch)
treee0e9ccad04359dcb371e5cb49939f1a1ff73610e /www
parent9ee0adf501622eaa20ed13ada8f48d5ea889b1ad (diff)
downloadpkgsrc-f872c750500021e72a1b8478084a87f973f39ebd.tar.gz
Import ruby-httpclient-2.1.6.1 as www/ruby-httpclient.
'httpclient' gives something like the functionality of libwww-perl (LWP) in Ruby. 'httpclient' formerly known as 'http-access2'.
Diffstat (limited to 'www')
-rw-r--r--www/ruby-httpclient/DESCR2
-rw-r--r--www/ruby-httpclient/Makefile24
-rw-r--r--www/ruby-httpclient/PLIST16
-rw-r--r--www/ruby-httpclient/distinfo6
-rw-r--r--www/ruby-httpclient/patches/patch-install.rb17
5 files changed, 65 insertions, 0 deletions
diff --git a/www/ruby-httpclient/DESCR b/www/ruby-httpclient/DESCR
new file mode 100644
index 00000000000..44eda98bf83
--- /dev/null
+++ b/www/ruby-httpclient/DESCR
@@ -0,0 +1,2 @@
+'httpclient' gives something like the functionality of libwww-perl (LWP) in
+Ruby. 'httpclient' formerly known as 'http-access2'.
diff --git a/www/ruby-httpclient/Makefile b/www/ruby-httpclient/Makefile
new file mode 100644
index 00000000000..ef174a79d94
--- /dev/null
+++ b/www/ruby-httpclient/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/02/25 02:25:59 obache Exp $
+#
+
+DISTNAME= httpclient-2.1.6.1
+CATEGORIES= www
+MASTER_SITES= http://dev.ctor.org/download/ \
+ http://dev.ctor.org/download/archive/
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= https://github.com/nahi/httpclient
+COMMENT= HTTP accessing library for Ruby
+LICENSE= ruby-license
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= # none
+
+USE_RUBY_INSTALL= yes
+NO_BUILD= yes
+
+INSTALLATION_DIRS= ${RUBY_VENDORLIB}
+
+.include "../../lang/ruby/modules.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/ruby-httpclient/PLIST b/www/ruby-httpclient/PLIST
new file mode 100644
index 00000000000..b7399a773ec
--- /dev/null
+++ b/www/ruby-httpclient/PLIST
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/25 02:25:59 obache Exp $
+${RUBY_VENDORLIB}/hexdump.rb
+${RUBY_VENDORLIB}/http-access2.rb
+${RUBY_VENDORLIB}/http-access2/cookie.rb
+${RUBY_VENDORLIB}/http-access2/http.rb
+${RUBY_VENDORLIB}/httpclient.rb
+${RUBY_VENDORLIB}/httpclient/auth.rb
+${RUBY_VENDORLIB}/httpclient/cacert.p7s
+${RUBY_VENDORLIB}/httpclient/connection.rb
+${RUBY_VENDORLIB}/httpclient/cookie.rb
+${RUBY_VENDORLIB}/httpclient/http.rb
+${RUBY_VENDORLIB}/httpclient/session.rb
+${RUBY_VENDORLIB}/httpclient/ssl_config.rb
+${RUBY_VENDORLIB}/httpclient/timeout.rb
+${RUBY_VENDORLIB}/httpclient/util.rb
+${RUBY_VENDORLIB}/oauthclient.rb
diff --git a/www/ruby-httpclient/distinfo b/www/ruby-httpclient/distinfo
new file mode 100644
index 00000000000..cfc924a02f4
--- /dev/null
+++ b/www/ruby-httpclient/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/02/25 02:25:59 obache Exp $
+
+SHA1 (httpclient-2.1.6.1.tar.gz) = f420e20b7c6ac10e8eabce0d9bcf436e8e588da8
+RMD160 (httpclient-2.1.6.1.tar.gz) = bd66389b6c0c5dbf51129a8e3986640dc7c3854c
+Size (httpclient-2.1.6.1.tar.gz) = 253500 bytes
+SHA1 (patch-install.rb) = 20468591e2e2f0be7a654507dad653b570a5b5b6
diff --git a/www/ruby-httpclient/patches/patch-install.rb b/www/ruby-httpclient/patches/patch-install.rb
new file mode 100644
index 00000000000..1795b575444
--- /dev/null
+++ b/www/ruby-httpclient/patches/patch-install.rb
@@ -0,0 +1,17 @@
+$NetBSD: patch-install.rb,v 1.1.1.1 2011/02/25 02:25:59 obache Exp $
+
+* staged-installation support
+
+--- install.rb.orig 2010-12-20 11:05:43.000000000 +0000
++++ install.rb
+@@ -10,6 +10,10 @@ include Config
+ SITELIBDIR = CONFIG["sitelibdir"]
+ SRCPATH = File.join(File.dirname($0), 'lib')
+
++if (destdir = ENV['DESTDIR'])
++ SITELIBDIR = File.join(destdir, SITELIBDIR)
++end
++
+ def install_file(from, to)
+ unless File.directory?(to)
+ to = File.dirname(to)