[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/23: gnu: Add ruby-pygmentize.
From: |
Ricardo Wurmus |
Subject: |
21/23: gnu: Add ruby-pygmentize. |
Date: |
Mon, 14 Dec 2015 13:11:00 +0000 |
rekado pushed a commit to branch master
in repository guix.
commit ac09beba841cb6b3323c80d28fcbae8aa2d9b87a
Author: Ricardo Wurmus <address@hidden>
Date: Wed Nov 25 16:59:05 2015 +0100
gnu: Add ruby-pygmentize.
* gnu/packages/ruby.scm (ruby-pygmentize): New variable.
---
gnu/packages/ruby.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index e548981..cb81340 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -30,6 +30,7 @@
#:use-module (gnu packages autotools)
#:use-module (gnu packages java)
#:use-module (gnu packages libffi)
+ #:use-module (gnu packages python)
#:use-module (gnu packages ragel)
#:use-module (gnu packages tls)
#:use-module (gnu packages version-control)
@@ -2743,6 +2744,46 @@ simple case of executing code based on the flags or
parameters passed.")
(home-page "https://github.com/djanowski/cutest")
(license license:expat)))
+(define-public ruby-pygmentize
+ (package
+ (name "ruby-pygmentize")
+ (version "0.0.3")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "pygmentize" version))
+ (sha256
+ (base32
+ "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-pygmentize-path
+ (lambda _
+ (substitute* "lib/pygmentize.rb"
+ (("\"/usr/bin/env python.*")
+ (string-append "\"" (which "pygmentize") "\"\n")))
+ #t))
+ (add-after 'build 'do-not-use-vendor-directory
+ (lambda _
+ ;; Remove bundled pygments sources
+ ;; FIXME: ruby-build-system does not support snippets.
+ (delete-file-recursively "vendor")
+ (substitute* "pygmentize.gemspec"
+ (("\"vendor/\\*\\*/\\*\",") ""))
+ #t)))))
+ (inputs
+ `(("pygments" ,python-pygments)))
+ (native-inputs
+ `(("ruby-cutest" ,ruby-cutest)
+ ("ruby-nokogiri" ,ruby-nokogiri)))
+ (synopsis "Thin Ruby wrapper around pygmentize")
+ (description
+ "Pygmentize provides a simple way to call pygmentize from within a Ruby
+application.")
+ (home-page "https://github.com/djanowski/pygmentize")
+ (license license:expat)))
+
(define-public ruby-eventmachine
(package
(name "ruby-eventmachine")
- 15/23: gnu: Add ruby-nokogiri-diff., (continued)
- 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, 2015/12/14
- 19/23: gnu: Add ruby-clap., Ricardo Wurmus, 2015/12/14
- 21/23: gnu: Add ruby-pygmentize.,
Ricardo Wurmus <=
- 20/23: gnu: Add ruby-cutest., Ricardo Wurmus, 2015/12/14
- 22/23: gnu: Add ruby-sanitize., Ricardo Wurmus, 2015/12/14