[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23/23: gnu: Add ruby-redcloth.
From: |
Ricardo Wurmus |
Subject: |
23/23: gnu: Add ruby-redcloth. |
Date: |
Mon, 14 Dec 2015 13:11:02 +0000 |
rekado pushed a commit to branch master
in repository guix.
commit 0c4e762570dfb46d554b30ef14b27cd808ffcff6
Author: Ricardo Wurmus <address@hidden>
Date: Wed Nov 25 17:25:22 2015 +0100
gnu: Add ruby-redcloth.
* gnu/packages/ruby.scm (ruby-redcloth): New variable.
---
gnu/packages/ruby.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 846e358..1bd3fe2 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2422,6 +2422,45 @@ alternative to Marshal for Object serialization. ")
(home-page "http://www.ohler.com/ox")
(license license:expat)))
+(define-public ruby-redcloth
+ (package
+ (name "ruby-redcloth")
+ (version "4.2.9")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "RedCloth" version))
+ (sha256
+ (base32
+ "06pahxyrckhgb7alsxwhhlx1ib2xsx33793finj01jk8i054bkxl"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:tests? #f ; no tests
+ #:phases
+ (modify-phases %standard-phases
+ ;; Redcloth has complicated rake tasks to build various versions for
+ ;; multiple targets using RVM. We don't want this so we just use the
+ ;; existing gemspec.
+ (replace 'build
+ (lambda _
+ (zero? (system* "gem" "build" "redcloth.gemspec"))))
+ ;; Make sure that the "redcloth" executable finds required Ruby
+ ;; libraries.
+ (add-after 'install 'wrap-bin-redcloth
+ (lambda* (#:key outputs #:allow-other-keys)
+ (wrap-program (string-append (assoc-ref outputs "out")
+ "/bin/redcloth")
+ `("GEM_HOME" ":" prefix (,(getenv "GEM_HOME"))))
+ #t)))))
+ (native-inputs
+ `(("bundler" ,bundler)
+ ("ruby-diff-lcs" ,ruby-diff-lcs)
+ ("ruby-rspec-2" ,ruby-rspec-2)))
+ (synopsis "Textile markup language parser for Ruby")
+ (description
+ "RedCloth is a Ruby parser for the Textile markup language.")
+ (home-page "http://redcloth.org")
+ (license license:expat)))
+
(define-public ruby-pg
(package
(name "ruby-pg")
- 07/23: gnu: Add ruby-json-pure., (continued)
- 07/23: gnu: Add ruby-json-pure., Ricardo Wurmus, 2015/12/14
- 02/23: gnu: Add ruby-gem-hadar., Ricardo Wurmus, 2015/12/14
- 15/23: gnu: Add ruby-nokogiri-diff., Ricardo Wurmus, 2015/12/14
- 09/23: gnu: Add ruby-rb-fsevent., Ricardo Wurmus, 2015/12/14
- 10/23: gnu: ruby-listen: Add rb-fsevent to inputs., Ricardo Wurmus, 2015/12/14
- 17/23: gnu: Add Gumbo Parser., Ricardo Wurmus, 2015/12/14
- 18/23: gnu: Add ruby-nokogumbo., Ricardo Wurmus, 2015/12/14
- 14/23: gnu: Add ruby-tdiff., Ricardo Wurmus, 2015/12/14
- 11/23: gnu: Add ruby-guard., Ricardo Wurmus, 2015/12/14
- 16/23: gnu: Add ruby-crass., Ricardo Wurmus, 2015/12/14
- 23/23: gnu: Add ruby-redcloth.,
Ricardo Wurmus <=
- 19/23: gnu: Add ruby-clap., Ricardo Wurmus, 2015/12/14
- 21/23: gnu: Add ruby-pygmentize., Ricardo Wurmus, 2015/12/14
- 20/23: gnu: Add ruby-cutest., Ricardo Wurmus, 2015/12/14
- 22/23: gnu: Add ruby-sanitize., Ricardo Wurmus, 2015/12/14