From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:49456) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDk4a-0007Ut-1S for guix-patches@gnu.org; Mon, 16 Mar 2020 03:22:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDk4Y-0007oW-OC for guix-patches@gnu.org; Mon, 16 Mar 2020 03:22:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDk4Y-0007oN-KM for guix-patches@gnu.org; Mon, 16 Mar 2020 03:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jDk4Y-0001QH-Go for guix-patches@gnu.org; Mon, 16 Mar 2020 03:22:02 -0400 Subject: [bug#40086] [PATCH 09/11] gnu: Add go-github-com-surgebase-porter2. References: <20200316070412.12364-1-efraim@flashner.co.il> In-Reply-To: <20200316070412.12364-1-efraim@flashner.co.il> Resent-Message-ID: From: Efraim Flashner Date: Mon, 16 Mar 2020 09:15:57 +0200 Message-Id: <20200316071559.13930-10-efraim@flashner.co.il> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 40086@debbugs.gnu.org Cc: Efraim Flashner * gnu/packages/golang.scm (go-github-com-surgebase-porter2): New variable. --- gnu/packages/golang.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6b09dcbe58..0e1d2dc22a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3601,3 +3601,33 @@ used by other processes.") (synopsis "Leveled execution logs for Go") (description "Leveled execution logs for Go.") (license license:asl2.0)))) + +(define-public go-github-com-surgebase-porter2 + (let ((commit "56e4718818e8dc4ea5ba6348402fc7661863732a") + (revision "1")) + (package + (name "go-github-com-surgebase-porter2") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/surgebase/porter2") + (commit commit))) + (file-name (string-append "go-github-com-surgebase-porter2-" + version "-checkout")) + (sha256 + (base32 + "1ivcf83jlj9s7q5y9dfbpyl0br35cz8fcp0dm8sxxvqh54py06v2")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/surgebase/porter2")) + (native-inputs + `(("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify) + ("go-github-com-surge-glog" ,go-github-com-surge-glog))) + (home-page "https://github.com/surgebase/porter2") + (synopsis "Go library implementing english Porter2 stemmer") + (description "Porter2 implements the +@url{http://snowball.tartarus.org/algorithms/english/stemmer.html, english +Porter2 stemmer}. It is written completely using finite state machines to do +suffix comparison, rather than the string-based or tree-based approaches.") + (license license:asl2.0)))) -- 2.25.1