commit:     2bd33212e9c21eb5dbf2558f15d377752c37b922
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  7 14:02:10 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Sep  7 15:05:50 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=2bd33212

app-text/kbibtex: Use optfeature

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

 app-text/kbibtex/kbibtex-9999.ebuild | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/app-text/kbibtex/kbibtex-9999.ebuild 
b/app-text/kbibtex/kbibtex-9999.ebuild
index 5a832527f2..0e59c3e3a0 100644
--- a/app-text/kbibtex/kbibtex-9999.ebuild
+++ b/app-text/kbibtex/kbibtex-9999.ebuild
@@ -7,7 +7,7 @@ ECM_HANDBOOK="optional"
 ECM_TEST="optional"
 KFMIN=5.60.0
 QTMIN=5.12.3
-inherit ecm kde.org
+inherit ecm kde.org optfeature
 
 DESCRIPTION="BibTeX editor to edit bibliographies used with LaTeX"
 HOMEPAGE="https://kde.org/applications/education/org.kde.kbibtex
@@ -71,9 +71,9 @@ src_configure() {
 }
 
 pkg_postinst() {
-       ecm_pkg_postinst
-
-       if ! has_version "kde-apps/okular:${SLOT}" ; then
-               elog "For PDF or PostScript document preview support, please 
install kde-apps/okular:${SLOT}"
+       if [[ -z "${REPLACING_VERSIONS}" ]]; then
+               elog "Optional dependencies:"
+               optfeature "PDF or PostScript document previews" 
kde-apps/okular:${SLOT}
        fi
+       ecm_pkg_postinst
 }

Reply via email to