From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: [PATCH] gnu: Add reducelcs. Date: Mon, 30 Jan 2017 07:50:25 -0500 Message-ID: <87mve8lnji.fsf@openmailbox.org> References: <87vasxd10e.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> <20170130062753.3864-1-contact.ng0@cryptolab.net> <20170130062753.3864-2-contact.ng0@cryptolab.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYBPw-0007lO-Aa for guix-devel@gnu.org; Mon, 30 Jan 2017 07:50:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYBPt-0001NI-6l for guix-devel@gnu.org; Mon, 30 Jan 2017 07:50:44 -0500 Received: from lb1.openmailbox.org ([5.79.108.160]:34292) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYBPs-0001MH-Ow for guix-devel@gnu.org; Mon, 30 Jan 2017 07:50:41 -0500 In-Reply-To: <20170130062753.3864-2-contact.ng0@cryptolab.net> (contact's message of "Mon, 30 Jan 2017 06:27:53 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: contact.ng0@cryptolab.net Cc: guix-devel@gnu.org, ng0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable contact.ng0@cryptolab.net writes: > From: ng0 > > * gnu/packages/maths.scm (reducelcs): New variable. > --- > gnu/packages/maths.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 45 insertions(+) > > diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm > index fbf0f6a54..e939430d5 100644 > --- a/gnu/packages/maths.scm > +++ b/gnu/packages/maths.scm > @@ -15,6 +15,7 @@ > ;;; Copyright =C2=A9 2016 Ludovic Court=C3=A8s > ;;; Copyright =C2=A9 2016 Leo Famulari > ;;; Copyright =C2=A9 2016 Thomas Danckaert > +;;; Copyright =C2=A9 2017 ng0 > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -37,6 +38,7 @@ > #:use-module ((guix licenses) #:prefix license:) > #:use-module (guix packages) > #:use-module (guix download) > + #:use-module (guix git-download) > #:use-module (guix utils) > #:use-module (guix build utils) > #:use-module (guix build-system cmake) > @@ -2840,3 +2842,46 @@ instruction sets. Thus, an application written wi= th Vc can be compiled for: > @end enumerate\n") > (home-page "https://github.com/VcDevel/Vc") > (license license:bsd-3))) > + > +(define-public reducelcs > + ;; This is the last commit which is available upstream, no > + ;; release happened since 2010. > + (let ((commit "474f88deb968061abe8cf11c959e02319b8ae5c0") > + (revision "1")) > + (package > + (name "reducelcs") > + (version (string-append "1.0-" revision "." (string-take commit 7)= )) > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/gdv/Reduce-Expand-for-LCS") > + (commit commit))) > + (file-name (string-append name "-" version "-checkout")) > + (sha256 > + (base32 > + "1rllzcfwc042c336mhq262a8ha90x6afq30kvk60r7i4761j4yjm")))) > + (build-system gnu-build-system) > + (inputs > + `(("openlibm" ,openlibm))) > + (arguments > + `(#:tests? #f ; no tests > + #:phases > + (modify-phases %standard-phases > + (delete 'configure) ; No configure script exists. > + (replace 'install ; No install phase exists. > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (bin (string-append out "/bin"))) > + (install-file "Approximation" bin) > + (install-file "CollectResults" bin) > + (install-file "GenerateInstances" bin) > + #t)))))) > + (synopsis "Approximate Longest Commons Subsequence computation too= l") > + (description > + "@code{reduceLCS} is an implementation of the Reduce-Expand > +algorithm for LCS. It is a fast program to compute the approximate > +Longest Commons Subsequence of a set of strings.") > + (home-page "https://github.com/gdv/Reduce-Expand-for-LCS") > + ;; The source specifies no "and later" of GPL3. > + (license license:gpl3)))) LGTM. Pushed to master as 54052a54c1188002b2040b8b24f8605d1c0fac1f. Thanks again! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAliPNpEACgkQ5qXuPBlG eg3iow//W+OY0oSBffSBrub0pOfKTVgOjucGIb67MlWy8v/kKbQfJo8oHAHwBMB/ Lh2Yxr9y0lv+paR1cZgmEfccWlr9/JLcYQMGCT3Ti6tFzmBuOzHdYO0P9GR5if1Q devWMVez7QrtUXlSuybjA34MZ20S6kPJJhVYvedygPbXBcrbop1d+CNmJUnSfO08 p71k9JYhsBBuSJHNfUNfLge6BSUtGYkQTitgCAfevWwR+igZ62usHwMhPJdg7FWs LJT7jDQDfrwM3vJKD2pksSXQNk95o79fxj80JbSuh0Eb+oAfi8hAL3rxUCRbxHtl 4YBxnIjOyAexlTruDHbNgWaqmndruZoHbSPs6/w7VB0cP+Fi3qSxLX0MuRagHYlJ mFzDF/zAKGaSRvkREvwxBi1rwRW1LT2QUYYcVm44rE2TGFpVUM7RExh99Mp5cKDr m44Rf8CJEYBkFG8bMNMRexE2H9AZ9ez3q+MMh93Idf+Ke/x20r1bt4indwry//YC 7aAkzjvLDpvkQ+qr742BiJCbbGK4YxqfiTXx59+YthYIN2hjxk3Q2ky3yx7ZmE3Y iC90xz4m2dYLVW3GbMRaPWMtNils0YD74oCLLAzJiwcKb1ziRMkBBQGQ4OKDcwKH 625KoBvJcYsBDo327luCfC4500klsQuIgaG9XB50+6crwowdfpg= =bIs/ -----END PGP SIGNATURE----- --=-=-=--