From 8c08f4c97f8145ebe2526d0a1c4b772eaa25d2b0 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 21 Apr 2016 14:34:54 +0200 Subject: [PATCH] games-util/solarus-quest-editor: initial import of version 1.4.5 --- metadata/categories.conf | 1 + .../solarus-quest-editor-1.4.5.exheres-0 | 60 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 packages/games-util/solarus-quest-editor/solarus-quest-editor-1.4.5.exheres-0 diff --git a/metadata/categories.conf b/metadata/categories.conf index f283675..3f6d037 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -20,6 +20,7 @@ games-rpg games-server games-simulation games-strategy +games-util media-libs media-sound media-video diff --git a/packages/games-util/solarus-quest-editor/solarus-quest-editor-1.4.5.exheres-0 b/packages/games-util/solarus-quest-editor/solarus-quest-editor-1.4.5.exheres-0 new file mode 100644 index 0000000..177cefc --- /dev/null +++ b/packages/games-util/solarus-quest-editor/solarus-quest-editor-1.4.5.exheres-0 @@ -0,0 +1,60 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require github [ user=christopho tag=v${PV} ] \ + cmake [ api=2 ] \ + lua [ whitelist="5.1" multibuild=false ] \ + gtk-icon-cache + +SUMMARY="GUI to edit quests for the Solarus engine" +HOMEPAGE="https://github.com/christopho/solarus-quest-editor" + +LICENCES=" + GPL-3 [[ note = [ original source code ] ]] + CCPL-Attribution-ShareAlike-3.0 [[ note = [ images in the editor ] ]] +" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS="" + +DEPENDENCIES=" + build+run: + dev-games/physfs + games-engines/solarus[~${PV}] + media-libs/SDL:2 + media-libs/SDL_image:2 + media-libs/SDL_ttf:2 + media-libs/libmodplug[>=0.8.8.4] + media-libs/libvorbis + media-libs/openal + x11-libs/qtbase:5 + x11-libs/qttools:5 +" + +BUGS_TO="hasufell@posteo.de" + +CMAKE_SRC_CONFIGURE_PARAMS=( + -DSOLARUS_USE_LUAJIT=OFF + -DSOLARUS_INCLUDE_DIR="/usr/$(exhost --target)/include/solarus" + -DSOLARUS_LIBRARY="/usr/$(exhost --target)/lib/libsolarus.so" +) + +src_prepare() { + cmake_src_prepare + + edo sed -i \ + -e "s#^Exec=.*#Exec=${PN}#" \ + -e "s#^Icon=.*#Icon=${PN}#" \ + "${CMAKE_SOURCE}"/resources/solarus-quest-editor.desktop +} + +src_install() { + dobin solarus-quest-editor + + insinto /usr/share/applications + doins "${CMAKE_SOURCE}"/resources/solarus-quest-editor.desktop + + insinto /usr/share/icons/hicolor/128x128/apps + newins "${CMAKE_SOURCE}"/images/icon/sqe-icon-png-128px.png ${PN}.png +} +