| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 3.0.2-r2 | 8 | amd64 ~loong ppc ~riscv ~sparc x86 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake linux-info
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 ~loong ppc ~riscv ~sparc x86"
IUSE="vbe-mode"
DEPEND="vbe-mode? ( >=dev-libs/libx86-1.1 )"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}-fcommon.patch" # bug 706878
"${FILESDIR}/${P}-cmake4.patch" # bug 957514
)
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
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DCLASSICBUILD=$(usex vbe-mode)
)
cmake_src_configure
}
vbe-mode? ( >=dev-libs/libx86-1.1 )
vbe-mode? ( >=dev-libs/libx86-1.1 )