diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/pingus |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/pingus')
-rw-r--r-- | games-puzzle/pingus/Manifest | 8 | ||||
-rw-r--r-- | games-puzzle/pingus/files/pingus-0.7.6-echo-e.patch | 13 | ||||
-rw-r--r-- | games-puzzle/pingus/files/pingus-0.7.6-gcc47.patch | 22 | ||||
-rw-r--r-- | games-puzzle/pingus/files/pingus-0.7.6-noopengl.patch | 10 | ||||
-rw-r--r-- | games-puzzle/pingus/metadata.xml | 24 | ||||
-rw-r--r-- | games-puzzle/pingus/pingus-0.7.6.ebuild | 56 |
6 files changed, 133 insertions, 0 deletions
diff --git a/games-puzzle/pingus/Manifest b/games-puzzle/pingus/Manifest new file mode 100644 index 000000000000..368fe9751d41 --- /dev/null +++ b/games-puzzle/pingus/Manifest @@ -0,0 +1,8 @@ +AUX pingus-0.7.6-echo-e.patch 489 SHA256 34884a3794a5cc781468ec4bba06e2086c1e249186586ab975e47715a6ddc84c SHA512 eb9f2859dcd68b2c1158499435a4742062069cb148e6658396c36fed6b1bba7589d9fbace40c25052e6d42a2b05cdca49561be45053dd9716ee9d9f41a5ab612 WHIRLPOOL 609a845c6f117ab91185542ebbc583a06fa639114805e378eeebac08604da93ae4461eb673294ea83670ab6d419cc431f18a25948a2ac1f2db85f7c6e7a050e0 +AUX pingus-0.7.6-gcc47.patch 1242 SHA256 918dcd8a1c2850af5a6b390d92fc0f4f8670a2e002fc15d01d171bbb97c095e5 SHA512 998aa2c9547fe82775442b8f234d07724642e342d7ccea724726c9210559b1cc8ea5e19d51c7d0bbf61b523cb83fa198596b25e6c6e1ce9882d75d73b9d67f68 WHIRLPOOL ccff5e8ee90a744c15852821a7ca62ea0603ac8fdb81069bb6936254c7d4aaf2b81b4432609c160ebc23ba6e08e5452c90054d092c7a3a6464ff18fc50aeab1e +AUX pingus-0.7.6-noopengl.patch 388 SHA256 7b21454857240c46ee94e06cd18e80c6ffc390256764dde50d42c699fc942914 SHA512 431226d068ffdadf33cd1b73c86e2e2e43de3def166c42cd0592b58e0025f842f579bafa4532f45acf05f4490189d26c679a4b0bcf4f16818aea307b2efe5eb2 WHIRLPOOL 8b54118d4d226ebead2ffe3ffde119f3bd51b8b5e4b692ebac9d9934f880752825b5883b5a9ad34d1c29879883050204fb651891ba181be6b85c7440c90f7f9a +DIST pingus-0.7.6.tar.bz2 12622268 SHA256 759c1253075d1e72691bc1e770b24cdd51917041fd1857c1daf85b65a6686460 SHA512 6c8c2ace1a9229b4e3b506aee76aa94c0dd906a64fa2c817902c2cd3854df390cf675c8c6ddd3ba1926a467348b2103818bd44bc095378cc7bf3f2ff7af27188 WHIRLPOOL 2c4bafef86c40fec3fcfc9ff4b298e72919c8309d475aa4aeb4d368927ac611801f416375108091d9f40bdb2703633765125f6f7ea361186f637e2d5234e53e2 +EBUILD pingus-0.7.6.ebuild 1224 SHA256 961e457619f09a5e12504cad7bfa0eaedd318ca1ef75ae8079544562e4b89849 SHA512 5d3e931d35cf7543ef31162dcf542a824713d2769a33c25c852303c7981fc72adadc8dee59b5754c420e809167dd824cca52c287424b733c9102782a0b10b6b4 WHIRLPOOL 904f60f8e31e511296418dab3b226fbda4dea779bfe4d92cf7c69c3d5b8d68b276c4c9ac6f891d3cab5a64f01762c9e3f95100ff8add1da1f73a946da1b104da +MISC ChangeLog 2918 SHA256 da688e2d4929d2490ca4b1ce9c7c802ffffb1df5525f8ccc4db855a1a396d3ef SHA512 1d8e96c37fa51da6c7cb4eeabfd17c9e878685794a00fd13af6e0d68008d51b9746ff99f1646782ff1cd113e47da35d91e4355cf1140b39f3ef1acc3bcd33f9b WHIRLPOOL b9e43ea6992775cfd61cacbb5601d2f1f7747965706c7331a287065683deff285a6db992f469a5ec975c00a669ea610a254b073a727f6006ddeb33a4b2fd4cb2 +MISC ChangeLog-2015 7063 SHA256 d666f020e7dab1ec0d244e955f440ddfe1ff9a083611b40529d6f4a7563da3b0 SHA512 8758bb56b513263ca5ba787864e9437cd52d151e4a31eb7579a3eeb264776000e7e0790b9566501735f12ebbde9b0ba0540921c572a343d00ed13e27279c6953 WHIRLPOOL 3ab528c0623ceb154d6a2db414f5d00b4c52e7eb78f32a2514957a83074a586d2691561f36de68eb30d44f1298cb10ab43a9e5498baf3e3313ec068c3d492114 +MISC metadata.xml 1283 SHA256 a31c693f896436f5aae0751bb3b7e6ed5d671b14f9b730395227ffb9f1e599b0 SHA512 04c0f4cb00f8b50e5f589d6bfa48389fb7fb2ff0ac2343c625f98383ec41ea77d63dbdc14d12325f3837e4961c544503f1a76a4298fa061458a71b1e198c8219 WHIRLPOOL f613897df74d069739f56e09509883c2bfe40b66bd1e6d91c553cd6be149c83628248abf9377c981cc638b4c6b568e7598f9c34f987c79d86bbc66d01718d85f diff --git a/games-puzzle/pingus/files/pingus-0.7.6-echo-e.patch b/games-puzzle/pingus/files/pingus-0.7.6-echo-e.patch new file mode 100644 index 000000000000..ab772d8c72e9 --- /dev/null +++ b/games-puzzle/pingus/files/pingus-0.7.6-echo-e.patch @@ -0,0 +1,13 @@ +# Work around Gentoo's crippled dash + +--- pingus-0.7.6/Makefile ++++ pingus-0.7.6/Makefile +@@ -39,7 +39,7 @@ + install -d "$(DESTDIR)$(BINDIR)" + + install -D build/pingus "$(DESTDIR)$(BINDIR)/pingus.bin" +- echo -e "#!/bin/sh\nexec \"$(BINDIR)/pingus.bin\" --datadir \"$(DATADIR)\"" > "$(DESTDIR)$(BINDIR)/pingus" ++ printf '%s\n%s' "#!/bin/sh" "exec \"$(BINDIR)/pingus.bin\" --datadir \"$(DATADIR)\"" > "$(DESTDIR)$(BINDIR)/pingus" + chmod 755 "$(DESTDIR)$(BINDIR)/pingus" + + install-data: diff --git a/games-puzzle/pingus/files/pingus-0.7.6-gcc47.patch b/games-puzzle/pingus/files/pingus-0.7.6-gcc47.patch new file mode 100644 index 000000000000..b1397da31f68 --- /dev/null +++ b/games-puzzle/pingus/files/pingus-0.7.6-gcc47.patch @@ -0,0 +1,22 @@ +--- src/pingus/pingus_main.cpp.orig 2012-07-08 14:02:40.343767438 +0200 ++++ src/pingus/pingus_main.cpp 2012-07-08 14:02:54.062768168 +0200 +@@ -465,7 +465,7 @@ + void + PingusMain::print_greeting_message() + { +- std::string greeting = "Welcome to Pingus "VERSION; ++ std::string greeting = "Welcome to Pingus " VERSION; + greeting += "!"; + std::cout << greeting << std::endl; + for (unsigned int i = 0; i < greeting.length(); ++i) +--- src/pingus/screens/pingus_menu.cpp.orig 2012-07-08 14:03:05.549768782 +0200 ++++ src/pingus/screens/pingus_menu.cpp 2012-07-08 14:03:17.015769393 +0200 +@@ -153,7 +153,7 @@ + gc.get_height()/2 - 280)); + + gc.print_left(Fonts::pingus_small, Vector2i(gc.get_width()/2 - 400 + 25, gc.get_height()-140), +- "Pingus "VERSION" - Copyright (C) 1998-2011 Ingo Ruhnke <grumbel@gmail.com>\n" ++ "Pingus " VERSION " - Copyright (C) 1998-2011 Ingo Ruhnke <grumbel@gmail.com>\n" + "See the file AUTHORS for a complete list of contributors.\n" + "Pingus comes with ABSOLUTELY NO WARRANTY. This is free software, and you are\n" + "welcome to redistribute it under certain conditions; see the file COPYING for details.\n"); diff --git a/games-puzzle/pingus/files/pingus-0.7.6-noopengl.patch b/games-puzzle/pingus/files/pingus-0.7.6-noopengl.patch new file mode 100644 index 000000000000..e474ef7376e5 --- /dev/null +++ b/games-puzzle/pingus/files/pingus-0.7.6-noopengl.patch @@ -0,0 +1,10 @@ +--- src/engine/display/display.cpp.orig 2012-06-30 00:30:13.043995049 -0400 ++++ src/engine/display/display.cpp 2012-06-30 00:30:28.194501544 -0400 +@@ -28,6 +28,7 @@ + #include "engine/display/delta/delta_framebuffer.hpp" + #include "engine/display/null_framebuffer.hpp" + #include "util/log.hpp" ++#include "util/raise_exception.hpp" + + std::unique_ptr<Framebuffer> Display::s_framebuffer; + diff --git a/games-puzzle/pingus/metadata.xml b/games-puzzle/pingus/metadata.xml new file mode 100644 index 000000000000..844c1d47bf96 --- /dev/null +++ b/games-puzzle/pingus/metadata.xml @@ -0,0 +1,24 @@ +<?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> + <longdescription>Pingus is a free Lemmings clone for GNU/Linux and Windows covered under the GNU GPL. Pingus +uses ClanLib and libxml and might also be usable on some other OSs like FreeBSD, but hasn't +been tested there. Pingus is mainly developed under GNU/Linux, that's why the Windows port +is sometimes a bit behind. +If you don't know Lemmingstm, here comes a short introduction. Its a puzzle game developed +in 1991 by DMA Design. The player takes command in the game of a bunch of small animals and +has to guide them around in levels. Since the animals walk on their own, the player can only +influence them by giving them commands, like build a bridge, dig a hole or redirect all +animals in the other direction. The goal of each level is to reach the exit, for fix +multiple combination of commands are necessary. The game is presented in a 2D site view.</longdescription> + <upstream> + <remote-id type="google-code">pingus</remote-id> + </upstream> + <use> + <flag name="music">Enable playing of background music</flag> + </use> +</pkgmetadata> diff --git a/games-puzzle/pingus/pingus-0.7.6.ebuild b/games-puzzle/pingus/pingus-0.7.6.ebuild new file mode 100644 index 000000000000..7ae79d15e5a0 --- /dev/null +++ b/games-puzzle/pingus/pingus-0.7.6.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils scons-utils toolchain-funcs flag-o-matic games + +DESCRIPTION="free Lemmings clone" +HOMEPAGE="http://pingus.seul.org/" +SRC_URI="https://pingus.googlecode.com/files/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="opengl music" + +RDEPEND="media-libs/libsdl[joystick,opengl?,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer + music? ( media-libs/sdl-mixer[mod] ) + opengl? ( virtual/opengl ) + media-libs/libpng:0= + dev-libs/boost:=" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-noopengl.patch + "${FILESDIR}"/${P}-gcc47.patch + "${FILESDIR}"/${P}-echo-e.patch +) + +src_prepare() { + strip-flags + epatch "${PATCHES[@]}" +} + +src_compile() { + escons \ + CXX="$(tc-getCXX)" \ + CCFLAGS="${CXXFLAGS}" \ + LINKFLAGS="${LDFLAGS}" \ + $(use_scons opengl with_opengl) +} + +src_install() { + emake install-exec install-data \ + DESTDIR="${D}" \ + PREFIX="/usr" \ + DATADIR="${GAMES_DATADIR}/${PN}" \ + BINDIR="${GAMES_BINDIR}" + doman doc/man/pingus.6 + doicon data/images/icons/pingus.svg + make_desktop_entry ${PN} Pingus + dodoc AUTHORS NEWS README TODO + prepgamesdirs +} |