commit:     c2df401838e2bb3ea4409c9edd054999948890cf
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Wed Jan 20 02:52:12 2021 +0000
Commit:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Wed Jan 20 02:52:12 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=c2df4018

x11-misc/envytools: add dated ebuild + EAPI 7

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 x11-misc/envytools/envytools-0_pre20200928.ebuild | 36 +++++++++++++++++++++++
 x11-misc/envytools/envytools-9999.ebuild          | 30 ++++++++++++-------
 2 files changed, 55 insertions(+), 11 deletions(-)

diff --git a/x11-misc/envytools/envytools-0_pre20200928.ebuild 
b/x11-misc/envytools/envytools-0_pre20200928.ebuild
new file mode 100644
index 000000000..d36148e3e
--- /dev/null
+++ b/x11-misc/envytools/envytools-0_pre20200928.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake git-r3
+
+DESCRIPTION="Tools for people envious of nvidia's blob driver"
+HOMEPAGE="https://envytools.readthedocs.io/en/latest/";
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/envytools/envytools";
+else
+       COMMIT="2d9931313aa14dfdf26f85be2576b181a14ad387"
+       
SRC_URI="https://github.com/envytools/envytools/archive/${COMMIT}.tar.gz -> 
${P}.tar.gz"
+       S="${WORKDIR}"/${PN}-${COMMIT}
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="
+       dev-libs/libxml2
+       x11-libs/libpciaccess
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       virtual/pkgconfig
+       sys-devel/bison
+       sys-devel/flex
+"
+
+DOCS=( README.rst )
+
+PATCHES=( "${FILESDIR}"/${PN}-bison.patch )

diff --git a/x11-misc/envytools/envytools-9999.ebuild 
b/x11-misc/envytools/envytools-9999.ebuild
index d01476085..d36148e3e 100644
--- a/x11-misc/envytools/envytools-9999.ebuild
+++ b/x11-misc/envytools/envytools-9999.ebuild
@@ -1,27 +1,35 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit cmake-utils git-r3
+inherit cmake git-r3
 
 DESCRIPTION="Tools for people envious of nvidia's blob driver"
-HOMEPAGE="https://github.com/pathscale/envytools";
-EGIT_REPO_URI="
-       https://github.com/envytools/envytools.git";
+HOMEPAGE="https://envytools.readthedocs.io/en/latest/";
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/envytools/envytools";
+else
+       COMMIT="2d9931313aa14dfdf26f85be2576b181a14ad387"
+       
SRC_URI="https://github.com/envytools/envytools/archive/${COMMIT}.tar.gz -> 
${P}.tar.gz"
+       S="${WORKDIR}"/${PN}-${COMMIT}
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS=""
-IUSE=""
 
 RDEPEND="
        dev-libs/libxml2
-       x11-libs/libpciaccess"
-DEPEND="${RDEPEND}
+       x11-libs/libpciaccess
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
        virtual/pkgconfig
        sys-devel/bison
-       sys-devel/flex"
+       sys-devel/flex
+"
 
 DOCS=( README.rst )
 

Reply via email to