commit: 2cf54f0e0d11e51893565513d4f8df80dce1d951
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 16 08:18:01 2020 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 16 08:18:01 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cf54f0e
app-text/nfoview: simplify ebuild
* No need to declare blank IUSE (default)
* Use xdg.eclass for its lovely auto-cache updater
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-text/nfoview/nfoview-1.28.ebuild | 13 +------------
app-text/nfoview/nfoview-9999.ebuild | 13 +------------
2 files changed, 2 insertions(+), 24 deletions(-)
diff --git a/app-text/nfoview/nfoview-1.28.ebuild
b/app-text/nfoview/nfoview-1.28.ebuild
index d8afed88183..7118320a046 100644
--- a/app-text/nfoview/nfoview-1.28.ebuild
+++ b/app-text/nfoview/nfoview-1.28.ebuild
@@ -6,7 +6,7 @@ EAPI=7
DISTUTILS_USE_SETUPTOOLS=no
PYTHON_COMPAT=( python3_{6,7,8,9} )
-inherit distutils-r1 xdg-utils
+inherit distutils-r1 xdg
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/otsaloma/nfoview.git"
@@ -21,20 +21,9 @@ HOMEPAGE="https://otsaloma.io/nfoview/"
LICENSE="GPL-3+"
SLOT="0"
-IUSE=""
BDEPEND="${PYTHON_DEPS}
sys-devel/gettext"
DEPEND="dev-python/pygobject:3[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}
media-fonts/cascadia-code"
-
-pkg_postinst() {
- xdg_icon_cache_update
- xdg_desktop_database_update
-}
-
-pkg_postrm() {
- xdg_icon_cache_update
- xdg_desktop_database_update
-}
diff --git a/app-text/nfoview/nfoview-9999.ebuild
b/app-text/nfoview/nfoview-9999.ebuild
index d8afed88183..7118320a046 100644
--- a/app-text/nfoview/nfoview-9999.ebuild
+++ b/app-text/nfoview/nfoview-9999.ebuild
@@ -6,7 +6,7 @@ EAPI=7
DISTUTILS_USE_SETUPTOOLS=no
PYTHON_COMPAT=( python3_{6,7,8,9} )
-inherit distutils-r1 xdg-utils
+inherit distutils-r1 xdg
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/otsaloma/nfoview.git"
@@ -21,20 +21,9 @@ HOMEPAGE="https://otsaloma.io/nfoview/"
LICENSE="GPL-3+"
SLOT="0"
-IUSE=""
BDEPEND="${PYTHON_DEPS}
sys-devel/gettext"
DEPEND="dev-python/pygobject:3[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}
media-fonts/cascadia-code"
-
-pkg_postinst() {
- xdg_icon_cache_update
- xdg_desktop_database_update
-}
-
-pkg_postrm() {
- xdg_icon_cache_update
- xdg_desktop_database_update
-}