commit:     3b9c369f23d6a6c124c64d7e78ccbd2ad7052da9
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Jan 18 10:20:08 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Jan 18 10:27:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3b9c369f

app-misc/neo: fix NonexistentDeps

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 app-misc/neo/neo-0.6.1.ebuild | 22 ++++++++++++----------
 app-misc/neo/neo-9999.ebuild  | 22 ++++++++++++----------
 2 files changed, 24 insertions(+), 20 deletions(-)

diff --git a/app-misc/neo/neo-0.6.1.ebuild b/app-misc/neo/neo-0.6.1.ebuild
index d81e8c60c9..b6aef0eb60 100644
--- a/app-misc/neo/neo-0.6.1.ebuild
+++ b/app-misc/neo/neo-0.6.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -6,26 +6,28 @@ EAPI=8
 DESCRIPTION="cmatrix clone with 32-bit color and Unicode support"
 HOMEPAGE="https://github.com/st3w/neo";
 
-if [ "$PV" = 9999 ]; then
+if [[ ${PV} == *9999* ]]; then
        inherit autotools git-r3
-       EGIT_REPO_URI="https://github.com/st3w/neo/";
+       EGIT_REPO_URI="https://github.com/st3w/neo.git";
+       BDEPEND="
+               dev-build/autoconf-archive
+               dev-build/automake
+       "
 else
-       
SRC_URI="https://github.com/st3w/neo/releases/download/v${PV}/${P}.tar.gz";
+       
SRC_URI="https://github.com/st3w/${PN}/releases/download/v${PV}/${P}.tar.gz";
        KEYWORDS="~amd64"
 fi
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE=""
 
 DEPEND="sys-libs/ncurses"
 RDEPEND="${DEPEND}"
-[ "$PV" = 9999 ] && BDEPEND="
-       dev-build/automake
-       dev-build/automake-archive
-"
 
 src_prepare() {
        default
-       [ -f ./configure ] || eautoreconf || die 'autoreconf failed'
+
+       if [[ ! -x configure ]]; then
+               eautoreconf
+       fi
 }

diff --git a/app-misc/neo/neo-9999.ebuild b/app-misc/neo/neo-9999.ebuild
index d81e8c60c9..b6aef0eb60 100644
--- a/app-misc/neo/neo-9999.ebuild
+++ b/app-misc/neo/neo-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -6,26 +6,28 @@ EAPI=8
 DESCRIPTION="cmatrix clone with 32-bit color and Unicode support"
 HOMEPAGE="https://github.com/st3w/neo";
 
-if [ "$PV" = 9999 ]; then
+if [[ ${PV} == *9999* ]]; then
        inherit autotools git-r3
-       EGIT_REPO_URI="https://github.com/st3w/neo/";
+       EGIT_REPO_URI="https://github.com/st3w/neo.git";
+       BDEPEND="
+               dev-build/autoconf-archive
+               dev-build/automake
+       "
 else
-       
SRC_URI="https://github.com/st3w/neo/releases/download/v${PV}/${P}.tar.gz";
+       
SRC_URI="https://github.com/st3w/${PN}/releases/download/v${PV}/${P}.tar.gz";
        KEYWORDS="~amd64"
 fi
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE=""
 
 DEPEND="sys-libs/ncurses"
 RDEPEND="${DEPEND}"
-[ "$PV" = 9999 ] && BDEPEND="
-       dev-build/automake
-       dev-build/automake-archive
-"
 
 src_prepare() {
        default
-       [ -f ./configure ] || eautoreconf || die 'autoreconf failed'
+
+       if [[ ! -x configure ]]; then
+               eautoreconf
+       fi
 }

Reply via email to