commit: d38362c5c37d5fa8a8cfe31e5d074639fc47d110 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Feb 14 17:58:23 2021 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Feb 14 21:51:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d38362c5
x11-misc/tint2: Port to cmake.eclass, drop superfluous phase functions Fix DESCRIPTION to not contain PN. xdg_environment_reset is already called by cmake_src_prepare. Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> x11-misc/tint2/tint2-16.7.ebuild | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/x11-misc/tint2/tint2-16.7.ebuild b/x11-misc/tint2/tint2-16.7.ebuild index f71adacd17f..41eb579f0be 100644 --- a/x11-misc/tint2/tint2-16.7.ebuild +++ b/x11-misc/tint2/tint2-16.7.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit cmake-utils xdg +inherit cmake xdg -DESCRIPTION="tint2 is a lightweight panel/taskbar for Linux." +DESCRIPTION="Lightweight panel/taskbar for Linux" HOMEPAGE="https://gitlab.com/o9000/tint2" SRC_URI="https://gitlab.com/o9000/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz" S=${WORKDIR}/${PN}-v${PV} @@ -13,7 +13,7 @@ S=${WORKDIR}/${PN}-v${PV} LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ~ppc x86" -IUSE="battery svg startup-notification tint2conf" +IUSE="battery startup-notification svg tint2conf" DEPEND=" dev-libs/glib:2 @@ -33,8 +33,7 @@ DEPEND=" RDEPEND="${DEPEND}" src_prepare() { - xdg_src_prepare - cmake-utils_src_prepare + cmake_src_prepare } src_configure() { @@ -45,22 +44,5 @@ src_configure() { -DENABLE_SN="$(usex startup-notification)" -DENABLE_RSVG="$(usex svg)" ) - - cmake-utils_src_configure -} - -src_install() { - cmake-utils_src_install -} - -pkg_preinst() { - xdg_pkg_preinst -} - -pkg_postinst() { - xdg_pkg_postinst -} - -pkg_postrm() { - xdg_pkg_postrm + cmake_src_configure }
