From 1a5aaf968f9e2759c1906db019d5dba68e7393a0 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Fri, 7 May 2021 18:39:42 +0200 Subject: [PATCH] x11-misc/read-edid: make get-edid VBE mode optional Not compatible with some previously supported arches, moreover according to upstream the new, i2c-based interface "tends to work much better and in many more cases than the old interface". While at it, switch to EAPI 7 and cmake.eclass. Bug: https://bugs.gentoo.org/764026 Signed-off-by: Marek Szuba --- x11-misc/read-edid/metadata.xml | 4 +++ x11-misc/read-edid/read-edid-3.0.2-r1.ebuild | 32 ++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 x11-misc/read-edid/read-edid-3.0.2-r1.ebuild diff --git a/x11-misc/read-edid/metadata.xml b/x11-misc/read-edid/metadata.xml index 3e5026ee3754a..37810b80659d1 100644 --- a/x11-misc/read-edid/metadata.xml +++ b/x11-misc/read-edid/metadata.xml @@ -5,4 +5,8 @@ marecki@gentoo.org Marek Szuba + + Build get-edid with support for legacy, VBE-based interface. + Requires dev-libs/libx86. + diff --git a/x11-misc/read-edid/read-edid-3.0.2-r1.ebuild b/x11-misc/read-edid/read-edid-3.0.2-r1.ebuild new file mode 100644 index 0000000000000..3b48fa3a376b2 --- /dev/null +++ b/x11-misc/read-edid/read-edid-3.0.2-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake flag-o-matic + +DESCRIPTION="Program that can get information from a PnP monitor" +HOMEPAGE="http://www.polypux.org/projects/read-edid/" +SRC_URI="http://www.polypux.org/projects/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="vbe-mode" + +DEPEND="vbe-mode? ( >=dev-libs/libx86-1.1 )" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i -e 's|COPYING||g;s|share/doc/read-edid|share/doc/'"${PF}"'|g' \ + CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + append-cflags -fcommon + local mycmakeargs=( + -DCLASSICBUILD=$(usex vbe-mode) + ) + cmake_src_configure +}