summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-08-15 15:08:36 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-08-15 15:09:32 +0200
commit54d6ee8b4a5a60e7f3f7e1a2068c2ee69f9cd1d9 (patch)
treeb1b36d8867b77df28e956c3f88378ef5518961f9 /kde-apps/kajongg
parentkde-misc/kio-gdrive: Pin kde-apps/libkgapi version to <19.04.50 (diff)
downloadgentoo-54d6ee8b4a5a60e7f3f7e1a2068c2ee69f9cd1d9.tar.gz
gentoo-54d6ee8b4a5a60e7f3f7e1a2068c2ee69f9cd1d9.tar.bz2
gentoo-54d6ee8b4a5a60e7f3f7e1a2068c2ee69f9cd1d9.zip
kde-apps: Add KDE Applications 19.08.0
Package-Manager: Portage-2.3.71, Repoman-2.3.17 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.0.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/kde-apps/kajongg/Manifest b/kde-apps/kajongg/Manifest
index 45dc02981d6b..f628a62803f4 100644
--- a/kde-apps/kajongg/Manifest
+++ b/kde-apps/kajongg/Manifest
@@ -1 +1,2 @@
DIST kajongg-19.04.3.tar.xz 4466048 BLAKE2B 4a11030bcb95abeb336b7e1dfbd0e878a8d36e148245b4cf3b10bdfc0812a445e18cdd5f4729118bf663c860efae2d5079bab76c3a1fb3f412b6f8ef1b8f4d22 SHA512 6e2091c46cbfb5916eb3e2a219b391d97a7b3eab6f3b2942032ba663f1589da663a0d5470ca9b285a83f52ae540ee960dfb4276dff3b534835bf52c9203b7bc4
+DIST kajongg-19.08.0.tar.xz 4466472 BLAKE2B 90830c82fa0044677cc4a3c0b60012b5ec87fb65e9dc1ae0b15627bc58c1f5690e26c3fa2faf9f566ccab10d928db732ec0cbd8bbb4c1c8a492f970b427fdb0d SHA512 ba5bfcc68f9113de73767ff6f2190726419b978794604426dafeb89f7243f909124bfb338f9ce12a321e6b84156c2ac1ab588f45cd28f98d039510b378e064e1
diff --git a/kde-apps/kajongg/kajongg-19.08.0.ebuild b/kde-apps/kajongg/kajongg-19.08.0.ebuild
new file mode 100644
index 000000000000..cd9c6be7b3a6
--- /dev/null
+++ b/kde-apps/kajongg/kajongg-19.08.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+KDE_AUTODEPS="false"
+KDE_HANDBOOK="forceoptional"
+PYTHON_COMPAT=( python3_{5,6,7} )
+inherit python-single-r1 kde5
+
+DESCRIPTION="Classical Mah Jongg for four players"
+HOMEPAGE="https://kde.org/applications/games/kajongg/"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ $(add_frameworks_dep extra-cmake-modules)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep ki18n)
+ $(add_kdeapps_dep libkdegames)
+ $(add_qt_dep qtcore)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtsvg)
+ $(add_qt_dep qtwidgets)
+ dev-db/sqlite:3
+ dev-python/PyQt5[gui,svg,widgets,${PYTHON_USEDEP}]
+ >=dev-python/twisted-16.6.0[${PYTHON_USEDEP}]
+"
+RDEPEND="${DEPEND}
+ $(add_kdeapps_dep libkmahjongg)
+"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ kde5_pkg_setup
+}
+
+src_prepare() {
+ python_fix_shebang src
+ kde5_src_prepare
+ sed -i -e "/KDE_ADD_PYTHON_EXECUTABLE/s/^/#DONT/" CMakeLists.txt || die
+}
+
+src_install() {
+ kde5_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
+}