emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#34262: closed ([PATCH]Add: nkf)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#34262: closed ([PATCH]Add: nkf)
Date: Tue, 26 Feb 2019 04:18:01 +0000

Your message dated Mon, 25 Feb 2019 23:17:51 -0500
with message-id <address@hidden>
and subject line Re: [bug#34262] [PATCH]Add: nkf
has caused the debbugs.gnu.org bug report #34262,
regarding [PATCH]Add: nkf
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
34262: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34262
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH]Add: nkf Date: Thu, 31 Jan 2019 15:43:26 +0900 User-agent: NeoMutt/20180716
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")
+        (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))
+                (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
+             (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))))




--- End Message ---
--- Begin Message --- Subject: Re: [bug#34262] [PATCH]Add: nkf Date: Mon, 25 Feb 2019 23:17:51 -0500 User-agent: Mutt/1.11.3 (2019-02-01)
> From aab08237d2ece4a1f190522d1357b5b9e872ce57 Mon Sep 17 00:00:00 2001
> From: Yoshinori Arai <address@hidden>
> Date: Fri, 1 Feb 2019 12:55:46 +0900
> Subject: [PATCH] Add nkf
> 
> ---
>  gnu/packages/textutils.scm | 42 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 42 insertions(+)

Thank you!

I made the changes shown below and pushed as
933ac939d6d2de64c43e068e7c0ebfaaaf2dcdd8

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 2d3a090056..71f03b7568 100644
  1 gnu: Add nkf.
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -800,14 +800,16 @@ Mainland China, Taiwan, and Hong-Kong.")
         (revision "1"))
     (package
       (name "nkf")
-      ;;look at https://ja.osdn.net/projects/nkf/scm/git/nkf/
+      ;; The commits corresponding to specific versions are published
+      ;; here:
+      ;; 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))
+                (file-name (git-file-name name version))
                 (sha256
                  (base32
                   "0anw0knr1iy4p9w3d3b3pbwzh1c43p1i2q4c28kw9zviw8kx2rly"))))
@@ -815,21 +817,11 @@ Mainland China, Taiwan, and Hong-Kong.")
       (arguments
        `(#:tests? #f ; test for perl module
          #:make-flags (list "CC=gcc" "CFLAGS=-O2 -Wall -pedantic"
-                            (string-append "prefix=" %output))
+                            (string-append "prefix=" %output)
+                            "MKDIR=mkdir -p")
          #: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))))))
+           (delete 'configure)))) ; No ./configure script
       (home-page "https://ja.osdn.net/projects/nkf/";)
       (synopsis "Network Kanji Filter")
       (description "Nkf is yet another kanji code converter among networks,

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]