gnu: texmacs: Update to 2.1.1.

* gnu/packages/text-editors.scm (texmacs): Update to 2.1.1.
[build-system]: Use cmake instead of gnu.
[inputs]: Add libjpeg-turbo and sqlite.  Remove labels.
[arguments]<#:phases>: Remove unnecessary phase.
This commit is contained in:
Nicolas Goaziou 2021-12-18 21:37:17 +01:00
parent fcb5b3176c
commit ed41cae4c3
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -61,6 +61,7 @@ (define-module (gnu packages text-editors)
#:use-module (gnu packages gtk)
#:use-module (gnu packages guile)
#:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages image)
#:use-module (gnu packages libbsd)
#:use-module (gnu packages libreoffice)
#:use-module (gnu packages llvm)
@ -75,6 +76,7 @@ (define-module (gnu packages text-editors)
#:use-module (gnu packages qt)
#:use-module (gnu packages regex)
#:use-module (gnu packages ruby)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages terminals)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages version-control)
@ -852,24 +854,26 @@ (define-public editorconfig-core-c
(define-public texmacs
(package
(name "texmacs")
(version "2.1")
(version "2.1.1")
(source
(origin
(method url-fetch)
(uri (string-append "https://www.texmacs.org/Download/ftp/tmftp/"
"source/TeXmacs-" version "-src.tar.gz"))
(sha256
(base32 "1gl6k1bwrk1y7hjyl4xvlqvmk5crl4jvsk8wrfp7ynbdin6n2i48"))))
(build-system gnu-build-system)
(base32 "0c780vcwppzhb70d3d96md3hra7338d4fv3aj0sm7jx0mj2a334i"))))
(build-system cmake-build-system)
(native-inputs
(list pkg-config xdg-utils)) ;for xdg-icon-resource
(inputs
`(("freetype" ,freetype)
("guile" ,guile-1.8)
("perl" ,perl)
("python" ,python-wrapper)
("qt" ,qtbase-5)
("qtsvg" ,qtsvg)))
(list freetype
guile-1.8
libjpeg-turbo
perl
python-wrapper
qtbase-5
qtsvg
sqlite))
(arguments
`(#:tests? #f ; no check target
#:phases
@ -880,13 +884,6 @@ (define-public texmacs
(substitute* "packages/linux/icons.sh"
(("/usr/share")
(string-append out "/share"))))))
(add-after 'install 'install-desktop-file
(lambda* (#:key outputs #:allow-other-keys)
;; Install desktop file.
(let* ((out (assoc-ref outputs "out"))
(apps (string-append out "/share/applications"))
(source "TeXmacs/misc/mime/texmacs.desktop"))
(install-file source apps))))
(add-before 'configure 'gzip-flags
(lambda _
(substitute* "Makefile.in"