From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH] kakasi + perl-kakasi -- dependencies for namazu Date: Sat, 24 Sep 2016 14:45:16 +0000 Message-ID: <878tuh5pc3.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnoCv-0000LC-Ed for guix-devel@gnu.org; Sat, 24 Sep 2016 10:45:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnoCr-000233-Pl for guix-devel@gnu.org; Sat, 24 Sep 2016 10:45:37 -0400 Received: from aibo.runbox.com ([91.220.196.211]:36656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnoCr-00022f-EU for guix-devel@gnu.org; Sat, 24 Sep 2016 10:45:33 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1bnoCo-0001tl-L1 for guix-devel@gnu.org; Sat, 24 Sep 2016 16:45:30 +0200 Received: from x5d83e522.dyn.telefonica.de ([93.131.229.34] helo=localhost) by mailfront11.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1bnoCh-0004lx-Cg for guix-devel@gnu.org; Sat, 24 Sep 2016 16:45:23 +0200 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Those are in namazu.scm because they are needed for namazu. Tests for kakasi require some fixes, however I will not fix this. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-kakasi.patch Content-Transfer-Encoding: quoted-printable From=20d8102a06d98d3f5726b04da2cf64f09f69793ed2 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 17 Sep 2016 23:56:29 +0000 Subject: [PATCH 1/2] gnu: Add kakasi. * gnu/packages/namazu.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. =2D-- gnu/local.mk | 1 + gnu/packages/namazu.scm | 53 +++++++++++++++++++++++++++++++++++++++++++++= ++++ 2 files changed, 54 insertions(+) create mode 100644 gnu/packages/namazu.scm diff --git a/gnu/local.mk b/gnu/local.mk index e2cf40d..a6e2464 100644 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -253,6 +253,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/packages/musl.scm \ %D%/packages/mtools.scm \ %D%/packages/nano.scm \ + %D%/packages/namazu.scm \ %D%/packages/ncdu.scm \ %D%/packages/ncurses.scm \ %D%/packages/netpbm.scm \ diff --git a/gnu/packages/namazu.scm b/gnu/packages/namazu.scm new file mode 100644 index 0000000..bec61df =2D-- /dev/null +++ b/gnu/packages/namazu.scm @@ -0,0 +1,53 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2016 ng0 +;;; +;;; 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 . + +(define-module (gnu packages namazu) + #:use-module (gnu packages) + #:use-module (gnu packages autotools) + #:use-module (gnu packages base) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu)) + +(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 + `(;; kakasi-4 /bin/echo fails to get substituted, we need to replace + ;; /bin/echo with (which echo) in tests/kakasi-{1,4,5,6,7} + #:tests? #f)) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake))) + (synopsis "Kanji Kana Simple Inverter") + (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"))) =2D-=20 2.10.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-Add-perl-text-kakasi.patch Content-Transfer-Encoding: quoted-printable From=202d81d97daa68000192c8c6a2bed3150c39d7957f Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 18 Sep 2016 01:22:42 +0000 Subject: [PATCH 2/2] gnu: Add perl-text-kakasi. * gnu/packages/namazu.scm (perl-text-kakasi): New variable. =2D-- gnu/packages/namazu.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/gnu/packages/namazu.scm b/gnu/packages/namazu.scm index bec61df..858254c 100644 =2D-- a/gnu/packages/namazu.scm +++ b/gnu/packages/namazu.scm @@ -20,10 +20,12 @@ #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages base) + #:use-module (gnu packages perl) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) =2D #:use-module (guix build-system gnu)) + #:use-module (guix build-system gnu) + #:use-module (guix build-system perl)) =20 (define-public kakasi (package @@ -51,3 +53,32 @@ to Hiragana, Katakana or Romaji and may be helpful to re= ad 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 + `(#:tests? #f)) ; Requires kakasi in -lkakasi , fixme. + (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))) =2D-=20 2.10.0 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 ng0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJX5pF9AAoJEAKilhUMIBgjnvUQAJcDWk5V1rICme/IMyeMYogS Ows+5VL8fJWdk/gDzKKI/ct95DkcYwwp0qU6+YWuqxkmCdDmvAengLBawzE1/Ee1 sM05VB9mVw6L++5GZkxw3NrOMd/gebDrvAwgJvGmQPtRyaXo6DcZ1HPJLAIsNRm5 jD3URodKFFrwwAV1kjmgtWXP96UXW1qWj8dxdhE8h4iKK09qlh6Hn4dzkBHfVKAQ U0uAeV1pnJhIDvOS6RQIQLJ2xTab17AHM9cZhO0Ga/CbkFWvXyKnNdzacAK9g//I mNhItaey4C3a+YEyG7AYsv+Q2f9spIsdmtFy8x9fo3IX/e9WTXLVdB602h2eA8qp kom6J0k9WKWOvC/zwZh0au5nP3wa7VJ41iKRGvElCpRTqgycN3nvbcAtRCzwdKOH RtFjoCkhLWZUuWiXUwDLW8imD63J7AbYfWBgabS9TBxzN7aYpuy70/CkYj2s9TPF xJqqGOu7nMGjrRdG89VR15MFIG/z0zMCUKdS7Oud67LpeSmW6AfsEBWpx9lsWTpd p7saStLZ2Vg4Ej5H/raibuyAqtKK+ENtI2bqPqX//DhqYy1NOsbCDpH5UoBkXeDw wFzVsDhSTxB5hnBWDj8yuRnv9i9ZiLaiuUO+2R/I1y3GR5PaQVqZ95JpGCFEF6N+ i05zuXRmiTN23uAJr8zL =zPCL -----END PGP SIGNATURE----- --==-=-=--