summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Heiko Becker <heirecka@exherbo.org> 2017-09-09 12:44:37 +0200
committerAvatar Heiko Becker <heirecka@exherbo.org> 2017-09-16 17:15:31 +0200
commite2f142968be12e4773be90a043ce540682d509a3 (patch)
treed05124138c27a33f73eb31ca2853feb156380196
parentf477e8108c8df8021249ed3be219072daa25184a (diff)
downloadkde-e2f142968be12e4773be90a043ce540682d509a3.tar.gz
kde-e2f142968be12e4773be90a043ce540682d509a3.tar.xz
kajongg: Version bump to 17.08.1
-rw-r--r--packages/kde/kajongg/kajongg-17.08.1.exheres-07
-rw-r--r--packages/kde/kajongg/kajongg.exlib43
2 files changed, 34 insertions, 16 deletions
diff --git a/packages/kde/kajongg/kajongg-17.08.1.exheres-0 b/packages/kde/kajongg/kajongg-17.08.1.exheres-0
new file mode 100644
index 0000000..87dab72
--- /dev/null
+++ b/packages/kde/kajongg/kajongg-17.08.1.exheres-0
@@ -0,0 +1,7 @@
+# Copyright 2013 Heiko Becker <heirecka@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require kajongg
+
+PLATFORMS="~amd64 ~x86"
+
diff --git a/packages/kde/kajongg/kajongg.exlib b/packages/kde/kajongg/kajongg.exlib
index 227414f..8e46f1f 100644
--- a/packages/kde/kajongg/kajongg.exlib
+++ b/packages/kde/kajongg/kajongg.exlib
@@ -1,7 +1,11 @@
-# Copyright 2013 Heiko Becker <heirecka@exherbo.org>
+# Copyright 2013, 2017 Heiko Becker <heirecka@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
-require kde-apps kde python [ blacklist='3' ] gtk-icon-cache
+# No multibuild because it installs its python files into /usr/share
+require kde-apps kde python [ blacklist='2 3.3 3.4' multibuild=false ]
+require gtk-icon-cache
+
+export_exlib_phases src_install
SUMMARY="Classic Mah Jongg for four players"
DESCRIPTION="
@@ -14,32 +18,39 @@ HOMEPAGE+=" http://kde.org/applications/games/${PN}/"
LICENCES="GPL-2 FDL-1.2 BSD-3"
MYOPTIONS=""
+KF5_MIN_VER=5.15.0
+QT_MIN_VER=5.2.0
+
DEPENDENCIES="
+ build:
+ kde-frameworks/kdoctools:5[>=${KF5_MIN_VER}]
build+run:
dev-db/sqlite:3
- dev-python/PyQt4[sql][python_abis:*(-)?]
- kde/kdelibs:${SLOT}
- kde/pykde4:${SLOT}[>=4.7.4][python_abis:*(-)?]
- net-twisted/TwistedCore
+ dev-python/PyQt5[python_abis:*(-)?]
+ kde-frameworks/kconfig:5[>=${KF5_MIN_VER}]
+ kde-frameworks/ki18n:5[>=${KF5_MIN_VER}]
+ net-twisted/Twisted[>=16.6.0][python_abis:*(-)?]
+ x11-libs/qtbase:5[>=${QT_MIN_VER}]
+ x11-libs/qtsvg:5[>=${QT_MIN_VER}]
run:
- kde/libkmahjongg:${SLOT}
+ kde/libkmahjongg:5
recommendation:
media-sound/vorbis-tools[ogg123] [[
description = [ Tiles are announced by different voices per player ]
]]
"
-configure_one_multibuild() {
- CMAKE_SRC_CONFIGURE_PARAMS+=( -DPYTHON_EXECUTABLE:PATH=/usr/bin/${PYTHON} )
+CMAKE_SRC_CONFIGURE_PARAMS+=(
+ -DPYTHON_EXECUTABLE:PATH=${PYTHON}
+)
- kde_src_configure
-}
-
-install_one_multibuild() {
+kajongg_src_install() {
cmake_src_install
- # fix shebang
- edo sed -e "s:^#!/usr/bin/env python:#!/usr/bin/env ${PYTHON}:" \
- -i "${IMAGE}"/usr/share/apps/${PN}/${PN}{,server}.py
+ edo chmod +x "${IMAGE}"/usr/share/${PN}/${PN}{,server}.py
+
+ edo mkdir -p "${IMAGE}"/usr/$(exhost --target)/bin
+ dosym /usr/share/${PN}/${PN}.py /usr/$(exhost --target)/bin/${PN}
+ dosym /usr/share/${PN}/${PN}server.py /usr/$(exhost --target)/bin/${PN}server
}