1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: texmacs: Update to 2.1.5.

* gnu/packages/text-editors.scm (texmacs): Update to 2.1.5.
[inputs]: Add gnutls.
[patches]: Remove texmacs-wayland-hidpi.patch.
* gnu/packages/patches/texmacs-wayland-hidpi.patch: Remove the file.
* gnu/local.mk (dist_patch_DATA): … and deregister it.

Change-Id: I626e35e91c9977374d24809f1b58c3a35576cdca
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Andy Tai
2026-03-17 22:25:54 -07:00
committed by Andreas Enge
parent 96ff81f347
commit 3508b209ce
3 changed files with 4 additions and 27 deletions

View File

@@ -2484,7 +2484,6 @@ dist_patch_DATA = \
%D%/packages/patches/tensile-copy-if-not-exist.patch \
%D%/packages/patches/texi2html-document-encoding.patch \
%D%/packages/patches/texi2html-i18n.patch \
%D%/packages/patches/texmacs-wayland-hidpi.patch \
%D%/packages/patches/tflite-micro_disable_download.patch \
%D%/packages/patches/thefuck-test-environ.patch \
%D%/packages/patches/thefuck-remove-broken-tests.patch \

View File

@@ -1,22 +0,0 @@
Author: Danny Milosavljevic <dannym@friendly-machines.com>
Date: 2024-12-11 18:30:00 CET 2024
License: gpl3+
diff -ru orig/qsbrdssq407hsajf74z60vp3rhgafjsl-mogan-1.1.1-checkout/src/Texmacs/Texmacs/texmacs.cpp qsbrdssq407hsajf74z60vp3rhgafjsl-mogan-1.1.1-checkout/src/Texmacs/Texmacs/texmacs.cpp
--- orig/qsbrdssq407hsajf74z60vp3rhgafjsl-mogan-1.1.1-checkout/src/Texmacs/Texmacs/texmacs.cpp 2024-05-10 01:51:55.312256939 +0200
+++ qsbrdssq407hsajf74z60vp3rhgafjsl-mogan-1.1.1-checkout/src/Texmacs/Texmacs/texmacs.cpp 2024-05-10 01:52:43.659909394 +0200
@@ -685,8 +685,12 @@
#ifndef OS_MINGW
set_env ("LC_NUMERIC", "POSIX");
#ifndef OS_MACOS
- set_env ("QT_QPA_PLATFORM", "xcb");
- set_env ("XDG_SESSION_TYPE", "x11");
+ if (get_env ("XDG_SESSION_TYPE") == "wayland") {
+ set_env ("QT_QPA_PLATFORM", "wayland"); QGuiApplication::setAttribute(Qt::AA_DisableHighDpiScaling); QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
+ } else {
+ set_env ("QT_QPA_PLATFORM", "xcb");
+ set_env ("XDG_SESSION_TYPE", "x11");
+ }
#endif
#endif
#ifdef MACOSX_EXTENSIONS

View File

@@ -133,6 +133,7 @@
#:use-module (gnu packages sqlite)
#:use-module (gnu packages terminals)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages tls)
#:use-module (gnu packages version-control)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg))
@@ -1291,21 +1292,20 @@ interface with CI pipeline UIs.")
(define-public texmacs
(package
(name "texmacs")
(version "2.1.4")
(version "2.1.5")
(source
(origin
(method url-fetch)
(uri (string-append "https://www.texmacs.org/Download/ftp/tmftp/"
"source/TeXmacs-" version "-src.tar.gz"))
(sha256
(base32 "11l1q5lmsj9g7yil1dn7n1cgsr8iikx59kg9riahpb6xw0p959l7"))
(patches
(search-patches "texmacs-wayland-hidpi.patch"))))
(base32 "0q3k0asf31mm2jl7fi7244sk6c9lprf434cj4c5h2ycfpayjg8dk"))))
(build-system qt-build-system)
(native-inputs
(list pkg-config xdg-utils)) ;for xdg-icon-resource
(inputs
(list freetype
gnutls
guile-1.8
libjpeg-turbo
libxcrypt