From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:39086) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTN1C-0004MS-4W for guix-patches@gnu.org; Tue, 28 Apr 2020 05:59:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTMwE-00050M-Mq for guix-patches@gnu.org; Tue, 28 Apr 2020 05:58:59 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55735) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTMwE-00050G-AI for guix-patches@gnu.org; Tue, 28 Apr 2020 05:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTMwE-0001h9-8G for guix-patches@gnu.org; Tue, 28 Apr 2020 05:54:02 -0400 Subject: [bug#40902] [PATCH v2] gnu: Add edid-decode. References: <20200427135550.20640-1-brice@waegenei.re> In-Reply-To: <20200427135550.20640-1-brice@waegenei.re> Resent-Message-ID: From: Brice Waegeneire Date: Tue, 28 Apr 2020 11:53:23 +0200 Message-Id: <20200428095323.4116-1-brice@waegenei.re> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40902@debbugs.gnu.org Cc: m.othacehe@gmail.com * gnu/packages/hardware.scm (edid-decode): New variable. --- Fix identation. Add phase 'fix-cross-compilation'. gnu/packages/hardware.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 189c73ee3c..0128832f28 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -89,6 +89,43 @@ calibrated, and restored when the calibration is applied.") (license (list license:bsd-3 ; FindDDCUtil.cmake license:gpl2+)))) ; everything else +(define-public edid-decode + (let ((commit "74b64180d67bb009d8d9ea1b6f18ad41aaa16396") ; 2020-04-22 + (revision "1")) + (package + (name "edid-decode") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (file-name (git-file-name name version)) + (uri (git-reference + (url "git://linuxtv.org/edid-decode.git") + (commit commit))) + (sha256 + (base32 "0nirp5bza08zj5d8bjgcm0p869hdg3qg3mwa7999pjdrzmn7s2ah")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No test suite + #:make-flags + (list (string-append "DESTDIR=" (assoc-ref %outputs "out")) + "bindir=/bin" "mandir=/share/man") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-cross-compilation + (lambda* (#:key native-inputs target #:allow-other-keys) + (when target + (substitute* "Makefile" + (("\\$\\(CXX\\)") + (string-append (assoc-ref native-inputs "gcc") "/bin/g++")))) + #t)) + (delete 'configure)))) + (home-page "https://git.linuxtv.org/edid-decode.git/") + (synopsis "Decode @dfn{EDID} data in human-readable format") + (description "edid-decode decodes @dfn{EDID} monitor description data in +human-readable format and check if it conforms to the standards.") + (license license:expat)))) + ;; Distinct from memtest86, which is obsolete. (define-public memtest86+ (package -- 2.26.0