summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-03-19 02:34:04 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2020-03-19 02:34:50 +0100
commit69bda468b16a78ac6fcd84b1c08671bc6ea74726 (patch)
treeffa226d7d06da09349b8cb8129a85a23ce627174 /kde-apps/kajongg
parentecm.eclass: Drop KDE Applications 19.08.3 support (diff)
downloadgentoo-69bda468b16a78ac6fcd84b1c08671bc6ea74726.tar.gz
gentoo-69bda468b16a78ac6fcd84b1c08671bc6ea74726.tar.bz2
gentoo-69bda468b16a78ac6fcd84b1c08671bc6ea74726.zip
kde-apps: Re-add KDE Applications 19.08.3 for arm64 only
Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/kajongg')
-rw-r--r--kde-apps/kajongg/Manifest1
-rw-r--r--kde-apps/kajongg/kajongg-19.08.3-r1.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/kde-apps/kajongg/Manifest b/kde-apps/kajongg/Manifest
index a0deb90245de..e7a843221678 100644
--- a/kde-apps/kajongg/Manifest
+++ b/kde-apps/kajongg/Manifest
@@ -1 +1,2 @@
+DIST kajongg-19.08.3.tar.xz 4463292 BLAKE2B 9dab5915414155806d13695cd91dfa27289da3d236a954becc4c9657d05db8968f1801738106a2c2ee31ed493817c0924947abf69b3ce0e31700a1541a8161db SHA512 49c5877216e9c73ff66e11fa8d14e3a82e08149f92c5cfb54ac7057096b0b53a46bf4a8eb4ca2f3b7bde066249b4a65b81ee42cf8969d06d221cf8c89a2fe97e
DIST kajongg-19.12.3.tar.xz 4464436 BLAKE2B 7ba749f4c1ef538200f5a818762487b4857670a284989f84820130f3a93e758f327e082d98291647675f60ff6efa6c7a1028f66688bc396f984c5d83ae8fc02a SHA512 2529ef77aaa4eee8c3245caecbb48316b797dc517e3a27dfbf2582ca3833c54d3e9b65f89b6bebd6d0565956ef87c130fc5dde338e03e2ed978913841cb981c3
diff --git a/kde-apps/kajongg/kajongg-19.08.3-r1.ebuild b/kde-apps/kajongg/kajongg-19.08.3-r1.ebuild
new file mode 100644
index 000000000000..a0e5a1308d60
--- /dev/null
+++ b/kde-apps/kajongg/kajongg-19.08.3-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ECM_HANDBOOK="forceoptional"
+PYTHON_COMPAT=( python3_{6,7} )
+PVCUT=$(ver_cut 1-3)
+KFMIN=5.60.0
+QTMIN=5.12.3
+inherit python-single-r1 ecm kde.org
+
+DESCRIPTION="Classical Mah Jongg for four players"
+HOMEPAGE="https://kde.org/applications/games/kajongg/"
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="5"
+KEYWORDS="arm64"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ >=kde-frameworks/kconfig-${KFMIN}:5
+ >=kde-frameworks/ki18n-${KFMIN}:5
+ >=kde-apps/libkdegames-${PVCUT}:5
+ >=dev-qt/qtgui-${QTMIN}:5
+ >=dev-qt/qtsvg-${QTMIN}:5
+ >=dev-qt/qtwidgets-${QTMIN}:5
+ dev-db/sqlite:3
+ $(python_gen_cond_dep '
+ dev-python/PyQt5[gui,svg,widgets,${PYTHON_MULTI_USEDEP}]
+ >=dev-python/twisted-16.6.0[${PYTHON_MULTI_USEDEP}]
+ ')
+"
+RDEPEND="${DEPEND}
+ >=kde-apps/libkmahjongg-${PVCUT}:5
+"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ ecm_pkg_setup
+}
+
+src_prepare() {
+ python_fix_shebang src
+ ecm_src_prepare
+ sed -i -e "/KDE_ADD_PYTHON_EXECUTABLE/s/^/#DONT/" CMakeLists.txt || die
+}
+
+src_install() {
+ ecm_src_install
+ dosym ../share/kajongg/kajongg.py /usr/bin/kajongg
+ dosym ../share/kajongg/kajonggserver.py /usr/bin/kajonggserver
+ fperms a+x /usr/share/kajongg/kajongg{,server}.py
+}