diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-09-07 16:02:10 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-09-07 17:05:50 +0200 |
commit | 2bd33212e9c21eb5dbf2558f15d377752c37b922 (patch) | |
tree | dc06c3f8dfa3497e86e10c4df5d873935c323a5d /app-text/kbibtex | |
parent | kde-plasma/kdeplasma-addons: Use optfeature (diff) | |
download | kde-2bd33212e9c21eb5dbf2558f15d377752c37b922.tar.gz kde-2bd33212e9c21eb5dbf2558f15d377752c37b922.tar.bz2 kde-2bd33212e9c21eb5dbf2558f15d377752c37b922.zip |
app-text/kbibtex: Use optfeature
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-text/kbibtex')
-rw-r--r-- | app-text/kbibtex/kbibtex-9999.ebuild | 10 |
1 files 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 } |