From patchwork Fri Feb 1 04:03:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshinori Arai X-Patchwork-Id: 935 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 681A316B41; Fri, 1 Feb 2019 04:04:09 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 4769116B3F for ; Fri, 1 Feb 2019 04:04:08 +0000 (GMT) Received: from localhost ([127.0.0.1]:36701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpQ3j-0001Vj-Af for patchwork@mira.cbaines.net; Thu, 31 Jan 2019 23:04:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpQ3f-0001Tx-UN for guix-patches@gnu.org; Thu, 31 Jan 2019 23:04:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpQ3e-0001EA-Kv for guix-patches@gnu.org; Thu, 31 Jan 2019 23:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54307) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpQ3e-0001E4-Gt for guix-patches@gnu.org; Thu, 31 Jan 2019 23:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gpQ3e-0003sv-93 for guix-patches@gnu.org; Thu, 31 Jan 2019 23:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34262] [PATCH]Add: nkf Resent-From: Yoshinori Arai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Feb 2019 04:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34262 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Eric Bavier Received: via spool by 34262-submit@debbugs.gnu.org id=B34262.154899380114866 (code B ref 34262); Fri, 01 Feb 2019 04:04:02 +0000 Received: (at 34262) by debbugs.gnu.org; 1 Feb 2019 04:03:21 +0000 Received: from localhost ([127.0.0.1]:53588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpQ2w-0003re-7A for submit@debbugs.gnu.org; Thu, 31 Jan 2019 23:03:19 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpQ2t-0003rK-5F for 34262@debbugs.gnu.org; Thu, 31 Jan 2019 23:03:16 -0500 Received: by mail-pf1-f195.google.com with SMTP id b7so2499301pfi.8 for <34262@debbugs.gnu.org>; Thu, 31 Jan 2019 20:03:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=r1TsLtj6F99Swb5m9H5CGQHuSc5qQgyu8gnOB5xpaJc=; b=WYwtjD6oy+g55aNs2oCamLn7aH7yHdZFQlUWpb6uS876PIJrPEf51xS4knnIjOCA5l QhiP1XV4vFuM7/9WmlMhq84W22fjVL8paAgobtiGAZb1USHBOzMjsDQf+OW0sGlWfk2e WJi1LjA8wInQusrG2xryrVlcqAp2xr93TW+Kt8hzvhuCR1eWA/qszfRhjAp5NVzt6qWK /iwQxbWX72ZLA1EonukCDvrKhel/h3NpKr4BTsiu9VqCaLiLT1SbbbamUhw43fRNJSoy pwy8ygDsT93nBLoRb7aEaFNGiQ0QC0ztm6/7enWhJPYz9Q/rwv2wMEc81Ui1QUCIvvFQ x2ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=r1TsLtj6F99Swb5m9H5CGQHuSc5qQgyu8gnOB5xpaJc=; b=deNAwDBQd7bW5WtvUYH/Ia3EmX7+AwmRDLxCCPRdSBrQCeauMLjoyBj3EDoh3fMQP0 H7kNOfh6Oyj2rWpQru8eduADMBhPbXcydmDJHNdQpoZ9vm61+519B+sST1je+RhHuQo4 5Apmuo687KdO3SfshTsh1RNZS55uKLcVVQuVSFWAbdh1dqcR1v/9wVjdg7DGWAjcE1rf TZrlrd+jOR5fcS7h6Spe13dKE0qGR/PThcXiISCwECRNmq0LHr5ZIHGzsMlIz3vDBK8c pNz6MnAiwfO1dQ+Ytf/C4hk6EcWExJeVYOhsrWBRlolLsHU1jJnb3oJchrid+G1iRK7J L/bQ== X-Gm-Message-State: AJcUukdZw3ruk4yTnvlxl82RAX4yhvj9y81mxwtkqwKd6XgJnP0Dmh9n I0z1yxcSG0J+WVhYvw/VZUk= X-Google-Smtp-Source: ALg8bN5lMejPz2mPxYDKU814+4r/sfmVLy1pLGoXWNRd9tRGwgsjQSbjrTNofzYqPXn58hYZwxhDgg== X-Received: by 2002:a62:c21c:: with SMTP id l28mr37234694pfg.74.1548993788577; Thu, 31 Jan 2019 20:03:08 -0800 (PST) Received: from localhost ([2409:11:4a40:3600:afd4:3247:4a32:242a]) by smtp.gmail.com with ESMTPSA id p2sm7966588pfb.28.2019.01.31.20.03.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Jan 2019 20:03:07 -0800 (PST) Date: Fri, 1 Feb 2019 13:03:05 +0900 From: Yoshinori Arai Message-ID: <20190201040305.luu56jkwndye2zrv@WaraToNora> References: <20190131064326.ndndwqf23yirdoup@WaraToNora> <20190131085519.23d47ee2@centurylink.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190131085519.23d47ee2@centurylink.net> User-Agent: NeoMutt/20180716 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 34262@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches On Thu, Jan 31, 2019 at 08:55:19AM -0600, Eric Bavier wrote: > Thanks for the patch! Just a few nitpicks below: > > On Thu, 31 Jan 2019 15:43:26 +0900 > Yoshinori Arai wrote: > > > 1 file changed, 38 insertions(+) > > gnu/packages/textutils.scm | 38 ++++++++++++++++++++++++++++++++++++++ > > > > modified gnu/packages/textutils.scm > > @@ -794,3 +794,41 @@ Chinese and Simplified Chinese, supporting character-level conversion, > > phrase-level conversion, variant conversion, and regional idioms among > > Mainland China, Taiwan, and Hong-Kong.") > > (license license:asl2.0))) > > + > > +(define-public nkf > > + (let ((commit "08043eadf4abdddcf277842217e3c77a24740dc2") > > Could you add a comment about how this commit relates to the 2.1.5 > release? I see the github page doesn't seem to make actual releases, > or even tag. Would it make any sense to download the tarballs > available at https://ja.asdn.net/projects/nkf instead? > > > + (revision "1")) > > + (package > > + (name "nkf") > > + (version "2.1.5") > > + (source (origin > > + (method git-fetch) > > + (uri (git-reference > > + (url "https://github.com/nurse/nkf.git") > > + (commit commit))) > > + (file-name (string-append name version)) > > Rather than string-append use the 'git-file-name' procedure. > > > + (sha256 > > + (base32 > > + "0anw0knr1iy4p9w3d3b3pbwzh1c43p1i2q4c28kw9zviw8kx2rly")))) > > + (build-system gnu-build-system) > > + (arguments > > + `(#:tests? #f ; test for perl module > > + #:make-flags (list "CC=gcc" "CFLAGS=-O2 -Wall -pedantic" > > + (string-append "prefix=" %output)) > > + #:phases > > + (modify-phases %standard-phases > > + (delete 'configure) > > + (replace 'install > > The Makefile's 'install' target seems like it might do what we want. > Is that not the case? > > > + (lambda* (#:key outputs #:allow-other-keys) > > + (let* ((out (assoc-ref outputs "out")) > > + (bin (string-append out "/bin")) > > + (man1 (string-append out "/share/man/man1")) > > + (man1j (string-append out "/share/man/ja/man1"))) > > + (install-file "nkf" bin) > > + (install-file "nkf.1" man1) > > + (install-file "nkf.1j" man1j) > > + #t)))))) > > + (home-page "https://ja.osdn.net/projects/nkf/") > > + (synopsis "Network Kanji Filter") > > + (description "Nkf is a yet another kanji code converter among networks, hosts and terminals. It converts input kanji code to designated kanji code such as ISO-2022-JP, Shift_JIS, EUC-JP, UTF-8, UTF-16 or UTF-32.") > > + (license license:zlib)))) > > 'is a yet' -> 'is yet' > > Use double-space after end-of-sentence period. > > Also, make sure to run 'guix lint knf' > > Could you send an updated patch? > > Thanks, > `~Eric Hello, I updated and made format patch. From aab08237d2ece4a1f190522d1357b5b9e872ce57 Mon Sep 17 00:00:00 2001 From: Yoshinori Arai Date: Fri, 1 Feb 2019 12:55:46 +0900 Subject: [PATCH] Add nkf --- gnu/packages/textutils.scm | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index d2f84420c..34aae6361 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -794,3 +794,45 @@ Chinese and Simplified Chinese, supporting character-level conversion, phrase-level conversion, variant conversion, and regional idioms among Mainland China, Taiwan, and Hong-Kong.") (license license:asl2.0))) + +(define-public nkf + (let ((commit "08043eadf4abdddcf277842217e3c77a24740dc2") + (revision "1")) + (package + (name "nkf") + ;;look at https://ja.osdn.net/projects/nkf/scm/git/nkf/ + (version "2.1.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nurse/nkf.git") + (commit commit))) + (file-name (string-append name version)) + (sha256 + (base32 + "0anw0knr1iy4p9w3d3b3pbwzh1c43p1i2q4c28kw9zviw8kx2rly")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; test for perl module + #:make-flags (list "CC=gcc" "CFLAGS=-O2 -Wall -pedantic" + (string-append "prefix=" %output)) + #:phases + (modify-phases %standard-phases + (delete 'configure) + ;; mkdir can't create directory + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (man1 (string-append out "/share/man/man1")) + (man1j (string-append out "/share/man/ja/man1"))) + (install-file "nkf" bin) + (install-file "nkf.1" man1) + (install-file "nkf.1j" man1j) + #t)))))) + (home-page "https://ja.osdn.net/projects/nkf/") + (synopsis "Network Kanji Filter") + (description "Nkf is yet another kanji code converter among networks, +hosts and terminals. It converts input kanji code to designated kanji code +such as ISO-2022-JP, Shift_JIS, EUC-JP, UTF-8, UTF-16 or UTF-32.") + (license license:zlib))))