Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: app-text/kbibtex/
Date: Mon, 07 Sep 2020 15:07:57
Message-Id: 1599491150.2bd33212e9c21eb5dbf2558f15d377752c37b922.asturm@gentoo
1 commit: 2bd33212e9c21eb5dbf2558f15d377752c37b922
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 7 14:02:10 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 7 15:05:50 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=2bd33212
7
8 app-text/kbibtex: Use optfeature
9
10 Package-Manager: Portage-3.0.5, Repoman-3.0.1
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-text/kbibtex/kbibtex-9999.ebuild | 10 +++++-----
14 1 file changed, 5 insertions(+), 5 deletions(-)
15
16 diff --git a/app-text/kbibtex/kbibtex-9999.ebuild b/app-text/kbibtex/kbibtex-9999.ebuild
17 index 5a832527f2..0e59c3e3a0 100644
18 --- a/app-text/kbibtex/kbibtex-9999.ebuild
19 +++ b/app-text/kbibtex/kbibtex-9999.ebuild
20 @@ -7,7 +7,7 @@ ECM_HANDBOOK="optional"
21 ECM_TEST="optional"
22 KFMIN=5.60.0
23 QTMIN=5.12.3
24 -inherit ecm kde.org
25 +inherit ecm kde.org optfeature
26
27 DESCRIPTION="BibTeX editor to edit bibliographies used with LaTeX"
28 HOMEPAGE="https://kde.org/applications/education/org.kde.kbibtex
29 @@ -71,9 +71,9 @@ src_configure() {
30 }
31
32 pkg_postinst() {
33 - ecm_pkg_postinst
34 -
35 - if ! has_version "kde-apps/okular:${SLOT}" ; then
36 - elog "For PDF or PostScript document preview support, please install kde-apps/okular:${SLOT}"
37 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
38 + elog "Optional dependencies:"
39 + optfeature "PDF or PostScript document previews" kde-apps/okular:${SLOT}
40 fi
41 + ecm_pkg_postinst
42 }