[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30689] [PATCH 05/39] gnu: Add ruby-idn-ruby.
From: |
Christopher Baines |
Subject: |
[bug#30689] [PATCH 05/39] gnu: Add ruby-idn-ruby. |
Date: |
Mon, 28 Jan 2019 17:35:46 +0000 |
Required for the ruby-addressable tests.
* gnu/packages/ruby.scm (ruby-idn-ruby): New variable.
---
gnu/packages/ruby.scm | 45 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 57f7108b66..ed31ef1bdc 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -40,6 +40,7 @@
#:use-module (gnu packages autotools)
#:use-module (gnu packages java)
#:use-module (gnu packages libffi)
+ #:use-module (gnu packages libidn)
#:use-module (gnu packages maths)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages networking)
@@ -1993,6 +1994,50 @@ irb's last-word approach.")
(home-page "http://tagaholic.me/bond/")
(license license:expat)))
+(define-public ruby-idn-ruby
+ (package
+ (name "ruby-idn-ruby")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "idn-ruby" version))
+ (sha256
+ (base32
+ "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'run-extconf.rb
+ (lambda _
+ (with-directory-excursion "ext"
+ (invoke "ruby" "extconf.rb")
+ (invoke "make"))
+ #t))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (apply invoke
+ "ruby" "--verbose" "-Iext"
+ (find-files "./test" ".*\\.rb")))
+ #t)))))
+ (inputs
+ `(("libidn" ,libidn)))
+ (synopsis "Ruby Bindings for the GNU LibIDN library")
+ (description
+ "Ruby Bindings for the GNU LibIDN library, an implementation of the
+Stringprep, Punycode and IDNA specifications. These are used to encode and
+decode internationalized domain + names according to the IDNA2003
+specifications.
+
+Included are the most important parts of the Stringprep, Punycode and IDNA
+APIs like performing Stringprep processings, encoding to and decoding from
+Punycode strings and converting entire domain names to and from the ACE
+encoded form.")
+ (home-page "https://github.com/deepfryed/idn-ruby")
+ (license license:asl2.0)))
+
(define-public ruby-instantiator
(package
(name "ruby-instantiator")
--
2.20.1
- [bug#30689] [PATCH 00/39] Add ruby-rails and depedencies., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 01/39] gnu: Add ruby-maruku., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 05/39] gnu: Add ruby-idn-ruby.,
Christopher Baines <=
- [bug#30689] [PATCH 32/39] gnu: Add ruby-activejob., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 18/39] gnu: Add ruby-faraday., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 20/39] gnu: Add ruby-crass., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 17/39] gnu: ruby-prawn-table: Begin to enable tests., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 21/39] gnu: Add ruby-loofah., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 03/39] gnu: Add ruby-minitest-reporters., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 25/39] gnu: Add ruby-actionview., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 07/39] gnu: Add ruby_version., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 15/39] gnu: ruby-parallel: Begin to enable tests and update version., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 16/39] gnu: Add ruby-prawn-manual-builder., Christopher Baines, 2019/01/28