all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Packaging Namazu
@ 2018-01-19  8:13 Chris Marusich
  2018-01-19  9:18 ` Danny Milosavljevic
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Marusich @ 2018-01-19  8:13 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

Hi ng0,

Months ago, you submitted this patch for adding dependencies of Namazu:

https://lists.gnu.org/archive/html/guix-devel/2016-09/msg01836.html

I was hoping to install Namazu.  Is there anything you can share?  I
looked in the Guix source tree, and I couldn't find any trace of
namazu.scm.

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Packaging Namazu
  2018-01-19  8:13 Packaging Namazu Chris Marusich
@ 2018-01-19  9:18 ` Danny Milosavljevic
  0 siblings, 0 replies; 2+ messages in thread
From: Danny Milosavljevic @ 2018-01-19  9:18 UTC (permalink / raw)
  To: Chris Marusich; +Cc: guix-devel

Hi Chris,

it was surprisingly difficult to get it to work, but here's a newer version.  Could you try it out?

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 ng0 <ng0@infotropique.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages namazu)
  #:use-module (gnu packages)
  #:use-module (gnu packages autotools)
  #:use-module (gnu packages base)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages perl-check)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system perl))

(define-public kakasi
  (package
   (name "kakasi")
   (version "2.3.6")
   (source (origin
            (method url-fetch)
            (uri (string-append "http://kakasi.namazu.org/stable/";
                                name "-" version ".tar.gz"))
            (sha256
             (base32
              "14qqjr24p5s4dashr3ikp5gx8g789b8q4bc22ksh7h0ravypchh0"))))
   (build-system gnu-build-system)
   (arguments
    `(#:phases
      (modify-phases %standard-phases
        (add-after 'unpack 'fix-tests
          (lambda _
            ;; Warning: tests have ESC characters in it.
            (for-each
              (lambda (file-name)
                ;; Force "sh" shell to use non-built-in echo.
                (invoke "sed" "-i" file-name "-e" "s#/bin/echo#`which echo`#g"))
              (find-files "tests" ".*"))
            #t))
        (add-before 'check 'setenv-tests
          (lambda _
            (setenv "CC" (which "gcc"))
            #t)))))
   (native-inputs
    `(("which" ,which)))
   (synopsis "Convert Kanji to Kana/Romaji")
   (description
    "KAKASI is the language processing filter to convert Kanji characters
to Hiragana, Katakana or Romaji and may be helpful to read Japanese
documents.")
   (license license:gpl2+)
   (home-page "http://kakasi.namazu.org/")))

(define-public perl-text-kakasi
  (package
    (name "perl-text-kakasi")
    (version "2.04")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "mirror://cpan/authors/id/D/DA/"
                           "DANKOGAI/Text-Kakasi-" version ".tar.gz"))
       (sha256
        (base32
         "186v4ibdafag1spyfx8anhlprpl8yj35m6820yfbigx4igkh2k44"))))
    (build-system perl-build-system)
    (native-inputs
     `(("perl-test-harness" ,perl-test-harness)))
    (inputs
     `(("kakasi" ,kakasi)))
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'fix-paths
           (lambda* (#:key inputs #:allow-other-keys)
             ;; TODO Use PERL_MM_OPT and stop patching files, if possible.
             (let ((kakasi (assoc-ref inputs "kakasi")))
               (substitute* "Makefile.PL"
                 (("/usr/local") kakasi)
                 (("-lkakasi") (string-append "-Wl,-rpath=" kakasi "/lib"
                                              " -lkakasi"))))
             #t)))))
    (home-page "http://search.cpan.org/dist/Text-Kakasi")
    (synopsis "Perl frontend to kakasi")
    (description
     "@code{Text::Kakasi} provides an interface to kakasi.
Kakasi is a set of programs and libraries which does what
Japanese input methods do in reverse order.  You feed Japanese
and kakasi converts it to phonetic representation thereof.
Kakasi can also be used to tokenizing Japanese text.")
    (license license:gpl2)))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-19  9:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19  8:13 Packaging Namazu Chris Marusich
2018-01-19  9:18 ` Danny Milosavljevic

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.