diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2022-11-13 12:20:48 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2022-11-15 00:04:04 +0100 |
commit | 3d483c23f105bc1e1d3393789d74e238e02e002f (patch) | |
tree | a65c20a70832b91d04b25dec738d2a76afb7d66b | |
parent | kde-apps/konsole: Add 22.12 stable branch (diff) | |
download | kde-3d483c23f105bc1e1d3393789d74e238e02e002f.tar.gz kde-3d483c23f105bc1e1d3393789d74e238e02e002f.tar.bz2 kde-3d483c23f105bc1e1d3393789d74e238e02e002f.zip |
kde-apps/kwrite: Add 22.12 stable branch
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r-- | kde-apps/kwrite/kwrite-22.12.49.9999.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/kde-apps/kwrite/kwrite-22.12.49.9999.ebuild b/kde-apps/kwrite/kwrite-22.12.49.9999.ebuild new file mode 100644 index 0000000000..32352c320e --- /dev/null +++ b/kde-apps/kwrite/kwrite-22.12.49.9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KDE_ORG_NAME="kate" +ECM_HANDBOOK="optional" +KFMIN=5.98.0 +QTMIN=5.15.5 +inherit ecm flag-o-matic gear.kde.org + +DESCRIPTION="Simple text editor based on KDE Frameworks" +HOMEPAGE="https://apps.kde.org/kwrite/" + +LICENSE="GPL-2" # TODO: CHECK +SLOT="5" +KEYWORDS="" +IUSE="" + +RDEPEND=" + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + ~kde-apps/kate-lib-${PV}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/kdbusaddons-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 +" +DEPEND="${RDEPEND}" + +src_prepare() { + ecm_src_prepare + + # these tests are run in kde-apps/kate-lib + cmake_run_in apps/lib cmake_comment_add_subdirectory autotests + + # delete colliding kate translations + find po -type f -name "*po" -and -not -name "kwrite*" -delete || die + rm -rf po/*/docs/kate* || die +} + +src_configure() { + local mycmakeargs=( + -DBUILD_addons=FALSE + -DBUILD_kate=FALSE + ) + use handbook && mycmakeargs+=( -DBUILD_katepart=FALSE ) + + # provided by kde-apps/kate-lib + append-libs -lkateprivate + + ecm_src_configure +} + +src_install() { + ecm_src_install + + # provided by kde-apps/kate-lib + rm -v "${ED}"/usr/$(get_libdir)/libkateprivate.so.* || die +} |