From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fty8H-00050A-Fo for guix-patches@gnu.org; Sun, 26 Aug 2018 12:43:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fty8C-000316-4p for guix-patches@gnu.org; Sun, 26 Aug 2018 12:43:17 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fty89-0002xh-Dp for guix-patches@gnu.org; Sun, 26 Aug 2018 12:43:14 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fty89-0003vX-Ap for guix-patches@gnu.org; Sun, 26 Aug 2018 12:43:13 -0400 Subject: [bug#32535] [PATCH 26/41] gnu: Add ruby-prawn. Resent-Message-ID: From: Julien Lepiller Date: Sun, 26 Aug 2018 18:41:48 +0200 Message-Id: <20180826164203.27318-26-julien@lepiller.eu> In-Reply-To: <20180826164203.27318-1-julien@lepiller.eu> References: <20180826183301.2d915be5@lepiller.eu> <20180826164203.27318-1-julien@lepiller.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32535@debbugs.gnu.org * gnu/packages/ruby.scm (ruby-prawn): New variable. --- gnu/packages/ruby.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index e1aeb532e..2c89ff190 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5568,3 +5568,38 @@ documentation that can be exported to a number of formats very easily, and also supports extending for custom Ruby constructs such as custom class level definitions.") (license license:expat))) + +(define-public ruby-prawn + (package + (name "ruby-prawn") + (version "2.2.2") + (source (origin + (method url-fetch) + (uri (rubygems-uri "prawn" version)) + (sha256 + (base32 + "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m")))) + (build-system ruby-build-system) + (arguments + ; No tests + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'build 'fix-dependencies + (lambda _ + (substitute* "prawn.gemspec" + (("~> 0.7.0") "~> 0.7")) + #t))))) + (propagated-inputs + `(("ruby-pdf-core" ,ruby-pdf-core) + ("ruby-ttfunk" ,ruby-ttfunk))) + (native-inputs + `(("bundler" ,bundler) + ("ruby-pdf-inspector" ,ruby-pdf-inspector) + ("ruby-rspec" ,ruby-rspec) + ("ruby-simplecov" ,ruby-simplecov) + ("ruby-yard" ,ruby-yard))) + (home-page "http://prawnpdf.org/") + (synopsis "PDF generation for Ruby") + (description "Prawn is a pure Ruby PDF generation library.") + (license license:gpl3+))) -- 2.18.0