From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzc8f-0004EY-Nb for guix-patches@gnu.org; Tue, 11 Sep 2018 02:27:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzc8c-00085E-GO for guix-patches@gnu.org; Tue, 11 Sep 2018 02:27:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60028) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzc8c-00084l-CJ for guix-patches@gnu.org; Tue, 11 Sep 2018 02:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fzc8c-0001FZ-31 for guix-patches@gnu.org; Tue, 11 Sep 2018 02:27:02 -0400 Subject: [bug#32370] [PATCH 1/4] gnu: Add ruby-yajl-ruby. Resent-Message-ID: Date: Tue, 11 Sep 2018 08:26:31 +0200 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20180911082631.52ae2d70@alma-ubu> In-Reply-To: <20180828203401.14685-1-mail@cbaines.net> References: <871sbczxm8.fsf@cbaines.net> <20180828203401.14685-1-mail@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/vJB5a+Win6uIEwxG24VDlpW"; protocol="application/pgp-signature" 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: Christopher Baines Cc: 32370@debbugs.gnu.org --Sig_/vJB5a+Win6uIEwxG24VDlpW Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 28 Aug 2018 21:33:58 +0100 Christopher Baines wrote: > From: Ben Woodcroft >=20 > * gnu/packages/ruby.scm (ruby-yajl-ruby): New variable. >=20 > Signed-off-by: Christopher Baines > --- > gnu/packages/ruby.scm | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) >=20 > diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm > index 908dfd5751..dabfc6511c 100644 > --- a/gnu/packages/ruby.scm > +++ b/gnu/packages/ruby.scm > @@ -3626,6 +3626,42 @@ features such as filtering and fine grained > logging.") (home-page > "https://github.com/pjotrp/bioruby-logger-plugin") (license > license:expat)))=20 > +(define-public ruby-yajl-ruby > + (package > + (name "ruby-yajl-ruby") > + (version "1.4.1") > + (source > + (origin > + (method url-fetch) > + (uri (rubygems-uri "yajl-ruby" version)) > + (sha256 > + (base32 > + "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf")))) > + (build-system ruby-build-system) > + (arguments > + '(#:test-target "spec" > + #:phases > + (modify-phases %standard-phases > + (add-before 'check 'patch-test-to-update-load-path > + (lambda _ > + (substitute* "spec/parsing/large_number_spec.rb" > + (("require \"yajl\"") > + "$LOAD_PATH << 'lib'; require 'yajl'")) > + #t))))) > + (native-inputs > + `(("ruby-rake-compiler" ,ruby-rake-compiler) > + ("ruby-rspec" ,ruby-rspec))) > + (synopsis "Streaming JSON parsing and encoding library for > Ruby") > + (description > + "Ruby C bindings to the Yajl JSON stream-based parser > library. The API +is compatible with the JSON gem, so yajl-ruby can > act as a drop in +replacement. > + > +A modified copy of yajl is used, and included in the package.") > + (home-page "https://github.com/brianmario/yajl-ruby") > + (license (list license:expat ; Ruby code, yajl_ext.c and > yajl_ext.h > + license:bsd-3)))) ; Included, modified copy of > yajl + > (define-public ruby-yard > (package > (name "ruby-yard") Hi Chris, I haven't applied the patches again, but from reading the mails, it LGTM. Thanks, Bj=C3=B6rn --Sig_/vJB5a+Win6uIEwxG24VDlpW Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAluXYBgACgkQvyhstlk+X/1YIwCeMRtabiev7IV3NBIfBqlkPDC8 CxgAnAvdUsZlp4zLbbL7nBFtAVHMERkE =cz8l -----END PGP SIGNATURE----- --Sig_/vJB5a+Win6uIEwxG24VDlpW--