summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-apps/kajongg')
-rw-r--r--kde-apps/kajongg/Manifest1
-rw-r--r--kde-apps/kajongg/kajongg-17.08.3.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/kde-apps/kajongg/Manifest b/kde-apps/kajongg/Manifest
index 4f4bfff15c87..da75f72f7161 100644
--- a/kde-apps/kajongg/Manifest
+++ b/kde-apps/kajongg/Manifest
@@ -1,2 +1,3 @@
DIST kajongg-17.04.3.tar.xz 4238880 SHA256 2f8126f6e7ee92d8e9ed81532ce30e7a516f4d9182761c74519522dbf74b9832 SHA512 bdcad89371627f199ac85715f9518abca613d80bb2718e26e8757ce50ea01db12308e11e8956459c0b05fad41dce9378829811705e60150e39e1678e2f18901b WHIRLPOOL 5b59be0dd642cf03f93401aa10e1667fcc1912dc8474456188076c4bfcd68475bfcc5cc3c062257da33778e9bd709dd6606add53436a2253fd68c578ae330433
DIST kajongg-17.08.2.tar.xz 4238888 SHA256 7f6bf9ff311569c1b48a8fc0e44184ac2c642f74c76ce7804690e9e80d300718 SHA512 3b88d92b4d925020ee7eefd3312046e87ea1fde62d72970bba0bc7cb9b64a7427bbd9cfd268dfec24f57c4f15009410dc27b7f5a20216f672083bc624e2791b0 WHIRLPOOL b9a767911e83da972feb5c5c67257fb76645f27e2211aa9fcc8bc0b2be57b9844cbc9916194d50b7b2b71ce9511958dd1786e8604b0a78ba898eaccb77745835
+DIST kajongg-17.08.3.tar.xz 4239184 SHA256 46c1457039c30fa0415ab8e841e5474766aa4f6502a90367fa30fe6e8939ab03 SHA512 e4e595988da98cd2f7dbf089c8c29a88e1df57bfaab98e8efddcc0e69ea5c7cfd74c7557661e6b6b86649ebb8a487c6609a05e16a7fcd272048140ff22389402 WHIRLPOOL 5f0e8a4950ed98ed883a2efee0e91bf15ba7e98048a8baa4138b884d94e10f7123864c2f823dd8bee7dda490005332ce03a7f9ef441e04ff1bd814ea367e8304
diff --git a/kde-apps/kajongg/kajongg-17.08.3.ebuild b/kde-apps/kajongg/kajongg-17.08.3.ebuild
new file mode 100644
index 000000000000..9a3e1409230a
--- /dev/null
+++ b/kde-apps/kajongg/kajongg-17.08.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_AUTODEPS="false"
+KDE_HANDBOOK="forceoptional"
+PYTHON_COMPAT=( python3_{5,6} )
+inherit python-single-r1 kde5
+
+DESCRIPTION="Classical Mah Jongg for four players"
+HOMEPAGE="https://www.kde.org/applications/games/kajongg/"
+KEYWORDS="~amd64 ~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)
+ !kde-apps/kajongg:4
+ !<kde-apps/kde4-l10n-17.03.90:4
+"
+
+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
+}