summaryrefslogtreecommitdiff
path: root/dev-ruby/ntlm-http
diff options
context:
space:
mode:
authorPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
committerPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
commitecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch)
treeb89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-ruby/ntlm-http
parent1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff)
downloadsrcux-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz
srcux-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz
srcux-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip
Updating liguros repo
Diffstat (limited to 'dev-ruby/ntlm-http')
-rw-r--r--dev-ruby/ntlm-http/Manifest1
-rw-r--r--dev-ruby/ntlm-http/files/ntlm-http-0.1.1+ruby-1.9.patch24
-rw-r--r--dev-ruby/ntlm-http/metadata.xml9
-rw-r--r--dev-ruby/ntlm-http/ntlm-http-0.1.1-r2.ebuild35
4 files changed, 69 insertions, 0 deletions
diff --git a/dev-ruby/ntlm-http/Manifest b/dev-ruby/ntlm-http/Manifest
new file mode 100644
index 000000000000..d79a0fed0040
--- /dev/null
+++ b/dev-ruby/ntlm-http/Manifest
@@ -0,0 +1 @@
+DIST ntlm-http-0.1.1.gem 13824 BLAKE2B 179baff2b4b00306b15aa42bad3e91bb41bdc6070ad2eb4681075474839dafea06c54ef7b3fb9f997951ad7b4ddcfa78caf5345b35e5944366b60f27bea63530 SHA512 1d2868582a194fb3a3dcb48a7dfb031014e51a93d57afb83aaef98be8e57789506b71e6440770ca7bc48979d9dd730f398d01d554d6d0575ff01046a227c7669
diff --git a/dev-ruby/ntlm-http/files/ntlm-http-0.1.1+ruby-1.9.patch b/dev-ruby/ntlm-http/files/ntlm-http-0.1.1+ruby-1.9.patch
new file mode 100644
index 000000000000..b5e35a7210c5
--- /dev/null
+++ b/dev-ruby/ntlm-http/files/ntlm-http-0.1.1+ruby-1.9.patch
@@ -0,0 +1,24 @@
+Index: ntlm-http-0.1.1/lib/net/ntlm_http.rb
+===================================================================
+--- ntlm-http-0.1.1.orig/lib/net/ntlm_http.rb
++++ ntlm-http-0.1.1/lib/net/ntlm_http.rb
+@@ -45,6 +45,7 @@
+ require 'base64'
+ require 'openssl'
+ require 'openssl/digest'
++require 'kconv'
+
+ module Net #:nodoc:
+ module NTLM
+Index: ntlm-http-0.1.1/lib/net/ntlm.rb
+===================================================================
+--- ntlm-http-0.1.1.orig/lib/net/ntlm.rb
++++ ntlm-http-0.1.1/lib/net/ntlm.rb
+@@ -45,6 +45,7 @@
+ require 'base64'
+ require 'openssl'
+ require 'openssl/digest'
++require 'kconv'
+
+ module Net #:nodoc:
+ module NTLM
diff --git a/dev-ruby/ntlm-http/metadata.xml b/dev-ruby/ntlm-http/metadata.xml
new file mode 100644
index 000000000000..136457a413d3
--- /dev/null
+++ b/dev-ruby/ntlm-http/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+</maintainer>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>
diff --git a/dev-ruby/ntlm-http/ntlm-http-0.1.1-r2.ebuild b/dev-ruby/ntlm-http/ntlm-http-0.1.1-r2.ebuild
new file mode 100644
index 000000000000..005ceae39aa5
--- /dev/null
+++ b/dev-ruby/ntlm-http/ntlm-http-0.1.1-r2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+USE_RUBY="ruby23 ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_RECIPE_TEST="none"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_DOC_SOURCES="lib README"
+RUBY_FAKEGEM_EXTRADOC="README"
+
+inherit ruby-fakegem eutils
+
+DESCRIPTION="Ruby/NTLM HTTP provides NTLM authentication over http"
+HOMEPAGE="http://www.mindflowsolutions.net/"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+IUSE="test"
+
+ruby_add_bdepend "test? ( >=dev-ruby/test-unit-2.5.1-r1 )"
+
+all_ruby_prepare() {
+ find . -name '*.rb' -exec sed -i -e 's:\r$::' {} +
+
+ # We can't use RUBY_PATCHES for this because we need first to convert the files
+ epatch "${FILESDIR}"/${P}+ruby-1.9.patch
+}
+
+each_ruby_test() {
+ ruby-ng_testrb-2 test/*_test.rb
+}