From fc4f7c45cfcb20af1cbec96f4e5ce3097af1f9c8 Mon Sep 17 00:00:00 2001 From: Mikhail Kirillov Date: Wed, 3 Jul 2019 20:10:27 +0300 Subject: [PATCH] gnu: Add ruby-backport. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/ruby.scm (ruby-backport): New variable. Co-authored-by: Ludovic Courtès --- gnu/packages/ruby.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 49e0b9fe73..5f613cfe60 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2018 Vasile Dumitrascu ;;; Copyright © 2018 Alex Vong ;;; Copyright © 2019 Pierre Neidhardt +;;; Copyright © 2019 Mikhail Kirillov ;;; ;;; This file is part of GNU Guix. ;;; @@ -8725,3 +8726,32 @@ (define-public mailcatcher then check out http://127.0.0.1:1080 to see the mail.") (home-page "https://mailcatcher.me") (license license:expat))) + +(define-public ruby-backport + (package + (name "ruby-backport") + (version "1.1.1") + (source + (origin + ;; The gem does not include test code, so fetch from the Git repository + (method git-fetch) + (uri (git-reference + (url "https://github.com/castwide/backport.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ii3y1wx1n48nd2mhlv0v61b2m21h7dg30if9vc2idza7k4afyw8")))) + (build-system ruby-build-system) + (arguments + `(#:test-target "spec")) + (native-inputs + `(("bundler" ,bundler) + ("ruby-rspec" ,ruby-rspec))) + (inputs + `(("ruby-simplecov" ,ruby-simplecov))) + (synopsis "Pure Ruby library for event-driven IO") + (description + "This package provides a pure Ruby library for event-driven IO.") + (home-page "https://github.com/castwide/backport") + (license license:expat)))