From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmo1r-0007Fr-9E for guix-patches@gnu.org; Mon, 06 Aug 2018 18:31:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmo1n-00010j-FU for guix-patches@gnu.org; Mon, 06 Aug 2018 18:31:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:37963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fmo1n-00010J-8b for guix-patches@gnu.org; Mon, 06 Aug 2018 18:31:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fmo1l-0004Wz-Tb for guix-patches@gnu.org; Mon, 06 Aug 2018 18:31:03 -0400 Subject: [bug#32370] [PATCH 2/4] gnu: Add ruby-oj. Resent-Message-ID: Date: Tue, 7 Aug 2018 00:30:07 +0200 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20180807003007.0b3769ef@alma-ubu> In-Reply-To: <20180805144322.4705-2-mail@cbaines.net> References: <20180805144322.4705-1-mail@cbaines.net> <20180805144322.4705-2-mail@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/88PT98vqLEyDT=jGQ4MjsvV"; 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_/88PT98vqLEyDT=jGQ4MjsvV Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, 5 Aug 2018 15:43:20 +0100 Christopher Baines wrote: > From: Ben Woodcroft >=20 > * gnu/packages/ruby.scm (ruby-oj): 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 a06be3e26..508bbe8c3 100644 > --- a/gnu/packages/ruby.scm > +++ b/gnu/packages/ruby.scm > @@ -3161,6 +3161,42 @@ unacceptable HTML and/or CSS from a string.") > (home-page "https://github.com/rgrove/sanitize/") > (license license:expat))) > =20 > +(define-public ruby-oj > + (package > + (name "ruby-oj") > + (version "3.6.0") 3.6.5 is already available. > + (source > + (origin > + (method url-fetch) > + ;; Version on rubygems.org does not contain Rakefile, so > download from > + ;; GitHub instead. > + (uri (string-append "https://github.com/ohler55/oj/archive/v" > + version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1vhjkmnyllkiwpwqh6swbam826ch2vhrjqmbys2ki6wh48vzknlb")))) I forgot: Is this checksum-stable or should we switch to=20 git-fetch here? > + (build-system ruby-build-system) > + (arguments > + '(#:test-target "test_all" > + #:phases > + (modify-phases %standard-phases > + (add-before 'check 'disable-bundler > + (lambda _ > + (substitute* "Rakefile" > + (("Bundler\\.with_clean_env") "1.times") > + (("bundle exec ") ""))))))) > + (native-inputs > + `(("bundler" ,bundler) > + ("ruby-rspec" ,ruby-rspec) > + ("ruby-rake-compiler" ,ruby-rake-compiler))) > + (synopsis "JSON parser for Ruby optimized for speed") > + (description > + "Oj is a JSON parser and generator for Ruby, where the encoding > and +decoding of JSON is implemented as a C extension to Ruby.") > + (home-page "https://www.ohler.com/oj") I had trouble reaching that site over httpS. http was fine. Is this permanent or temporary? rubygems also has http as homepage. > + (license license:expat))) ./ext/oj/fast.c: BSD (3 clause) ./ext/oj/hash.c: BSD (3 clause) ./ext/oj/hash.h: BSD (3 clause) ./ext/oj/hash_test.c: BSD (3 clause) and others As above, guix build --rounds=3D2 -K complained, but diffoscope showed no d= fference. Bj=C3=B6rn --Sig_/88PT98vqLEyDT=jGQ4MjsvV Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAltoy/AACgkQvyhstlk+X/2BuQCgrIQ1Kd8jd/KKpzjeeFa90QZ6 HUYAoJDGViTIdNNjVwB4yayjYNFzNbvf =hPC9 -----END PGP SIGNATURE----- --Sig_/88PT98vqLEyDT=jGQ4MjsvV--