diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-05-07 19:17:18 +0200 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-05-07 19:18:15 +0200 |
commit | 4f8eaa4aec4ccacfbdd1947d9d4c98ef06080c36 (patch) | |
tree | 4285644fe818aaf754761ee11d2d4cc2d73b17d0 /x11-misc/read-edid | |
parent | dev-cpp/tree: Fix building against GCC 11 (diff) | |
download | gentoo-4f8eaa4aec4ccacfbdd1947d9d4c98ef06080c36.tar.gz gentoo-4f8eaa4aec4ccacfbdd1947d9d4c98ef06080c36.tar.bz2 gentoo-4f8eaa4aec4ccacfbdd1947d9d4c98ef06080c36.zip |
x11-misc/read-edid-3.0.2-r1: check kernel config for i2c-dev support
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'x11-misc/read-edid')
-rw-r--r-- | x11-misc/read-edid/read-edid-3.0.2-r1.ebuild | 13 |
1 files changed, 12 insertions, 1 deletions
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 index 3b48fa3a376b..abd2962bb376 100644 --- a/x11-misc/read-edid/read-edid-3.0.2-r1.ebuild +++ b/x11-misc/read-edid/read-edid-3.0.2-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit cmake flag-o-matic +inherit cmake flag-o-matic linux-info DESCRIPTION="Program that can get information from a PnP monitor" HOMEPAGE="http://www.polypux.org/projects/read-edid/" @@ -17,6 +17,17 @@ IUSE="vbe-mode" DEPEND="vbe-mode? ( >=dev-libs/libx86-1.1 )" RDEPEND="${DEPEND}" +pkg_setup() { + CONFIG_CHECK="~I2C_CHARDEV" + ERROR_I2C_CHARDEV="I2C_CHARDEV support not enabled in the kernel. get-edid will " + if use vbe-mode; then + ERROR_I2C_CHARDEV+="fall back to the legacy, VBE-based interface." + else + ERROR_I2C_CHARDEV+="not work." + fi + linux-info_pkg_setup +} + src_prepare() { sed -i -e 's|COPYING||g;s|share/doc/read-edid|share/doc/'"${PF}"'|g' \ CMakeLists.txt || die |