diff options
author | Raghav Gururajan <raghavgururajan@disroot.org> | 2020-07-30 18:11:57 -0400 |
---|---|---|
committer | Danny Milosavljevic <dannym@scratchpost.org> | 2020-08-18 23:25:52 +0200 |
commit | a29eb739710336c58a54bb23d63136c28424147e (patch) | |
tree | 9844853fb63cb80a288d92a912ce0d8d83f7f868 /gnu | |
parent | f10b58ca4b938223a535e131f82d8d28468711a4 (diff) | |
download | guix-a29eb739710336c58a54bb23d63136c28424147e.tar.gz guix-a29eb739710336c58a54bb23d63136c28424147e.zip |
gnu: Add libstemmer.
* gnu/packages/language.scm (libstemmer): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/language.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm index 366ea2c8e6..215f8c6fa4 100644 --- a/gnu/packages/language.scm +++ b/gnu/packages/language.scm @@ -43,6 +43,43 @@ #:use-module (guix git-download) #:use-module (guix utils)) +(define-public libstemmer + (package + (name "libstemmer") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri "https://snowballstem.org/dist/libstemmer_c.tgz") + (sha256 + (base32 "1z2xvrjsaaypc04lwz7dg8mjm5cq1gzmn0l544pn6y2ll3r7ckh5")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No tests exist + #:make-flags + (list + (string-append "CC=" ,(cc-for-target)) + "CFLAGS=-fPIC") + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (out-bin (string-append out "/bin")) + (out-include (string-append out "/include")) + (out-lib (string-append out "/lib"))) + (install-file "stemwords" out-bin) + (install-file "include/libstemmer.h" out-include) + (rename-file "libstemmer.o" "libstemmer.a") + (install-file "libstemmer.a" out-lib) + #t)))))) + (synopsis "Stemming Library") + (description "LibStemmer provides stemming library, supporting several +languages.") + (home-page "https://snowballstem.org/") + (license bsd-3))) + (define-public perl-lingua-en-findnumber (package (name "perl-lingua-en-findnumber") |