mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
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 <marecki@gentoo.org>
This commit is contained in:
@@ -5,4 +5,8 @@
|
||||
<email>marecki@gentoo.org</email>
|
||||
<name>Marek Szuba</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="vbe-mode">Build get-edid with support for legacy, VBE-based interface.
|
||||
Requires <pkg>dev-libs/libx86</pkg>.</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user