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-arcade/wop |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/wop')
-rw-r--r-- | games-arcade/wop/Manifest | 11 | ||||
-rw-r--r-- | games-arcade/wop/files/wop-0.4.3-Makefile.patch | 54 | ||||
-rw-r--r-- | games-arcade/wop/files/wop-0.4.3-fix-build-system.patch | 100 | ||||
-rw-r--r-- | games-arcade/wop/files/wop-0.4.3-gcc43.patch | 32 | ||||
-rw-r--r-- | games-arcade/wop/files/wop-0.4.3-gcc6.patch | 17 | ||||
-rw-r--r-- | games-arcade/wop/metadata.xml | 8 | ||||
-rw-r--r-- | games-arcade/wop/wop-0.4.3-r1.ebuild | 58 | ||||
-rw-r--r-- | games-arcade/wop/wop-0.4.3-r2.ebuild | 54 |
8 files changed, 334 insertions, 0 deletions
diff --git a/games-arcade/wop/Manifest b/games-arcade/wop/Manifest new file mode 100644 index 000000000000..dadf062ed7fb --- /dev/null +++ b/games-arcade/wop/Manifest @@ -0,0 +1,11 @@ +AUX wop-0.4.3-Makefile.patch 1485 SHA256 6b00d0b520bf02542951f7407cfb496d032ccc2b5fb2814ca8a52cc4d04db317 SHA512 a8caf883f2c0b35c36af43f69ccf2cacf9164675cd1df181c8638ad72147523825795e2f3bce8698f7d6525a8be8470d3fe9a9c8ccce6bee4739c75622140541 WHIRLPOOL 1fdad65ddc7e7d4957e7e2100e84c47fc4321653c216c2d1cd5e580e5e017eb638e7591c4167c11b7713356790608c7330f43b31ce65cfb6b06c28b432f7108d +AUX wop-0.4.3-fix-build-system.patch 2381 SHA256 3eb27a87064adc3d869452de9c57415c705e89c7d59f519e0a7fe0a0f85a3ca1 SHA512 73c7196caeeaf247bcc70336c8ce105b43ff08948d0f959487fa497c540e3a7447eadabdc8cc9753e7436ae86aad2fbdeb6190e2da75e7f0bf5bd23ff57b0d33 WHIRLPOOL ebbb16703dcdc4929a61aba97208c2a6ad5e24a51daaeaf834a68ed78741b7d021d51d548a99e43abfd3f1ec9cc5619a5a6995898f8d46ebde8278dc1107e0e9 +AUX wop-0.4.3-gcc43.patch 761 SHA256 ce2990ed5596ed3c890e40b214101f9b2e9a6daee16cccb2974bbbbaeb38e647 SHA512 24ecbb265e9b38c8515b50a5f897c295e3573d6f5ca2a0f463db178d404456875af65c5ce0e9ea72bebffae3250dec44e4ae86da6558ea60db0760ce5247014a WHIRLPOOL 382edf938aaa2cfbfed37375274273e4594c42250ea28f0a83e0f3b63ac554be4ec09389b9000e4f7d80ded6b03f47aef78fe95287c2b3d0cface932d183adbc +AUX wop-0.4.3-gcc6.patch 673 SHA256 e5c3d7ccc986b8cd50c41e0fcb12cc489d3d6394519cd0a6557d1197fba4f3a1 SHA512 7e0624b4a7a99eacbb854b1e0075ecc06c7b4b10d8a7ad18e01d5908cab7a7c222d8d15d833a2cd85f49d75d3b6aa1709bb7ec6ba69f29ed98ea17778df1a057 WHIRLPOOL a045aa508c089245fafe462aead4e3ce4a08085163c54cfd030508081f484a5c94c26acf53823667b4ddda3f473f1cb6153c09f8c3410025c556eb20ef757688 +DIST wop-0.4.3-src.tar.bz2 280974 SHA256 7e7213e5e5f5af9154c255132ca772c8e6d7815a1a1915fc5faa443c8f40ff23 SHA512 259f9f455e6fbfae2ffb6e169dcf1661f1353e28a5e51b6e907f2868a50c5f54982b4d383dcfcec201c9a2d0429fb468c44c974695364c5fd28d25328e10c6b8 WHIRLPOOL 96c0f518f6b38cbfdc79e681a07cf70f5da2b97733cfd92f9ad8266491e5a841cb8fa59d873e80405c76cc3df75535b60945bb5546851f34d989e54ba18ce7fa +DIST wopdata-2005-12-21.tar.bz2 4217006 SHA256 cd6b8eb9f77f709d7a52b913d8a665bd202c53ceca9cf96b4c9f9adc17d8a6b2 SHA512 6ebc264d1811091550d664a77aeae68184a058c666db486e4ae411e0849abbd02dd2037a3a1a9a31a73774e5f616c21840b0c1de58636dde0e59bd0e952cb505 WHIRLPOOL cebc7aceea1fb2736d466baf903c373a1444879da58a551b5d553e8b989d50e5a26bc1e71ebb7d289c5c8253a47b004c5461e91f23527db615f627a23be327a9 +EBUILD wop-0.4.3-r1.ebuild 1483 SHA256 d7e4a5ec1c250a39dd9a3db39f50c0990d84ac31336c902d2a3e3ddf26aba06b SHA512 fa70bfa81b4e8a56bd3655f2cf8637417b26ac364893f928434aafaa5d407931cf9052401cc2368653cb808fa33d13273b3f9b750504e483e46599eb2394678d WHIRLPOOL de3020f518c14e4a4f8ae8d8d46a652fec69ecdc8acc3179df90139b289503d064b97ef1c2f4eb629045e403862bad3e98e391c4f60186a78203b17e63435f2d +EBUILD wop-0.4.3-r2.ebuild 1117 SHA256 a8e53ebd52ff1a52e5ef95e3e9026b4f4cffba880131b90cb7edca20c8d5636c SHA512 077eeb187309698d84c354deda455f27212bdf11e7d57f296ba39b08fb7caaa1abace85b16630bed68ca9dd5823e6ab6ab7640b16a1ccdfa7d6c33dd29cbff62 WHIRLPOOL 5e2828edd31a819181a08c1b0d5011a0dabffeef2ba7813df4fa076232a74a476cecec236fda2fbf0e696062c1aa65bf38261605f47677e8ed8f915e141a3386 +MISC ChangeLog 2490 SHA256 4844790846430e7d9c62e5aa96a9c1d98e4bbdf7ba6e2feaaa52de2cc28d17aa SHA512 0108f96756a980081166124c8300d3733e375253639c60dcfb5eebd02f548570deca7feeace1e92593cdacb1551aa315a7ae7f27692d7b2d36d4199222ba71d4 WHIRLPOOL afd053837a9fdb3f1bfcf3c982e56f61fd324d9a8d829a6f9d77759c67edb7da7e3812d62c12b67f82f5adac714899994b241aa92f8da82cb27a0588d1636b18 +MISC ChangeLog-2015 1699 SHA256 0ca17293e25190594cbfd6e2b7c5666078cabe20695cb6e36a373286a4c9107c SHA512 4115dddf3ae7b21d8076426b2135594b84e628697253a9214400efaf2a968ee466575f848a2bd79ca432645d40e3a757e9c97458081dd9d6ed7a2229d45b429d WHIRLPOOL c3f3885b0c47e37f110dd0cea199c11220ec288bde7a23281aa555d0972478bb99c9148364f959a2994b9d81ec7fd1ed1ef0d4d686cb563d815c06c8dbbff2c2 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-arcade/wop/files/wop-0.4.3-Makefile.patch b/games-arcade/wop/files/wop-0.4.3-Makefile.patch new file mode 100644 index 000000000000..8a94462f7bd9 --- /dev/null +++ b/games-arcade/wop/files/wop-0.4.3-Makefile.patch @@ -0,0 +1,54 @@ +--- a/Makefile.orig 2007-04-23 18:27:32 +0000 ++++ b/Makefile 2007-04-23 18:27:50 +0000 +@@ -3,22 +3,22 @@ + sinclude Makefile.local + + all: +- +cd sdlwidgets; make +- +cd src; make ++ +cd sdlwidgets; $(MAKE) ++ +cd src; $(MAKE) + runc: +- +cd src; make runc ++ +cd src; $(MAKE) runc + runs: +- +cd src; make runs ++ +cd src; $(MAKE) runs + doc: +- cd src; make doc ++ cd src; $(MAKE) doc + clean: +- cd sdlwidgets; make clean +- cd src; make clean ++ cd sdlwidgets; $(MAKE) clean ++ cd src; $(MAKE) clean + cd doc; rm -rf html + unison: +- cd src; make unison ++ cd src; $(MAKE) unison + gunison: +- cd src; make gunison ++ cd src; $(MAKE) gunison + snapshot-src: + ln -s . wop; \ + tar cjvf wop-`date +%F`.tar.bz2 \ +--- a/src/Makefile.orig 2006-02-13 10:14:01.000000000 +0100 ++++ b/src/Makefile 2007-04-27 18:36:22.000000000 +0200 +@@ -18,7 +18,7 @@ + -DUSE_SDL -DNEW=new\(std::nothrow\) \ + -I../sdlwidgets \ + $(shell sdl-config --cflags) # -g +-LDFLAGS = -L../sdlwidgets -lsdlwidgets -lz \ ++LIBS = -L../sdlwidgets -lsdlwidgets -lz \ + -lm -lSDL_net -lSDL_mixer -lSDL_ttf -lSDL_image \ + $(shell sdl-config --libs) # -g + +@@ -56,7 +56,7 @@ + + $(TARGET): $(OBJECT_FILES) Makefile ../sdlwidgets/libsdlwidgets.a + -mkdir ../bin +- $(CXX) $(OBJECT_FILES) -o $(TARGET) $(LDFLAGS) ++ $(CXX) $(LDFLAGS) $(OBJECT_FILES) -o $(TARGET) $(LIBS) + + %.o: %.cpp Makefile + $(CXX) $(CXXFLAGS) -c $< -o $@ diff --git a/games-arcade/wop/files/wop-0.4.3-fix-build-system.patch b/games-arcade/wop/files/wop-0.4.3-fix-build-system.patch new file mode 100644 index 000000000000..5af16960a95a --- /dev/null +++ b/games-arcade/wop/files/wop-0.4.3-fix-build-system.patch @@ -0,0 +1,100 @@ +* Remove hardcoded user variables +* Respect LDFLAGS and CPPFLAGS +* Fix installation dir for arch-independent files + +--- a/Makefile ++++ b/Makefile +@@ -3,22 +3,22 @@ + sinclude Makefile.local + + all: +- +cd sdlwidgets; make +- +cd src; make ++ $(MAKE) -C sdlwidgets ++ $(MAKE) -C src + runc: +- +cd src; make runc ++ $(MAKE) -C src runc + runs: +- +cd src; make runs ++ $(MAKE) -C src runs + doc: +- cd src; make doc ++ $(MAKE) -C src doc + clean: +- cd sdlwidgets; make clean +- cd src; make clean ++ $(MAKE) -C sdlwidgets clean ++ $(MAKE) -C src clean + cd doc; rm -rf html + unison: +- cd src; make unison ++ $(MAKE) -C src unison + gunison: +- cd src; make gunison ++ $(MAKE) -C src gunison + snapshot-src: + ln -s . wop; \ + tar cjvf wop-`date +%F`.tar.bz2 \ +--- a/sdlwidgets/Makefile ++++ b/sdlwidgets/Makefile +@@ -9,16 +9,12 @@ + CXXFLAGS ?= -Wall -Wshadow -Wsign-compare -Wparentheses -Wconversion -g -O3 -ansi + CXXFLAGS += $(shell sdl-config --cflags) + +-CXX = g++ +-AR = ar cru +-RANLIB = ranlib +- + sinclude ../src/Makefile.local + + all: $(TARGET) + + $(TARGET): $(OBJECT_FILES) Makefile +- $(AR) $(TARGET) $(OBJECT_FILES) ++ $(AR) cru $(TARGET) $(OBJECT_FILES) + $(RANLIB) $(TARGET) + + %.o: %.cpp Makefile +--- a/src/Makefile ++++ b/src/Makefile +@@ -18,14 +18,13 @@ + -DUSE_SDL -DNEW=new\(std::nothrow\) \ + -I../sdlwidgets \ + $(shell sdl-config --cflags) # -g +-LDFLAGS = -L../sdlwidgets -lsdlwidgets -lz \ ++LIBS = -L../sdlwidgets -lsdlwidgets -lz \ + -lm -lSDL_net -lSDL_mixer -lSDL_ttf -lSDL_image \ + $(shell sdl-config --libs) # -g + + WOPFLAGS = data=../data + DOXYGENFLAGS = ../doc/doxygen.rc + +-CXX = g++ + DOXYGEN = doxygen + UNISON_SOURCE = ssh://131.188.67.22//homes/staff/pohlt/wop/.unison_data + +@@ -56,10 +55,10 @@ + + $(TARGET): $(OBJECT_FILES) Makefile ../sdlwidgets/libsdlwidgets.a + -mkdir ../bin +- $(CXX) $(OBJECT_FILES) -o $(TARGET) $(LDFLAGS) ++ $(CXX) $(LDFLAGS) $(OBJECT_FILES) -o $(TARGET) $(LIBS) + + %.o: %.cpp Makefile +- $(CXX) $(CXXFLAGS) -c $< -o $@ ++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ + + clean: + -rm -f $(TARGET) *.o Makefile.depend* +--- a/woprc ++++ b/woprc +@@ -30,7 +30,7 @@ + + ## path of the data directory + ## - optional, default "./data" +-data = ./data ++data = /usr/share/wop + + ## server name or IP address + ## - optional, default "localhost" diff --git a/games-arcade/wop/files/wop-0.4.3-gcc43.patch b/games-arcade/wop/files/wop-0.4.3-gcc43.patch new file mode 100644 index 000000000000..d4273f18ff6e --- /dev/null +++ b/games-arcade/wop/files/wop-0.4.3-gcc43.patch @@ -0,0 +1,32 @@ +--- a/src/scusibot.cpp ++++ b/src/scusibot.cpp +@@ -5,6 +5,7 @@ + #include "stationarygun.hpp" + #include "global.hpp" + #include <vector> ++#include <algorithm> + + ScusiBot::ScusiBot() + : m_event( Event::EMPTY ), m_count( 0 ), m_state( IDLE ) { +--- a/src/gameinfowindow.cpp ++++ b/src/gameinfowindow.cpp +@@ -10,6 +10,8 @@ + #include "avatarworm.hpp" + #include "wopsprites.hpp" + #include "wopsprites.cpp" ++#include "spriteset.cpp" ++#include "spritesequence.cpp" + #include "scorekeeper.hpp" + #include "wopgui.hpp" + +--- a/src/map.cpp ++++ b/src/map.cpp +@@ -9,6 +9,8 @@ + #include "world.hpp" + #include "wopsettings.hpp" + #include "objectpaths.hpp" ++#include "spriteset.cpp" ++#include "spritesequence.cpp" + + /**********************************************************/ + diff --git a/games-arcade/wop/files/wop-0.4.3-gcc6.patch b/games-arcade/wop/files/wop-0.4.3-gcc6.patch new file mode 100644 index 000000000000..14eea98c1a4e --- /dev/null +++ b/games-arcade/wop/files/wop-0.4.3-gcc6.patch @@ -0,0 +1,17 @@ +--- a/src/global.cpp ++++ b/src/global.cpp +@@ -44,10 +44,10 @@ + #define GREEN(s) s + #define RED(s) s + #else +-#define BLACK(s) "\033[0;1m"s"\033[0m" +-#define BLINKINK_BLACK_ON_RED(s) "\033[05;1;41m"s"\033[0m" +-#define GREEN(s) "\033[32m"s"\033[0m" +-#define RED(s) "\033[31m"s"\033[0m" ++#define BLACK(s) "\033[0;1m" s "\033[0m" ++#define BLINKINK_BLACK_ON_RED(s) "\033[05;1;41m" s "\033[0m" ++#define GREEN(s) "\033[32m" s "\033[0m" ++#define RED(s) "\033[31m" s "\033[0m" + #endif + + /**********************************************************/ diff --git a/games-arcade/wop/metadata.xml b/games-arcade/wop/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-arcade/wop/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> diff --git a/games-arcade/wop/wop-0.4.3-r1.ebuild b/games-arcade/wop/wop-0.4.3-r1.ebuild new file mode 100644 index 000000000000..9f6811a6fbec --- /dev/null +++ b/games-arcade/wop/wop-0.4.3-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +EAPI=5 +inherit eutils toolchain-funcs games + +MY_DATA_V="2005-12-21" +MY_DATA_P="${PN}data-${MY_DATA_V}" +DESCRIPTION="Worms of Prey - A multi-player, real-time clone of Worms" +HOMEPAGE="http://wormsofprey.org/" +SRC_URI="http://wormsofprey.org/download/${P}-src.tar.bz2 + http://wormsofprey.org/download/${MY_DATA_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="" + +RDEPEND="media-libs/libsdl + media-libs/sdl-net + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-ttf" +DEPEND="${RDEPEND} + x11-misc/makedepend" + +MY_DATA_S=${WORKDIR}/${MY_DATA_P} + +src_prepare() { + # correct path to global woprc + sed -i \ + -e "s:/etc/woprc:${GAMES_SYSCONFDIR}/woprc:g" \ + src/wopsettings.cpp \ + || die "sed failed" + # patch global woprc with the correct data files location and install it + sed -i \ + -e "s:^data =.*$:data = ${GAMES_DATADIR}/${PN}:" \ + woprc \ + || die "sed failed" + epatch "${FILESDIR}"/${P}-Makefile.patch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-gcc6.patch +} + +src_compile() { + emake CXX=$(tc-getCXX) +} + +src_install() { + dogamesbin bin/${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r "${MY_DATA_S}"/* + insinto "${GAMES_SYSCONFDIR}" + doins woprc + newicon "${MY_DATA_S}"/images/misc/icons/wop16.png ${PN}.png + make_desktop_entry wop "Worms of Prey" + dodoc AUTHORS ChangeLog README{,-Libraries.txt} REVIEWS + prepgamesdirs +} diff --git a/games-arcade/wop/wop-0.4.3-r2.ebuild b/games-arcade/wop/wop-0.4.3-r2.ebuild new file mode 100644 index 000000000000..f0ef50085b68 --- /dev/null +++ b/games-arcade/wop/wop-0.4.3-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +MY_DATA_V="2005-12-21" +MY_DATA_P="${PN}data-${MY_DATA_V}" + +DESCRIPTION="Worms of Prey - A multi-player, real-time clone of Worms" +HOMEPAGE="http://wormsofprey.org/" +SRC_URI=" + http://wormsofprey.org/download/${P}-src.tar.bz2 + http://wormsofprey.org/download/${MY_DATA_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="" + +RDEPEND=" + media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-net + media-libs/sdl-ttf" +DEPEND="${RDEPEND} + x11-misc/makedepend" + +PATCHES=( + "${FILESDIR}"/${P}-fix-build-system.patch + "${FILESDIR}"/${P}-gcc43.patch + "${FILESDIR}"/${P}-gcc6.patch +) + +src_configure() { + tc-export AR CXX RANLIB +} + +src_install() { + dobin bin/${PN} + + insinto /usr/share/${PN} + doins -r "${WORKDIR}/${MY_DATA_P}"/. + + insinto /etc + doins woprc + + newicon "${WORKDIR}/${MY_DATA_P}"/images/misc/icons/wop16.png ${PN}.png + make_desktop_entry wop "Worms of Prey" + + dodoc AUTHORS ChangeLog README{,-Libraries.txt} REVIEWS +} |