mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-surgebase-porter2: Update to 0.0.0-20150829210152-56e4718818e8.
* gnu/packages/golang.scm (go-github-com-surgebase-porter2): Update to 0.0.0-20150829210152-56e4718818e8. [arguments] <phases>: Add 'fix-build. [propagated-inputs]: Add go-github-com-surge-glog. [native-inputs]: Remove go-github-com-surge-glog; add go-github-com-agonopol-go-stem, go-github-com-dchest-stemmer, go-github-com-kljensen-snowball, and go-github-com-reiver-go-porterstemmer. Change-Id: I7068bf5bcb456802d9e6bca9575242417dcbfc65
This commit is contained in:
parent
3d76bb9dba
commit
5b467f5889
1 changed files with 22 additions and 10 deletions
|
@ -2536,33 +2536,45 @@ characters with their ASCII approximations.")
|
||||||
(license license:asl2.0))))
|
(license license:asl2.0))))
|
||||||
|
|
||||||
(define-public go-github-com-surgebase-porter2
|
(define-public go-github-com-surgebase-porter2
|
||||||
(let ((commit "56e4718818e8dc4ea5ba6348402fc7661863732a")
|
|
||||||
(revision "1"))
|
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-surgebase-porter2")
|
(name "go-github-com-surgebase-porter2")
|
||||||
(version (git-version "0.0.0" revision commit))
|
(version "0.0.0-20150829210152-56e4718818e8")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/surgebase/porter2")
|
(url "https://github.com/surgebase/porter2")
|
||||||
(commit commit)))
|
(commit (go-version->git-ref version))))
|
||||||
(file-name (string-append "go-github-com-surgebase-porter2-"
|
(file-name (git-file-name name version))
|
||||||
version "-checkout"))
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1ivcf83jlj9s7q5y9dfbpyl0br35cz8fcp0dm8sxxvqh54py06v2"))))
|
"1ivcf83jlj9s7q5y9dfbpyl0br35cz8fcp0dm8sxxvqh54py06v2"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:import-path "github.com/surgebase/porter2"))
|
(list
|
||||||
|
#:import-path "github.com/surgebase/porter2"
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-build
|
||||||
|
(lambda* (#:key import-path #:allow-other-keys)
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(substitute* "cmd/suffixfsm/suffixfsm.go"
|
||||||
|
;; fmt.Println arg list ends with redundant newline
|
||||||
|
(("fmt.Println") "fmt.Printf"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list go-github-com-stretchr-testify go-github-com-surge-glog))
|
(list go-github-com-agonopol-go-stem
|
||||||
|
go-github-com-dchest-stemmer
|
||||||
|
go-github-com-kljensen-snowball
|
||||||
|
go-github-com-reiver-go-porterstemmer
|
||||||
|
go-github-com-stretchr-testify))
|
||||||
|
(propagated-inputs
|
||||||
|
(list go-github-com-surge-glog))
|
||||||
(home-page "https://github.com/surgebase/porter2")
|
(home-page "https://github.com/surgebase/porter2")
|
||||||
(synopsis "Go library implementing english Porter2 stemmer")
|
(synopsis "Go library implementing english Porter2 stemmer")
|
||||||
(description "Porter2 implements the
|
(description "Porter2 implements the
|
||||||
@url{http://snowball.tartarus.org/algorithms/english/stemmer.html, english
|
@url{http://snowball.tartarus.org/algorithms/english/stemmer.html, english
|
||||||
Porter2 stemmer}. It is written completely using finite state machines to do
|
Porter2 stemmer}. It is written completely using finite state machines to do
|
||||||
suffix comparison, rather than the string-based or tree-based approaches.")
|
suffix comparison, rather than the string-based or tree-based approaches.")
|
||||||
(license license:asl2.0))))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public go-github-com-twpayne-go-vfsafero
|
(define-public go-github-com-twpayne-go-vfsafero
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue