diff options
Diffstat (limited to 'packages/komodo/googlefontcmake.scm')
-rw-r--r-- | packages/komodo/googlefontcmake.scm | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/packages/komodo/googlefontcmake.scm b/packages/komodo/googlefontcmake.scm new file mode 100644 index 0000000..044817e --- /dev/null +++ b/packages/komodo/googlefontcmake.scm @@ -0,0 +1,72 @@ +(define-module (googlefontcmake) + #:use-module (guix build-system cmake) + #:use-module (guix git-download) + #:use-module ((guix licenses) + #:prefix license:) + #:use-module (guix packages)) + +;; DATA LAYER + +(define hash + (base32 "1lmbiv8hgbglaznv8dcsp92m8r9vdg1adg9qfyfinc92k8f5dyqq")) + +(define name + "googlefontcmake") + +(define description + (string-append "CMake function to download google fonts at configure time " + "from google/fonts.")) + +(define home-page + "https://github.com/OlivierLDff/FetchGoogleFontCMake/tree/master") + +(define synopsis + "CMake function to download google fonts at configure time.") + +(define tests? + #f) + +(define url + "https://github.com/OlivierLDff/FetchGoogleFontCMake.git") + +(define version + "master") + +;; ABSTRACTION LAYER -2 + +(define no-install-target + '(delete 'install)) + +;; ABSTRACTION LAYER -1 + +(define phases + `(modify-phases %standard-phases + ,no-install-target)) + +(define uri + (git-reference (url url) + (commit version))) + +;; ABSTRACTION LAYER -0 + +(define arguments + (list #:phases phases + #:tests? tests?)) + +(define source + (origin (uri uri) + (method git-fetch) + (sha256 hash))) + +;; SURFACE LAYER + +(define-public googlefontcmake + (package (name name) + (version version) + (source source) + (build-system cmake-build-system) + (arguments arguments) + (synopsis synopsis) + (description description) + (license license:expat) + (home-page home-page))) |