From de681bdb1148b31c1457bb6c1a59067aa47cc9fd Mon Sep 17 00:00:00 2001 From: Adam Kandur Date: Thu, 30 Jul 2020 10:48:41 +0200 Subject: gnu: Add cl-inflector. * gnu/packages/lisp-xyz.scm (sbcl-cl-inflector, cl-inflector, ecl-cl-inflector): New variables. Co-authored-by: Guillaume Le Vaillant --- gnu/packages/lisp-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 985ab05af7..c79fc14708 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -19,6 +19,7 @@ ;;; Copyright © 2020 Konrad Hinsen ;;; Copyright © 2020 Dimakis Dimakakos ;;; Copyright © 2020 Oleg Pykhalov +;;; Copyright © 2020 Adam Kandur ;;; ;;; This file is part of GNU Guix. ;;; @@ -13328,3 +13329,38 @@ specification}, a toolkit for writing GUIs in Common Lisp.") ("trivial-gray-streams" ,cl-trivial-gray-streams) ("swank" ,cl-slime-swank) ("zpb-ttf" ,cl-zpb-ttf)))))) + +(define-public sbcl-cl-inflector + (let ((commit "f1ab16919ccce3bd82a0042677d9616dde2034fe") + (revision "1")) + (package + (name "sbcl-cl-inflector") + (version (git-version "0.2" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AccelerationNet/cl-inflector") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xwwlhik1la4fp984qnx2dqq24v012qv4x0y49sngfpwg7n0ya7y")))) + (build-system asdf-build-system/sbcl) + (native-inputs + `(("lisp-unit2" ,sbcl-lisp-unit2))) + (inputs + `(("alexandria" ,sbcl-alexandria) + ("cl-ppcre" ,sbcl-cl-ppcre))) + (home-page "https://github.com/AccelerationNet/cl-inflector") + (synopsis "Library to pluralize/singularize English and Portuguese words") + (description + "This is a common lisp library to easily pluralize and singularize +English and Portuguese words. This is a port of the ruby ActiveSupport +Inflector module.") + (license license:expat)))) + +(define-public cl-inflector + (sbcl-package->cl-source-package sbcl-cl-inflector)) + +(define-public ecl-cl-inflector + (sbcl-package->ecl-package sbcl-cl-inflector)) -- cgit v1.2.3