blob: b2eed9dc169c54cdc2abbff8f14911e648aed412 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
EGIT_BRANCH="port-to-kf5"
inherit kde5 eutils
DESCRIPTION="The japanese warehouse keeper game"
HOMEPAGE="https://projects.kde.org/projects/playground/games/ksokoban"
LICENSE="GPL-2"
KEYWORDS=""
DEPEND="
$(add_frameworks_dep kactivities)
$(add_frameworks_dep kconfig)
$(add_frameworks_dep kcoreaddons)
$(add_frameworks_dep ki18n)
$(add_frameworks_dep kiconthemes)
$(add_frameworks_dep kio)
$(add_frameworks_dep kwidgetsaddons)
$(add_frameworks_dep kxmlgui)
dev-qt/qtgui:5
dev-qt/qtwidgets:5
"
RDEPEND="${DEPEND}
!games-puzzle/ksokoban:0
"
src_prepare() {
sed -i \
-e "/Exec/ s/%i.*//" \
"data/${PN}.desktop" || die "sed for desktop file failed"
kde5_src_prepare
}
# source lacks install target
src_install() {
dobin "${BUILD_DIR}"/ksokoban
dodoc AUTHORS NEWS TODO
domenu "data/${PN}.desktop"
for i in 16 22 32 48 64 128; do
doicon -s "${i}" "data/hi${i}-app-${PN}.png"
done
}
|