~ruther/guix-local

be49b0f4435cf1d9275cbbc9cac3a84fa4478ff9 — Thanos Apollo 1 year, 4 months ago f7cf9fb
gnu: Add hunspell-dict-el-polytonic.

* gnu/packages/hunspell.scm (hunspell-dict-el-polytonic): New variable.

Change-Id: I18112b9f36f66160dc540defac03a7f2ed9eed2d
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 33 insertions(+), 0 deletions(-)

M gnu/packages/hunspell.scm
M gnu/packages/hunspell.scm => gnu/packages/hunspell.scm +33 -0
@@ 365,6 365,39 @@ spell-checking library.")
      (home-page "https://git.thanosapollo.org/hunspell-dict-el/")
      (license (list license:gpl2 license:gpl3)))))

(define-public hunspell-dict-el-polytonic
  (let ((commit "ddb787b6a28767773ff2b6ed0092a6957e4825e3"))
    (package
      (name "hunspell-dict-el-polytonic")
      (version "0.1")
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://git.thanosapollo.org/hunspell-dict-el-polytonic")
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "0ik14rcpxxmp35314rcip38nr0z8i3375l5k9ajf6ywx8r5i3zr9"))))
      (build-system gnu-build-system)
      (arguments
       `(#:phases (modify-phases %standard-phases
                    (delete 'build)
                    (delete 'configure)
                    (replace 'install
                      (lambda* (#:key outputs #:allow-other-keys)
                        (let* ((out (assoc-ref outputs "out"))
                               (share (string-append out "/share/hunspell/")))
                          (install-file "el_GR.aff" share)
                          (install-file "el_GR.dic" share) #t))))
         #:tests? #f))
      (native-inputs (list hunspell ispell perl))
      (synopsis "Hunspell Polytonic Greek/Hellenic dictionary")
      (description "This package provides a dictionary for the Hunspell
spell-checking library.")
      (home-page "https://git.thanosapollo.org/hunspell-dict-el-polytonic")
      (license (list license:gpl2 license:gpl3)))))

(define* (hunspell-dictionary dict-name full-name #:key synopsis home-page license)
  (package
    (name (string-append