commit:     2814f590ed19db8dd4b2d3f61346b03767ada288
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  7 19:57:39 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Dec  7 19:57:39 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=2814f590

x11-misc/ptbatterysystemtray: Port to EAPI-7, qmake-utils, xdg eclass

Fix HOMEPAGE, SRC_URI

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

 .../ptbatterysystemtray-1.0.0_rc2.ebuild            | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/x11-misc/ptbatterysystemtray/ptbatterysystemtray-1.0.0_rc2.ebuild 
b/x11-misc/ptbatterysystemtray/ptbatterysystemtray-1.0.0_rc2.ebuild
index 37c6361a..d4b3ee2e 100644
--- a/x11-misc/ptbatterysystemtray/ptbatterysystemtray-1.0.0_rc2.ebuild
+++ b/x11-misc/ptbatterysystemtray/ptbatterysystemtray-1.0.0_rc2.ebuild
@@ -1,12 +1,14 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit qt4-r2
+EAPI=7
+
+inherit qmake-utils xdg
 
 DESCRIPTION="A simple battery monitor in the system tray"
-HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage";
-SRC_URI="mirror://gentoo/${P}.tar.gz"
+HOMEPAGE="https://sourceforge.net/projects/batterysystem/";
+SRC_URI="http://ponce.cc/slackware/sources/repo/${P/_/.}.tar.bz2";
+S="${WORKDIR}/${P/_/.}"
 
 LICENSE="GPL-3"
 SLOT="0"
@@ -20,13 +22,16 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
-DOCS="AUTHORS ChangeLog README"
-
-src_unpack() {
+src_prepare() {
        default
-       mv ${PN}-${PN} "${S}" || die
+       sed -e "/^Categories/s/Application;//" -i ptbatterysystemtray.desktop 
|| die
 }
 
 src_configure() {
        eqmake4 ${PN}.pro INSTALL_PREFIX=/usr
 }
+
+src_install() {
+       emake INSTALL_ROOT="${D}" install
+       einstalldocs
+}

Reply via email to