diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-arcade/supertux | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-arcade/supertux')
-rw-r--r-- | games-arcade/supertux/Manifest | 9 | ||||
-rw-r--r-- | games-arcade/supertux/files/supertux-0.4.0-desktop.patch | 11 | ||||
-rw-r--r-- | games-arcade/supertux/files/supertux-0.4.0-icon.patch | 11 | ||||
-rw-r--r-- | games-arcade/supertux/files/supertux-0.4.0-license.patch | 11 | ||||
-rw-r--r-- | games-arcade/supertux/files/supertux-0.5.0-obstack.patch | 19 | ||||
-rw-r--r-- | games-arcade/supertux/files/supertux-0.5.0-tinygettext.patch | 30 | ||||
-rw-r--r-- | games-arcade/supertux/files/supertux-0.5.1-ninja.patch | 30 | ||||
-rw-r--r-- | games-arcade/supertux/metadata.xml | 12 | ||||
-rw-r--r-- | games-arcade/supertux/supertux-0.5.1.ebuild | 61 |
9 files changed, 194 insertions, 0 deletions
diff --git a/games-arcade/supertux/Manifest b/games-arcade/supertux/Manifest new file mode 100644 index 000000000000..520ddb9e7622 --- /dev/null +++ b/games-arcade/supertux/Manifest @@ -0,0 +1,9 @@ +AUX supertux-0.4.0-desktop.patch 347 BLAKE2B fd34f3607975c4715dbba48e87c1090b992927e8ef5cd94a9054ea62de4bd79dcaa1b74e14a7af55aba68c06abc61311cfef2e2fd5ac79c78b86698dcc1579c4 SHA512 cc73bafd7862c52e7e52a2bb6b9198e731ae3c63a2c15a99df291a121c82b0f3daf5ffcbd565a3ba8bbbabf1d339ff88cfcd01549a0ea8846ad9a0c98961cec0 +AUX supertux-0.4.0-icon.patch 546 BLAKE2B c5e26bdb22cee7ffd8a3d9a9f87e0c2a486c4eb6857a7f9754106bac3fdcd80d2e95c7b62af2dcb32f34abd25af93d4de5d69a449ee1232ebc87a27d6319b6c0 SHA512 538adade8a8fafb187f893cdf870a9b212df52cc0c7d54d94438cfc4f4ddcaf871817aacac306656a6201dae70581de608a76694530e3d1138c70e5937f5fb6c +AUX supertux-0.4.0-license.patch 599 BLAKE2B a89b596876956f260de582d7f31e1b8ded03471e5fbefd0cf9214dd95a54c889b295707becfbf9f98d32269e414acf498713cae47ae882604e8683eac926086a SHA512 d3609c7d0053d8f2bdaf4f91449ba71d8c2a2509bb6718393e06add5ff9b59a3dc78f70fcdb7ace4f73eab9325ab5ef64cf9399c0e65a9b31f5fc4bfeb6bb751 +AUX supertux-0.5.0-obstack.patch 958 BLAKE2B 41da812369a4a64040e7759a4c56a7b3fb42898f50fc58ef03d76a9c27cc904db9909223eee98f9f5a7f12b5c0fde295701633eab308fe495333df3989071de7 SHA512 aecba33369bb255c9fef8e0ed873d7c457ddd85340f2788bd3f517b1a126e943e0ec1085239f1fea7eb242d0344efaa5ddeaa14865cc61a6863dab44b854f9ed +AUX supertux-0.5.0-tinygettext.patch 920 BLAKE2B 9558c2df82a03e1893ae10c0f283f257fda90493947e4fbaec24a6e4d540e0dcf28505be92be3224b4cb5f6ca978abc09adac0b86503132203e9ce0cacf2b1c2 SHA512 eaf1c0ca534cb6d0cd216bd69283856bdad46830210edb6b00d4d382b2a2045eede8e96fa7b1832e8e2246144452b59a82966621441362c56c8bd3ace758097e +AUX supertux-0.5.1-ninja.patch 1045 BLAKE2B 2f59d8fdf05e1994ae9690cdce001ea6235f8c06e7438eba41b54264e631188210591adce6d212f08a497c31cca9f08542b4dff1cac4568b0fdb4410eaaecdb6 SHA512 8b877ab382913d74db9890bf19867efc0c6ff4a5901a679ffbfbe72142341e61c804e1f4def1bd1157f3f144b50f2eca143420b08940eeaaed93a9b8fc1c8d5d +DIST SuperTux-v0.5.1-Source.tar.gz 90564367 BLAKE2B ba6549c135655d59ebbbed1431baf30cce1e0fb1bcdaee3dd050732992a02bb4dbd25b5399c83d3a7145f8afd20b3e8f4471007d424d2bc40c906d6121678123 SHA512 1a841cec9b71ff482aa271ec94f0563052ed33c65b26958c15c818f897f184356605a115abb70bdb8302f8cdb6e6107cf336790c3929cbc7e3dc78d31b4e2c8a +EBUILD supertux-0.5.1.ebuild 1502 BLAKE2B fdda1513fc69f1c990243b3375e6e5f11dc46bef8434331a6b28aa0b3e78db1c2af81765a1b71d69b953721b68e24d64de1cc4a074773421e2312d09894851f7 SHA512 af5b234a5893f3162a88e006758f3d3ffc8631a3dd18d422a9ca598fbc00ff933fe62ed51ddbcfefecbfca9d10e74a609b06575d14398f842f5477e551292c01 +MISC metadata.xml 389 BLAKE2B 960cbba61ef7e12c35b66f36620ba2570e159517b06a520b0c233496c0910b2949f4f87b789f3c948621b6beb2ba0a4d5e8bdb277516213cbbc115d31af58698 SHA512 e61b89a6c0da8bf74f2b126e185fbf4be02b7ac7bc80082bd4c6e80384ab00db73a196af1ed9448a31435dbb62768b7eee8c8e64a40c51a6257bffe8170deb65 diff --git a/games-arcade/supertux/files/supertux-0.4.0-desktop.patch b/games-arcade/supertux/files/supertux-0.4.0-desktop.patch new file mode 100644 index 000000000000..74a087263368 --- /dev/null +++ b/games-arcade/supertux/files/supertux-0.4.0-desktop.patch @@ -0,0 +1,11 @@ +--- a/supertux2.desktop ++++ b/supertux2.desktop +@@ -35,7 +35,7 @@ + Comment[pt]=Joga este clássico de plataformas 2D + Comment[pt_BR]=Encarne o pinguin Tux neste jogo inspirado em clássicos de Pular&Correr + Comment[hu]=Egy klasszikus 2D-s oldalnézeti játék +-Icon=supertux.png ++Icon=supertux + Exec=supertux2 + Terminal=false + StartupNotify=false diff --git a/games-arcade/supertux/files/supertux-0.4.0-icon.patch b/games-arcade/supertux/files/supertux-0.4.0-icon.patch new file mode 100644 index 000000000000..66be0ebe493b --- /dev/null +++ b/games-arcade/supertux/files/supertux-0.4.0-icon.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -571,7 +571,7 @@ + + SET(APPS "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${INSTALL_SUBDIR_BIN}/supertux2") + +- INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/images/engine/icons/supertux.png ${CMAKE_CURRENT_SOURCE_DIR}/data/images/engine/icons/supertux.xpm DESTINATION "share/pixmaps/") ++ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/images/engine/icons/supertux.png DESTINATION "share/pixmaps/") + + ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND DISABLE_CPACK_BUNDLING) + ENDIF(WIN32 AND NOT UNIX) diff --git a/games-arcade/supertux/files/supertux-0.4.0-license.patch b/games-arcade/supertux/files/supertux-0.4.0-license.patch new file mode 100644 index 000000000000..e35f85ce416f --- /dev/null +++ b/games-arcade/supertux/files/supertux-0.4.0-license.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -578,7 +578,7 @@ + + INSTALL(TARGETS supertux2_exe DESTINATION ${INSTALL_SUBDIR_BIN}) + +-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.txt DESTINATION ${INSTALL_SUBDIR_SHARE}) + diff --git a/games-arcade/supertux/files/supertux-0.5.0-obstack.patch b/games-arcade/supertux/files/supertux-0.5.0-obstack.patch new file mode 100644 index 000000000000..1b05369f67f3 --- /dev/null +++ b/games-arcade/supertux/files/supertux-0.5.0-obstack.patch @@ -0,0 +1,19 @@ +--- supertux-0.5.0/CMakeLists.txt ++++ supertux-0.5.0/CMakeLists.txt +@@ -382,7 +382,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/) + + IF(WIN32) +@@ -392,7 +391,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) + FILE(GLOB SUPERTUX_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${PROJECT_BINARY_DIR}/tmp/*.rc") diff --git a/games-arcade/supertux/files/supertux-0.5.0-tinygettext.patch b/games-arcade/supertux/files/supertux-0.5.0-tinygettext.patch new file mode 100644 index 000000000000..3bedc38eb803 --- /dev/null +++ b/games-arcade/supertux/files/supertux-0.5.0-tinygettext.patch @@ -0,0 +1,30 @@ +--- SuperTux-v0.5.0-Source/external/tinygettext/CMakeLists.txt ++++ SuperTux-v0.5.0-Source/external/tinygettext/CMakeLists.txt +@@ -59,7 +59,7 @@ + ) + + ## Reveal library type choice to users +-option(BUILD_SHARED_LIBS "Produce dynamic library instead of static archive" ON) ++option(BUILD_SHARED_LIBS "Produce dynamic library instead of static archive" OFF) + + # TinyGetText library compilation + +@@ -128,17 +128,7 @@ + ## Debug options + + option(WERROR "Stops on first compiler warning in debug mode" OFF) +-option(WARNINGS "Enable long list of warnings for compiler to check" ON) +- +-CHECK_CXX_FLAG(std=c++0x) +-CHECK_CXX_FLAG(O3) +-IF(NOT MSVC) +- #MSVC is excessivly verbose when Wall is activated +- CHECK_CXX_FLAG(Wall) +-ENDIF() +-CHECK_CXX_FLAG(Wextra) +-CHECK_CXX_FLAG(Weffc++) +-CHECK_CXX_FLAG(pedantic) ++option(WARNINGS "Enable long list of warnings for compiler to check" OFF) + + if(WARNINGS) + CHECK_CXX_FLAG(Wabi) diff --git a/games-arcade/supertux/files/supertux-0.5.1-ninja.patch b/games-arcade/supertux/files/supertux-0.5.1-ninja.patch new file mode 100644 index 000000000000..d5181177fdcd --- /dev/null +++ b/games-arcade/supertux/files/supertux-0.5.1-ninja.patch @@ -0,0 +1,30 @@ +Allow building with ninja instead of CMake, see also: + + https://bugs.gentoo.org/649458 + https://cmake.org/pipermail/cmake/2015-April/060234.html + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -332,7 +332,10 @@ + -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} + -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} + -DCMAKE_INSTALL_PREFIX=${SQUIRREL_PREFIX} +- -DINSTALL_INC_DIR=include) ++ -DINSTALL_INC_DIR=include ++ BUILD_BYPRODUCTS ++ squirrel/lib/libsquirrel_static.a ++ squirrel/lib/libsqstdlib_static.a) + + IF(WIN32) + ADD_LIBRARY(squirrel_lib SHARED IMPORTED) +@@ -370,7 +373,9 @@ + -DHAVE_SDL=ON + -DCMAKE_INSTALL_PREFIX=${TINYGETTEXT_PREFIX} + -DSDL2_INCLUDE_DIRS=${SDL2_INCLUDE_DIRS} +- -DLIB_SUFFIX=${LIB_SUFFIX}) ++ -DLIB_SUFFIX=${LIB_SUFFIX} ++ BUILD_BYPRODUCTS ++ tinygettext/lib${LIB_SUFFIX}/libtinygettext.a) + + ADD_LIBRARY(tinygettext_lib STATIC IMPORTED) + SET_TARGET_PROPERTIES(tinygettext_lib PROPERTIES IMPORTED_LOCATION "${TINYGETTEXT_PREFIX}/lib${LIB_SUFFIX}/${CMAKE_STATIC_LIBRARY_PREFIX}tinygettext${CMAKE_STATIC_LIBRARY_SUFFIX}") diff --git a/games-arcade/supertux/metadata.xml b/games-arcade/supertux/metadata.xml new file mode 100644 index 000000000000..f4836cbdbe41 --- /dev/null +++ b/games-arcade/supertux/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">super-tux</remote-id> + <remote-id type="github">SuperTux/supertux</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/supertux/supertux-0.5.1.ebuild b/games-arcade/supertux/supertux-0.5.1.ebuild new file mode 100644 index 000000000000..c1773f3228cd --- /dev/null +++ b/games-arcade/supertux/supertux-0.5.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +: ${CMAKE_MAKEFILE_GENERATOR:=ninja} +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.4.0-{desktop,license,icon}.patch + "${FILESDIR}"/${PN}-0.5.0-{obstack,tinygettext}.patch + "${FILESDIR}"/${PN}-0.5.1-ninja.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 +} |