From 291328b19ec27d4bb6d497c510bf366175093fba Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Tue, 1 Dec 2020 11:24:43 +0100 Subject: gnu: Add mgrs. * gnu/packages/lisp-xyz.scm (cl-mgrs, ecl-mgrs, sbcl-mgrs): New variables. --- gnu/packages/lisp-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index b6bd82f457..dc1055a9cc 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -11775,3 +11775,37 @@ Polar Stereographic).") (define-public ecl-utm-ups (sbcl-package->ecl-package sbcl-utm-ups)) + +(define-public sbcl-mgrs + (let ((commit "00455460407b7e5509d1be3da09bf6152956761f") + (revision "0")) + (package + (name "sbcl-mgrs") + (version (git-version "1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/glv2/mgrs") + (commit commit))) + (file-name (git-file-name "mgrs" version)) + (sha256 + (base32 "0ckvn4hg3wwivzavhfashb6fap4a1q10l8krhbng8bdb54ac10sz")))) + (build-system asdf-build-system/sbcl) + (native-inputs + `(("fiveam" ,sbcl-fiveam))) + (inputs + `(("utm-ups" ,sbcl-utm-ups))) + (synopsis + "Convert coordinates between latitude/longitude and MGRS") + (description + "This a Common Lisp library to convert geographic coordinates between +latitude/longitude and MGRS.") + (home-page "https://github.com/glv2/mgrs") + (license license:gpl3+)))) + +(define-public cl-mgrs + (sbcl-package->cl-source-package sbcl-mgrs)) + +(define-public ecl-mgrs + (sbcl-package->ecl-package sbcl-mgrs)) -- cgit v1.2.3