summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jolly <Matt.Jolly@footclan.ninja>2022-09-17 09:04:42 +1000
committerSam James <sam@gentoo.org>2022-10-12 23:57:12 +0100
commit1ed1859c618ba42e8af07fa65c6e33595bf2158a (patch)
tree77429792ebadb329c5640d57d66eab3909ffbae4 /games-misc
parentgames-engines/solarus: add 1.6.5, 9999 (diff)
downloadgentoo-1ed1859c618ba42e8af07fa65c6e33595bf2158a.tar.gz
gentoo-1ed1859c618ba42e8af07fa65c6e33595bf2158a.tar.bz2
gentoo-1ed1859c618ba42e8af07fa65c6e33595bf2158a.zip
games-misc/solarus-quest-editor: new package, add 1.6.5, 9999
Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-misc')
-rw-r--r--games-misc/solarus-quest-editor/Manifest1
-rw-r--r--games-misc/solarus-quest-editor/files/solarus-quest-editor-1.6.5-fix-segfault.patch22
-rw-r--r--games-misc/solarus-quest-editor/metadata.xml14
-rw-r--r--games-misc/solarus-quest-editor/solarus-quest-editor-1.6.5.ebuild55
-rw-r--r--games-misc/solarus-quest-editor/solarus-quest-editor-9999.ebuild55
5 files changed, 147 insertions, 0 deletions
diff --git a/games-misc/solarus-quest-editor/Manifest b/games-misc/solarus-quest-editor/Manifest
new file mode 100644
index 000000000000..5a059540ae6f
--- /dev/null
+++ b/games-misc/solarus-quest-editor/Manifest
@@ -0,0 +1 @@
+DIST solarus-quest-editor-v1.6.5.tar.gz 58066380 BLAKE2B faf6d5a0512e7a3d462326461d400d272534fd7b671318b4fefdf4f4eac05860228542b6e0738cdb2c6a4faf43e5de404f5815ac44ad877340caf015e0673749 SHA512 1c38ce284ebc87289e137fa9703a9fa093b38bc74bc1f89b3e1e53caacac57ffa35e598e8705171c3e5204342d58eacacf28550b4b8834c5ba7a8b5eec052393
diff --git a/games-misc/solarus-quest-editor/files/solarus-quest-editor-1.6.5-fix-segfault.patch b/games-misc/solarus-quest-editor/files/solarus-quest-editor-1.6.5-fix-segfault.patch
new file mode 100644
index 000000000000..1e2f1582e2ce
--- /dev/null
+++ b/games-misc/solarus-quest-editor/files/solarus-quest-editor-1.6.5-fix-segfault.patch
@@ -0,0 +1,22 @@
+Solarus quest editor will segfault on startup with -O2
+
+See: https://gitlab.com/solarus-games/solarus-quest-editor/-/commit/921ac6170a08dcfe601c7a11ee9f7c85386a4f3f
+--- a/src/widgets/main_window.cpp
++++ b/src/widgets/main_window.cpp
+@@ -1287,7 +1287,6 @@ void MainWindow::current_editor_changed(int index) {
+
+ Editor* editor = get_current_editor();
+ const bool has_editor = editor != nullptr;
+- ViewSettings& view_settings = editor->get_view_settings();
+
+ // Set up toolbar buttons for this editor.
+ ui.action_cut->setEnabled(has_editor);
+@@ -1343,6 +1342,8 @@ void MainWindow::current_editor_changed(int index) {
+
+ if (has_editor) {
+
++ ViewSettings& view_settings = editor->get_view_settings();
++
+ connect(&view_settings, &ViewSettings::zoom_changed,
+ this, &MainWindow::update_zoom);
+ update_zoom();
diff --git a/games-misc/solarus-quest-editor/metadata.xml b/games-misc/solarus-quest-editor/metadata.xml
new file mode 100644
index 000000000000..849001522d1b
--- /dev/null
+++ b/games-misc/solarus-quest-editor/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>Matt.Jolly@footclan.ninja</email>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="gitlab">solarus-games/solarus-quest-editor</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-misc/solarus-quest-editor/solarus-quest-editor-1.6.5.ebuild b/games-misc/solarus-quest-editor/solarus-quest-editor-1.6.5.ebuild
new file mode 100644
index 000000000000..8a1fcd50dab2
--- /dev/null
+++ b/games-misc/solarus-quest-editor/solarus-quest-editor-1.6.5.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-1 luajit )
+
+inherit cmake lua-single
+
+DESCRIPTION="This is the package for people who want to create Solarus quests. It expands the player's package with game-making tools."
+HOMEPAGE="https://www.solarus-games.org"
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://gitlab.com/solarus-games/solarus-quest-editor.git"
+ EGIT_BRANCH="dev"
+ inherit git-r3
+else
+ SRC_URI="https://gitlab.com/solarus-games/solarus-quest-editor/-/archive/v${PV}/solarus-quest-editor-v${PV}.tar.gz"
+ KEYWORDS="~amd64"
+ S="${WORKDIR}/solarus-quest-editor-v${PV}"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+# Upstream (and their CMake) claim that all of these are required deps
+RDEPEND="
+ ${LUA_DEPS}
+ dev-games/physfs
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ media-libs/libmodplug
+ >=media-libs/libsdl2-2.0.1[X,joystick,video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/sdl2-image[png]
+ >=media-libs/sdl2-ttf-2.0.12
+"
+
+DEPEND="
+ ${RDEPEND}
+ ~games-engines/solarus-${PV}
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-segfault.patch"
+)
+
+src_configure() {
+ local mycmakeargs=( -DSOLARUS_USE_LUAJIT="$(usex lua_single_target_luajit)" )
+ cmake_src_configure
+}
diff --git a/games-misc/solarus-quest-editor/solarus-quest-editor-9999.ebuild b/games-misc/solarus-quest-editor/solarus-quest-editor-9999.ebuild
new file mode 100644
index 000000000000..8a1fcd50dab2
--- /dev/null
+++ b/games-misc/solarus-quest-editor/solarus-quest-editor-9999.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-1 luajit )
+
+inherit cmake lua-single
+
+DESCRIPTION="This is the package for people who want to create Solarus quests. It expands the player's package with game-making tools."
+HOMEPAGE="https://www.solarus-games.org"
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://gitlab.com/solarus-games/solarus-quest-editor.git"
+ EGIT_BRANCH="dev"
+ inherit git-r3
+else
+ SRC_URI="https://gitlab.com/solarus-games/solarus-quest-editor/-/archive/v${PV}/solarus-quest-editor-v${PV}.tar.gz"
+ KEYWORDS="~amd64"
+ S="${WORKDIR}/solarus-quest-editor-v${PV}"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+# Upstream (and their CMake) claim that all of these are required deps
+RDEPEND="
+ ${LUA_DEPS}
+ dev-games/physfs
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ media-libs/libmodplug
+ >=media-libs/libsdl2-2.0.1[X,joystick,video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/sdl2-image[png]
+ >=media-libs/sdl2-ttf-2.0.12
+"
+
+DEPEND="
+ ${RDEPEND}
+ ~games-engines/solarus-${PV}
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-segfault.patch"
+)
+
+src_configure() {
+ local mycmakeargs=( -DSOLARUS_USE_LUAJIT="$(usex lua_single_target_luajit)" )
+ cmake_src_configure
+}