gnu: Remove gtksourceview-2.

The variable has no dependents anymore, and we carry three more
recent versions.

* gnu/packages/gtk.scm (gtksourceview-2): Delete variable.

Change-Id: I9258c2d7294c8df347e5bb1daea588f82f8f8d58
This commit is contained in:
Andreas Enge 2025-07-24 15:19:25 +02:00
parent 8225239b57
commit b48383cdeb
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -561,69 +561,6 @@ graph-like environments, e.g. modular synths or finite state machine
diagrams.") diagrams.")
(license license:gpl3+))) (license license:gpl3+)))
(define-public gtksourceview-2
(package
(name "gtksourceview")
(version "2.10.5") ;this is the last version which builds against gtk+2
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnome/sources/" name "/"
(version-major+minor version) "/"
name "-" version ".tar.bz2"))
(sha256
(base32
"07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))
(patches
(search-patches
"gtksourceview-2-add-default-directory.patch"))))
(build-system gnu-build-system)
(native-inputs
(list intltool
`(,glib "bin") ; for glib-genmarshal, etc.
pkg-config
;; For testing.
xorg-server-for-tests
shared-mime-info))
(propagated-inputs
;; As per the pkg-config file.
`(("gtk" ,gtk+-2)
("libxml2" ,libxml2)))
(arguments
(list
;; Fix build with GCC 14.
#:configure-flags #~(list "CFLAGS=-Wno-error=incompatible-pointer-types")
#:phases
;; Unfortunately, some of the tests in "make check" are highly dependent
;; on the environment therefore, some black magic is required.
#~(modify-phases %standard-phases
(add-before 'check 'start-xserver
(lambda* (#:key native-inputs inputs #:allow-other-keys)
;; There must be a running X server and make check doesn't
;; start one. Therefore we must do it.
(system (format #f "~a :1 &"
(search-input-file (or native-inputs inputs)
"bin/Xvfb")))
(setenv "DISPLAY" ":1")
;; The .lang files must be found in
;; $XDG_DATA_HOME/gtksourceview-2.0
(system "ln -s gtksourceview gtksourceview-2.0")
(setenv "XDG_DATA_HOME" (getcwd))
;; Finally, the mimetypes must be available.
(setenv "XDG_DATA_DIRS"
(string-append
#$(this-package-native-input "shared-mime-info")
"/share")))))))
(synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
(description
"GtkSourceView is a portable C library that extends the standard GTK+
framework for multiline text editing with support for configurable syntax
highlighting, unlimited undo/redo, search and replace, a completion framework,
printing and other features typical of a source code editor.")
(license license:lgpl2.0+)
(home-page "https://developer.gnome.org/gtksourceview/")))
(define-public gtksourceview (define-public gtksourceview
(package (package
(name "gtksourceview") (name "gtksourceview")