gnu: gnome-tweak-tool: Update to 3.28.1.

Fixes <https://bugs.gnu.org/35597>.

* gnu/packages/gnome.scm (gnome-tweak-tool): Deprecate and rename...
(gnome-tweaks): ...to this.  Update to 3.28.1.
[build-system]: Use meson-build-system.
[arguments]: Adjust configure flags; pass glib-or-gtk? flag; remove custom
phases that are now provided by the meson-build-system; add phases "wrap" and
"wrap-gi-typelib".
[native-inputs]: Remove meson-for-build and ninja.
[home-page]: Update.
[description]: Use "Tweaks" instead of "Tweak Tool".
* gnu/packages/patches/gnome-tweak-tool-search-paths.patch: Rename file...
* gnu/packages/patches/gnome-tweaks-search-paths.patch: ...to this.
* gnu/local.mk (dist_patch_DATA): Update patch file name.
This commit is contained in:
Ricardo Wurmus 2018-12-06 12:22:34 +01:00
parent 496b024fde
commit d13f3a033e
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
3 changed files with 33 additions and 39 deletions

View File

@ -862,7 +862,7 @@ dist_patch_DATA = \
%D%/packages/patches/gmp-arm-asm-nothumb.patch \ %D%/packages/patches/gmp-arm-asm-nothumb.patch \
%D%/packages/patches/gmp-faulty-test.patch \ %D%/packages/patches/gmp-faulty-test.patch \
%D%/packages/patches/gnome-shell-theme.patch \ %D%/packages/patches/gnome-shell-theme.patch \
%D%/packages/patches/gnome-tweak-tool-search-paths.patch \ %D%/packages/patches/gnome-tweaks-search-paths.patch \
%D%/packages/patches/gnucash-fix-test-transaction-failure.patch \ %D%/packages/patches/gnucash-fix-test-transaction-failure.patch \
%D%/packages/patches/gnutls-skip-trust-store-test.patch \ %D%/packages/patches/gnutls-skip-trust-store-test.patch \
%D%/packages/patches/gobject-introspection-absolute-shlib-path.patch \ %D%/packages/patches/gobject-introspection-absolute-shlib-path.patch \

View File

@ -6777,51 +6777,41 @@ fit the GNOME desktop.")
existing databases over the internet.") existing databases over the internet.")
(license license:gpl3+))) (license license:gpl3+)))
(define-public gnome-tweak-tool (define-public gnome-tweaks
(package (package
(name "gnome-tweak-tool") (name "gnome-tweaks")
(version "3.26.4") (version "3.28.1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://gnome/sources/gnome-tweak-tool/" (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
(version-major+minor version) "/" (version-major+minor version) "/"
"gnome-tweak-tool-" version ".tar.xz")) "gnome-tweaks-" version ".tar.xz"))
(patches (list (patches
(search-patch "gnome-tweak-tool-search-paths.patch"))) (list (search-patch "gnome-tweaks-search-paths.patch")))
(sha256 (sha256
(base32 (base32
"1pq5a0kzh1sz7s7ax5c7p6212k9d51nk5bfvjfyqn99cs928187x")))) "1p5xydr0haz4389h6dvvbna6i1mipdzvmlfksnv0jqfvfs9sy6fp"))))
(build-system glib-or-gtk-build-system) (build-system meson-build-system)
(arguments (arguments
`(#:configure-flags '("--localstatedir=/tmp" `(#:glib-or-gtk? #t
"--sysconfdir=/tmp") #:configure-flags '("-Dlocalstatedir=/tmp"
"-Dsysconfdir=/tmp")
#:imported-modules ((guix build python-build-system) #:imported-modules ((guix build python-build-system)
,@%glib-or-gtk-build-system-modules) ,@%meson-build-system-modules)
#:phases (modify-phases %standard-phases #:phases
(delete 'configure) (modify-phases %standard-phases
(replace 'build (add-after 'install 'wrap
(lambda* (#:key outputs #:allow-other-keys) (@@ (guix build python-build-system) wrap))
(invoke "meson" "build" (add-after 'wrap 'wrap-gi-typelib
"--prefix" (assoc-ref outputs "out")))) (lambda* (#:key inputs outputs #:allow-other-keys)
(replace 'check
(lambda _ (invoke "ninja" "-C" "build" "test")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(invoke "ninja" "-C" "build" "install")))
(add-after 'install 'wrap-program
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")) (let ((out (assoc-ref outputs "out"))
(gi-typelib-path (getenv "GI_TYPELIB_PATH"))) (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
(wrap-program (string-append out "/bin/gnome-tweak-tool") (wrap-program (string-append out "/bin/gnome-tweaks")
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))) `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
#t)) #t)))))
(add-after 'install 'wrap
(@@ (guix build python-build-system) wrap)))))
(native-inputs (native-inputs
`(("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache `(("gtk+:bin" ,gtk+ "bin") ; For gtk-update-icon-cache
("intltool" ,intltool) ("intltool" ,intltool)
("meson" ,meson-for-build)
("ninja" ,ninja)
("pkg-config" ,pkg-config))) ("pkg-config" ,pkg-config)))
(inputs (inputs
`(("gnome-desktop" ,gnome-desktop) `(("gnome-desktop" ,gnome-desktop)
@ -6834,14 +6824,18 @@ existing databases over the internet.")
("python" ,python) ("python" ,python)
("python-pygobject" ,python-pygobject))) ("python-pygobject" ,python-pygobject)))
(synopsis "Customize advanced GNOME 3 options") (synopsis "Customize advanced GNOME 3 options")
(home-page "https://wiki.gnome.org/action/show/Apps/GnomeTweakTool") (home-page "https://wiki.gnome.org/Apps/Tweaks")
(description (description
"GNOME Tweak Tool allows adjusting advanced configuration settings in "GNOME Tweaks allows adjusting advanced configuration settings in
GNOME 3. This includes things like the fonts used in user interface elements, GNOME 3. This includes things like the fonts used in user interface elements,
alternative user interface themes, changes in window management behavior, alternative user interface themes, changes in window management behavior,
GNOME Shell appearance and extension, etc.") GNOME Shell appearance and extension, etc.")
(license license:gpl3+))) (license license:gpl3+)))
;; This package has been renamed by upstream.
(define-public gnome-tweak-tool
(deprecated-package "gnome-tweak-tool" gnome-tweaks))
(define-public gnome-shell-extensions (define-public gnome-shell-extensions
(package (package
(name "gnome-shell-extensions") (name "gnome-shell-extensions")

View File

@ -1,4 +1,4 @@
Gnome-tweak-tool does not look at GSETTINGS_SCHEMA_PATH or XDG_DATA_DIRS, it Gnome-tweaks does not look at GSETTINGS_SCHEMA_PATH or XDG_DATA_DIRS, it
assumes that schemas are installed in one global directory assumes that schemas are installed in one global directory
(GSETTINGS_SCHEMA_DIR/gsettingsschemadir). (GSETTINGS_SCHEMA_DIR/gsettingsschemadir).
@ -8,7 +8,7 @@ packages pick-up files using XDG_DATA_DIRS.
Upstream ticket: https://bugzilla.gnome.org/show_bug.cgi?id=764537 Upstream ticket: https://bugzilla.gnome.org/show_bug.cgi?id=764537
janneke@gnu.org janneke@gnu.org
--- gnome-tweak-tool-3.18.1.orig/gtweak/gsettings.py 2015-04-08 15:21:32.000000000 +0200 --- gnome-tweak-3.18.1.orig/gtweak/gsettings.py 2015-04-08 15:21:32.000000000 +0200
+++ gnome-tweak-tool-3.18.1/gtweak/gsettings.py 2016-04-03 11:26:38.658482704 +0200 +++ gnome-tweak-tool-3.18.1/gtweak/gsettings.py 2016-04-03 11:26:38.658482704 +0200
@@ -16,7 +16,8 @@ @@ -16,7 +16,8 @@
# along with gnome-tweak-tool. If not, see <http://www.gnu.org/licenses/>. # along with gnome-tweak-tool. If not, see <http://www.gnu.org/licenses/>.