diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-11 19:55:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-11 19:55:43 +0100 |
commit | 185fa19bbf68a4d4dca534d2b46729207a177f16 (patch) | |
tree | a8a537b82fda83a0799c2ca9887f212558363aa7 /x11-misc/read-edid/read-edid-3.0.2-r1.ebuild | |
parent | c8fd0d84af0bfd1949542adc2cbb735b1d28f9ed (diff) |
gentoo resync : 11.05.2021
Diffstat (limited to 'x11-misc/read-edid/read-edid-3.0.2-r1.ebuild')
-rw-r--r-- | x11-misc/read-edid/read-edid-3.0.2-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 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 new file mode 100644 index 000000000000..fd3656658546 --- /dev/null +++ b/x11-misc/read-edid/read-edid-3.0.2-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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/" +SRC_URI="http://www.polypux.org/projects/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +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 + cmake_src_prepare +} + +src_configure() { + append-cflags -fcommon + local mycmakeargs=( + -DCLASSICBUILD=$(usex vbe-mode) + ) + cmake_src_configure +} |