diff options
| -rw-r--r-- | kde-apps/dolphin-plugins-mercurial/Manifest | 1 | ||||
| -rw-r--r-- | kde-apps/dolphin-plugins-mercurial/dolphin-plugins-mercurial-22.03.90.ebuild | 69 |
2 files changed, 70 insertions, 0 deletions
diff --git a/kde-apps/dolphin-plugins-mercurial/Manifest b/kde-apps/dolphin-plugins-mercurial/Manifest index 96b3dfdc17e..4b07298b7a5 100644 --- a/kde-apps/dolphin-plugins-mercurial/Manifest +++ b/kde-apps/dolphin-plugins-mercurial/Manifest @@ -1 +1,2 @@ DIST dolphin-plugins-22.03.80.tar.xz 255856 BLAKE2B 10e90bb470c139507c3b1758dea23d49258cc7325a6226a816f763370a7e53fda570a0a3045a27fb08d75fd62c13f7b394dbad41262fb306e93739cdb66aef82 SHA512 115aedb443e0abca5f71718adb06fa3cf15eb16aba6c6d2ebf1cb93a29d35197fcd7e73100cdd77b04a9b5e3d090c2c5b06dd440098dcc98772747302e5a1e8f +DIST dolphin-plugins-22.03.90.tar.xz 256200 BLAKE2B c5faa5794311ee9a186da31ae814dc66fd2100637fcc0d9c11d4c5a06556786c341bd5fa0ae10b9c3aa604d193fb6fe1d9d5f69b8290c7554c338931f35aab3a SHA512 48dfa4c08ea7f7f15bc293c274dbafe8dcc6273232e1dd4484b52999cb6f1771cf6b3be462d4fc71e940ceb7592f395f14270c813606f74de25c1e20677cab33 diff --git a/kde-apps/dolphin-plugins-mercurial/dolphin-plugins-mercurial-22.03.90.ebuild b/kde-apps/dolphin-plugins-mercurial/dolphin-plugins-mercurial-22.03.90.ebuild new file mode 100644 index 00000000000..0cb160d6c17 --- /dev/null +++ b/kde-apps/dolphin-plugins-mercurial/dolphin-plugins-mercurial-22.03.90.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_HANDBOOK="false" +KDE_ORG_NAME="dolphin-plugins" +MY_PLUGIN_NAME="hg" +PVCUT=$(ver_cut 1-3) +KFMIN=5.92.0 +QTMIN=5.15.2 +inherit ecm kde.org + +DESCRIPTION="Dolphin plugin for Mercurial integration" +HOMEPAGE="https://apps.kde.org/dolphin_plugins/" + +LICENSE="GPL-2" # TODO: CHECK +SLOT="5" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +IUSE="" + +DEPEND=" + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=kde-apps/dolphin-${PVCUT}:5 + >=kde-frameworks/kcompletion-${KFMIN}:5 + >=kde-frameworks/kconfig-${KFMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/kio-${KFMIN}:5 + >=kde-frameworks/kservice-${KFMIN}:5 + >=kde-frameworks/ktexteditor-${KFMIN}:5 + >=kde-frameworks/ktextwidgets-${KFMIN}:5 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 +" +RDEPEND="${DEPEND} + dev-vcs/mercurial +" + +src_prepare() { + ecm_src_prepare + # solid, qtdbus only required by mountiso + ecm_punt_qt_module DBus + ecm_punt_kf_module Solid + # kxmlgui, qtnetwork only required by dropbox + ecm_punt_qt_module Network + ecm_punt_kf_module XmlGui + # delete non-${PN} translations + if [[ ${KDE_BUILD_TYPE} = release ]]; then + find po -type f -name "*po" -and -not -name "*${MY_PLUGIN_NAME}plugin" -delete || die + fi +} + +src_configure() { + local mycmakeargs=( + -DBUILD_${MY_PLUGIN_NAME}=ON + -DBUILD_bazaar=OFF + -DBUILD_dropbox=OFF + -DBUILD_git=OFF + -DBUILD_mountiso=OFF + -DBUILD_svn=OFF + ) + ecm_src_configure +} + +src_install() { + ecm_src_install + rm "${D}"/usr/share/metainfo/org.kde.dolphin-plugins.metainfo.xml || die +} |
