commit:     36026533abb02473836e449ea7fad721dbdede94
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 25 11:38:33 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Aug 25 14:40:52 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=36026533

kde-misc/kgrubeditor: Fix HOMEPAGE and SRC_URI

Fix depgraph by dropping <sys-boot/grub-1 RDEPEND and move it to
pkg_postinst ewarn message if missing. This overlay won't import grub.

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-misc/kgrubeditor/kgrubeditor-0.8.5.ebuild | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/kde-misc/kgrubeditor/kgrubeditor-0.8.5.ebuild 
b/kde-misc/kgrubeditor/kgrubeditor-0.8.5.ebuild
index 61d28c2d..574f5d68 100644
--- a/kde-misc/kgrubeditor/kgrubeditor-0.8.5.ebuild
+++ b/kde-misc/kgrubeditor/kgrubeditor-0.8.5.ebuild
@@ -1,26 +1,22 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
 
 inherit kde4-base
 
-MY_PN="KGRUBEditor"
-
 DESCRIPTION="A KDE utility that edits GRUB configuration files"
-HOMEPAGE="http://www.kde-apps.org/content/show.php?content=75442";
-SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-src.tar.bz2"
+HOMEPAGE="https://www.linux-apps.com/p/1127871 
https://sourceforge.net/projects/kgrubeditor/";
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="4"
 KEYWORDS="~amd64 ~x86"
 IUSE="debug"
 
-RDEPEND="|| ( <sys-boot/grub-1
-       sys-boot/grub-static )"
-
 pkg_postinst() {
-       ewarn
+       if ! has_version "<sys-boot/grub-1" && ! has_version 
sys-boot/grub-static; then
+               ewarn "Neither <sys-boot/grub-1 nor sys-boot/grub-static 
packages found installed."
+       fi
        ewarn "NOTE: kgrubeditor can not handle grub-2.x configuration files!"
-       ewarn
 }

Reply via email to