Package: guix-patches;
Reported by: Vivien Kraus <vivien <at> planete-kraus.eu>
Date: Fri, 15 Sep 2023 18:23:01 UTC
Severity: normal
Tags: patch
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Bug is archived. No further changes may be made.
Message #11 received at 66008 <at> debbugs.gnu.org (full text, mbox):
From: Vivien Kraus <vivien <at> planete-kraus.eu> To: 66008 <at> debbugs.gnu.org Subject: [PATCH gnome-team 2/4] gnu: editorconfig-core-c: Move to (gnu packages gnome). Date: Fri, 15 Sep 2023 19:36:22 +0200
* gnu/packages/gnome.scm (editorconfig-core-c): New variable. * gnu/packages/text-editors.scm: Export editorconfig-core-c from (gnu packages gnome). --- gnu/packages/gnome.scm | 51 +++++++++++++++++++++++++++++++++ gnu/packages/text-editors.scm | 53 ++--------------------------------- 2 files changed, 54 insertions(+), 50 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index ea47d31f90..8535ad784e 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -5468,6 +5468,57 @@ (define-public gnome-terminal keyboard shortcuts.") (license license:gpl3+))) +(define-public editorconfig-core-c + (package + (name "editorconfig-core-c") + (version "0.12.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/editorconfig/editorconfig-core-c") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "073sh18y0v8wm10iphaia54pkdmwylalccpn1k5i9dwyfjzgj7yg")))) + (build-system cmake-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'insert-tests + (lambda* (#:key inputs #:allow-other-keys) + (let ((tests (assoc-ref inputs "tests"))) + (copy-recursively tests "tests")) + #t)) + (add-after 'install 'delete-static-library + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib"))) + (with-directory-excursion lib + (delete-file "libeditorconfig_static.a")) + #t)))))) + (native-inputs + `(("tests" + ,(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/editorconfig/editorconfig-core-test") + ;; The tests submodule commit matching this package's version. + (commit "48610d43b7455af12195473377f93c4ceea654f5"))) + (file-name (git-file-name "editorconfig-core-test" version)) + (sha256 + (base32 "1s29p4brmcsc3xsww3gk85dg45f1kk3iykh1air3ij0hymf5dyqy")))))) + (inputs + (list pcre2)) + (home-page "https://editorconfig.org/") + (synopsis "EditorConfig core library written in C") + (description "EditorConfig makes it easy to maintain the correct coding +style when switching between different text editors and between different +projects. The EditorConfig project maintains a file format and plugins for +various text editors which allow this file format to be read and used by those +editors.") + (license license:bsd-2))) + (define-public gnome-text-editor (package (name "gnome-text-editor") diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index 44c5754d6d..eae8b6efa5 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -823,56 +823,9 @@ (define-public manuskript in plain text file format.") (license license:gpl3+))) -(define-public editorconfig-core-c - (package - (name "editorconfig-core-c") - (version "0.12.5") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/editorconfig/editorconfig-core-c") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "073sh18y0v8wm10iphaia54pkdmwylalccpn1k5i9dwyfjzgj7yg")))) - (build-system cmake-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'insert-tests - (lambda* (#:key inputs #:allow-other-keys) - (let ((tests (assoc-ref inputs "tests"))) - (copy-recursively tests "tests")) - #t)) - (add-after 'install 'delete-static-library - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (lib (string-append out "/lib"))) - (with-directory-excursion lib - (delete-file "libeditorconfig_static.a")) - #t)))))) - (native-inputs - `(("tests" - ,(origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/editorconfig/editorconfig-core-test") - ;; The tests submodule commit matching this package's version. - (commit "48610d43b7455af12195473377f93c4ceea654f5"))) - (file-name (git-file-name "editorconfig-core-test" version)) - (sha256 - (base32 "1s29p4brmcsc3xsww3gk85dg45f1kk3iykh1air3ij0hymf5dyqy")))))) - (inputs - (list pcre2)) - (home-page "https://editorconfig.org/") - (synopsis "EditorConfig core library written in C") - (description "EditorConfig makes it easy to maintain the correct coding -style when switching between different text editors and between different -projects. The EditorConfig project maintains a file format and plugins for -various text editors which allow this file format to be read and used by those -editors.") - (license license:bsd-2))) +;; editorconfig-core-c has been moved to (gnu packages gnome) to avoid a +;; module circular dependency. +(export editorconfig-core-c) (define-public texmacs (package -- 2.41.0
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.