summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Prikler <leo.prikler@student.tugraz.at>2020-06-21 14:17:56 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-06-21 15:53:06 +0200
commitbdafdfcec9861f53f93fc9cf81c2e83fe45c35dd (patch)
tree39817902b38b99e6c32453a6822fddcecc960944
parentgnu: Add font-fontna-yasashisa-antique. (diff)
downloadguix-bdafdfcec9861f53f93fc9cf81c2e83fe45c35dd.tar.gz
guix-bdafdfcec9861f53f93fc9cf81c2e83fe45c35dd.tar.bz2
guix-bdafdfcec9861f53f93fc9cf81c2e83fe45c35dd.tar.xz
gnu: add convmv.
* gnu/packages/convmv.scm: New file. * gnu/local.mk: Add it to build. Signed-off-by: Julien Lepiller <julien@lepiller.eu>
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/convmv.scm60
2 files changed, 61 insertions, 0 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 347d4bb..602a3c0 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -134,6 +134,7 @@ GNU_SYSTEM_MODULES = \
134 %D%/packages/compton.scm \ 134 %D%/packages/compton.scm \
135 %D%/packages/conky.scm \ 135 %D%/packages/conky.scm \
136 %D%/packages/connman.scm \ 136 %D%/packages/connman.scm \
137 %D%/packages/convmv.scm \
137 %D%/packages/cook.scm \ 138 %D%/packages/cook.scm \
138 %D%/packages/coq.scm \ 139 %D%/packages/coq.scm \
139 %D%/packages/cpio.scm \ 140 %D%/packages/cpio.scm \
diff --git a/gnu/packages/convmv.scm b/gnu/packages/convmv.scm
new file mode 100644
index 0000000..2a9a4ec
--- /dev/null
+++ b/gnu/packages/convmv.scm
@@ -0,0 +1,60 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages convmv)
20 #:use-module (gnu packages)
21 #:use-module (gnu packages perl)
22 #:use-module (guix licenses)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu))
26
27(define-public convmv
28 (package
29 (name "convmv")
30 (version "2.05")
31 (source (origin
32 (method url-fetch)
33 (uri (string-append "https://www.j3e.de/linux/convmv/convmv-"
34 version ".tar.gz"))
35 (sha256
36 (base32
37 "19hwv197p7c23f43vvav5bs19z9b72jzca2npkjsxgprwj5ardjk"))))
38 (build-system gnu-build-system)
39 (arguments
40 `(#:test-target "test"
41 #:make-flags `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
42 #:phases
43 (modify-phases %standard-phases
44 (delete 'bootstrap)
45 (delete 'configure)
46 (add-before 'check 'unpack-testsuite
47 (lambda _
48 (invoke "tar" "xf" "testsuite.tar")
49 (patch-shebang "suite/dotests.sh")
50 (patch-shebang "suite/parsable_tester.pl")
51 #t)))))
52 (inputs
53 `(("perl" ,perl)))
54 (synopsis "Convert filenames between character sets")
55 (description
56 "convmv is a file renamer, that converts between different encodings,
57e.g. from ISO-8859-1 to UTF-8. It is particularly usefuls for files with
58names, that display incorrectly.")
59 (license (list gpl2 gpl3))
60 (home-page "https://www.j3e.de/")))