diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-09-07 15:23:51 +0200 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-09-07 17:05:48 +0200 |
| commit | 1163c16809ffb553ed24fe9bcac873b8b51340db (patch) | |
| tree | bc21e5950a0e6906b0e25fe560aa0ef0ffbf49f8 | |
| parent | 1ceea91be0bf8dc4230540d9b0f2d6cba460e6a3 (diff) | |
| download | kde-1163c16809ffb553ed24fe9bcac873b8b51340db.tar.gz kde-1163c16809ffb553ed24fe9bcac873b8b51340db.tar.bz2 kde-1163c16809ffb553ed24fe9bcac873b8b51340db.zip | |
kde-apps/ark: Use optfeature
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
| -rw-r--r-- | kde-apps/ark/ark-20.08.49.9999.ebuild | 30 | ||||
| -rw-r--r-- | kde-apps/ark/ark-9999.ebuild | 30 |
2 files changed, 16 insertions, 44 deletions
diff --git a/kde-apps/ark/ark-20.08.49.9999.ebuild b/kde-apps/ark/ark-20.08.49.9999.ebuild index 4dab32a3765..533ef35d2e4 100644 --- a/kde-apps/ark/ark-20.08.49.9999.ebuild +++ b/kde-apps/ark/ark-20.08.49.9999.ebuild @@ -8,7 +8,7 @@ ECM_TEST="optional" KFMIN=5.72.0 QTMIN=5.14.2 VIRTUALX_REQUIRED="test" -inherit ecm kde.org +inherit ecm kde.org optfeature DESCRIPTION="KDE Archiving tool" HOMEPAGE="https://kde.org/applications/utilities/org.kde.ark @@ -62,27 +62,13 @@ src_configure() { } pkg_postinst() { - ecm_pkg_postinst - if [[ -z "${REPLACING_VERSIONS}" ]]; then - if ! has_version app-arch/rar; then - elog "For creating/extracting rar archives, installing app-arch/rar is required." - if ! has_version app-arch/unar && ! has_version app-arch/unrar; then - elog "Alternatively, for only extracting rar archives, install app-arch/unar (free) or app-arch/unrar (non-free)." - fi - fi - - has_version app-arch/p7zip || \ - elog "For handling 7-Zip archives, install app-arch/p7zip." - - has_version app-arch/lrzip || \ - elog "For handling lrz archives, install app-arch/lrzip." - - if ! has_version kde-misc/markdownpart:${SLOT} || - ! has_version kde-misc/kmarkdownwebview:${SLOT} ; then - elog "For markdown support in text previews, install one of:" - elog " kde-misc/markdownpart:${SLOT}" - elog " kde-misc/kmarkdownwebview:${SLOT}" - fi + elog "Optional dependencies:" + optfeature "rar archive creation/extraction" app-arch/rar + optfeature "rar archive extraction only" app-arch/unar app-arch/unrar + optfeature "7-Zip archive support" app-arch/p7zip + optfeature "lrz archive support" app-arch/lrzip + optfeature "markdown support in text previews" kde-misc/markdownpart:${SLOT} kde-misc/kmarkdownwebview:${SLOT} fi + ecm_pkg_postinst } diff --git a/kde-apps/ark/ark-9999.ebuild b/kde-apps/ark/ark-9999.ebuild index 8d39ff50ea2..5e042f10830 100644 --- a/kde-apps/ark/ark-9999.ebuild +++ b/kde-apps/ark/ark-9999.ebuild @@ -8,7 +8,7 @@ ECM_TEST="optional" KFMIN=5.73.0 QTMIN=5.14.2 VIRTUALX_REQUIRED="test" -inherit ecm kde.org +inherit ecm kde.org optfeature DESCRIPTION="KDE Archiving tool" HOMEPAGE="https://kde.org/applications/utilities/org.kde.ark @@ -62,27 +62,13 @@ src_configure() { } pkg_postinst() { - ecm_pkg_postinst - if [[ -z "${REPLACING_VERSIONS}" ]]; then - if ! has_version app-arch/rar; then - elog "For creating/extracting rar archives, installing app-arch/rar is required." - if ! has_version app-arch/unar && ! has_version app-arch/unrar; then - elog "Alternatively, for only extracting rar archives, install app-arch/unar (free) or app-arch/unrar (non-free)." - fi - fi - - has_version app-arch/p7zip || \ - elog "For handling 7-Zip archives, install app-arch/p7zip." - - has_version app-arch/lrzip || \ - elog "For handling lrz archives, install app-arch/lrzip." - - if ! has_version kde-misc/markdownpart:${SLOT} || - ! has_version kde-misc/kmarkdownwebview:${SLOT} ; then - elog "For markdown support in text previews, install one of:" - elog " kde-misc/markdownpart:${SLOT}" - elog " kde-misc/kmarkdownwebview:${SLOT}" - fi + elog "Optional dependencies:" + optfeature "rar archive creation/extraction" app-arch/rar + optfeature "rar archive extraction only" app-arch/unar app-arch/unrar + optfeature "7-Zip archive support" app-arch/p7zip + optfeature "lrz archive support" app-arch/lrzip + optfeature "markdown support in text previews" kde-misc/markdownpart:${SLOT} kde-misc/kmarkdownwebview:${SLOT} fi + ecm_pkg_postinst } |
