gnu: recode: Update to 3.7.

* gnu/packages/textutils.scm (recode): Update to 3.7.
[source]: Update source uri and download type. Add snippet to remove
cythonized source.
[native-inputs]: Add python2-cython.
[arguments]: Remove custom phases.
[home-page]: Update to new upstream.
[license]: Update license.
This commit is contained in:
Efraim Flashner 2018-02-24 22:27:43 +02:00
parent a2f0b01221
commit 20a792b553
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 17 additions and 24 deletions

View File

@ -5,7 +5,7 @@
;;; Copyright © 2015 Roel Janssen <roel@gnu.org> ;;; Copyright © 2015 Roel Janssen <roel@gnu.org>
;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org> ;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
;;; Copyright © 2016 Alex Griffin <a@ajgrf.com> ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016, 2018 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is> ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org> ;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
@ -83,32 +83,25 @@ to DOS format and vice versa.")
(define-public recode (define-public recode
(package (package
(name "recode") (name "recode")
;; Last beta release (3.7-beta2) is from 2008; last commit from Feb 2014. (version "3.7")
;; So we use that commit instead.
(version "3.7.0.201402")
(source (source
(origin (origin
(method git-fetch) (method url-fetch)
(uri (git-reference (uri (string-append "https://github.com/rrthomas/recode/releases/"
(url "https://github.com/pinard/Recode.git") "download/v" version "/" name "-" version ".tar.gz"))
(commit "2d7092a9999194fc0e9449717a8048c8d8e26c18")))
(sha256 (sha256
(base32 "1wssv8z6g3ryrw33sksz4rjhlnhgvvdqszw1ggl4rcwks34n86zm")) (base32
(file-name (string-append name "-" version "-checkout")))) "0r4yhf7i7zp2nl2apyzz7r3i2in12n385hmr8zcfr18ly0ly530q"))
(modules '((guix build utils)))
(snippet
`(begin
(delete-file "tests/Recode.c")
#t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs `(("python" ,python-2))) (native-inputs
(arguments `(("python" ,python-2)
'(#:phases ("python2-cython" ,python2-cython)))
(modify-phases %standard-phases (home-page "https://github.com/rrthomas/recode")
(add-before 'check 'pre-check
(lambda _
(substitute* "tests/setup.py"
(("([[:space:]]*)include_dirs=.*" all space)
(string-append all space "library_dirs=['../src/.libs'],\n")))
;; The test extension 'Recode.so' lacks RUNPATH for 'librecode.so'.
(setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/src/.libs"))
#t)))))
(home-page "https://github.com/pinard/Recode")
(synopsis "Text encoding converter") (synopsis "Text encoding converter")
(description "The Recode library converts files between character sets and (description "The Recode library converts files between character sets and
usages. It recognises or produces over 200 different character sets (or about usages. It recognises or produces over 200 different character sets (or about
@ -116,7 +109,7 @@ usages. It recognises or produces over 200 different character sets (or about
any pair. When exact transliteration are not possible, it gets rid of any pair. When exact transliteration are not possible, it gets rid of
offending characters or falls back on approximations. The recode program is a offending characters or falls back on approximations. The recode program is a
handy front-end to the library.") handy front-end to the library.")
(license license:gpl2+))) (license license:gpl3+)))
(define-public enca (define-public enca
(package (package