commit: d6ab0dce176fe324be11bf8a470499a72f7c6052 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> AuthorDate: Sat Jan 23 23:57:03 2016 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Tue Jan 26 18:18:38 2016 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=d6ab0dce
games-puzzle/ksokoban: Add KF5 version Package-Manager: portage-2.2.26 games-puzzle/ksokoban/ksokoban-9999.ebuild | 48 ++++++++++++++++++++++++++++++ games-puzzle/ksokoban/metadata.xml | 8 +++++ 2 files changed, 56 insertions(+) diff --git a/games-puzzle/ksokoban/ksokoban-9999.ebuild b/games-puzzle/ksokoban/ksokoban-9999.ebuild new file mode 100644 index 0000000..b2eed9d --- /dev/null +++ b/games-puzzle/ksokoban/ksokoban-9999.ebuild @@ -0,0 +1,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 +} diff --git a/games-puzzle/ksokoban/metadata.xml b/games-puzzle/ksokoban/metadata.xml new file mode 100644 index 0000000..5f4d9f3 --- /dev/null +++ b/games-puzzle/ksokoban/metadata.xml @@ -0,0 +1,8 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>k...@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> +</pkgmetadata>