From da722b6244095184936d0d021574c1c1f9b3387a Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Mon, 5 Feb 2018 11:43:27 +0100 Subject: gnu: Add ruby-radius. --- gnu/packages/ruby.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 62ad63b51b..1091566c7e 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5634,6 +5634,47 @@ clickjacking, directory traversal, session hijacking and IP spoofing.") (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection") (license license:expat))) +(define-public ruby-radius + (package + (name "ruby-radius") + (version "0.7.4") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "radius" version)) + (sha256 + (base32 + "0n0clzgvxpjm2gjlpz98x6gkw5hb84bmd435a1yaqs3m0k896v5s")))) + (build-system ruby-build-system) + (arguments + '(#:tests? #f + #:phases + (modify-phases %standard-phases + ;; TODO: There are two .gem files in the source, and the build system + ;; seems to get confused, and attempts to remove the wrong one (I + ;; think)... + ;; + ;; For now, workaround the issue, by creating the file the install + ;; phase in the build system tries to remove. + (add-before 'install 'workaround-gem-removal + (lambda* (#:key outputs #:allow-other-keys) + (let ((directory (string-append + (assoc-ref outputs "out") + "/lib/ruby/vendor_ruby/cache/pkg"))) + (mkdir-p directory) + (with-output-to-file + (string-append directory "/radius-0.7.0.prerelease.gem") + (lambda _ (display ""))))))))) + (native-inputs + `(("ruby-simplecov" ,ruby-simplecov) + ("ruby-kramdown" ,ruby-kramdown))) + (synopsis + "Radius is a powerful tag-based template language for Ruby inspired by the template languages used in MovableType and TextPattern. It uses tags similar to XML, but can be used to generate any form of plain text (HTML, e-mail, etc...).") + (description + "Radius is a powerful tag-based template language for Ruby inspired by the template languages used in MovableType and TextPattern. It uses tags similar to XML, but can be used to generate any form of plain text (HTML, e-mail, etc...).") + (home-page "http://github.com/jlong/radius") + (license #f))) + (define-public ruby-rainbow (package (name "ruby-rainbow") -- cgit v1.2.3