summary refs log tree commit diff
path: root/gnu/packages/language.scm
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2015-03-17 11:51:52 -0500
committerEric Bavier <bavier@member.fsf.org>2015-03-17 13:03:51 -0500
commitf3bbbb7361f91504bc791c2c50721b8ee9f4db5a (patch)
treea6cdbda43f4b3516aaea9bf56fae5b5f9021ddf9 /gnu/packages/language.scm
parentad0a50e3adc39a7f36b4d123f16654e6d8a5f9eb (diff)
downloadguix-f3bbbb7361f91504bc791c2c50721b8ee9f4db5a.tar.gz
gnu: Add String-ToIdentifier-EN.
* gnu/packages/language.scm (perl-string-toidentifier-en): New variable.
Diffstat (limited to 'gnu/packages/language.scm')
-rw-r--r--gnu/packages/language.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index 14958bdfbd..f2f1fbc162 100644
--- a/gnu/packages/language.scm
+++ b/gnu/packages/language.scm
@@ -354,6 +354,32 @@ stemmer at http://snowball.tartarus.org.")
 stemmer at http://snowball.sourceforge.net.")
     (license (package-license perl))))
 
+(define-public perl-string-toidentifier-en
+  (package
+    (name "perl-string-toidentifier-en")
+    (version "0.11")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/R/RK/RKITOVER/"
+                           "String-ToIdentifier-EN-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1bawghkgkkx7j3avnrj5sg3vix1z5564ks6wf9az3jc2knh8s5nh"))))
+    (build-system perl-build-system)
+    (propagated-inputs
+     `(("perl-lingua-en-inflect-phrase" ,perl-lingua-en-inflect-phrase)
+       ("perl-text-unidecode" ,perl-text-unidecode)
+       ("perl-namespace-clean" ,perl-namespace-clean)))
+    (home-page "http://search.cpan.org/dist/String-ToIdentifier-EN")
+    (synopsis "Convert strings to english program identifiers")
+    (description "This module provides a utility method, \"to_identifier\" for
+converting an arbitrary string into a readable representation using the ASCII
+subset of \"\\w\" for use as an identifier in a computer program.  The intent
+is to make unique identifier names from which the content of the original
+string can be easily inferred by a human just by reading the identifier.")
+    (license (package-license perl))))
+
 (define-public perl-text-german
   (package
     (name "perl-text-german")