summaryrefslogtreecommitdiff
path: root/games-arcade/supertux
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/supertux
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/supertux')
-rw-r--r--games-arcade/supertux/Manifest18
-rw-r--r--games-arcade/supertux/files/supertux-0.4.0-desktop.patch11
-rw-r--r--games-arcade/supertux/files/supertux-0.4.0-flags.patch32
-rw-r--r--games-arcade/supertux/files/supertux-0.4.0-icon.patch11
-rw-r--r--games-arcade/supertux/files/supertux-0.4.0-license.patch11
-rw-r--r--games-arcade/supertux/files/supertux-0.4.0-obstack.patch19
-rw-r--r--games-arcade/supertux/files/supertux-0.4.0-squirrel.patch20
-rw-r--r--games-arcade/supertux/files/supertux-0.4.0-tinygettext.patch50
-rw-r--r--games-arcade/supertux/files/supertux-0.5.0-obstack.patch19
-rw-r--r--games-arcade/supertux/files/supertux-0.5.0-tinygettext.patch30
-rw-r--r--games-arcade/supertux/metadata.xml12
-rw-r--r--games-arcade/supertux/supertux-0.4.0.ebuild49
-rw-r--r--games-arcade/supertux/supertux-0.5.0.ebuild66
-rw-r--r--games-arcade/supertux/supertux-0.5.1.ebuild66
14 files changed, 414 insertions, 0 deletions
diff --git a/games-arcade/supertux/Manifest b/games-arcade/supertux/Manifest
new file mode 100644
index 000000000000..5832597570fe
--- /dev/null
+++ b/games-arcade/supertux/Manifest
@@ -0,0 +1,18 @@
+AUX supertux-0.4.0-desktop.patch 347 SHA256 747b22e615c0a65d4c042261c3a4b39cd9e0bfea1d23805b1bf093acf404a44b SHA512 cc73bafd7862c52e7e52a2bb6b9198e731ae3c63a2c15a99df291a121c82b0f3daf5ffcbd565a3ba8bbbabf1d339ff88cfcd01549a0ea8846ad9a0c98961cec0 WHIRLPOOL 3dfa7411a909e14d1e76bd64ddbe3f1eb09f688e483a25376909c83abae353d35ae990bd265fa883483ae79520445d81b735b994f47e22d975d14580a9d29235
+AUX supertux-0.4.0-flags.patch 1334 SHA256 75d1c05f9eec241928f0bca6abb712f5ea133f0be131d578bbccf98c01c3282d SHA512 37c4992bb5529bccb4ae62a0a6895c119d2c5051390f0b5d813a3b1ca12ebdd408052edf600a178eee215eb11df9bf5e29b922e178a0bcbbd32b8bca0acaa2ef WHIRLPOOL 80656eb36d8385e973b942efcca6567e244dbaa0c0e56add084589490ef3e3944a5f6fc7d850089c446abccde8baf2072546c04ecc7ba107b2f90b898e4eed71
+AUX supertux-0.4.0-icon.patch 546 SHA256 efc91245257dbdd33fe6e9e445c2ab0ad7c573c2846f7a87f002fa81aba3e313 SHA512 538adade8a8fafb187f893cdf870a9b212df52cc0c7d54d94438cfc4f4ddcaf871817aacac306656a6201dae70581de608a76694530e3d1138c70e5937f5fb6c WHIRLPOOL 8da62f0b99aabc9e2b7578f9af315ac40a4b40e0cd10ee3e76d40db3365ba63f76a22c46fd15180f07cf5609309f7c6826d27518d8d02f83661e46e2dbf50401
+AUX supertux-0.4.0-license.patch 599 SHA256 b0bdb578dae39544eb18e795c0848c6283b24ce0031c21fdaa7a15ebecb5b3af SHA512 d3609c7d0053d8f2bdaf4f91449ba71d8c2a2509bb6718393e06add5ff9b59a3dc78f70fcdb7ace4f73eab9325ab5ef64cf9399c0e65a9b31f5fc4bfeb6bb751 WHIRLPOOL 51fb9ade724db00107d9ab64e21dfe637cf90027060ec96382439b4d772b1b15367718b77b76a232d7ea3a9a8331a3f2aa920fb8a3357942bf7208fe71d489aa
+AUX supertux-0.4.0-obstack.patch 949 SHA256 d1af8887d94b7f216bdd5e0770625a9c06a2988a932a3f4e1b0697268662ce25 SHA512 3739efdc32fa4d8a8bc4666847dce938b94b64b9f327d5de0bda7067771036860fba44d20f48052c92adfb561a435b4fa19a73e2c1c0bb1c40fff1c3f31d722f WHIRLPOOL 2915a7c2fd122c87c5fd5bc8649a90f1641e36d64ca02ffa6c5172c7cba532b164f4c070d6287cea34d387bcffcd6c4b4f903161e892d1e0b8d2e8e3b7712c6e
+AUX supertux-0.4.0-squirrel.patch 629 SHA256 1b3d185dfec7bed30d9a16de9844efc7a3ca9123de407a1f18a6e21118571cdc SHA512 7defb15beee170627484a475e89bf01877e69e432f95546d2f6340ea4bb964b2852a6fc00882a0d6a90cc62fe7f53722acfee5cdb94849d29b876cb1a61d5254 WHIRLPOOL a9a94e47cea20e1e7e5c89b0095e2559daf2e3d3f2c03096dfa925fb5a55c989fcebe504ef1f3448fed261b99fcdbc2800168d8496e78d5eb79485b6b49a4bb3
+AUX supertux-0.4.0-tinygettext.patch 1467 SHA256 b6a40be658dcf528fdd015753cb44ce725af8edd6318fef68152f1b1b892dba6 SHA512 7b3b3d6ae73515172056eb54d91e27815681cf53b628b28ad8049c714aed5bb012e882a234c7701cece9f47f99cd9221caa28886bf33cf28c06b1558ac6cc4d5 WHIRLPOOL 04388ae2d81a9849c88588f6a67796135e0b72d8f142843a9bf93eb179952dd9f57147b298c533f9d14230ca156fce86ea5a8aa432023d90daf0b4d2a16ae979
+AUX supertux-0.5.0-obstack.patch 958 SHA256 54fcbc8c4bd11d9e97b471fa3fbce56011263497aa5b85ea221c4c6a268f1028 SHA512 aecba33369bb255c9fef8e0ed873d7c457ddd85340f2788bd3f517b1a126e943e0ec1085239f1fea7eb242d0344efaa5ddeaa14865cc61a6863dab44b854f9ed WHIRLPOOL 2192dc5d671c193e51255baf7361e1787d3031f87502a05b3eb61bf02d78077544089b20463b4d6e38213632b00910ead3b0c67ae6a95c56a1dfaf06215c6990
+AUX supertux-0.5.0-tinygettext.patch 920 SHA256 5d96930f4be5349e66fd8d4d646503cfc8e94ad1d5eb2f53a42e1616f5af012d SHA512 eaf1c0ca534cb6d0cd216bd69283856bdad46830210edb6b00d4d382b2a2045eede8e96fa7b1832e8e2246144452b59a82966621441362c56c8bd3ace758097e WHIRLPOOL 3b13f4d3b178e07ef42ba50136530f7ef148a4722ecb5b3584faed4e06c140c54826ba71e327dc9c5efb9f996a2e823f5a345452e8d8fa7b368b59f2430400f7
+DIST SuperTux-v0.5.0-Source.tar.gz 90564579 SHA256 cfae0da40c41532fb414c3b17891c98396b59471fe583a8fc756b96aea61a73b SHA512 dcd4d361eee34d8ab25e680cec328b0931a001f8ab97d0b40b03291e9214fdb64cc08fbccb81f524e5f6ba9921414bdf58dc29e27ff663a0160f678b6908b783 WHIRLPOOL ffee5ad36bc305e9df5f9e4a31d3ea5bfb6684ee8c91ced44ed072e5262dd2c8e4fff676fd5abc2bdfa6ab942ec5d18b6864ebe0882eb3d0f78213e14fa51eb3
+DIST SuperTux-v0.5.1-Source.tar.gz 90564367 SHA256 c9dc3b42991ce5c5d0d0cb94e44c4ec2373ad09029940f0e92331e7e9ada0ac5 SHA512 1a841cec9b71ff482aa271ec94f0563052ed33c65b26958c15c818f897f184356605a115abb70bdb8302f8cdb6e6107cf336790c3929cbc7e3dc78d31b4e2c8a WHIRLPOOL 2be132c1265d119acb24dd900c49f40c2b12cac51646bfb9c970e0b97d030210ce885ac8932815c15a1d67e28cbba8e6a0301eee4becf78cf995668641f18830
+DIST supertux-0.4.0.tar.bz2 79713147 SHA256 d18dde3c415e619b4bb035e694ffc384be16576250c9df16929d9ec38daff782 SHA512 66ca63c982b6076847662c187069eb965211439e5dfc628300f2a9bd0d2b4c0f7b53f6e7c2aed263c098cc9b77fedf132e73b1f3b3eacaf5535cae8300262fb5 WHIRLPOOL 12551b655f0459a37d3b91b1eff058ec383df34c9f3c29c1e8a63c070c12b32ec798b772053cd08b11d32b612bab1188b69678e71585279e94ad380052076f64
+EBUILD supertux-0.4.0.ebuild 1112 SHA256 b9f911bac608cce812840cfc0c9ae183c8f8a5412608d81b1407c872cecc7265 SHA512 c8d7fe5f9ea6bd99b730c5669bb8b7f35e6c21d4c8d0490f25b9af994eb81780c3e436ff02d67fefbc773667177b6ec50c7c9ad0f484f32cc6266346549a03cd WHIRLPOOL 1ae6373dfc8b1d9821d02395461498f4f92317a3f644cf4b24fbe9789d4302214372477c3a3533206a44c1d0576a8cddf3b84f6e134043e39ff26ab4d6b41eed
+EBUILD supertux-0.5.0.ebuild 1493 SHA256 169667f5e6d2baea3e17f5140246b20420a4d1702200e29c3ed215232784045d SHA512 166ded3e31164f2275808ffc0b3da3d9d59c03a5c4d246debc10c9af2b9fda29c745c15ce9ccb5c137ddac34bc7730bc293e143661f6933b2576d3ccfeaa9382 WHIRLPOOL f2cd1ce1c73cc5f57f8642c40a82c4bd4cf88a7ef4a797ccdf7ef7ed88cbbf2243019a02cde0d7de9166575fbadc478cc19f7a2a07d06e21704747f12b792f0a
+EBUILD supertux-0.5.1.ebuild 1505 SHA256 5483e2315b6fd5385bf76f86b7ba8f25e55ee043debd73bcea7cab66a1954b0e SHA512 92777a88dd51fac330cbe79e839c409c9d899d7d8a593d5b015c121f01c755727073ecaf5145b215d9b6fa2bdb4bbf2377cc362052893452e1ba2d434d77b53f WHIRLPOOL 51fb24205521dbbc401d7087a936843bf9884af749f1865b365f1478d156039a74474d64cc9b6d0a768129dde90ec8431e4ddd69ca5c22b574135ef2546a49f6
+MISC ChangeLog 5142 SHA256 02997c0dc3a7f72fb6b6cd61b95280b5fbc0372e8ce2e999a30cbebbe32101ff SHA512 0e2df20401eae7f905735ce4391f430d2f3a5394e277fde3c2ea252d7b8ea3041004808e450c7cc7fe0c3ea3ea07568997d8bfccdf17b6fed3f82196551cf13d WHIRLPOOL 8dfdb192f792ad986a9c37203aa9338e7d4a02d65a535ea427844012ce124847ddfe5358a7b5813daa91d7a79749ebfed60a26a17c45d17b0d3b30bce7fc8056
+MISC ChangeLog-2015 4801 SHA256 616c2e5e78f42e994d332869796be5ac798fd1e30e61cd08b3ba0902a227b63d SHA512 2b77e29bfd4fb055c3608a2f2e06bb7346485f833ffd387ffe252fe610f54cc5c731f3004af1f721a992ffbfea52430ac840aed75ceaacf7bbb63427d7225d4e WHIRLPOOL e869d8f832b7965201bb8fe3a0c637a6ac59e7e841321fcb983ddcc6acfc9d96336cf16922e770d0c26951493fd0c792a3428a5709a232fd00efbd9312b33fe3
+MISC metadata.xml 389 SHA256 f005eed412cb4739bd9fff8f1415323726fecfffdc39e6f15a40d28dfaa71f5e SHA512 e61b89a6c0da8bf74f2b126e185fbf4be02b7ac7bc80082bd4c6e80384ab00db73a196af1ed9448a31435dbb62768b7eee8c8e64a40c51a6257bffe8170deb65 WHIRLPOOL 0b5eaef1284f186a64ba1cdf3de6fcec072f5ae4de36e1fdb274904db3f8a54e4deebfdfc187236b869032074cf55b6f0a45a116485fbf5e1d3697a6e8d7240b
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-flags.patch b/games-arcade/supertux/files/supertux-0.4.0-flags.patch
new file mode 100644
index 000000000000..a09176cedd14
--- /dev/null
+++ b/games-arcade/supertux/files/supertux-0.4.0-flags.patch
@@ -0,0 +1,32 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -329,7 +329,7 @@
+ endif(COMPILER_SUPPORTS_CXX11)
+
+
+-IF(CMAKE_COMPILER_IS_GNUCC)
++IF(CMAKE_COMPILER_IS_GNUCC_NOTOUCHING_FLAGS)
+ SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g" CACHE STRING "Debug flags")
+ SET(CMAKE_C_FLAGS_DEBUG "-O0 -g" CACHE STRING "Debug flags")
+ SET(CMAKE_CXX_FLAGS_PROFILE "-pg" CACHE STRING "Profile flags")
+@@ -352,7 +352,7 @@
+ # -Wlogical-op -Wstrict-null-sentinel
+ SET(SUPERTUX2_EXTRA_WARNING_FLAGS "-fdiagnostics-show-option -pedantic -Wno-long-long -Wcast-align -Wdisabled-optimization -Winit-self -Winvalid-pch -Wmissing-include-dirs -Wmissing-noreturn -Wpacked -Wredundant-decls -Wstack-protector -Wformat=2 -Weffc++ -Wctor-dtor-privacy -Wno-unused-parameter -Wshadow -Wnon-virtual-dtor -Wcast-qual")
+ ENDIF(WARNINGS)
+-ENDIF(CMAKE_COMPILER_IS_GNUCC)
++ENDIF(CMAKE_COMPILER_IS_GNUCC_NOTOUCHING_FLAGS)
+
+ ## If xgettext is available, generate messages.pot for sources
+
+@@ -407,9 +407,9 @@
+ ENDIF(GENERATE_MESSAGESPOT)
+
+ ## Some additional compiler switches
+-IF(CMAKE_COMPILER_IS_GNUCC)
++IF(CMAKE_COMPILER_IS_GNUCC_NOTOUCHING_FLAGS)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing")
+-ENDIF(CMAKE_COMPILER_IS_GNUCC)
++ENDIF(CMAKE_COMPILER_IS_GNUCC_NOTOUCHING_FLAGS)
+
+ IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+ ADD_DEFINITIONS(-DMACOSX)
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.4.0-obstack.patch b/games-arcade/supertux/files/supertux-0.4.0-obstack.patch
new file mode 100644
index 000000000000..609fe9486098
--- /dev/null
+++ b/games-arcade/supertux/files/supertux-0.4.0-obstack.patch
@@ -0,0 +1,19 @@
+--- CMakeLists.txt.orig
++++ CMakeLists.txt
+@@ -251,7 +251,6 @@
+ include_directories (${CMAKE_CURRENT_SOURCE_DIR}/external/squirrel/include/)
+ include_directories (${CMAKE_CURRENT_SOURCE_DIR}/external/tinygettext/include/)
+ include_directories (${CMAKE_CURRENT_SOURCE_DIR}/external/findlocale/)
+-include_directories (${CMAKE_CURRENT_SOURCE_DIR}/external/obstack/)
+
+ IF(WIN32)
+ ADD_DEFINITIONS(-D_USE_MATH_DEFINES -DNOMINMAX)
+@@ -260,7 +259,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.4.0-squirrel.patch b/games-arcade/supertux/files/supertux-0.4.0-squirrel.patch
new file mode 100644
index 000000000000..09824425dede
--- /dev/null
+++ b/games-arcade/supertux/files/supertux-0.4.0-squirrel.patch
@@ -0,0 +1,20 @@
+--- supertux-0.4.0.orig/external/squirrel/CMakeLists.txt
++++ supertux-0.4.0/external/squirrel/CMakeLists.txt
+@@ -65,8 +65,6 @@
+
+ # the squirrel sources are out of our control so don't be too pedantic about
+ # them
+-SET(CMAKE_CXX_FLAGS "")
+-SET(CMAKE_C_FLAGS "")
+
+ ## define a target for building the library
+
+@@ -82,8 +80,3 @@
+ set(LIB_SUBDIR "lib${LIB_SUFFIX}"
+ CACHE STRING "Subdirectory of prefix into which libraries are installed (e.g., lib32, lib64)")
+
+-INSTALL(TARGETS squirrel
+- RUNTIME DESTINATION bin
+- ARCHIVE DESTINATION ${LIB_SUBDIR}
+- LIBRARY DESTINATION ${LIB_SUBDIR}
+- COMPONENT squirrel)
diff --git a/games-arcade/supertux/files/supertux-0.4.0-tinygettext.patch b/games-arcade/supertux/files/supertux-0.4.0-tinygettext.patch
new file mode 100644
index 000000000000..23e572d4419c
--- /dev/null
+++ b/games-arcade/supertux/files/supertux-0.4.0-tinygettext.patch
@@ -0,0 +1,50 @@
+--- supertux-0.4.0.orig/external/tinygettext/CMakeLists.txt
++++ supertux-0.4.0/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
+
+@@ -127,14 +127,9 @@
+ ## 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)
++option(WARNINGS "Enable long list of warnings for compiler to check" OFF)
+
+ CHECK_CXX_FLAG(std=c++0x)
+-CHECK_CXX_FLAG(O3)
+-CHECK_CXX_FLAG(Wall)
+-CHECK_CXX_FLAG(Wextra)
+-CHECK_CXX_FLAG(Weffc++)
+-CHECK_CXX_FLAG(pedantic)
+
+ if(WARNINGS)
+ CHECK_CXX_FLAG(Wabi)
+@@ -194,22 +189,4 @@
+ endforeach(TEST)
+ ENDIF()
+
+-## Install tinygettext
+-
+-# use standardized variable name
+-set(LIB_SUBDIR "lib${LIB_SUFFIX}"
+- CACHE STRING "Subdirectory of prefix into which libraries are installed (e.g., lib32, lib64)")
+-
+-## prepare tinygettext.pc
+-configure_file(tinygettext.pc.in tinygettext.pc @ONLY)
+-
+-install(TARGETS tinygettext
+- RUNTIME DESTINATION bin
+- ARCHIVE DESTINATION ${LIB_SUBDIR}
+- LIBRARY DESTINATION ${LIB_SUBDIR})
+-install(FILES ${TINYGETTEXT_HEADERS}
+- DESTINATION include/tinygettext)
+-install(FILES ${tinygettext_BINARY_DIR}/tinygettext.pc
+- DESTINATION ${LIB_SUBDIR}/pkgconfig)
+-
+ # EOF #
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/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.4.0.ebuild b/games-arcade/supertux/supertux-0.4.0.ebuild
new file mode 100644
index 000000000000..a0a22e745f89
--- /dev/null
+++ b/games-arcade/supertux/supertux-0.4.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils games
+
+DESCRIPTION="A game similar to Super Mario Bros."
+HOMEPAGE="http://supertuxproject.org/"
+SRC_URI="https://github.com/SuperTux/${PN}/releases/download/v${PV}/${P}.tar.bz2"
+
+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"
+
+PATCHES=( "${FILESDIR}"/${P}-{obstack,tinygettext,squirrel,desktop,flags,license,icon}.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ -DWERROR=OFF
+ -DINSTALL_SUBDIR_BIN=games/bin
+ -DINSTALL_SUBDIR_DOC=share/doc/${PF}
+ $(cmake-utils_use_enable debug SQDBG)
+ $(cmake-utils_use debug)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ prepgamesdirs
+}
diff --git a/games-arcade/supertux/supertux-0.5.0.ebuild b/games-arcade/supertux/supertux-0.5.0.ebuild
new file mode 100644
index 000000000000..e28f80941c69
--- /dev/null
+++ b/games-arcade/supertux/supertux-0.5.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils flag-o-matic
+
+MY_P="SuperTux-v${PV}-Source"
+
+DESCRIPTION="A game similar to Super Mario Bros."
+HOMEPAGE="http://supertuxproject.org/"
+SRC_URI="https://github.com/SuperTux/supertux/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}"/${P}-{obstack,tinygettext}.patch
+)
+
+src_prepare() {
+ default
+
+ # This is not a developer release so switch the logo to the non-dev one.
+ sed '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)"
+ -DUSE_DEBUG="$(usex debug)"
+ -DENABLE_BOOST_STATIC_LIBS=OFF # bug! Should be fixed in next release
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+}
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..c5627b655caf
--- /dev/null
+++ b/games-arcade/supertux/supertux-0.5.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils flag-o-matic
+
+MY_P="SuperTux-v${PV}-Source"
+
+DESCRIPTION="A game similar to Super Mario Bros."
+HOMEPAGE="http://supertuxproject.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
+)
+
+src_prepare() {
+ default
+
+ # This is not a developer release so switch the logo to the non-dev one.
+ sed '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)"
+ -DUSE_DEBUG="$(usex debug)"
+ -DENABLE_BOOST_STATIC_LIBS=OFF # bug! Please check if this is still required.
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+}