diff options
author | Christopher Baines <mail@cbaines.net> | 2018-08-01 07:46:39 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-12-28 11:21:18 +0000 |
commit | 7078bcd75680862f971fc454c787f6be2871f345 (patch) | |
tree | 2c9935176410994383eb61b0e5bf790f16ea9b8c | |
parent | b184f2d031e6f27ca87267a02b6756543bc5699e (diff) | |
download | guix-7078bcd75680862f971fc454c787f6be2871f345.tar guix-7078bcd75680862f971fc454c787f6be2871f345.tar.gz |
gnu: Add ruby-idn-ruby.
* gnu/packages/ruby.scm (ruby-idn-ruby): New variable.
-rw-r--r-- | gnu/packages/ruby.scm | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 9641642971..9bc1595ea5 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -37,6 +37,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) @@ -1841,6 +1842,66 @@ 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-after 'unpack 'patch-Rakefile + (lambda _ + (substitute* "Rakefile" + (("rake/rdoctask") + "rdoc/task")) + #t)) + (add-before 'build 'run-extconf.rb + (lambda _ + (with-directory-excursion "ext" + (invoke "ruby" "extconf.rb") + (invoke "make")))) + (replace 'check + (lambda _ + (unless (zero? + (system "ruby --verbose -Iext test/*.rb")) + (error "test failure")) + #t))))) + (inputs + `(("libidn" ,libidn))) + (synopsis + " + Ruby Bindings for the GNU LibIDN library, an implementation of the + Stringprep, Punycode and IDNA specifications defined by the IETF + Internationalized Domain Names (IDN) working group. + + 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. + ") + (description + " + Ruby Bindings for the GNU LibIDN library, an implementation of the + Stringprep, Punycode and IDNA specifications defined by the IETF + Internationalized Domain Names (IDN) working group. + + 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 + "http://github.com/deepfryed/idn-ruby") + (license #f))) + (define-public ruby-instantiator (package (name "ruby-instantiator") |