sys-apps/edid-decode: New package
authorConrad Kostecki <conikost@gentoo.org>
Sat, 7 Dec 2019 15:20:52 +0000 (16:20 +0100)
committerConrad Kostecki <conikost@gentoo.org>
Sat, 7 Dec 2019 15:46:29 +0000 (16:46 +0100)
Decodes EDID monitor description data in human-readable format.

Closes: https://bugs.gentoo.org/669720
Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
sys-apps/edid-decode/Manifest [new file with mode: 0644]
sys-apps/edid-decode/edid-decode-0_pre20191207.ebuild [new file with mode: 0644]
sys-apps/edid-decode/edid-decode-9999.ebuild [new file with mode: 0644]
sys-apps/edid-decode/metadata.xml [new file with mode: 0644]

diff --git a/sys-apps/edid-decode/Manifest b/sys-apps/edid-decode/Manifest
new file mode 100644 (file)
index 0000000..14380c2
--- /dev/null
@@ -0,0 +1 @@
+DIST edid-decode-0_pre20191207.tar.gz 56644 BLAKE2B 85869293a3f47558f0e1c7dc22e482299cfa19ad62bb4801aa03f303a7f4e63f4a8424fdd177fbc9aa510183283322d68b519e8436648d763e7b983e490a39e4 SHA512 bbbf98394409f6bb043e67be0a91b4aa0a596b3f10d5e8b033597fac723b98df3b57e5ecc591a5dcb768eb98cae8390474000fb67ca82cf25d617652bd835ba1
diff --git a/sys-apps/edid-decode/edid-decode-0_pre20191207.ebuild b/sys-apps/edid-decode/edid-decode-0_pre20191207.ebuild
new file mode 100644 (file)
index 0000000..782193f
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+EGIT_COMMIT="46a0691551e44d49a2c3951a7d944786131c97c3"
+MY_P="${PN}-${EGIT_COMMIT}"
+
+DESCRIPTION="Decode EDID data in a human-readable format"
+HOMEPAGE="https://git.linuxtv.org/edid-decode.git/"
+SRC_URI="https://dev.gentoo.org/~conikost/files/${MY_P}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="MIT"
+SLOT="0"
+IUSE="examples"
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+       tc-export CXX
+       default
+}
+
+src_install() {
+       emake DESTDIR="${ED}" install
+       einstalldocs
+
+       if use examples; then
+               insinto /usr/share/edid-decode/examples
+               doins data/*
+       fi
+}
diff --git a/sys-apps/edid-decode/edid-decode-9999.ebuild b/sys-apps/edid-decode/edid-decode-9999.ebuild
new file mode 100644 (file)
index 0000000..8e35fcb
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit git-r3 toolchain-funcs
+
+EGIT_REPO_URI="https://git.linuxtv.org/${PN}.git"
+
+DESCRIPTION="Decode EDID data in a human-readable format"
+HOMEPAGE="https://git.linuxtv.org/edid-decode.git/"
+
+KEYWORDS=""
+LICENSE="MIT"
+SLOT="0"
+IUSE="examples"
+
+src_compile() {
+       tc-export CXX
+       default
+}
+
+src_install() {
+       emake DESTDIR="${ED}" install
+       einstalldocs
+
+       if use examples; then
+               insinto /usr/share/edid-decode/examples
+               doins data/*
+       fi
+}
diff --git a/sys-apps/edid-decode/metadata.xml b/sys-apps/edid-decode/metadata.xml
new file mode 100644 (file)
index 0000000..207a2c8
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>conikost@gentoo.org</email>
+               <name>Conrad Kostecki</name>
+       </maintainer>
+       <longdescription>
+               Decodes EDID monitor description data in human-readable format.
+               If invoked with no arguments it reads from standard input and writes to standard output.
+               With one argument, the file named by the argument is read instead.
+               With two arguments, normal output is suppressed, and the binary EDID blob is
+               written to the file named by the second argument.
+       </longdescription>
+</pkgmetadata>