diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-08-31 10:20:19 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-09-02 09:17:49 +0900 |
| commit | 5c217ab1361758851ac89bc523015fcd965c0a83 (patch) | |
| tree | 48f9ce7cd510d98bea56a1b8a1889e20388a136a /gnu/packages | |
| parent | abbd7868a0982361179e9a6f6860a877edcd7a54 (diff) | |
gnu: cambalache: Relocate to (gnu packages gnome-xyz).
* gnu/packages/gnome.scm (cambalache): Add deprecated symbol here, and
relocate to...
* gnu/packages/gnome-xyz.scm (cambalache): ... here.
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/gnome-xyz.scm | 116 | ||||
| -rw-r--r-- | gnu/packages/gnome.scm | 115 |
2 files changed, 118 insertions, 113 deletions
diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index 04fba318657..0f9f85a36a5 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2019, 2020, 2021 Liliana Marie Prikler <liliana.prikler@gmail.com> | 2 | ;;; Copyright © 2019-2022 Liliana Marie Prikler <liliana.prikler@gmail.com> |
| 3 | ;;; Copyright © 2019, 2021 Alexandros Theodotou <alex@zrythm.org> | 3 | ;;; Copyright © 2019, 2021 Alexandros Theodotou <alex@zrythm.org> |
| 4 | ;;; Copyright © 2019, 2026 Giacomo Leidi <therewasa@fishinthecalculator.me> | 4 | ;;; Copyright © 2019, 2026 Giacomo Leidi <therewasa@fishinthecalculator.me> |
| 5 | ;;; Copyright © 2020 Alex Griffin <a@ajgrf.com> | 5 | ;;; Copyright © 2020 Alex Griffin <a@ajgrf.com> |
| @@ -93,6 +93,7 @@ | |||
| 93 | #:use-module (gnu packages tls) | 93 | #:use-module (gnu packages tls) |
| 94 | #:use-module (gnu packages ruby-xyz) | 94 | #:use-module (gnu packages ruby-xyz) |
| 95 | #:use-module (gnu packages web) | 95 | #:use-module (gnu packages web) |
| 96 | #:use-module (gnu packages webkit) | ||
| 96 | #:use-module (gnu packages xml) | 97 | #:use-module (gnu packages xml) |
| 97 | #:use-module (gnu packages xorg)) | 98 | #:use-module (gnu packages xorg)) |
| 98 | 99 | ||
| @@ -217,6 +218,119 @@ Moka") | |||
| 217 | (license (list license:lgpl3+ | 218 | (license (list license:lgpl3+ |
| 218 | license:cc-by-sa4.0)))) | 219 | license:cc-by-sa4.0)))) |
| 219 | 220 | ||
| 221 | (define-public cambalache | ||
| 222 | (package | ||
| 223 | (name "cambalache") | ||
| 224 | (version "0.12.1") | ||
| 225 | (source (origin | ||
| 226 | (method git-fetch) | ||
| 227 | (uri (git-reference | ||
| 228 | (url "https://gitlab.gnome.org/jpu/cambalache") | ||
| 229 | (commit version))) | ||
| 230 | (file-name (git-file-name name version)) | ||
| 231 | (sha256 | ||
| 232 | (base32 "1da8d5msk4ivmk5inaq8w0m78dsp7crarr9jmybag1c8qmqsjq4h")))) | ||
| 233 | (build-system meson-build-system) | ||
| 234 | (arguments | ||
| 235 | (list | ||
| 236 | #:glib-or-gtk? #t | ||
| 237 | #:imported-modules (append %meson-build-system-modules | ||
| 238 | %pyproject-build-system-modules) | ||
| 239 | #:modules '((guix build meson-build-system) | ||
| 240 | ((guix build pyproject-build-system) #:prefix py:) | ||
| 241 | (guix build utils)) | ||
| 242 | #:tests? #f ; XXX: tests spawn a socket... | ||
| 243 | #:phases | ||
| 244 | #~(modify-phases %standard-phases | ||
| 245 | (add-after 'unpack 'patch-source | ||
| 246 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 247 | (substitute* "cambalache/cmb_view.py" | ||
| 248 | (("GLib\\.find_program_in_path\\('(.*)'\\)" all cmd) | ||
| 249 | (format #f "~s" (search-input-file | ||
| 250 | inputs (string-append "bin/" cmd))))))) | ||
| 251 | (add-after 'unpack 'patch-build | ||
| 252 | (lambda _ | ||
| 253 | (substitute* "meson.build" | ||
| 254 | (("find_program\\('gtk-update-icon-cache'.*\\)") "") | ||
| 255 | (("find_program\\('update-desktop-database'.*\\)") "")) | ||
| 256 | (substitute* "postinstall.py" | ||
| 257 | (("gtk-update-icon-cache") "true") | ||
| 258 | (("update-desktop-database") "true")))) | ||
| 259 | (add-after 'unpack 'fake-cc | ||
| 260 | (lambda _ | ||
| 261 | (substitute* "tools/cmb_init_dev.py" | ||
| 262 | (("\"cc") (string-append "\"" #$(cc-for-target)))))) | ||
| 263 | (add-after 'install 'python-wrap | ||
| 264 | (assoc-ref py:%standard-phases 'wrap)) | ||
| 265 | (delete 'check) | ||
| 266 | (add-after 'install 'add-install-to-pythonpath | ||
| 267 | (assoc-ref py:%standard-phases 'add-install-to-pythonpath)) | ||
| 268 | (add-after 'add-install-to-pythonpath 'pre-check | ||
| 269 | (lambda _ | ||
| 270 | (system "Xvfb :1 &") | ||
| 271 | (setenv "DISPLAY" ":1"))) | ||
| 272 | (add-after 'pre-check 'check | ||
| 273 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 274 | (when tests? | ||
| 275 | (with-directory-excursion ".." | ||
| 276 | (invoke "python3" "-m" "pytest"))))) | ||
| 277 | (add-after 'glib-or-gtk-wrap 'wrap-typelib | ||
| 278 | (lambda _ | ||
| 279 | (for-each | ||
| 280 | (lambda (prog) | ||
| 281 | (unless (wrapped-program? prog) | ||
| 282 | (wrap-program prog | ||
| 283 | `("GI_TYPELIB_PATH" suffix | ||
| 284 | (,(string-append #$output "/lib/girepository-1.0") | ||
| 285 | ,(getenv "GI_TYPELIB_PATH"))) | ||
| 286 | ;; icons and schemas | ||
| 287 | `("XDG_DATA_DIRS" suffix | ||
| 288 | #$(map | ||
| 289 | (lambda (input) | ||
| 290 | (file-append (this-package-input input) "/share")) | ||
| 291 | '("adwaita-icon-theme" "hicolor-icon-theme" | ||
| 292 | "gsettings-desktop-schemas"))) | ||
| 293 | ;; Wrapping GDK_PIXBUF_MODULE_FILE allows Cambalache to | ||
| 294 | ;; load its own icons in pure environments. | ||
| 295 | `("GDK_PIXBUF_MODULE_FILE" = | ||
| 296 | (,(getenv "GDK_PIXBUF_MODULE_FILE")))))) | ||
| 297 | (find-files (string-append #$output "/bin")))))))) | ||
| 298 | (inputs | ||
| 299 | (list bash-minimal | ||
| 300 | ;; XXX: this-package-input does not find the adwaita-icon-theme | ||
| 301 | ;; propagated hicolor-icon-theme input, so is listed here | ||
| 302 | ;; explicitly. | ||
| 303 | adwaita-icon-theme hicolor-icon-theme | ||
| 304 | gsettings-desktop-schemas | ||
| 305 | gtk | ||
| 306 | gtksourceview-4 | ||
| 307 | `(,gtk+ "bin") ; broadwayd | ||
| 308 | `(,gtk "bin") | ||
| 309 | libadwaita | ||
| 310 | libhandy | ||
| 311 | (librsvg-for-system) | ||
| 312 | python | ||
| 313 | python-pycairo | ||
| 314 | python-pygobject | ||
| 315 | python-lxml | ||
| 316 | webkitgtk-for-gtk3 | ||
| 317 | webkitgtk)) | ||
| 318 | (native-inputs | ||
| 319 | (list `(,glib "bin") | ||
| 320 | gobject-introspection | ||
| 321 | gettext-minimal | ||
| 322 | pkg-config | ||
| 323 | python-pytest | ||
| 324 | weston | ||
| 325 | xorg-server-for-tests)) | ||
| 326 | (home-page "https://gitlab.gnome.org/jpu/cambalache") | ||
| 327 | (synopsis "Rapid application development tool") | ||
| 328 | (description "Cambalache is a @acronym{RAD, rapid application development} | ||
| 329 | tool for Gtk 4 and 3 with a clear @acronym{MVC, model-view-controller} design | ||
| 330 | and data model first philosophy.") | ||
| 331 | (license (list license:lgpl2.1 | ||
| 332 | license:gpl2)))) ; tools | ||
| 333 | |||
| 220 | (define-public moka-icon-theme | 334 | (define-public moka-icon-theme |
| 221 | (package | 335 | (package |
| 222 | (inherit faba-icon-theme) | 336 | (inherit faba-icon-theme) |
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 2bcbcad099d..76ace03f3ca 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm | |||
| @@ -3463,118 +3463,9 @@ compiles to GTKBuilder XML.") | |||
| 3463 | #~(modify-phases #$phases | 3463 | #~(modify-phases #$phases |
| 3464 | (delete 'fix-tests))))))) | 3464 | (delete 'fix-tests))))))) |
| 3465 | 3465 | ||
| 3466 | (define-public cambalache | 3466 | ;;; TODO: Remove when 2027/03 comes. |
| 3467 | (package | 3467 | (define-deprecated/public-alias cambalache |
| 3468 | (name "cambalache") | 3468 | (@ (gnu packages gnome-xyz) cambalache)) |
| 3469 | (version "0.12.1") | ||
| 3470 | (source (origin | ||
| 3471 | (method git-fetch) | ||
| 3472 | (uri (git-reference | ||
| 3473 | (url "https://gitlab.gnome.org/jpu/cambalache") | ||
| 3474 | (commit version))) | ||
| 3475 | (file-name (git-file-name name version)) | ||
| 3476 | (sha256 | ||
| 3477 | (base32 "1da8d5msk4ivmk5inaq8w0m78dsp7crarr9jmybag1c8qmqsjq4h")))) | ||
| 3478 | (build-system meson-build-system) | ||
| 3479 | (arguments | ||
| 3480 | (list | ||
| 3481 | #:glib-or-gtk? #t | ||
| 3482 | #:imported-modules (append %meson-build-system-modules | ||
| 3483 | %pyproject-build-system-modules) | ||
| 3484 | #:modules '((guix build meson-build-system) | ||
| 3485 | ((guix build pyproject-build-system) #:prefix py:) | ||
| 3486 | (guix build utils)) | ||
| 3487 | #:tests? #f ; XXX: tests spawn a socket... | ||
| 3488 | #:phases | ||
| 3489 | #~(modify-phases %standard-phases | ||
| 3490 | (add-after 'unpack 'patch-source | ||
| 3491 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 3492 | (substitute* "cambalache/cmb_view.py" | ||
| 3493 | (("GLib\\.find_program_in_path\\('(.*)'\\)" all cmd) | ||
| 3494 | (format #f "~s" (search-input-file | ||
| 3495 | inputs (string-append "bin/" cmd))))))) | ||
| 3496 | (add-after 'unpack 'patch-build | ||
| 3497 | (lambda _ | ||
| 3498 | (substitute* "meson.build" | ||
| 3499 | (("find_program\\('gtk-update-icon-cache'.*\\)") "") | ||
| 3500 | (("find_program\\('update-desktop-database'.*\\)") "")) | ||
| 3501 | (substitute* "postinstall.py" | ||
| 3502 | (("gtk-update-icon-cache") "true") | ||
| 3503 | (("update-desktop-database") "true")))) | ||
| 3504 | (add-after 'unpack 'fake-cc | ||
| 3505 | (lambda _ | ||
| 3506 | (substitute* "tools/cmb_init_dev.py" | ||
| 3507 | (("\"cc") (string-append "\"" #$(cc-for-target)))))) | ||
| 3508 | (add-after 'install 'python-wrap | ||
| 3509 | (assoc-ref py:%standard-phases 'wrap)) | ||
| 3510 | (delete 'check) | ||
| 3511 | (add-after 'install 'add-install-to-pythonpath | ||
| 3512 | (assoc-ref py:%standard-phases 'add-install-to-pythonpath)) | ||
| 3513 | (add-after 'add-install-to-pythonpath 'pre-check | ||
| 3514 | (lambda _ | ||
| 3515 | (system "Xvfb :1 &") | ||
| 3516 | (setenv "DISPLAY" ":1"))) | ||
| 3517 | (add-after 'pre-check 'check | ||
| 3518 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 3519 | (when tests? | ||
| 3520 | (with-directory-excursion ".." | ||
| 3521 | (invoke "python3" "-m" "pytest"))))) | ||
| 3522 | (add-after 'glib-or-gtk-wrap 'wrap-typelib | ||
| 3523 | (lambda _ | ||
| 3524 | (for-each | ||
| 3525 | (lambda (prog) | ||
| 3526 | (unless (wrapped-program? prog) | ||
| 3527 | (wrap-program prog | ||
| 3528 | `("GI_TYPELIB_PATH" suffix | ||
| 3529 | (,(string-append #$output "/lib/girepository-1.0") | ||
| 3530 | ,(getenv "GI_TYPELIB_PATH"))) | ||
| 3531 | ;; icons and schemas | ||
| 3532 | `("XDG_DATA_DIRS" suffix | ||
| 3533 | #$(map | ||
| 3534 | (lambda (input) | ||
| 3535 | (file-append (this-package-input input) "/share")) | ||
| 3536 | '("adwaita-icon-theme" "hicolor-icon-theme" | ||
| 3537 | "gsettings-desktop-schemas"))) | ||
| 3538 | ;; Wrapping GDK_PIXBUF_MODULE_FILE allows Cambalache to | ||
| 3539 | ;; load its own icons in pure environments. | ||
| 3540 | `("GDK_PIXBUF_MODULE_FILE" = | ||
| 3541 | (,(getenv "GDK_PIXBUF_MODULE_FILE")))))) | ||
| 3542 | (find-files (string-append #$output "/bin")))))))) | ||
| 3543 | (inputs | ||
| 3544 | (list bash-minimal | ||
| 3545 | ;; XXX: this-package-input does not find the adwaita-icon-theme | ||
| 3546 | ;; propagated hicolor-icon-theme input, so is listed here | ||
| 3547 | ;; explicitly. | ||
| 3548 | adwaita-icon-theme hicolor-icon-theme | ||
| 3549 | gsettings-desktop-schemas | ||
| 3550 | gtk | ||
| 3551 | gtksourceview-4 | ||
| 3552 | `(,gtk+ "bin") ; broadwayd | ||
| 3553 | `(,gtk "bin") | ||
| 3554 | libadwaita | ||
| 3555 | libhandy | ||
| 3556 | (librsvg-for-system) | ||
| 3557 | python | ||
| 3558 | python-pycairo | ||
| 3559 | python-pygobject | ||
| 3560 | python-lxml | ||
| 3561 | webkitgtk-for-gtk3 | ||
| 3562 | webkitgtk)) | ||
| 3563 | (native-inputs | ||
| 3564 | (list `(,glib "bin") | ||
| 3565 | gobject-introspection | ||
| 3566 | gettext-minimal | ||
| 3567 | pkg-config | ||
| 3568 | python-pytest | ||
| 3569 | weston | ||
| 3570 | xorg-server-for-tests)) | ||
| 3571 | (home-page "https://gitlab.gnome.org/jpu/cambalache") | ||
| 3572 | (synopsis "Rapid application development tool") | ||
| 3573 | (description "Cambalache is a @acronym{RAD, rapid application development} | ||
| 3574 | tool for Gtk 4 and 3 with a clear @acronym{MVC, model-view-controller} design | ||
| 3575 | and data model first philosophy.") | ||
| 3576 | (license (list license:lgpl2.1 | ||
| 3577 | license:gpl2)))) ; tools | ||
| 3578 | 3469 | ||
| 3579 | (define-public libcroco | 3470 | (define-public libcroco |
| 3580 | (package | 3471 | (package |
