summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-12-25 15:53:18 +0100
committerLars Wendler <polynomial-c@gentoo.org>2018-12-25 15:53:35 +0100
commit835d16aaf608ed4bb5e2a008279d1ec903581c60 (patch)
tree0f6e354b796ed4f5793a776da246367fb036c65a /games-arcade/supertux
parentprofiles/arch/powerpc: enable LLVM_TARGETS=PowerPC by default (diff)
downloadgentoo-835d16aaf608ed4bb5e2a008279d1ec903581c60.tar.gz
gentoo-835d16aaf608ed4bb5e2a008279d1ec903581c60.tar.bz2
gentoo-835d16aaf608ed4bb5e2a008279d1ec903581c60.zip
games-arcade/supertux: Bump to version 0.6.0
Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'games-arcade/supertux')
-rw-r--r--games-arcade/supertux/Manifest1
-rw-r--r--games-arcade/supertux/files/supertux-0.6.0-icon.patch11
-rw-r--r--games-arcade/supertux/files/supertux-0.6.0-license.patch11
-rw-r--r--games-arcade/supertux/files/supertux-0.6.0-obstack.patch19
-rw-r--r--games-arcade/supertux/supertux-0.6.0.ebuild60
5 files changed, 102 insertions, 0 deletions
diff --git a/games-arcade/supertux/Manifest b/games-arcade/supertux/Manifest
index 3451c7171902..02fccc57d69d 100644
--- a/games-arcade/supertux/Manifest
+++ b/games-arcade/supertux/Manifest
@@ -1 +1,2 @@
DIST SuperTux-v0.5.1-Source.tar.gz 90564367 BLAKE2B ba6549c135655d59ebbbed1431baf30cce1e0fb1bcdaee3dd050732992a02bb4dbd25b5399c83d3a7145f8afd20b3e8f4471007d424d2bc40c906d6121678123 SHA512 1a841cec9b71ff482aa271ec94f0563052ed33c65b26958c15c818f897f184356605a115abb70bdb8302f8cdb6e6107cf336790c3929cbc7e3dc78d31b4e2c8a
+DIST SuperTux-v0.6.0-Source.tar.gz 131203604 BLAKE2B 196e2ec328469b8fd373abeca6755207dbfdb8d21ba294f8150abd889f0ea8636ab3132cee94c976b8b768a6965eafe7467f09333ecf59a294405e73a5211c59 SHA512 7e313f1af1131e83ec658fee12803542d59075fa94a0a79a9182382335dc1b10a9f75092562555acf875dd03b15b336b40772fb8cdd81a82fa5802deb51b610b
diff --git a/games-arcade/supertux/files/supertux-0.6.0-icon.patch b/games-arcade/supertux/files/supertux-0.6.0-icon.patch
new file mode 100644
index 000000000000..aac503c8cc9c
--- /dev/null
+++ b/games-arcade/supertux/files/supertux-0.6.0-icon.patch
@@ -0,0 +1,11 @@
+--- SuperTux-v0.6.0-Source/CMakeLists.txt
++++ SuperTux-v0.6.0-Source/CMakeLists.txt
+@@ -846,7 +846,7 @@
+ install(FILES ${DLLS} DESTINATION ${INSTALL_SUBDIR_BIN})
+ endif()
+
+- install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/images/engine/icons/supertux.png ${CMAKE_CURRENT_SOURCE_DIR}/data/images/engine/icons/supertux.ico DESTINATION ".")
++ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/images/engine/icons/supertux.png DESTINATION ".")
+
+ option(PACKAGE_VCREDIST "Package the VCREDIST libraries with the program" OFF)
+
diff --git a/games-arcade/supertux/files/supertux-0.6.0-license.patch b/games-arcade/supertux/files/supertux-0.6.0-license.patch
new file mode 100644
index 000000000000..600a3fd0c962
--- /dev/null
+++ b/games-arcade/supertux/files/supertux-0.6.0-license.patch
@@ -0,0 +1,11 @@
+--- SuperTux-v0.6.0-Source/CMakeLists.txt
++++ SuperTux-v0.6.0-Source/CMakeLists.txt
+@@ -895,7 +895,7 @@
+ install(FILES ${SQUIRREL_LIB_PATH} ${SQSTDLIB_LIB_PATH} ${PHYSFS_LIB_PATH} DESTINATION ${INSTALL_SUBDIR_BIN})
+ endif()
+
+-install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/INSTALL.md ${CMAKE_CURRENT_SOURCE_DIR}/README.md ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt ${CMAKE_CURRENT_SOURCE_DIR}/NEWS.md DESTINATION ${INSTALL_SUBDIR_DOC})
++install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/INSTALL.md ${CMAKE_CURRENT_SOURCE_DIR}/README.md ${CMAKE_CURRENT_SOURCE_DIR}/NEWS.md DESTINATION ${INSTALL_SUBDIR_DOC})
+
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/credits.stxt DESTINATION ${INSTALL_SUBDIR_SHARE})
+
diff --git a/games-arcade/supertux/files/supertux-0.6.0-obstack.patch b/games-arcade/supertux/files/supertux-0.6.0-obstack.patch
new file mode 100644
index 000000000000..a46ca3afd12d
--- /dev/null
+++ b/games-arcade/supertux/files/supertux-0.6.0-obstack.patch
@@ -0,0 +1,19 @@
+--- SuperTux-v0.6.0-Source/CMakeLists.txt
++++ SuperTux-v0.6.0-Source/CMakeLists.txt
+@@ -470,7 +470,6 @@
+ include_directories(${CMAKE_BINARY_DIR}/)
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/)
+ include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/external/findlocale/)
+-include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/external/obstack/)
+ include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/external/sexp-cpp/include/)
+ include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/external/SDL_SavePNG/)
+
+@@ -481,7 +480,7 @@
+
+ ## Build list of sources for supertux binary
+
+-file(GLOB SUPERTUX_SOURCES_C RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} external/obstack/*.c external/findlocale/findlocale.c)
++file(GLOB SUPERTUX_SOURCES_C RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} external/findlocale/findlocale.c)
+
+ file(GLOB SUPERTUX_SOURCES_CXX RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} src/*/*.cpp src/supertux/menu/*.cpp src/video/sdl/*.cpp src/video/null/*.cpp)
+ file(GLOB SUPERTUX_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${PROJECT_BINARY_DIR}/tmp/*.rc")
diff --git a/games-arcade/supertux/supertux-0.6.0.ebuild b/games-arcade/supertux/supertux-0.6.0.ebuild
new file mode 100644
index 000000000000..2fc8444ed9d0
--- /dev/null
+++ b/games-arcade/supertux/supertux-0.6.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+: ${CMAKE_MAKEFILE_GENERATOR:=emake}
+inherit cmake-utils flag-o-matic
+
+MY_P="SuperTux-v${PV}-Source"
+
+DESCRIPTION="A game similar to Super Mario Bros."
+HOMEPAGE="https://supertux.org/"
+SRC_URI="https://github.com/SuperTux/${PN}/releases/download/v${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2+ GPL-3+ ZLIB MIT CC-BY-SA-2.0 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+RDEPEND="dev-games/physfs
+ dev-libs/boost:=
+ media-libs/glew:=
+ virtual/opengl
+ media-libs/libvorbis
+ media-libs/openal
+ >=media-libs/libsdl2-2.0.1[joystick,video]
+ >=media-libs/sdl2-image-2.0.0[png,jpeg]
+ >=net-misc/curl-7.21.7"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5.0-tinygettext.patch
+ "${FILESDIR}"/${PN}-0.6.0-{license,icon,obstack}.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # This is not a developer release so switch the logo to the non-dev one.
+ sed -e 's@logo_dev@logo@' \
+ -i data/images/objects/logo/logo.sprite || die
+}
+
+src_configure() {
+ append-cxxflags -std=c++11
+
+ local mycmakeargs=(
+ -DWERROR=OFF
+ -DINSTALL_SUBDIR_BIN=bin
+ -DINSTALL_SUBDIR_DOC=share/doc/${PF}
+ -DINSTALL_SUBDIR_SHARE=share/${PN}2
+ -DENABLE_SQDBG="$(usex debug)"
+ -DENABLE_BOOST_STATIC_LIBS=OFF # bug! Please check if this is still required.
+ -DUSE_SYSTEM_PHYSFS=ON
+ )
+ cmake-utils_src_configure
+}