| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 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 | (list perl))
|
| 54 | (synopsis "Convert filenames between character sets")
|
| 55 | (description
|
| 56 | "convmv is a file renamer, that converts between different encodings,
|
| 57 | e.g. from ISO-8859-1 to UTF-8. It is particularly usefuls for files with
|
| 58 | names, that display incorrectly.")
|
| 59 | (license (list gpl2 gpl3))
|
| 60 | (home-page "https://www.j3e.de/")))
|