[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
232/402: gnu: Add libstemmer.
From: |
guix-commits |
Subject: |
232/402: gnu: Add libstemmer. |
Date: |
Tue, 18 Aug 2020 16:47:46 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 14f464f41ae1f14b0e4300a761b5998a674654a9
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu Jul 30 18:11:57 2020 -0400
gnu: Add libstemmer.
* gnu/packages/language.scm (libstemmer): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/language.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index 366ea2c..215f8c6 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")
- 203/402: gnu: libgudev: Update package definition., (continued)
- 203/402: gnu: libgudev: Update package definition., guix-commits, 2020/08/18
- 204/402: gnu: glade: Update package definition., guix-commits, 2020/08/18
- 208/402: gnu: libmediaart: Update package definition., guix-commits, 2020/08/18
- 211/402: gnu: rest: Update package definition., guix-commits, 2020/08/18
- 215/402: gnu: mm-common: Update package definition., guix-commits, 2020/08/18
- 217/402: gnu: Add ldns., guix-commits, 2020/08/18
- 222/402: gnu: network-manager-applet: Update package definition., guix-commits, 2020/08/18
- 229/402: gnu: libquvi-scripts: Update package definition., guix-commits, 2020/08/18
- 225/402: gnu: gtksourceview: Fix glade., guix-commits, 2020/08/18
- 228/402: gnu: tepl: Update package definition., guix-commits, 2020/08/18
- 232/402: gnu: Add libstemmer.,
guix-commits <=
- 284/402: gnu: libostree: Update package definition., guix-commits, 2020/08/18
- 288/402: gnu: gnome-keyring: Update package definition., guix-commits, 2020/08/18
- 289/402: gnu: gnome-maps: Update package definition., guix-commits, 2020/08/18
- 294/402: gnu: gnome-session: Update package definition., guix-commits, 2020/08/18
- 302/402: gnu: gnome-weather: Update package definition., guix-commits, 2020/08/18
- 115/402: gnu: Add rust-peg@0.5.7., guix-commits, 2020/08/18
- 122/402: gnu: Add rust-xml5ever@0.16.1., guix-commits, 2020/08/18
- 128/402: gnu: gtk+: Add missing input., guix-commits, 2020/08/18
- 149/402: gnu: Add libsigc++-2., guix-commits, 2020/08/18
- 155/402: gnu: pangomm: Update package definition., guix-commits, 2020/08/18