diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /games-simulation | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'games-simulation')
94 files changed, 3535 insertions, 0 deletions
diff --git a/games-simulation/bcs-demo/Manifest b/games-simulation/bcs-demo/Manifest new file mode 100644 index 000000000000..870fe8801d04 --- /dev/null +++ b/games-simulation/bcs-demo/Manifest @@ -0,0 +1,2 @@ +DIST bcsdemo_v1_3.sh.bin 5965217 BLAKE2B ba69858933c5ff1fbd966cc5038ecf891abea70cb6a7f09e40e698da495a7f3578460f90e033c1455918f7d188e37839ae0f140be8c419911d520e4cef13cd48 SHA512 b3916ac72d21e80a09b80a406ea18ab4365d9c1b8139eec848f2e5d697d3d5afb6f27de5dac31c6b6fd860e3b406a3eae8a28aac0e00134629dbd5906bde816d +DIST openal-alan-hack-0.0.1.tar.gz 86168 BLAKE2B 77ab97ef9b31b4c3ab00c89afaad7094b6ecc388e296b31969bfbbe3953b812036c1cb4a04a09ad0ca986941d2508469c40f5ab7d458c1ceb5fa78b1f9ca7c81 SHA512 1794461cb917dcf2130977bd0ac9f09bf93cd235dd742d29e50a3e2666e6db60865bacd1927fc4607a4b308dcdf421fa2a186ad2a06eea778069ce712a89d943 diff --git a/games-simulation/bcs-demo/bcs-demo-1.3-r1.ebuild b/games-simulation/bcs-demo/bcs-demo-1.3-r1.ebuild new file mode 100644 index 000000000000..106a657357f5 --- /dev/null +++ b/games-simulation/bcs-demo/bcs-demo-1.3-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils unpacker + +DESCRIPTION="design and build bridges and then stress test them with trains" +HOMEPAGE="http://www.chroniclogic.com/pontifex2.htm" +SRC_URI="ftp://ggdev-1.homelan.com/bcs/bcsdemo_v${PV/./_}.sh.bin + http://www.highprogrammer.com/alan/pfx2/openal-alan-hack-0.0.1.tar.gz" + +LICENSE="BCS" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" +RESTRICT="strip" + +RDEPEND=" + media-libs/libsdl[abi_x86_32(-)] + sys-libs/glibc + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXau[abi_x86_32(-)] + x11-libs/libXdmcp[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)]" + +S=${WORKDIR} + +dir=/opt/${PN} +Ddir=${D}/${dir} +QA_PREBUILT="${dir:1}/*" + +src_unpack() { + unpack_makeself bcsdemo_v${PV/./_}.sh.bin + unpack openal-alan-hack-0.0.1.tar.gz +} + +src_install() { + dodir "${dir}" + + tar -zxf bcsdemo.tar.gz -C "${Ddir}" || die + rm -f "${Ddir}"/bcs-linux-openal-fixer.sh || die + + exeinto "${dir}" +# doexe bin/Linux/x86/rungame.sh +# exeinto ${dir}/lib + mv "${Ddir}"/bcs "${Ddir}"/bcs-bin + newexe libopenal.so.0.0.6 libopenal.so.0 + echo '#!/bin/bash' >> "${Ddir}"/bcs + echo 'LD_PRELOAD="./libopenal.so.0" ./bcs-bin' >> "${Ddir}"/bcs + fperms 755 "${dir}"/bcs + make_wrapper bcs-demo ./bcs "${dir}" "${dir}" + + insinto "${dir}" + doins *.cfg + dodoc readme* +} diff --git a/games-simulation/bcs-demo/metadata.xml b/games-simulation/bcs-demo/metadata.xml new file mode 100644 index 000000000000..c4fccd63069b --- /dev/null +++ b/games-simulation/bcs-demo/metadata.xml @@ -0,0 +1,30 @@ +<?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> +Building a bridge that doesn't break is what its all about, although watching +your bridge creation break and plunge a train into the watery depths below can be +half the fun. In the Bridge Construction Set you design and build bridges and +then stress test them to see how your creations hold up under pressure. If when +test vehicles pass over your bridge they make it safely across you know you've +succeeded. If they plummet into the river you know you need to go back to the +drawing board. + +The robust physics deployed in the Bridge Construction Set let you build a wide +variety of bridges that can span the river. The 3D graphics allow you to view +your bridge from any angle including a first person train view - its like being +strapped to the front of the train when your bridge is first tested (if this +happened in real life I think we might have engineers checking all their bridges +in a simulator). + +The Bridge Construction Set includes many types of bridge building levels in +varying degrees of difficulty from simple to complex with a tutorial secition to +get you started. A Level Editor is also included so you can create your own +levels and trade them with others. +</longdescription> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/cannonsmash/Manifest b/games-simulation/cannonsmash/Manifest new file mode 100644 index 000000000000..290f892e0618 --- /dev/null +++ b/games-simulation/cannonsmash/Manifest @@ -0,0 +1,2 @@ +DIST csmash-0.6.6.tar.gz 1989943 BLAKE2B 723b7accd9a899f6d80df07573f8583684606c6b5bf8f11753902f4db196a9a2738cd11899e0a3b4e5637b04553173d75701edbed6e2d800b7b18edb82b2a10f SHA512 e8406eb17adf6c6cc4454b7d0a432ad1b071e1f72d9867fd46e458ade2d1dc1e927a7f2a336c80988b97051b9d188c3027dd8207f89f7e1fa60e1d0a6a5e8916 +DIST danslatristesse2-48.ogg 1070787 BLAKE2B 91bb5b552a45349d6b34d459f2d5071498b6def76c9b7e7ce1538c29af762698708d4ad6fe780e087f14b6ca42dad258c8ed2a7cd368027a5080aab52d02575a SHA512 5cbc457d511bdc736f3b359a8ddd3a514bd0d14418f2dbd68409394baadfcd9fd7630b228e4e9654b14b513e158e9a46b67bc58c5c04bfe382ee6e624dd16834 diff --git a/games-simulation/cannonsmash/cannonsmash-0.6.6-r1.ebuild b/games-simulation/cannonsmash/cannonsmash-0.6.6-r1.ebuild new file mode 100644 index 000000000000..8da30598da0c --- /dev/null +++ b/games-simulation/cannonsmash/cannonsmash-0.6.6-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +MY_OGG=danslatristesse2-48.ogg +DESCRIPTION="3D tabletennis game" +HOMEPAGE="http://cannonsmash.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/csmash-${PV}.tar.gz + vorbis? ( http://nan.p.utmc.or.jp/${MY_OGG} )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="vorbis nls" + +RDEPEND=" + virtual/opengl + virtual/glu + media-libs/libsdl[sound,video] + media-libs/sdl-mixer[vorbis?] + media-libs/sdl-image[jpeg,png] + x11-libs/gtk+:2 + nls? ( virtual/libintl ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" + +S="${WORKDIR}/csmash-${PV}" + +src_unpack() { + unpack csmash-${PV}.tar.gz +} + +src_prepare() { + default + eapply \ + "${FILESDIR}"/${P}-x-inc.patch \ + "${FILESDIR}"/${P}-sizeof-cast.patch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-flags.patch + if use vorbis ; then + sed -i \ + -e "s:${MY_OGG}:/usr/share/csmash/games/${MY_OGG}:" ttinc.h \ + || die "sed failed" + fi +} + +src_configure() { + econf \ + $(use_enable nls) \ + --datadir="/usr/share" +} + +src_compile() { + emake \ + localedir="/usr/share" +} + +src_install() { + default + if use vorbis ; then + insinto /usr/share/games/csmash + doins "${DISTDIR}"/${MY_OGG} + fi + newicon win32/orange.ico ${PN}.ico + make_desktop_entry csmash "Cannon Smash" /usr/share/pixmaps/${PN}.ico +} diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-flags.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-flags.patch new file mode 100644 index 000000000000..c7b3b561d2d1 --- /dev/null +++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-flags.patch @@ -0,0 +1,21 @@ +--- a/configure.old 2010-10-18 15:05:02.000000000 +0200 ++++ b/configure 2010-10-18 15:05:31.000000000 +0200 +@@ -5516,12 +5516,12 @@ + + + if test "x$x_includes" != "x"; then +- CFLAGS="-I $x_includes" +-else +- CFLAGS="" +-fi +-LDFLAGS="-L/usr/local/lib -L$x_libraries -L$libdir" +-CXXFLAGS="$CFLAGS -Wall" ++ CFLAGS="${CFLAGS} -I $x_includes" ++else ++ CFLAGS="${CFLAGS}" ++fi ++LDFLAGS="${LDFLAGS} -L/usr/local/lib -L$x_libraries -L$libdir" ++CXXFLAGS="${CXXFLAGS} -Wall" + + + echo "$as_me:$LINENO: checking for main in -lXmu" >&5 diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch new file mode 100644 index 000000000000..6602c2f09304 --- /dev/null +++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch @@ -0,0 +1,22 @@ +--- a/BallView.h.old 2006-04-11 00:10:37.000000000 +0200 ++++ b/BallView.h 2006-04-11 00:10:53.000000000 +0200 +@@ -32,7 +32,7 @@ + + static GLuint m_number[10]; + private: +- void BallView::DrawTargetCircle(); ++ void DrawTargetCircle(); + GLUquadricObj *m_quad; + + void DrawBall(); +--- a/matrix.old 2006-04-11 00:13:18.000000000 +0200 ++++ b/matrix 2006-04-11 00:19:34.000000000 +0200 +@@ -42,7 +42,7 @@ + + /* __BEGIN__BEGIN__ */ + //__NAMESPACE_BEGIN(ese); +-#if (!defined __GNUG__) || (__GNUC__ == 3) ++#if (!defined __GNUG__) || (__GNUC__ >= 3) + template<typename T> + void swap(T& a, T& b) + { diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch new file mode 100644 index 000000000000..ead10c90400b --- /dev/null +++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch @@ -0,0 +1,11 @@ +Don't typecast otherwise C++ will fail to match on some arches. + +http://bugs.gentoo.org/84187 + +--- a/loadparts.cpp ++++ b/loadparts.cpp +@@ -247,3 +247,3 @@ + // concat next line(s) +- int bufsize = clamp(0U, sizeof(line)-l, sizeof(line)-1); ++ int bufsize = clamp((size_t)0, sizeof(line)-l, sizeof(line)-1); + fgets(&line[l-2], bufsize, fp); diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch new file mode 100644 index 000000000000..e56b51e0b92a --- /dev/null +++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch @@ -0,0 +1,18 @@ +Patch by Jason Bucata. +http://bugs.gentoo.org/84187 + +--- a/configure ++++ b/configure +@@ -5515,7 +5515,11 @@ + fi + + +-CFLAGS="-I $x_includes" ++if test "x$x_includes" != "x"; then ++ CFLAGS="-I $x_includes" ++else ++ CFLAGS="" ++fi + LDFLAGS="-L/usr/local/lib -L$x_libraries -L$libdir" + CXXFLAGS="$CFLAGS -Wall" + diff --git a/games-simulation/cannonsmash/metadata.xml b/games-simulation/cannonsmash/metadata.xml new file mode 100644 index 000000000000..2fff72b8af40 --- /dev/null +++ b/games-simulation/cannonsmash/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">cannonsmash</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/corsix-th/Manifest b/games-simulation/corsix-th/Manifest new file mode 100644 index 000000000000..6ae73ede0f5c --- /dev/null +++ b/games-simulation/corsix-th/Manifest @@ -0,0 +1 @@ +DIST corsix-th-0.63.tar.gz 4040119 BLAKE2B a700264c21377d53fb031c57428e5a50bbef426f32a3cd8bc4f83174a7f12b76d72050885ae257a6017a03f2f9611106cf9226c606ef726c1220b997eacbc5f1 SHA512 73a170bbf3da0e11ffe30fcbafb80f9e3852ce992dd6ecae2a2da332b9d4927a98efb0208e2056918a4100db54d1bdc564454cadae370cfab87625ca3f9889fd diff --git a/games-simulation/corsix-th/corsix-th-0.63.ebuild b/games-simulation/corsix-th/corsix-th-0.63.ebuild new file mode 100644 index 000000000000..9a427ca8e030 --- /dev/null +++ b/games-simulation/corsix-th/corsix-th-0.63.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake xdg + +MY_PN="CorsixTH" +MY_PV="$(ver_rs 2 -)" + +DESCRIPTION="Open source clone of Theme Hospital" +HOMEPAGE="http://corsixth.com" +SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="doc +midi +sound +truetype +videos" + +RDEPEND=" + >=dev-lang/lua-5.1:0 + >=dev-lua/luafilesystem-1.5 + >=dev-lua/lpeg-0.9 + >=dev-lua/luasocket-3.0_rc1-r4 + media-libs/libsdl2[opengl,video] + sound? ( media-libs/sdl2-mixer[midi?] ) + truetype? ( >=media-libs/freetype-2.5.3:2 ) + videos? ( >=media-video/ffmpeg-2.2.3:0= ) +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + virtual/pkgconfig + doc? ( + app-doc/doxygen[dot] + >=dev-lang/lua-5.1:0 + ) +" + +S="${WORKDIR}/${MY_PN}-${MY_PV}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.62-gcc-10.patch +) + +src_prepare() { + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DWITH_AUDIO=$(usex sound) + -DWITH_FREETYPE2=$(usex truetype) + -DWITH_MOVIES=$(usex videos) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + use doc && cmake_src_compile doc +} + +src_install() { + cmake_src_install + dodoc {changelog,CONTRIBUTING}.txt + + docinto html + use doc && dodoc -r "${BUILD_DIR}"/doc/* +} diff --git a/games-simulation/corsix-th/files/corsix-th-0.62-gcc-10.patch b/games-simulation/corsix-th/files/corsix-th-0.62-gcc-10.patch new file mode 100644 index 000000000000..ff820f44946b --- /dev/null +++ b/games-simulation/corsix-th/files/corsix-th-0.62-gcc-10.patch @@ -0,0 +1,10 @@ +--- a/CorsixTH/Src/th_lua_map.cpp ++++ b/CorsixTH/Src/th_lua_map.cpp +@@ -26,6 +26,7 @@ SOFTWARE. + #include <cstring> + #include <string> + #include <exception> ++#include <stdexcept> /* std::out_of_range */ + + static const int player_max = 4; + diff --git a/games-simulation/corsix-th/metadata.xml b/games-simulation/corsix-th/metadata.xml new file mode 100644 index 000000000000..95692d7d8ca3 --- /dev/null +++ b/games-simulation/corsix-th/metadata.xml @@ -0,0 +1,21 @@ +<?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 lang="en"> + A reimplementation of the 1997 Bullfrog business sim Theme + Hospital. As well as faithfully recreating the original, + CorsixTH adds support for modern operating systems (Windows, + Mac OSX and Linux), high resolutions and much more. + </longdescription> + <use> + <flag name="midi">Adds support for background MIDI music via SDL_mixer</flag> + </use> + <upstream> + <remote-id type="github">CorsixTH/CorsixTH</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/crashtest/Manifest b/games-simulation/crashtest/Manifest new file mode 100644 index 000000000000..171bb092a4a3 --- /dev/null +++ b/games-simulation/crashtest/Manifest @@ -0,0 +1 @@ +DIST crashtest-1.1.tar.gz 134769 BLAKE2B 16c7be2723d705bbcfc4457a0d7bb545ddaacfb9009cc184c849c59a1c356c67d0151bd7bbb0d1909efb89d24e18657038fe0dd66e218e0c7ed24c67ba82089b SHA512 f361b5f202cdcdca871357eb2a2158af2958f4058b6754c63dc5a20c3e08e2ef532e984596d0daac073f2321b2db02e3f8c2a0a4998450fc953c1661d712d59c diff --git a/games-simulation/crashtest/crashtest-1.1-r1.ebuild b/games-simulation/crashtest/crashtest-1.1-r1.ebuild new file mode 100644 index 000000000000..1faed8379238 --- /dev/null +++ b/games-simulation/crashtest/crashtest-1.1-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils flag-o-matic + +DESCRIPTION="Educational car crash simulator" +HOMEPAGE="http://www.stolk.org/crashtest/" +SRC_URI="http://www.stolk.org/crashtest/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-games/ode + media-libs/alsa-lib + media-libs/freeglut + x11-libs/fltk:1[opengl] + virtual/opengl + virtual/glu" +DEPEND="${RDEPEND} + >=media-libs/plib-1.8.4" + +S=${WORKDIR}/${P}/src-${PN} + +PATCHES=( + "${FILESDIR}/${P}"-gentoo.patch +) + +src_prepare() { + default + + sed -i \ + -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \ + -e "s:@GENTOO_BINDIR@:/usr/bin:" \ + Makefile ${PN}.cxx || die + append-cppflags -DHAVE_ISNANF +} + +src_install() { + default + make_desktop_entry ${PN} Crashtest +} diff --git a/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch b/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch new file mode 100644 index 000000000000..b384c87278c2 --- /dev/null +++ b/games-simulation/crashtest/files/crashtest-1.1-gentoo.patch @@ -0,0 +1,94 @@ +diff -ru a/Makefile b/Makefile +--- a/Makefile 2009-02-15 17:11:31.000000000 -0500 ++++ b/Makefile 2009-10-14 01:00:13.900627555 -0400 +@@ -1,34 +1,12 @@ +-# EDIT THESE SETTINGS +- +-PLIBPREFIX=/usr +-ODEPREFIX=/usr +-CXX=g++ +- +-#PLIBPREFIX=$(HOME) +-#ODEPREFIX=$(HOME) +-#CXX=g++-4.0 +- +-# END OF CUSTOM SETTINGS +- +-CXXFLAGS=\ +- -I$(ODEPREFIX)/include \ +- -I$(PLIBPREFIX)/include \ +- -I../src-common \ +- -O2 -g -Wall +- +-LFLAGS=\ +- -L$(PLIBPREFIX)/lib \ +- -L/usr/X11R6/lib +- + OBJS=staticworldobject.o crashtest.o dynamicobject.o cartobject.o ++CXXFLAGS+=-I `fltk-config --includedir` `ode-config --cflags` + +-LIBS= $(ODEPREFIX)/lib/libode.a -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul -lGLU -lGL `fltk-config --use-gl --use-images --ldflags` +- ++LIBS= `ode-config --libs` -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul -lGLU -lGL -lasound `fltk-config --use-gl --use-images --ldflags` -lglut + + all: crashtest + + crashtest: $(OBJS) +- $(CXX) -o crashtest $(OBJS) $(LFLAGS) $(LIBS) ++ $(CXX) -o crashtest $(OBJS) $(LDFLAGS) $(LIBS) + + staticworldobject.o: ../src-common/staticworldobject.cxx ../src-common/staticworldobject.h ../src-common/worldobject.h + $(CXX) -c $(CXXFLAGS) ../src-common/staticworldobject.cxx +@@ -37,10 +14,10 @@ + $(CXX) -c $(CXXFLAGS) ../src-common/dynamicobject.cxx + + cartobject.o: cartobject.cxx cartobject.h +- $(CXX) -c $(CXXFLAGS) cartobject.cxx ++ $(CXX) -c $(CXXFLAGS) -I../src-common cartobject.cxx + + crashtest.o: crashtest.cxx crashworld.h ../src-common/modelmap.h cartobject.h bipedobject.h ../src-common/brickwall.h ../src-common/stereocontext.h ../src-common/usercam.h +- $(CXX) -c $(CXXFLAGS) crashtest.cxx ++ $(CXX) -c $(CXXFLAGS) -I../src-common crashtest.cxx + + + +@@ -48,13 +25,13 @@ + PLODE_DATADIR=`pwd` ./crashtest + + +-GAMEDIR=$(DESTDIR)/usr/share/games/crashtest ++GAMEDIR=$(DESTDIR)@GENTOO_DATADIR@ + install: crashtest + # Directories +- mkdir -p $(DESTDIR)/usr/games/ ++ mkdir -p $(DESTDIR)@GENTOO_BINDIR@ + mkdir -p $(GAMEDIR)/models/ + # Binary +- install crashtest $(DESTDIR)/usr/games/crashtest ++ install crashtest $(DESTDIR)@GENTOO_BINDIR@ + # Models + install -m 644 models/testground.3ds $(GAMEDIR)/models/testground.3ds + install -m 644 models/biped_torso.3ds $(GAMEDIR)/models/biped_torso.3ds +diff -ru a/crashtest.cxx b/crashtest.cxx +--- a/crashtest.cxx 2009-02-15 17:08:24.000000000 -0500 ++++ b/crashtest.cxx 2009-10-14 01:01:25.822753522 -0400 +@@ -615,13 +615,7 @@ + + int main(int argc, char *argv[]) + { +- char *bindirname = dirname(argv[0]); +- if (!strcmp(bindirname,".")) +- dirprefix="/usr/share/games/crashtest"; +- else +- { +- dirprefix = dirname(bindirname) + std::string("/share/games/crashtest"); +- } ++ dirprefix="@GENTOO_DATADIR@"; + if (getenv("PLODE_DATADIR")) + dirprefix = getenv("PLODE_DATADIR"); + modelmap = new ModelMap(dirprefix); +@@ -745,4 +739,3 @@ + Fl::add_idle(idle, &simwin); + Fl::run(); + } +- diff --git a/games-simulation/crashtest/metadata.xml b/games-simulation/crashtest/metadata.xml new file mode 100644 index 000000000000..6eea51fb7ef2 --- /dev/null +++ b/games-simulation/crashtest/metadata.xml @@ -0,0 +1,15 @@ +<?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 lang="en"> +Crashtest simulates car crashes. This is an educational tool that can be used to +acquire much insight into this complex process. The user can learn about the +relation between speed, reaction-time and stopping distance. Also, many physical +properties can be studied. +</longdescription> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/crrcsim/Manifest b/games-simulation/crrcsim/Manifest new file mode 100644 index 000000000000..f956c9e7355d --- /dev/null +++ b/games-simulation/crrcsim/Manifest @@ -0,0 +1 @@ +DIST crrcsim-0.9.13.tar.gz 8337392 BLAKE2B ccaaf3a4255b2082fc52712d49302c7de1347b87e9489c6d859662365f1cd5af538fe76cee232aed61b0c1b68138c47a2e34e128071c3e098e20f1d51c1c409c SHA512 b687837e07abc07606404d920288984abe7e304afb69158fd840d83bcfe1e9acc4afd8462c0c759df67d50a15ca3753eaf48c4526b201e64a2d641fa3aa8c1ab diff --git a/games-simulation/crrcsim/crrcsim-0.9.13.ebuild b/games-simulation/crrcsim/crrcsim-0.9.13.ebuild new file mode 100644 index 000000000000..ab91e997d49e --- /dev/null +++ b/games-simulation/crrcsim/crrcsim-0.9.13.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils gnome2-utils + +DESCRIPTION="model-airplane flight simulation program" +HOMEPAGE="https://sourceforge.net/projects/crrcsim/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="portaudio" + +RDEPEND="media-libs/libsdl[X,sound,joystick,opengl,video] + media-libs/plib + sci-mathematics/cgal + portaudio? ( media-libs/portaudio )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-buildsystem.patch + "${FILESDIR}"/${P}-gcc6.patch +) + +src_prepare() { + default + + if has_version "sci-mathematics/cgal[gmp(+)]" ; then + eapply "${FILESDIR}"/${PN}-cgal_gmp.patch + fi + eautoreconf +} + +src_configure() { + econf $(use_with portaudio) +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS HISTORY NEWS README + doicon -s 32 packages/icons/${PN}.png + make_desktop_entry ${PN} +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-simulation/crrcsim/files/crrcsim-0.9.13-buildsystem.patch b/games-simulation/crrcsim/files/crrcsim-0.9.13-buildsystem.patch new file mode 100644 index 000000000000..396fd573ec90 --- /dev/null +++ b/games-simulation/crrcsim/files/crrcsim-0.9.13-buildsystem.patch @@ -0,0 +1,62 @@ +--- crrcsim-0.9.11/configure.ac ++++ crrcsim-0.9.11/configure.ac +@@ -79,8 +79,12 @@ + dnl Default is: no portaudio present + portaudio=0 + ++AC_ARG_WITH([portaudio], AS_HELP_STRING([--without-portaudio], [Build without portaudio library (default: test)])) ++ ++AS_IF([test "x$with_portaudio" != "xno"], [ + dnl Check for the Portaudio header file + AC_CHECK_HEADER([portaudio.h]) ++]) + + if (test "x$ac_cv_header_portaudio_h" = "xyes"); then + dnl Check for Portaudio 18 +--- crrcsim-0.9.13/src/mod_misc/filesystools.cpp ++++ crrcsim-0.9.13/src/mod_misc/filesystools.cpp +@@ -113,8 +113,8 @@ + // $USERPROFILE/.crrcsim (WIN32) + // $HOME/.crrcsim (LINUX) + // CRRC_DATA_PATH (LINUX) +- // /usr/local/share/games/crrcsim (LINUX) +- // /usr/share/games/crrcsim (LINUX) ++ // /usr/local/share/crrcsim (LINUX) ++ // /usr/share/crrcsim (LINUX) + + // cwd + if (dirname != "") +@@ -154,13 +154,13 @@ + s.append(dirname); + pathlist.push_back(s); + #endif +- s = "/usr/local/share/games/" + appname + "/"; ++ s = "/usr/local/share/" + appname + "/"; + if (s != data_path) // avoid adding this path twice + { + s.append(dirname); + pathlist.push_back(s); + } +- s = "/usr/share/games/" + appname + "/"; ++ s = "/usr/share/" + appname + "/"; + if (s != data_path) // avoid adding this path twice + { + s.append(dirname); +@@ -172,13 +172,13 @@ + #ifdef CRRC_DATA_PATH + pathlist.push_back(data_path); + #endif +- if (data_path != "/usr/local/share/games/" + appname) // avoid adding this path twice ++ if (data_path != "/usr/local/share/" + appname) // avoid adding this path twice + { +- pathlist.push_back("/usr/local/share/games/" + appname); ++ pathlist.push_back("/usr/local/share/" + appname); + } +- if (data_path != "/usr/share/games/" + appname) // avoid adding this path twice ++ if (data_path != "/usr/share/" + appname) // avoid adding this path twice + { +- pathlist.push_back("/usr/share/games/" + appname); ++ pathlist.push_back("/usr/share/" + appname); + } + } + #endif diff --git a/games-simulation/crrcsim/files/crrcsim-0.9.13-gcc6.patch b/games-simulation/crrcsim/files/crrcsim-0.9.13-gcc6.patch new file mode 100644 index 000000000000..b11550f3dff6 --- /dev/null +++ b/games-simulation/crrcsim/files/crrcsim-0.9.13-gcc6.patch @@ -0,0 +1,14 @@ +Bug: https://bugs.gentoo.org/610560 +Upstream commit: https://sourceforge.net/p/crrcsim/code/ci/28ed9ba57011371cab8b637550acc716b973c47d + +--- a/src/mod_video/crrc_animation.cpp ++++ b/src/mod_video/crrc_animation.cpp +@@ -84,7 +84,7 @@ + else + { + std::cerr << "createAnimation: unknown animation type \'" +- << type << "\'" << std::cerr; ++ << type << "\'" << std::endl; + } + + if (anim != NULL) diff --git a/games-simulation/crrcsim/files/crrcsim-cgal_gmp.patch b/games-simulation/crrcsim/files/crrcsim-cgal_gmp.patch new file mode 100644 index 000000000000..10d6bff6b769 --- /dev/null +++ b/games-simulation/crrcsim/files/crrcsim-cgal_gmp.patch @@ -0,0 +1,11 @@ +--- crrcsim-0.9.11/configure.ac ++++ crrcsim-0.9.11/configure.ac +@@ -229,7 +229,7 @@ + has_CGAL="yes (found CGAL v3)" + fi + CGAL_CFLAGS=-frounding-math +- CGAL_LIBS=-lCGAL ++ CGAL_LIBS="-lCGAL -lgmp" + AC_DEFINE([WINDDATA3D], [1], [Import code for wind data, needs CGAL, 0 to disable]) + else + has_CGAL="no (CGAL not found)" diff --git a/games-simulation/crrcsim/metadata.xml b/games-simulation/crrcsim/metadata.xml new file mode 100644 index 000000000000..50785aedf4a1 --- /dev/null +++ b/games-simulation/crrcsim/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">crrcsim</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/flightgear-data/Manifest b/games-simulation/flightgear-data/Manifest new file mode 100644 index 000000000000..001e1fa15334 --- /dev/null +++ b/games-simulation/flightgear-data/Manifest @@ -0,0 +1 @@ +DIST FlightGear-2019.1.1-data.tar.bz2 1748213475 BLAKE2B 6be5021a666d8363fd97e777e0674d61875e1309a391647f6ecebcc4443d494821a737709c135dc45521ae30401479f6f74c28d7db8da992fa279ae461e16a2c SHA512 e5697f587c272036d3f5cfd7dcc7464e3eae7251e41425a91c80eabccbf711a6416a4746b5bf39a2806dc3d4f6839359483a0165899eb4ec812308b2b5da060a diff --git a/games-simulation/flightgear-data/flightgear-data-2019.1.1.ebuild b/games-simulation/flightgear-data/flightgear-data-2019.1.1.ebuild new file mode 100644 index 000000000000..30bc1d192aa2 --- /dev/null +++ b/games-simulation/flightgear-data/flightgear-data-2019.1.1.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="FlightGear data files" +HOMEPAGE="https://www.flightgear.org/" +SRC_URI="mirror://sourceforge/flightgear/FlightGear-${PV}-data.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR}/fgdata + +src_install() { + insinto /usr/share/flightgear + rm -fr .git + doins -r * +} diff --git a/games-simulation/flightgear-data/flightgear-data-9999.ebuild b/games-simulation/flightgear-data/flightgear-data-9999.ebuild new file mode 100644 index 000000000000..387835083e95 --- /dev/null +++ b/games-simulation/flightgear-data/flightgear-data-9999.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit git-r3 + +DESCRIPTION="FlightGear data files" +HOMEPAGE="https://www.flightgear.org/" +EGIT_REPO_URI="git://git.code.sf.net/p/flightgear/fgdata + git://mapserver.flightgear.org/fgdata" +EGIT_BRANCH="next" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="" + +src_install() { + insinto /usr/share/flightgear + rm -fr .git + doins -r * +} diff --git a/games-simulation/flightgear-data/metadata.xml b/games-simulation/flightgear-data/metadata.xml new file mode 100644 index 000000000000..2c0650cc3bcf --- /dev/null +++ b/games-simulation/flightgear-data/metadata.xml @@ -0,0 +1,16 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>reavertm@gentoo.org</email> + <name>Maciej Mrozowski</name> + </maintainer> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">flightgear</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/flightgear/Manifest b/games-simulation/flightgear/Manifest new file mode 100644 index 000000000000..ea3c7817887b --- /dev/null +++ b/games-simulation/flightgear/Manifest @@ -0,0 +1 @@ +DIST flightgear-2019.1.1.tar.bz2 8440986 BLAKE2B da387456aaa6e8b86a8a865989f40c6bbcef4bf378175628c26fb172161cc3b278e4b16a3a270b7ed7fcf70329a88754c9a875a14f919fa90f284a485c909cce SHA512 edcc464af0bde4766e61137211276d77a6bb297567b0168dfaf3b97fdb9a595e5e8a0b84232680fcc975cf195261b9751edb79ae73123333feb31ab3d7215d8c diff --git a/games-simulation/flightgear/files/ac3d.vim b/games-simulation/flightgear/files/ac3d.vim new file mode 100644 index 000000000000..6477d949b762 --- /dev/null +++ b/games-simulation/flightgear/files/ac3d.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.ac set filetype=ac3d diff --git a/games-simulation/flightgear/files/flightgear-2018.3.2-cmake.patch b/games-simulation/flightgear/files/flightgear-2018.3.2-cmake.patch new file mode 100644 index 000000000000..97747e8b7487 --- /dev/null +++ b/games-simulation/flightgear/files/flightgear-2018.3.2-cmake.patch @@ -0,0 +1,24 @@ +diff -ruN flightgear-2018.3.2/CMakeLists.txt my/CMakeLists.txt +--- flightgear-2018.3.2/CMakeLists.txt 2019-01-29 14:17:49.000000000 +0100 ++++ my/CMakeLists.txt 2019-08-18 05:29:04.762138013 +0200 +@@ -323,7 +323,7 @@ + ## Qt5 setup setup + if (ENABLE_QT) + message(STATUS "Qt launcher enabled, checking for Qt >= 5.4 / qmake") +- find_package(Qt5 5.4 COMPONENTS Widgets Network Qml Quick Svg) ++ find_package(Qt5 5.4 COMPONENTS Widgets Network Qml Quick) + if (Qt5Widgets_FOUND) + message(STATUS "Will enable Qt launcher GUI") + message(STATUS " Qt5Widgets version: ${Qt5Widgets_VERSION_STRING}") +diff -ruN flightgear-2018.3.2/src/GUI/CMakeLists.txt my/src/GUI/CMakeLists.txt +--- flightgear-2018.3.2/src/GUI/CMakeLists.txt 2019-01-29 14:17:50.000000000 +0100 ++++ my/src/GUI/CMakeLists.txt 2019-08-18 05:38:19.607822998 +0200 +@@ -127,7 +127,7 @@ + ${qml_sources}) + + set_property(TARGET fglauncher PROPERTY AUTOMOC ON) +- target_link_libraries(fglauncher Qt5::Core Qt5::Widgets Qt5::Network Qt5::Qml Qt5::Quick Qt5::Svg SimGearCore) ++ target_link_libraries(fglauncher Qt5::Core Qt5::Widgets Qt5::Network Qt5::Qml Qt5::Quick SimGearCore) + target_include_directories(fglauncher PRIVATE ${PROJECT_BINARY_DIR}/src/GUI) + + add_library(fgqmlui QQuickDrawable.cxx diff --git a/games-simulation/flightgear/files/nasal.vim b/games-simulation/flightgear/files/nasal.vim new file mode 100644 index 000000000000..65a2ed17fc26 --- /dev/null +++ b/games-simulation/flightgear/files/nasal.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.nas set filetype=nasal diff --git a/games-simulation/flightgear/flightgear-2019.1.1.ebuild b/games-simulation/flightgear/flightgear-2019.1.1.ebuild new file mode 100644 index 000000000000..a8847f1ad50a --- /dev/null +++ b/games-simulation/flightgear/flightgear-2019.1.1.ebuild @@ -0,0 +1,168 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils bash-completion-r1 toolchain-funcs + +DESCRIPTION="Open Source Flight Simulator" +HOMEPAGE="https://www.flightgear.org/" +SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="cpu_flags_x86_sse2 dbus debug examples gdal openmp qt5 +udev +utils vim-syntax" + +# Needs --fg-root with path to flightgear-data passed to test runner passed, +# not really worth patching +RESTRICT="test" + +# zlib is some strange auto-dep from simgear +COMMON_DEPEND=" + dev-db/sqlite:3 + dev-games/openscenegraph[jpeg,png] + ~dev-games/simgear-${PV}[gdal=] + media-libs/openal + >=media-libs/speex-1.2.0:0 + media-libs/speexdsp:0 + media-sound/gsm + sys-libs/zlib + virtual/glu + x11-libs/libX11 + dbus? ( >=sys-apps/dbus-1.6.18-r1 ) + gdal? ( >=sci-libs/gdal-2.0.0:0 ) + qt5? ( + >=dev-qt/qtcore-5.7.1:5 + >=dev-qt/qtdeclarative-5.7.1:5 + >=dev-qt/qtgui-5.7.1:5 + >=dev-qt/qtnetwork-5.7.1:5 + >=dev-qt/qtwidgets-5.7.1:5 + ) + udev? ( virtual/udev ) + utils? ( + media-libs/freeglut + media-libs/freetype:2 + media-libs/glew:0 + media-libs/libpng:0 + virtual/opengl + qt5? ( >=dev-qt/qtwebsockets-5.7.1:5 ) + ) +" +# libXi and libXmu are build-only-deps according to FindGLUT.cmake +DEPEND="${COMMON_DEPEND} + >=dev-libs/boost-1.44 + >=media-libs/plib-1.8.5 + qt5? ( >=dev-qt/linguist-tools-5.7.1:5 ) + utils? ( + x11-libs/libXi + x11-libs/libXmu + ) +" +RDEPEND="${COMMON_DEPEND} + ~games-simulation/${PN}-data-${PV} +" + +PATCHES=("${FILESDIR}/${PN}-2018.3.2-cmake.patch") + +DOCS=(AUTHORS ChangeLog NEWS README Thanks) + +pkg_pretend() { + use openmp && tc-check-openmp +} + +src_configure() { + local mycmakeargs=( + -DENABLE_AUTOTESTING=OFF + -DENABLE_COMPOSITOR=OFF + -DENABLE_FGCOM=$(usex utils) + -DENABLE_FGELEV=$(usex utils) + -DENABLE_FGJS=$(usex utils) + -DENABLE_FGVIEWER=$(usex utils) + -DENABLE_FLITE=OFF + -DENABLE_GDAL=$(usex gdal) + -DENABLE_GPSSMOOTH=$(usex utils) + -DENABLE_HID_INPUT=$(usex udev) + -DENABLE_JS_DEMO=$(usex utils) + -DENABLE_JSBSIM=ON + -DENABLE_LARCSIM=ON + -DENABLE_METAR=$(usex utils) + -DENABLE_OPENMP=$(usex openmp) + -DENABLE_PLIB_JOYSTICK=ON # NOTE look for defaults changes in CMake + -DENABLE_PROFILE=OFF + -DENABLE_QT=$(usex qt5) + -DENABLE_RTI=OFF + -DENABLE_SIMD=OFF # see CPU_FLAGS + -DENABLE_SIMD_CODE=$(usex cpu_flags_x86_sse2) + -DENABLE_STGMERGE=ON + -DENABLE_TERRASYNC=$(usex utils) + -DENABLE_TRAFFIC=$(usex utils) + -DENABLE_UIUC_MODEL=ON + -DENABLE_YASIM=ON + -DEVENT_INPUT=$(usex udev) + -DFG_BUILD_TYPE=Release + -DFG_DATA_DIR=/usr/share/${PN} + -DJSBSIM_TERRAIN=ON + -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear + -DSP_FDMS=ON + -DSYSTEM_CPPUNIT=OFF # NOTE we do not build tests anyway + -DSYSTEM_FLITE=ON + -DSYSTEM_HTS_ENGINE=ON + -DSYSTEM_SPEEX=ON + -DSYSTEM_GSM=ON + -DSYSTEM_SQLITE=ON + -DUSE_AEONWAVE=OFF + -DUSE_DBUS=$(usex dbus) + -DWITH_FGPANEL=$(usex utils) + ) + if use cpu_flags_x86_sse2; then + append-flags -msse2 -mfpmath=sse + fi + if use gdal && use utils; then + mycmakeargs+=(-DENABLE_DEMCONVERT=ON) + else + mycmakeargs+=(-DENABLE_DEMCONVERT=OFF) + fi + if use qt5 && use utils; then + mycmakeargs+=(-DENABLE_FGQCANVAS=ON) + else + mycmakeargs+=(-DENABLE_FGQCANVAS=OFF) + fi + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + # Install bash completion (TODO zsh) + # Uncomment below when scripts stops writing files... +# sed -e "s|/usr/local/share/FlightGear|${GAMES_DATADIR}/${PN}|" \ +# -i scripts/completion/fg-completion.bash || die 'unable to replace FG_ROOT' +# newbashcomp scripts/completion/fg-completion.bash ${PN} + + # Install examples and other misc files + if use examples; then + insinto /usr/share/doc/"${PF}"/examples + doins -r scripts/java scripts/perl scripts/python + insinto /usr/share/doc/"${PF}"/examples/c++ + doins -r scripts/example/* + insinto /usr/share/doc/"${PF}"/tools + doins -r scripts/atis scripts/tools/* + fi + + # Install nasal script syntax + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins scripts/syntax/{ac3d,nasal}.vim + insinto /usr/share/vim/vimfiles/ftdetect/ + doins "${FILESDIR}"/{ac3d,nasal}.vim + fi +} + +pkg_postinst() { + einfo "Please note that data files location changed to /usr/share/flightgear" + if use qt5; then + einfo "To use launcher, run fgfs with '--launcher' parameter" + fi +} diff --git a/games-simulation/flightgear/flightgear-9999.ebuild b/games-simulation/flightgear/flightgear-9999.ebuild new file mode 100644 index 000000000000..ce6c889aeb77 --- /dev/null +++ b/games-simulation/flightgear/flightgear-9999.ebuild @@ -0,0 +1,169 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils bash-completion-r1 toolchain-funcs git-r3 + +DESCRIPTION="Open Source Flight Simulator" +HOMEPAGE="https://www.flightgear.org/" +EGIT_REPO_URI="git://git.code.sf.net/p/${PN}/${PN} + git://mapserver.flightgear.org/${PN}" +EGIT_BRANCH="next" + +LICENSE="GPL-2" +KEYWORDS="" +SLOT="0" +IUSE="cpu_flags_x86_sse2 dbus debug examples gdal openmp qt5 +udev +utils vim-syntax" + +# Needs --fg-root with path to flightgear-data passed to test runner passed, +# not really worth patching +RESTRICT="test" + +# zlib is some strange auto-dep from simgear +COMMON_DEPEND=" + dev-db/sqlite:3 + dev-games/openscenegraph[jpeg,png] + ~dev-games/simgear-${PV}[gdal=] + media-libs/openal + >=media-libs/speex-1.2.0:0 + media-libs/speexdsp:0 + media-sound/gsm + sys-libs/zlib + virtual/glu + x11-libs/libX11 + dbus? ( >=sys-apps/dbus-1.6.18-r1 ) + gdal? ( >=sci-libs/gdal-2.0.0:0 ) + qt5? ( + >=dev-qt/qtcore-5.7.1:5 + >=dev-qt/qtdeclarative-5.7.1:5 + >=dev-qt/qtgui-5.7.1:5 + >=dev-qt/qtnetwork-5.7.1:5 + >=dev-qt/qtwidgets-5.7.1:5 + ) + udev? ( virtual/udev ) + utils? ( + media-libs/freeglut + media-libs/freetype:2 + media-libs/glew:0 + media-libs/libpng:0 + virtual/opengl + qt5? ( >=dev-qt/qtwebsockets-5.7.1:5 ) + ) +" +# libXi and libXmu are build-only-deps according to FindGLUT.cmake +DEPEND="${COMMON_DEPEND} + >=dev-libs/boost-1.44 + >=media-libs/plib-1.8.5 + qt5? ( >=dev-qt/linguist-tools-5.7.1:5 ) + utils? ( + x11-libs/libXi + x11-libs/libXmu + ) +" +RDEPEND="${COMMON_DEPEND} + ~games-simulation/${PN}-data-${PV} +" + +PATCHES=("${FILESDIR}/${PN}-2018.3.2-cmake.patch") + +DOCS=(AUTHORS ChangeLog NEWS README Thanks) + +pkg_pretend() { + use openmp && tc-check-openmp +} + +src_configure() { + local mycmakeargs=( + -DENABLE_AUTOTESTING=OFF + -DENABLE_COMPOSITOR=OFF + -DENABLE_FGCOM=$(usex utils) + -DENABLE_FGELEV=$(usex utils) + -DENABLE_FGJS=$(usex utils) + -DENABLE_FGVIEWER=$(usex utils) + -DENABLE_GDAL=$(usex gdal) + -DENABLE_GPSSMOOTH=$(usex utils) + -DENABLE_HID_INPUT=$(usex udev) + -DENABLE_JS_DEMO=$(usex utils) + -DENABLE_JSBSIM=ON + -DENABLE_LARCSIM=ON + -DENABLE_METAR=$(usex utils) + -DENABLE_OPENMP=$(usex openmp) + -DENABLE_PLIB_JOYSTICK=ON # NOTE look for defaults changes in CMake + -DENABLE_PROFILE=OFF + -DENABLE_QT=$(usex qt5) + -DENABLE_RTI=OFF + -DENABLE_SIMD=OFF # see CPU_FLAGS + -DENABLE_SIMD_CODE=$(usex cpu_flags_x86_sse2) + -DENABLE_STGMERGE=ON + -DENABLE_TERRASYNC=$(usex utils) + -DENABLE_TRAFFIC=$(usex utils) + -DENABLE_UIUC_MODEL=ON + -DENABLE_YASIM=ON + -DEVENT_INPUT=$(usex udev) + -DFG_BUILD_TYPE=Nightly + -DFG_DATA_DIR=/usr/share/${PN} + -DJSBSIM_TERRAIN=ON + -DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear + -DSP_FDMS=ON + -DSYSTEM_CPPUNIT=OFF # NOTE we do not build tests anyway + -DSYSTEM_FLITE=OFF + -DSYSTEM_HTS_ENGINE=OFF + -DSYSTEM_SPEEX=ON + -DSYSTEM_GSM=ON + -DSYSTEM_SQLITE=ON + -DUSE_AEONWAVE=OFF + -DUSE_DBUS=$(usex dbus) + -DWITH_FGPANEL=$(usex utils) + ) + if use cpu_flags_x86_sse2; then + append-flags -msse2 -mfpmath=sse + fi + if use gdal && use utils; then + mycmakeargs+=(-DENABLE_DEMCONVERT=ON) + else + mycmakeargs+=(-DENABLE_DEMCONVERT=OFF) + fi + if use qt5 && use utils; then + mycmakeargs+=(-DENABLE_FGQCANVAS=ON) + else + mycmakeargs+=(-DENABLE_FGQCANVAS=OFF) + fi + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + # Install bash completion (TODO zsh) + # Uncomment below when scripts stops writing files... +# sed -e "s|/usr/local/share/FlightGear|${GAMES_DATADIR}/${PN}|" \ +# -i scripts/completion/fg-completion.bash || die 'unable to replace FG_ROOT' +# newbashcomp scripts/completion/fg-completion.bash ${PN} + + # Install examples and other misc files + if use examples; then + insinto /usr/share/doc/"${PF}"/examples + doins -r scripts/java scripts/perl scripts/python + insinto /usr/share/doc/"${PF}"/examples/c++ + doins -r scripts/example/* + insinto /usr/share/doc/"${PF}"/tools + doins -r scripts/atis scripts/tools/* + fi + + # Install nasal script syntax + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins scripts/syntax/{ac3d,nasal}.vim + insinto /usr/share/vim/vimfiles/ftdetect/ + doins "${FILESDIR}"/{ac3d,nasal}.vim + fi +} + +pkg_postinst() { + einfo "Please note that data files location changed to /usr/share/flightgear" + if use qt5; then + einfo "To use launcher, run fgfs with '--launcher' parameter" + fi +} diff --git a/games-simulation/flightgear/metadata.xml b/games-simulation/flightgear/metadata.xml new file mode 100644 index 000000000000..92402a7e5479 --- /dev/null +++ b/games-simulation/flightgear/metadata.xml @@ -0,0 +1,23 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>reavertm@gentoo.org</email> + <name>Maciej Mrozowski</name> + </maintainer> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <use> + <flag name="dbus">Enable screensaver DBus interaction</flag> + <flag name="gdal">Enable alternative terrain engine based on pagedLOD using <pkg>sci-libs/gdal</pkg></flag> + <flag name="qt5">Build Qt5 launcher application</flag> + <flag name="udev">Enable event-based Input devices through <pkg>virtual/udev</pkg></flag> + <flag name="utils">Build various utilities (fgpanel, fgviewer among others)</flag> + </use> + <upstream> + <remote-id type="sourceforge">flightgear</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/gl117/Manifest b/games-simulation/gl117/Manifest new file mode 100644 index 000000000000..4d4c66267bdd --- /dev/null +++ b/games-simulation/gl117/Manifest @@ -0,0 +1 @@ +DIST gl-117-1.3.2-src.tar.bz2 2411075 BLAKE2B efd2c7b9dd3f71bf0b8b1aac79f90dcc6286301997913346f8ee536b3f5981564438e6a805c658678b5ae0402f84da762b60472ddc553cab49f9ffb421d69993 SHA512 1d2382576c6399d8c84d56ddc7eb2b11b9e1e3ffeebcc1bd30e258ef231626d15d1be649f8c791f30e4f2f78aca2b4290c5d08036c5f482eef01eda8f4f48b5f diff --git a/games-simulation/gl117/files/gl117-1.3.2-mode.patch b/games-simulation/gl117/files/gl117-1.3.2-mode.patch new file mode 100644 index 000000000000..d3f13084a96f --- /dev/null +++ b/games-simulation/gl117/files/gl117-1.3.2-mode.patch @@ -0,0 +1,12 @@ +--- a/src/main.cpp 2010-07-13 09:35:18.374122609 +0100 ++++ b/src/main.cpp 2010-07-13 09:35:45.334955120 +0100 +@@ -71,8 +71,7 @@ int mode = 0; + + // pre-defined screen resolutions (x, y, bpp, fullscreen) + int resolution [4] [4] = +- { { 1024, 768, 32, 1 }, +- { 800, 600, 32, 1 }, ++ { { 800, 600, 32, 1 }, + { 640, 480, 32, 1 }, + { 640, 480, 32, 0 } }; + diff --git a/games-simulation/gl117/gl117-1.3.2-r1.ebuild b/games-simulation/gl117/gl117-1.3.2-r1.ebuild new file mode 100644 index 000000000000..f5c52f6068ab --- /dev/null +++ b/games-simulation/gl117/gl117-1.3.2-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +MY_P="gl-117-${PV}-src" +DESCRIPTION="An action flight simulator" +HOMEPAGE="http://www.heptargon.de/gl-117/gl-117.html" +SRC_URI="mirror://sourceforge/gl-117/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + media-libs/freeglut + media-libs/libsdl[sound,joystick,opengl,video] + media-libs/sdl-mixer[mod] + virtual/glu + virtual/opengl" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} + +PATCHES=( + "${FILESDIR}"/${P}-mode.patch +) + +src_install() { + DOCS="doc/gl-117.pdf AUTHORS ChangeLog FAQ NEWS README" \ + default + newicon doc/src/falcon.jpg ${PN}.jpg + make_desktop_entry gl-117 GL-117 /usr/share/pixmaps/${PN}.jpg + doman doc/gl-117.6 +} diff --git a/games-simulation/gl117/metadata.xml b/games-simulation/gl117/metadata.xml new file mode 100644 index 000000000000..757095d299d6 --- /dev/null +++ b/games-simulation/gl117/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">gl-117</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/lincity-ng/Manifest b/games-simulation/lincity-ng/Manifest new file mode 100644 index 000000000000..4b146efcc55f --- /dev/null +++ b/games-simulation/lincity-ng/Manifest @@ -0,0 +1 @@ +DIST lincity-ng-2.9_beta.tar.gz 115799513 BLAKE2B 038c69172af9a62b35199823ef56200e170a8eafef2849bc6d8797bbc20ffa01656d05b1ba0725d4d33e217602f6695d3bdf2774b90b85c6e257e13e019bebcb SHA512 194b7389d7172b7987eda14cbbf2dd91aa503af36db9cf3bdf07ab6ae5e0068ac00988fec6068d65da6bdf14dee623bba57a58192e2a9659e741a7c9036e6d65 diff --git a/games-simulation/lincity-ng/lincity-ng-2.9_beta.ebuild b/games-simulation/lincity-ng/lincity-ng-2.9_beta.ebuild new file mode 100644 index 000000000000..c49cae5849f8 --- /dev/null +++ b/games-simulation/lincity-ng/lincity-ng-2.9_beta.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools libtool multiprocessing toolchain-funcs + +DESCRIPTION="City simulation game" +HOMEPAGE="https://github.com/lincity-ng/lincity-ng" +SRC_URI="https://github.com/lincity-ng/lincity-ng/archive/lincity-ng-${PV/_/-}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 BitstreamVera CC-BY-SA-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-games/physfs + dev-libs/libxml2:2 + media-libs/libsdl[sound,joystick,opengl,video] + media-libs/sdl-gfx + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-ttf + sys-libs/zlib + virtual/opengl" +DEPEND="${RDEPEND}" +BDEPEND="dev-util/ftjam + virtual/pkgconfig" + +S="${WORKDIR}/${PN}-${P/_/-}" + +src_prepare() { + default + + # Missing CREDITS files actually breaks the install. + sed -i -r "s/\b(COPYING[^ ]*|CREDITS)\b//g" Jamfile || die + + # Can't use eautoreconf as it does weird jam stuff. + autotools_run_tool ./autogen.sh + elibtoolize +} + +src_compile() { + jam -q -dx \ + -j$(makeopts_jobs) \ + -sAR="$(tc-getAR) ru" \ + -sRANLIB="$(tc-getRANLIB)" \ + || die "jam failed" +} + +src_install() { + jam -sDESTDIR="${D}" \ + -sappdocdir="${EPREFIX}/usr/share/doc/${PF}" \ + -sapplicationsdir="${EPREFIX}/usr/share/applications" \ + -spixmapsdir="${EPREFIX}/usr/share/pixmaps" \ + install \ + || die "jam install failed" +} diff --git a/games-simulation/lincity-ng/metadata.xml b/games-simulation/lincity-ng/metadata.xml new file mode 100644 index 000000000000..e423b13315c6 --- /dev/null +++ b/games-simulation/lincity-ng/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">lincity-ng.berlios</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/lincity/Manifest b/games-simulation/lincity/Manifest new file mode 100644 index 000000000000..fa6ff8bbf78b --- /dev/null +++ b/games-simulation/lincity/Manifest @@ -0,0 +1 @@ +DIST lincity-1.13.1.tar.gz 1064236 BLAKE2B 1172ced3255048f3132f85cd9ae994c7e0558170f7e7a24909af1856669c4ad90d57acd76f330fb556656ed74843dda159005350760fc059c6b184cedf1e9393 SHA512 bc4ee7a1642b1efa25f9edaabd3aeb52d1ca1d016735c5094586f52fda3ec4e9080ff35fe518c1ccbfad9fd54babb370f4b9b6a158b4d2f43b7182155084eefc diff --git a/games-simulation/lincity/files/lincity-1.13.1-build.patch b/games-simulation/lincity/files/lincity-1.13.1-build.patch new file mode 100644 index 000000000000..f7f41f954baf --- /dev/null +++ b/games-simulation/lincity/files/lincity-1.13.1-build.patch @@ -0,0 +1,74 @@ +--- lincity-1.13.1.orig/intl/Makefile.in ++++ lincity-1.13.1/intl/Makefile.in +@@ -32,7 +32,7 @@ + libdir = @libdir@ + includedir = @includedir@ + datadir = @datadir@ +-localedir = $(datadir)/locale ++localedir = /usr/share/locale + gettextsrcdir = $(datadir)/gettext/intl + aliaspath = $(localedir) + subdir = intl +--- lincity-1.13.1.orig/mouse.c ++++ lincity-1.13.1/mouse.c +@@ -1057,7 +1057,7 @@ + and set to 1 if the existing transport if the more expensive sort + (e.g. GROUP_RAIL when overwriting GROUP_ROAD). + */ +-inline int ++int + mt_erase(int x, int y) + { + if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN) +--- lincity-1.13.1.orig/pixmap.c ++++ lincity-1.13.1/pixmap.c +@@ -390,7 +390,7 @@ + likes it in the file. Still need to fix this in autoconf, + but for now this will do. */ + #if !defined (WIN32) +-inline int ++int + pixmap_index (int x, int y) + { + return y*pixmap_width + x; +--- lincity-1.13.1.orig/pixmap.h ++++ lincity-1.13.1/pixmap.h +@@ -19,7 +19,7 @@ + void initialize_pixmap (void); + void resize_pixmap (int new_width, int new_height); + int pixmap_getpixel (int x, int y); +-inline int pixmap_index (int x, int y); ++int pixmap_index (int x, int y); + int pixmap_getpixel (int x, int y); + void pixmap_setpixel (int x, int y, int col); + void pixmap_hline (int x1, int y1, int x2, int col); +@@ -33,7 +33,7 @@ + * Public Inline Functions + * ---------------------------------------------------------------------- */ + #if defined (WIN32) +-inline int ++int + pixmap_index (int x, int y) { + return y*pixmap_width + x; + } +--- lincity-1.13.1.orig/po/Makefile.in.in ++++ lincity-1.13.1/po/Makefile.in.in +@@ -21,7 +21,7 @@ + prefix = @prefix@ + exec_prefix = @exec_prefix@ + datadir = @datadir@ +-localedir = $(datadir)/locale ++localedir = /usr/share/locale + gettextsrcdir = $(datadir)/gettext/po + + INSTALL = @INSTALL@ +--- lincity-1.13.1.orig/readpng.c ++++ lincity-1.13.1/readpng.c +@@ -3,6 +3,7 @@ + * This file is part of lincity (see COPYRIGHT for copyright information). + * ---------------------------------------------------------------------- */ + #include <stdlib.h> ++#include <string.h> + #include "png.h" + #include "malloc.h" + #include "lin-city.h" diff --git a/games-simulation/lincity/files/lincity-1.13.1-gcc-10.patch b/games-simulation/lincity/files/lincity-1.13.1-gcc-10.patch new file mode 100644 index 000000000000..77f3a41dcf6c --- /dev/null +++ b/games-simulation/lincity/files/lincity-1.13.1-gcc-10.patch @@ -0,0 +1,48 @@ +https://bugs.gentoo.org/706394 + +--- lincity-1.13.1/fileutil.c 2004-07-03 08:26:33.000000000 -0000 ++++ lincity-1.13.1/fileutil.c 2020-02-26 09:16:31.406614385 -0000 +@@ -105,7 +105,7 @@ + * ---------------------------------------------------------------------- */ + char LIBDIR[LC_PATH_MAX]; + +-char *lc_save_dir; ++extern char *lc_save_dir; + int lc_save_dir_len; + static char *lc_temp_filename; + +--- lincity-1.13.1/ldsvguts.c 2003-10-10 04:11:29.000000000 -0000 ++++ lincity-1.13.1/ldsvguts.c 2020-02-26 09:17:22.410992011 -0000 +@@ -91,8 +91,6 @@ + * Private Global Variables + * ---------------------------------------------------------------------- */ + +-char save_names[10][42]; +- + /* ---------------------------------------------------------------------- * + * Public functions + * ---------------------------------------------------------------------- */ +--- lincity-1.13.1/main.c 2004-07-03 07:59:05.000000000 -0000 ++++ lincity-1.13.1/main.c 2020-02-26 09:17:04.222857373 -0000 +@@ -96,9 +96,8 @@ + #endif + #endif + +-char *lc_save_dir; ++extern char *lc_save_dir; + char *lc_temp_file; +-char save_names[10][42]; + + #ifdef CS_PROFILE + int prof_countdown = PROFILE_COUNTDOWN; +--- lincity-1.13.1/screen.h 2004-06-22 13:24:19.000000000 -0000 ++++ lincity-1.13.1/screen.h 2020-02-26 09:14:31.473725606 -0000 +@@ -20,7 +20,7 @@ + extern unsigned char start_font2[4096]; + extern unsigned char start_font3[4096]; + +-int monthgraph_style; ++extern int monthgraph_style; + + /* This is on in screen_full_refresh, used in *_refresh() */ + extern char screen_refreshing; diff --git a/games-simulation/lincity/lincity-1.13.1-r1.ebuild b/games-simulation/lincity/lincity-1.13.1-r1.ebuild new file mode 100644 index 000000000000..6479c984045d --- /dev/null +++ b/games-simulation/lincity/lincity-1.13.1-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils flag-o-matic + +DESCRIPTION="city/country simulation game for X and Linux SVGALib" +HOMEPAGE="http://lincity.sourceforge.net/" +SRC_URI="mirror://sourceforge/lincity/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +# dep fix (bug #82318) +RDEPEND="media-libs/libpng:0 + x11-libs/libSM + x11-libs/libXext + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}"/${P}-build.patch + "${FILESDIR}"/${P}-gcc-10.patch +) + +src_prepare() { + default + + append-cflags -std=gnu89 # build with gcc5 (bug #570574) +} + +src_configure() { + econf \ + $(use_enable nls) \ + --with-gzip \ + --with-x +} + +src_compile() { + # build system logic is severely broken + emake + emake X_PROGS +} + +src_install() { + default + dodoc Acknowledgements CHANGES README* TODO + make_desktop_entry xlincity Lincity + dobin xlincity +} diff --git a/games-simulation/lincity/metadata.xml b/games-simulation/lincity/metadata.xml new file mode 100644 index 000000000000..8adbc47e4af0 --- /dev/null +++ b/games-simulation/lincity/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">lincity</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/metadata.xml b/games-simulation/metadata.xml new file mode 100644 index 000000000000..9a1d4a49170f --- /dev/null +++ b/games-simulation/metadata.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> + <longdescription lang="en"> + The games-simulation category contains simulation games. + </longdescription> + <longdescription lang="de"> + Die Kategorie games-simulation enthält Simulatoren. + </longdescription> + <longdescription lang="es"> + La categoría games-simulation contiene juegos de simulación. + </longdescription> + <longdescription lang="ja"> + games-simulationカテゴリーにはシミュレーション・ゲームが含まれています。 + </longdescription> + <longdescription lang="nl"> + De games-simulation categorie bevat simulatiespellen. + </longdescription> + <longdescription lang="vi"> + Nhóm games-simulation chứa các trò chơi mô phỏng. + </longdescription> + <longdescription lang="it"> + La categoria games-simulation contiene giochi di simulazione. + </longdescription> + <longdescription lang="pt"> + A categoria games-simulation contém jogos de simulação. + </longdescription> + <longdescription lang="pl"> + Kategoria games-simulation zawiera gry symulacyjne. + </longdescription> +</catmetadata> + diff --git a/games-simulation/micropolis/Manifest b/games-simulation/micropolis/Manifest new file mode 100644 index 000000000000..cc2239cc731b --- /dev/null +++ b/games-simulation/micropolis/Manifest @@ -0,0 +1 @@ +DIST micropolis-cc31822e4ebe54c0109623ac0c5cdf0e3acad755.tar.bz2 6725746 BLAKE2B a916389a1ccf63e1a13b5b6ea533939fdb14d814480c9e528c8b1bb89cbefbbad9ad067821c1de199f337692e226d35b3219354dc32612486d013cc20f21c5bc SHA512 1b5f644f6d7d7cb78965d0e0edcfcc0bdab7a103dd5dc3ce97a0048da9fa29d8757063d6681febab3d03182433cfe8a7bf1b8145a21e067a4c754af3b5af8e00 diff --git a/games-simulation/micropolis/metadata.xml b/games-simulation/micropolis/metadata.xml new file mode 100644 index 000000000000..ed523ac44a79 --- /dev/null +++ b/games-simulation/micropolis/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>hanno@gentoo.org</email> + </maintainer> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="gitlab">stargo/micropolis</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/micropolis/micropolis-1.0_p20180313.ebuild b/games-simulation/micropolis/micropolis-1.0_p20180313.ebuild new file mode 100644 index 000000000000..9b54f5d50580 --- /dev/null +++ b/games-simulation/micropolis/micropolis-1.0_p20180313.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop eutils toolchain-funcs + +COMMIT="cc31822e4ebe54c0109623ac0c5cdf0e3acad755" +DESCRIPTION="Free version of the well-known city building simulation" +HOMEPAGE="https://www.donhopkins.com/home/micropolis/" +SRC_URI="https://gitlab.com/stargo/micropolis/-/archive/${COMMIT}/micropolis-${COMMIT}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + media-libs/libsdl + media-libs/sdl-mixer + x11-libs/libX11 + x11-libs/libXpm" +DEPEND="${RDEPEND}" +BDEPEND="sys-devel/bison" + +S="${WORKDIR}/${PN}-${COMMIT}" + +src_prepare() { + default + + sed -i -e "s|-O3|${CFLAGS}|" \ + src/tclx/config.mk src/{sim,tcl,tk}/makefile || die + sed -i -e "s|XLDFLAGS=|&${LDFLAGS}|" \ + src/tclx/config.mk || die +} + +src_compile() { + emake -C src LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" +} + +src_install() { + local dir=/usr/share/${PN} + + exeinto "${dir}/res" + doexe src/sim/sim + insinto "${dir}" + doins -r activity cities images manual res + + make_wrapper micropolis res/sim "${dir}" + doicon Micropolis.png + make_desktop_entry micropolis "Micropolis" Micropolis +} diff --git a/games-simulation/openrct2/Manifest b/games-simulation/openrct2/Manifest new file mode 100644 index 000000000000..c1149fc8327a --- /dev/null +++ b/games-simulation/openrct2/Manifest @@ -0,0 +1,8 @@ +DIST openrct2-0.2.4.tar.gz 6805976 BLAKE2B 7860746d1705804682756097ff37d4584d0ebb20c450c08b88134795e9f3c375dfb888a67302f530cd55700eaa5cd13149c365c30a5d267d382b39225f06d210 SHA512 956044b5fa5e55256a33f352d2d1e8a4eb6738b98dc9894807b3628b5c5c08f3229c952fbf8b33ad867771f88c6d7e17ad1a8a4e050f8f269a6152d013afce03 +DIST openrct2-0.2.6.tar.gz 11094308 BLAKE2B 4aed899fee4735a0237558c1c34f67f37ecc9b8138f8a66314a9abc013cf10ad3a9f80fd5159afc5860ded780d4c705fd9e394b38f981aac90c8cee883356996 SHA512 abe7c344b7588b169c95ffe0ab9028f72614d9b5783d81fa4f97f206d90d8cbaa0b91f04314c10926dbd5f68bba166558c428557f598abb343d306800611fb24 +DIST openrct2-objects-1.0.12.zip 2173875 BLAKE2B d344dde3dc376004b9e303a489c058a574c2f8babcce8c9998ef12f2b91e3fe7d3e22e1afc81aadd39637f3f91a5d36c4267aed06980686fd909cc515f4c8fde SHA512 d17d2197b66d22e33a246651a0c544a49a6d6a809612d26a851dc4b40bb9e1bf5079bbe5b1a3b7d41f541fc41ce41717d772a5579aa2cdc9ec1dfea72b5a3144 +DIST openrct2-objects-1.0.14.zip 2237331 BLAKE2B 39a0c92674abc0d16fc3dd463b68e2ee8f3f7dd1c2a944d5448173ca58e6c3c4a79092a40e66ac8e919f75be2d2d691a76dc046e41caf7237138815a4e6ad526 SHA512 66e7a55ca894f2ea11af1c6300f934ef00f659137dded06f54bf749f490ff6063f95da800ae3cbfbbffe1c3e7d995e307d1281d57e4454ded6fed5affde84f8e +DIST openrct2-replays-0.0.12.zip 1817941 BLAKE2B e000b005289db12b611c901e83ed785baefcee9eb34b2195f2b9679db9ff4d7c62b7b4fca072e90e464f1ecdbba685395a79889b366e04f7d28e257ecd8571a3 SHA512 d2136bbaf4f42decedcdd2f3546ffb80c93078b52325c5db80e86bfaf87548503ea941f511f905727a046d927464680f3bee3c9ec646ff286050be1ac31c7948 +DIST openrct2-replays-0.0.4.zip 1098833 BLAKE2B efe4f72b16285d8e6508313f16b892b02f1b124cf9b4d146731280f5090d071d3351834e6d4ab51122804fbbcb49044be4e681182141aac93795c3b1953b6590 SHA512 5c2469bfdaa94a6007f6788878f4e80d87fbbfd48b522e1bd2a22c2aa0c98583159b9559fd45f7f9450d544a99a59b6c17399d9ac91a171a86135f0e1a5b3e71 +DIST openrct2-replays-0.0.9.zip 1817119 BLAKE2B 3c63a0acf991487e667ae43ac987b8ee936ce77ad4eb75209d09e41f85b72550856c84d93bdbee1541a994ffbf9bc956b5366d77d760ebd7ed1dab0dffbf7885 SHA512 8066a664c12df047e64b9a049e39da6a4e366adfc60824a7a6c33e526c3a5a9afbc05d1dd11ff81eddbec0783445275d2be8cbe8141031fbeaefe8ea95cd1a7b +DIST openrct2-title-sequences-0.1.2c.zip 2980030 BLAKE2B f91168bea0a4f88a801c95ea45759e0d1c887a89c18dbbded5887d2914db7119dd65c231aa422e4f8a964a81d832eae05bffaa8b7908fac39a63792d082b53a0 SHA512 0e544d236d5f6ac7f68d75ba1f56f043c76c77676cbb92e6fdbf68a6ae2dc6c41dbdad6083ceec36b2f774bcdd99f64f28de73b208d6a39a8218a9e95502d46e diff --git a/games-simulation/openrct2/files/README.gentoo b/games-simulation/openrct2/files/README.gentoo new file mode 100644 index 000000000000..7e5fc8c65857 --- /dev/null +++ b/games-simulation/openrct2/files/README.gentoo @@ -0,0 +1,15 @@ +OpenRCT2 needs the original RollerCoaster Tycoon 2 data files." + +You need the folders 'Data', 'ObjData', 'Scenarios' and 'Tracks'" +from the original release and copy them into '/usr/share/openrct2/rct2_data'." + +For additional content, you can install the RollerCoaster Tycoon 1 data files." + +You need the folders 'Data', 'Scenarios' and 'Tracks'" +from the original release and copy them into '/usr/share/openrct2/rct1_data'." + +Optionally, the paths can be overwritten by the parameters" +'game_path' and 'rct1_path' in your local ~/.config/OpenRCT2/config.ini file." + +See: https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files" +See: https://github.com/OpenRCT2/OpenRCT2/wiki/Loading-RCT1-scenarios-and-data" diff --git a/games-simulation/openrct2/files/openrct2-0.2.4-disable-desktop-and-icon-files-without-gui.patch b/games-simulation/openrct2/files/openrct2-0.2.4-disable-desktop-and-icon-files-without-gui.patch new file mode 100644 index 000000000000..cddbe7a93a32 --- /dev/null +++ b/games-simulation/openrct2/files/openrct2-0.2.4-disable-desktop-and-icon-files-without-gui.patch @@ -0,0 +1,52 @@ +From 9df66b1f1f56427d896263728c84009c8c3b842b Mon Sep 17 00:00:00 2001 +From: Conrad Kostecki <conrad@kostecki.com> +Date: Sun, 10 Nov 2019 20:05:51 +0100 +Subject: [PATCH] CMakeLists.txt: don't install desktop and icon files without + GUI (#10206) + +If OpenRCT2 is compiled without GUI (for example as a dedicated server), +it does not make sense to install the desktop and icon files. + +Signed-off-by: Conrad Kostecki <conrad@kostecki.com> +--- + CMakeLists.txt | 28 +++++++++++++++------------- + 1 file changed, 15 insertions(+), 13 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7dda401bbdd..f6e4683c9b7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -319,18 +319,20 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/g2.dat" DESTINATION "${CMAKE_INSTALL_ + install(DIRECTORY "data/" DESTINATION "${CMAKE_INSTALL_DATADIR}/openrct2") + install(FILES ${DOC_FILES} DESTINATION "${CMAKE_INSTALL_DOCDIR}") + install(FILES "distribution/linux/openrct2.appdata.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo") +-install(FILES "resources/logo/icon_x16.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/16x16/apps" RENAME "openrct2.png") +-install(FILES "resources/logo/icon_x24.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/24x24/apps" RENAME "openrct2.png") +-install(FILES "resources/logo/icon_x32.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/32x32/apps" RENAME "openrct2.png") +-install(FILES "resources/logo/icon_x48.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/48x48/apps" RENAME "openrct2.png") +-install(FILES "resources/logo/icon_x64.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/64x64/apps" RENAME "openrct2.png") +-install(FILES "resources/logo/icon_x96.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/96x96/apps" RENAME "openrct2.png") +-install(FILES "resources/logo/icon_x128.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps" RENAME "openrct2.png") +-install(FILES "resources/logo/icon_x256.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps" RENAME "openrct2.png") +-install(FILES "resources/logo/icon_flag.svg" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps" RENAME "openrct2.svg") +-install(FILES "distribution/linux/openrct2.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") +-install(FILES "distribution/linux/openrct2-savegame.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") +-install(FILES "distribution/linux/openrct2-scenario.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") +-install(FILES "distribution/linux/openrct2-uri.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") ++if (NOT DISABLE_GUI) ++ install(FILES "resources/logo/icon_x16.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/16x16/apps" RENAME "openrct2.png") ++ install(FILES "resources/logo/icon_x24.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/24x24/apps" RENAME "openrct2.png") ++ install(FILES "resources/logo/icon_x32.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/32x32/apps" RENAME "openrct2.png") ++ install(FILES "resources/logo/icon_x48.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/48x48/apps" RENAME "openrct2.png") ++ install(FILES "resources/logo/icon_x64.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/64x64/apps" RENAME "openrct2.png") ++ install(FILES "resources/logo/icon_x96.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/96x96/apps" RENAME "openrct2.png") ++ install(FILES "resources/logo/icon_x128.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps" RENAME "openrct2.png") ++ install(FILES "resources/logo/icon_x256.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps" RENAME "openrct2.png") ++ install(FILES "resources/logo/icon_flag.svg" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps" RENAME "openrct2.svg") ++ install(FILES "distribution/linux/openrct2.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") ++ install(FILES "distribution/linux/openrct2-savegame.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") ++ install(FILES "distribution/linux/openrct2-scenario.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") ++ install(FILES "distribution/linux/openrct2-uri.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") ++endif() + install(FILES "distribution/linux/openrct2-mimeinfo.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/mime/packages/" RENAME "openrct2.xml") + install(DIRECTORY "distribution/man/" DESTINATION "${CMAKE_INSTALL_MANDIR}/man6" FILES_MATCHING PATTERN "*.6") diff --git a/games-simulation/openrct2/files/openrct2-0.2.4-disable-optional-features.patch b/games-simulation/openrct2/files/openrct2-0.2.4-disable-optional-features.patch new file mode 100644 index 000000000000..03d6496bf3ee --- /dev/null +++ b/games-simulation/openrct2/files/openrct2-0.2.4-disable-optional-features.patch @@ -0,0 +1,87 @@ +From fef1906d0d7050b1dfa3792f6e8d3a9b9632df68 Mon Sep 17 00:00:00 2001 +From: Conrad Kostecki <conrad+github@kostecki.com> +Date: Sat, 9 Nov 2019 21:20:16 +0100 +Subject: [PATCH] CMakeLists.txt: make discord-rpc and google benchmark + optional (#10208) + +For a package maintainer, it should be possible to disable the support +for discord-rpc and google benchmark, as it currently always includes them, +when the library if found. +--- + CMakeLists.txt | 26 +++++++++++++++----------- + src/openrct2/CMakeLists.txt | 18 ++++++++++-------- + 2 files changed, 25 insertions(+), 19 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ea4bdfd8221..7dda401bbdd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -42,6 +42,8 @@ CMAKE_DEPENDENT_OPTION(DOWNLOAD_REPLAYS "Download replays during installation." + option(STATIC "Create a static build.") + option(USE_MMAP "Use mmap to try loading rct2's data segment into memory.") + ++option(DISABLE_DISCORD_RPC "Disable Discord-RPC support." OFF) ++option(DISABLE_GOOGLE_BENCHMARK "Disable Google Benchmarks support." OFF) + option(DISABLE_HTTP_TWITCH "Disable HTTP and Twitch support.") + option(DISABLE_NETWORK "Disable multiplayer functionality. Mainly for testing.") + option(DISABLE_TTF "Disable support for TTF provided by freetype2.") +@@ -125,17 +127,19 @@ if (CXX_WARN_SUGGEST_FINAL_METHODS) + add_definitions(-D__WARN_SUGGEST_FINAL_METHODS__) + endif () + +-if(EXISTS "${ROOT_DIR}/discord-rpc") +- # Don't build discord's examples, some of which are in C and do not honour +- # the flags we set for C++. Also we don't use the provided examples. +- set(BUILD_EXAMPLES OFF CACHE BOOL "Build example apps") +- add_subdirectory("${ROOT_DIR}/discord-rpc") +- add_definitions(-D__ENABLE_DISCORD__) +- include_directories("${ROOT_DIR}/discord-rpc/include") +- set(HAVE_DISCORD_RPC TRUE) +- message("Building with discord-rpc support") +-else() +- message("No discord-rpc detected, to enable clone discord-rpc to root directory: ${ROOT_DIR}") ++if (NOT DISABLE_DISCORD_RPC) ++ if(EXISTS "${ROOT_DIR}/discord-rpc") ++ # Don't build discord's examples, some of which are in C and do not honour ++ # the flags we set for C++. Also we don't use the provided examples. ++ set(BUILD_EXAMPLES OFF CACHE BOOL "Build example apps") ++ add_subdirectory("${ROOT_DIR}/discord-rpc") ++ add_definitions(-D__ENABLE_DISCORD__) ++ include_directories("${ROOT_DIR}/discord-rpc/include") ++ set(HAVE_DISCORD_RPC TRUE) ++ message("Building with discord-rpc support") ++ else() ++ message("No discord-rpc detected, to enable clone discord-rpc to root directory: ${ROOT_DIR}") ++ endif() + endif() + + # Copied from https://github.com/opencv/opencv/blob/dcdd6af5a856826fe62c95322145731e702e54c5/cmake/OpenCVDetectCXXCompiler.cmake#L63-L70 +diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt +index 61be3d13c2a..97674911c0c 100644 +--- a/src/openrct2/CMakeLists.txt ++++ b/src/openrct2/CMakeLists.txt +@@ -73,14 +73,16 @@ if (NOT DISABLE_TTF) + endif () + endif () + +-find_package(benchmark 1.4 QUIET) +-if (benchmark_FOUND) +- message("Found Google benchmark, enabling support") +- set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_DEFINITIONS USE_BENCHMARK) +- target_link_libraries(${PROJECT_NAME} benchmark::benchmark) +- target_include_directories(${PROJECT_NAME} PRIVATE ${benchmark_INCLUDE_DIRS}) +-else () +- message("Google benchmark not found, disabling support") ++if (NOT DISABLE_GOOGLE_BENCHMARK) ++ find_package(benchmark 1.4 QUIET) ++ if (benchmark_FOUND) ++ message("Found Google benchmark, enabling support") ++ set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_DEFINITIONS USE_BENCHMARK) ++ target_link_libraries(${PROJECT_NAME} benchmark::benchmark) ++ target_include_directories(${PROJECT_NAME} PRIVATE ${benchmark_INCLUDE_DIRS}) ++ else () ++ message("Google benchmark not found, disabling support") ++ endif () + endif () + + # Third party libraries diff --git a/games-simulation/openrct2/files/openrct2-0.2.4-include-additional-paths.patch b/games-simulation/openrct2/files/openrct2-0.2.4-include-additional-paths.patch new file mode 100644 index 000000000000..d7c3bb7b4442 --- /dev/null +++ b/games-simulation/openrct2/files/openrct2-0.2.4-include-additional-paths.patch @@ -0,0 +1,33 @@ +From 370b6c6ee48dd1ccc68e03f4bba3e9a2cb2067aa Mon Sep 17 00:00:00 2001 +From: Conrad Kostecki <conrad@kostecki.com> +Date: Sat, 9 Nov 2019 22:32:03 +0100 +Subject: [PATCH] src/openrct2/config/Config.cpp: Search additional paths for + rct data. + +With '/usr/share/openrct2/rct{1,2}_data' added into the search path list, +it makes possible to install rct{1,2} game files globally, +so every user on a linux system can run OpenRCT2 directly. +--- + src/openrct2/config/Config.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp +index 08d59488eea..969533f8820 100644 +--- a/src/openrct2/config/Config.cpp ++++ b/src/openrct2/config/Config.cpp +@@ -615,6 +615,7 @@ namespace Config + log_verbose("config_find_rct1_path(...)"); + + static constexpr const utf8* searchLocations[] = { ++ R"(/usr/share/openrct2/rct1_data)", + R"(C:\Program Files\Steam\steamapps\common\Rollercoaster Tycoon Deluxe)", + R"(C:\Program Files (x86)\Steam\steamapps\common\Rollercoaster Tycoon Deluxe)", + R"(C:\GOG Games\RollerCoaster Tycoon Deluxe)", +@@ -659,6 +660,7 @@ namespace Config + log_verbose("config_find_rct2_path(...)"); + + static constexpr const utf8* searchLocations[] = { ++ R"(/usr/share/openrct2/rct2_data)", + R"(C:\Program Files\Steam\steamapps\common\Rollercoaster Tycoon 2)", + R"(C:\Program Files (x86)\Steam\steamapps\common\Rollercoaster Tycoon 2)", + R"(C:\GOG Games\RollerCoaster Tycoon 2 Triple Thrill Pack)", diff --git a/games-simulation/openrct2/files/openrct2.confd b/games-simulation/openrct2/files/openrct2.confd new file mode 100644 index 000000000000..cdc414542d26 --- /dev/null +++ b/games-simulation/openrct2/files/openrct2.confd @@ -0,0 +1,11 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Name of the OpenRCT2 scenario file, +# which will be used by the dedicated server. +# It needs to be placed in '/var/lib/openrct2/<instance>/scenario'. +# The default instance is 'main'. +OPENRCT2_SCENARIO_FILE="scenario.sc6" + +# Options, which can be passed to the dedicated server. +OPENRCT2_OPTS="--port 11753" diff --git a/games-simulation/openrct2/files/openrct2.initd b/games-simulation/openrct2/files/openrct2.initd new file mode 100644 index 000000000000..de95158a68e7 --- /dev/null +++ b/games-simulation/openrct2/files/openrct2.initd @@ -0,0 +1,41 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +if [ "${SVCNAME}" = "openrct2" ]; then + instance="main" +else + instance="${SVCNAME#*.}" +fi + +openrct2_command="/usr/bin/openrct2-cli" +openrct2_path="/var/lib/openrct2" +openrct2_path_instance="${openrct2_path}/${instance}" +openrct2_path_scenario="${openrct2_path_instance}/scenario" +name="OpenRCT2 server (${instance})" +pidfile="/run/openrct2-cli.${instance}.pid" +start_stop_daemon_args="--chdir ${openrct2_path_instance}" + +command="/usr/bin/openrct2-cli" +command_args="host \"${openrct2_path_scenario}/${OPENRCT2_SCENARIO_FILE}\" --headless --user-data-path ${openrct2_path_instance} ${OPENRCT2_OPTS}" +command_background="true" +command_group="openrct2" +command_user="openrct2" + +depend() { + use net +} + +start_pre() { + checkpath -d -o "${command_user}:${command_group}" -q "${openrct2_path}" "${openrct2_path_instance}" "${openrct2_path_scenario}" + + if [ ! -f "${openrct2_path_scenario}/${OPENRCT2_SCENARIO_FILE}" ]; then + eerror "The scenario ${openrct2_path_scenario}/${OPENRCT2_SCENARIO_FILE} could not be found!" + eerror "An OpenRCT2 scenario file is needed by the dedicated server." + eerror "Please check, if OPENRCT2_SCENARIO is configured correctly." + return 1 + else + checkpath -f -o "${command_user}:${command_group}" -q "${openrct2_path_scenario}/${OPENRCT2_SCENARIO_FILE}" + return 0 + fi +} diff --git a/games-simulation/openrct2/metadata.xml b/games-simulation/openrct2/metadata.xml new file mode 100644 index 000000000000..6ac54b538485 --- /dev/null +++ b/games-simulation/openrct2/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>conikost@gentoo.org</email> + <name>Conrad Kostecki</name> + </maintainer> + <longdescription> + OpenRCT2 is an open-source re-implementation of RollerCoaster Tycoon 2 (RCT2), + expanding the game with new features, fixing bugs and raising game limits. + The gameplay revolves around building and maintaining an amusement park containing attractions, + shops and facilities. The player must try to make a profit and maintain a good park reputation + whilst keeping the guests happy. OpenRCT2 allows for both scenario and sandbox play. + Scenarios require the player to complete a certain objective in a set time limit whilst + sandbox allows the player to build a more flexible park with optionally no restrictions or finance. + </longdescription> + <use> + <flag name="lightfx">Enables LightFX for better lightning effects.</flag> + <flag name="twitch">Enables streaming of ingame content to Twitch.</flag> + </use> + <upstream> + <bugs-to>https://github.com/OpenRCT2/OpenRCT2/issues</bugs-to> + <remote-id type="github">OpenRCT2/OpenRCT2</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/openrct2/openrct2-0.2.4.ebuild b/games-simulation/openrct2/openrct2-0.2.4.ebuild new file mode 100644 index 000000000000..3d69a53c77e8 --- /dev/null +++ b/games-simulation/openrct2/openrct2-0.2.4.ebuild @@ -0,0 +1,164 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils readme.gentoo-r1 xdg-utils + +MY_PN="OpenRCT2" +MY_PN_OBJ="objects" +MY_PN_RPL="replays" +MY_PN_TS="title-sequences" +MY_PV_OBJ="1.0.12" +MY_PV_RPL="0.0.4" +MY_PV_TS="0.1.2c" + +DESCRIPTION="An open source re-implementation of Chris Sawyer's RollerCoaster Tycoon 2" +HOMEPAGE="https://openrct2.org/" +SRC_URI=" + https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/${MY_PN}/${MY_PN_OBJ}/releases/download/v${MY_PV_OBJ}/${MY_PN_OBJ}.zip -> ${PN}-${MY_PN_OBJ}-${MY_PV_OBJ}.zip + https://github.com/${MY_PN}/${MY_PN_TS}/releases/download/v${MY_PV_TS}/${MY_PN_TS}.zip -> ${PN}-${MY_PN_TS}-${MY_PV_TS}.zip + test? ( https://github.com/${MY_PN}/${MY_PN_RPL}/releases/download/v${MY_PV_RPL}/${MY_PN_RPL}.zip -> ${PN}-${MY_PN_RPL}-${MY_PV_RPL}.zip ) +" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="dedicated libressl +lightfx +opengl test +truetype twitch" + +COMMON_DEPEND=" + dev-libs/icu:= + dev-libs/jansson + dev-libs/libzip:= + media-libs/libpng:0= + sys-libs/zlib + !dedicated? ( + media-libs/libsdl2 + media-libs/speexdsp + opengl? ( virtual/opengl ) + twitch? ( + net-misc/curl[ssl] + ) + ) + libressl? ( dev-libs/libressl:0= ) + !libressl? ( dev-libs/openssl:0= ) + truetype? ( + media-libs/fontconfig:1.0 + media-libs/freetype:2 + ) +" + +RDEPEND=" + ${COMMON_DEPEND} + dedicated? ( + acct-group/openrct2 + acct-user/openrct2 + ) +" + +DEPEND=" + ${COMMON_DEPEND} + test? ( dev-cpp/gtest ) +" + +BDEPEND=" + app-arch/unzip + virtual/pkgconfig +" + +RESTRICT="!test? ( test )" + +S="${WORKDIR}/${MY_PN}-${PV}" + +PATCHES=( + "${FILESDIR}/${PN}-0.2.4-disable-desktop-and-icon-files-without-gui.patch" + "${FILESDIR}/${PN}-0.2.4-disable-optional-features.patch" + "${FILESDIR}/${PN}-0.2.4-include-additional-paths.patch" +) + +src_unpack() { + unpack "${P}".tar.gz + + mkdir -p "${S}"/data/title || die + cd "${S}"/data/title || die + unpack "${PN}-${MY_PN_TS}-${MY_PV_TS}".zip + + mkdir -p "${S}"/data/object || die + cd "${S}"/data/object || die + unpack "${PN}-${MY_PN_OBJ}-${MY_PV_OBJ}".zip + + if use test; then + mkdir -p "${S}"/testdata/replays || die + cd "${S}"/testdata/replays || die + unpack "${PN}-${MY_PN_RPL}-${MY_PV_RPL}".zip + fi +} + +src_prepare() { + cmake-utils_src_prepare + + # Don't treat warnings as errors. + sed -e 's/-Werror//' -i CMakeLists.txt || die +} + +src_configure() { + # Note: There is currently no support for Disord-RPC and Google Benchmark, + # as both packages do not exist in Gentoo, so support for them has been disabled. + local mycmakeargs=( + -DDISABLE_DISCORD_RPC=ON + -DDISABLE_GOOGLE_BENCHMARK=ON + -DDISABLE_GUI=$(usex dedicated) + -DDISABLE_HTTP_TWITCH=$(usex !twitch) + -DDISABLE_NETWORK=OFF + $(usex !dedicated "-DDISABLE_OPENGL=$(usex !opengl)" "") + -DDISABLE_TTF=$(usex !truetype) + -DDOWNLOAD_OBJECTS=OFF + -DDOWNLOAD_REPLAYS=OFF + -DDOWNLOAD_TITLE_SEQUENCES=OFF + -DENABLE_LIGHTFX=$(usex lightfx) + -DPORTABLE=OFF + -DSTATIC=OFF + $(usex test "-DSYSTEM_GTEST=ON" "") + -DWITH_TESTS=$(usex test) + -DUSE_MMAP=ON + ) + + cmake-utils_src_configure +} + +src_test() { + # Since the tests need the OpenRCT2 data, + # we need to symlink them into the build directory, + # otherwise some tests will fail, as they don't find the OpenRCT2 data. + # It is currently not possible to override that path. + # See: https://github.com/OpenRCT2/OpenRCT2/issues/6473 + ln -s "${S}"/data "${BUILD_DIR}" || die + + cmake-utils_src_test +} + +src_install() { + cmake-utils_src_install + + if use dedicated; then + newinitd "${FILESDIR}"/openrct2.initd openrct2 + newconfd "${FILESDIR}"/openrct2.confd openrct2 + fi + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog + + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} diff --git a/games-simulation/openrct2/openrct2-0.2.6.ebuild b/games-simulation/openrct2/openrct2-0.2.6.ebuild new file mode 100644 index 000000000000..d18f745158a3 --- /dev/null +++ b/games-simulation/openrct2/openrct2-0.2.6.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils readme.gentoo-r1 xdg-utils + +MY_PN="OpenRCT2" +MY_PN_OBJ="objects" +MY_PN_RPL="replays" +MY_PN_TS="title-sequences" +MY_PV_OBJ="1.0.14" +MY_PV_RPL="0.0.9" +MY_PV_TS="0.1.2c" + +DESCRIPTION="An open source re-implementation of Chris Sawyer's RollerCoaster Tycoon 2" +HOMEPAGE="https://openrct2.org/" +SRC_URI=" + https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/${MY_PN}/${MY_PN_OBJ}/releases/download/v${MY_PV_OBJ}/${MY_PN_OBJ}.zip -> ${PN}-${MY_PN_OBJ}-${MY_PV_OBJ}.zip + https://github.com/${MY_PN}/${MY_PN_TS}/releases/download/v${MY_PV_TS}/${MY_PN_TS}.zip -> ${PN}-${MY_PN_TS}-${MY_PV_TS}.zip + test? ( https://github.com/${MY_PN}/${MY_PN_RPL}/releases/download/v${MY_PV_RPL}/${MY_PN_RPL}.zip -> ${PN}-${MY_PN_RPL}-${MY_PV_RPL}.zip ) +" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dedicated libressl +lightfx +opengl test +truetype twitch" + +COMMON_DEPEND=" + dev-libs/icu:= + dev-libs/jansson + dev-libs/libzip:= + media-libs/libpng:0= + sys-libs/zlib + !dedicated? ( + media-libs/libsdl2 + media-libs/speexdsp + opengl? ( virtual/opengl ) + twitch? ( + net-misc/curl[ssl] + ) + ) + libressl? ( dev-libs/libressl:0= ) + !libressl? ( dev-libs/openssl:0= ) + truetype? ( + media-libs/fontconfig:1.0 + media-libs/freetype:2 + ) +" + +RDEPEND=" + ${COMMON_DEPEND} + dedicated? ( + acct-group/openrct2 + acct-user/openrct2 + ) +" + +DEPEND=" + ${COMMON_DEPEND} + test? ( dev-cpp/gtest ) +" + +BDEPEND=" + app-arch/unzip + virtual/pkgconfig +" + +RESTRICT="!test? ( test )" + +S="${WORKDIR}/${MY_PN}-${PV}" + +PATCHES=( + "${FILESDIR}/${PN}-0.2.4-include-additional-paths.patch" +) + +src_unpack() { + unpack "${P}".tar.gz + + mkdir -p "${S}"/data/title || die + cd "${S}"/data/title || die + unpack "${PN}-${MY_PN_TS}-${MY_PV_TS}".zip + + mkdir -p "${S}"/data/object || die + cd "${S}"/data/object || die + unpack "${PN}-${MY_PN_OBJ}-${MY_PV_OBJ}".zip + + if use test; then + mkdir -p "${S}"/testdata/replays || die + cd "${S}"/testdata/replays || die + unpack "${PN}-${MY_PN_RPL}-${MY_PV_RPL}".zip + fi +} + +src_prepare() { + cmake-utils_src_prepare + + # Don't treat warnings as errors. + sed -e 's/-Werror//' -i CMakeLists.txt || die +} + +src_configure() { + # Note: There is currently no support for Disord-RPC and Google Benchmark, + # as both packages do not exist in Gentoo, so support for them has been disabled. + local mycmakeargs=( + -DDISABLE_DISCORD_RPC=ON + -DDISABLE_GOOGLE_BENCHMARK=ON + -DDISABLE_GUI=$(usex dedicated) + -DDISABLE_HTTP_TWITCH=$(usex !twitch) + -DDISABLE_NETWORK=OFF + $(usex !dedicated "-DDISABLE_OPENGL=$(usex !opengl)" "") + -DDISABLE_TTF=$(usex !truetype) + -DDOWNLOAD_OBJECTS=OFF + -DDOWNLOAD_REPLAYS=OFF + -DDOWNLOAD_TITLE_SEQUENCES=OFF + -DENABLE_LIGHTFX=$(usex lightfx) + -DPORTABLE=OFF + -DSTATIC=OFF + $(usex test "-DSYSTEM_GTEST=ON" "") + -DWITH_TESTS=$(usex test) + -DUSE_MMAP=ON + ) + + cmake-utils_src_configure +} + +src_test() { + # Since the tests need the OpenRCT2 data, + # we need to symlink them into the build directory, + # otherwise some tests will fail, as they don't find the OpenRCT2 data. + # It is currently not possible to override that path. + # See: https://github.com/OpenRCT2/OpenRCT2/issues/6473 + ln -s "${S}"/data "${BUILD_DIR}" || die + + cmake-utils_src_test +} + +src_install() { + cmake-utils_src_install + + if use dedicated; then + newinitd "${FILESDIR}"/openrct2.initd openrct2 + newconfd "${FILESDIR}"/openrct2.confd openrct2 + fi + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog + + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} diff --git a/games-simulation/openrct2/openrct2-9999.ebuild b/games-simulation/openrct2/openrct2-9999.ebuild new file mode 100644 index 000000000000..a54869ba1345 --- /dev/null +++ b/games-simulation/openrct2/openrct2-9999.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils git-r3 readme.gentoo-r1 xdg-utils + +EGIT_REPO_URI="https://github.com/OpenRCT2/OpenRCT2.git" +EGIT_BRANCH="develop" + +MY_PN="OpenRCT2" +MY_PN_OBJ="objects" +MY_PN_RPL="replays" +MY_PN_TS="title-sequences" +MY_PV_OBJ="1.0.14" +MY_PV_RPL="0.0.12" +MY_PV_TS="0.1.2c" + +DESCRIPTION="An open source re-implementation of Chris Sawyer's RollerCoaster Tycoon 2" +HOMEPAGE="https://openrct2.org/" +SRC_URI=" + https://github.com/${MY_PN}/${MY_PN_OBJ}/releases/download/v${MY_PV_OBJ}/${MY_PN_OBJ}.zip -> ${PN}-${MY_PN_OBJ}-${MY_PV_OBJ}.zip + https://github.com/${MY_PN}/${MY_PN_TS}/releases/download/v${MY_PV_TS}/${MY_PN_TS}.zip -> ${PN}-${MY_PN_TS}-${MY_PV_TS}.zip + test? ( https://github.com/${MY_PN}/${MY_PN_RPL}/releases/download/v${MY_PV_RPL}/${MY_PN_RPL}.zip -> ${PN}-${MY_PN_RPL}-${MY_PV_RPL}.zip ) +" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="dedicated libressl +lightfx +opengl test +truetype twitch" + +COMMON_DEPEND=" + dev-lang/duktape + dev-libs/icu:= + dev-libs/jansson + dev-libs/libzip:= + media-libs/libpng:0= + sys-libs/zlib + !dedicated? ( + media-libs/libsdl2 + media-libs/speexdsp + opengl? ( virtual/opengl ) + twitch? ( + net-misc/curl[ssl] + ) + ) + libressl? ( dev-libs/libressl:0= ) + !libressl? ( dev-libs/openssl:0= ) + truetype? ( + media-libs/fontconfig:1.0 + media-libs/freetype:2 + ) +" + +RDEPEND=" + ${COMMON_DEPEND} + dedicated? ( + acct-group/openrct2 + acct-user/openrct2 + ) +" + +DEPEND=" + ${COMMON_DEPEND} + test? ( dev-cpp/gtest ) +" + +BDEPEND=" + app-arch/unzip + virtual/pkgconfig +" + +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/${PN}-0.2.4-include-additional-paths.patch" +) + +src_unpack() { + git-r3_src_unpack + + mkdir -p "${S}"/data/title || die + cd "${S}"/data/title || die + unpack "${PN}-${MY_PN_TS}-${MY_PV_TS}".zip + + mkdir -p "${S}"/data/object || die + cd "${S}"/data/object || die + unpack "${PN}-${MY_PN_OBJ}-${MY_PV_OBJ}".zip + + if use test; then + mkdir -p "${S}"/testdata/replays || die + cd "${S}"/testdata/replays || die + unpack "${PN}-${MY_PN_RPL}-${MY_PV_RPL}".zip + fi +} + +src_prepare() { + cmake-utils_src_prepare + + # Don't treat warnings as errors. + sed -e 's/-Werror//' -i CMakeLists.txt || die +} + +src_configure() { + # Note: There is currently no support for Disord-RPC and Google Benchmark, + # as both packages do not exist in Gentoo, so support for them has been disabled. + local mycmakeargs=( + -DDISABLE_DISCORD_RPC=ON + -DDISABLE_GOOGLE_BENCHMARK=ON + -DDISABLE_GUI=$(usex dedicated) + -DDISABLE_HTTP_TWITCH=$(usex !twitch) + -DDISABLE_NETWORK=OFF + $(usex !dedicated "-DDISABLE_OPENGL=$(usex !opengl)" "") + -DDISABLE_TTF=$(usex !truetype) + -DDOWNLOAD_OBJECTS=OFF + -DDOWNLOAD_REPLAYS=OFF + -DDOWNLOAD_TITLE_SEQUENCES=OFF + -DENABLE_LIGHTFX=$(usex lightfx) + -DPORTABLE=OFF + -DSTATIC=OFF + $(usex test "-DSYSTEM_GTEST=ON" "") + -DWITH_TESTS=$(usex test) + -DUSE_MMAP=ON + ) + + cmake-utils_src_configure +} + +src_test() { + # Since the tests need the OpenRCT2 data, + # we need to symlink them into the build directory, + # otherwise some tests will fail, as they don't find the OpenRCT2 data. + # It is currently not possible to override that path. + # See: https://github.com/OpenRCT2/OpenRCT2/issues/6473 + ln -s "${S}"/data "${BUILD_DIR}" || die + + cmake-utils_src_test +} + +src_install() { + cmake-utils_src_install + + if use dedicated; then + newinitd "${FILESDIR}"/openrct2.initd openrct2 + newconfd "${FILESDIR}"/openrct2.confd openrct2 + fi + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog + + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} diff --git a/games-simulation/openttd/Manifest b/games-simulation/openttd/Manifest new file mode 100644 index 000000000000..68ea367c7053 --- /dev/null +++ b/games-simulation/openttd/Manifest @@ -0,0 +1 @@ +DIST openttd-1.10.2-source.tar.xz 6766904 BLAKE2B 959d3ba98022d3fd3ddb15844bc2d6f5eb54b470e2dfebdcd784428c1773585c116dd739bd6718879ac6d6ac6942737cd51b71bc77d6d82991fdcea1bc8aec1a SHA512 03de85449a458c76c07d8a28c34f72bc95ab0652c666e5925da43746cdd4e95b0d66360b6e214d1df33f11b5346da2e3b9ca6832ac6628c7d6e5e0a791881683 diff --git a/games-simulation/openttd/files/openttd-1.9.0-cflags.patch b/games-simulation/openttd/files/openttd-1.9.0-cflags.patch new file mode 100644 index 000000000000..86eb16168dbc --- /dev/null +++ b/games-simulation/openttd/files/openttd-1.9.0-cflags.patch @@ -0,0 +1,56 @@ +From 6d72f33efe9f911d1427795a06c13d9dcd6fa222 Mon Sep 17 00:00:00 2001 +From: Lars Wendler <polynomial-c@gentoo.org> +Date: Wed, 3 Apr 2019 14:11:42 +0200 +Subject: [PATCH] Don't mess with our CFLAGS + +Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> +--- + config.lib | 18 ------------------ + 1 file changed, 18 deletions(-) + +diff --git a/config.lib b/config.lib +index f65aaa535..7789c0bea 100644 +--- a/config.lib ++++ b/config.lib +@@ -1499,11 +1499,6 @@ make_cflags_and_ldflags() { + # No debug, add default stuff + OBJS_SUBDIR="release" + +- if [ "$enable_profiling" = "0" ]; then +- # -fomit-frame-pointer and -pg do not go well together (gcc errors they are incompatible) +- CFLAGS="-fomit-frame-pointer $CFLAGS" +- fi +- CFLAGS="-O2 $CFLAGS" + else + OBJS_SUBDIR="debug" + +@@ -1511,14 +1506,6 @@ make_cflags_and_ldflags() { + if [ $enable_debug -ge 1 ]; then + CFLAGS="$CFLAGS -g -D_DEBUG" + fi +- if [ $enable_debug -ge 2 ]; then +- CFLAGS="$CFLAGS -fno-inline" +- fi +- if [ $enable_debug -ge 3 ]; then +- CFLAGS="$CFLAGS -O0" +- else +- CFLAGS="$CFLAGS -O2" +- fi + fi + + if [ $enable_debug -le 2 ]; then +@@ -1543,11 +1530,6 @@ make_cflags_and_ldflags() { + CFLAGS="$CFLAGS -fno-expensive-optimizations" + fi + +- if [ "$enable_profiling" != "0" ]; then +- CFLAGS="$CFLAGS -pg" +- LDFLAGS="$LDFLAGS -pg" +- fi +- + if [ "$with_threads" = "0" ]; then + CFLAGS="$CFLAGS -DNO_THREADS" + fi +-- +2.21.0 + diff --git a/games-simulation/openttd/files/openttd-1.9.0-dont_compress_manpages.patch b/games-simulation/openttd/files/openttd-1.9.0-dont_compress_manpages.patch new file mode 100644 index 000000000000..d151dbf36931 --- /dev/null +++ b/games-simulation/openttd/files/openttd-1.9.0-dont_compress_manpages.patch @@ -0,0 +1,34 @@ +From da54b0365997181979d5c7131e99957424d4a167 Mon Sep 17 00:00:00 2001 +From: Lars Wendler <polynomial-c@gentoo.org> +Date: Wed, 3 Apr 2019 13:53:50 +0200 +Subject: [PATCH] Do not compress man-pages by default + +Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> +--- + Makefile.bundle.in | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/Makefile.bundle.in b/Makefile.bundle.in +index eaf7134dd..1c2523181 100644 +--- a/Makefile.bundle.in ++++ b/Makefile.bundle.in +@@ -77,7 +77,6 @@ endif + ifdef MAN_DIR + $(Q)mkdir -p "$(BUNDLE_DIR)/man/" + $(Q)cp "$(ROOT_DIR)/docs/openttd.6" "$(BUNDLE_DIR)/man/" +- $(Q)gzip -9 "$(BUNDLE_DIR)/man/openttd.6" + endif + $(Q)cp "$(ROOT_DIR)/media/openttd.32.xpm" "$(BUNDLE_DIR)/media/" + $(Q)cp "$(ROOT_DIR)/media/openttd."*.png "$(BUNDLE_DIR)/media/" +@@ -219,7 +218,7 @@ endif + ifdef MAN_DIR + ifndef DO_NOT_INSTALL_MAN + $(Q)install -d "$(INSTALL_MAN_DIR)" +- $(Q)install -m 644 "$(BUNDLE_DIR)/man/openttd.6.gz" "$(INSTALL_MAN_DIR)/${BINARY_NAME}.6.gz" ++ $(Q)install -m 644 "$(BUNDLE_DIR)/man/openttd.6" "$(INSTALL_MAN_DIR)/${BINARY_NAME}.6" + endif + endif + ifdef MENU_DIR +-- +2.21.0 + diff --git a/games-simulation/openttd/files/openttd.initd-r1 b/games-simulation/openttd/files/openttd.initd-r1 new file mode 100644 index 000000000000..0bfeefddf6d6 --- /dev/null +++ b/games-simulation/openttd/files/openttd.initd-r1 @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +description="OpenTTD dedicated game server" +pidfile="/run/${SVCNAME}.pid" +command="/usr/bin/openttd" +command_args="-D" +command_background="true" + +depend() { + need net +} diff --git a/games-simulation/openttd/metadata.xml b/games-simulation/openttd/metadata.xml new file mode 100644 index 000000000000..5d32b6ea4aea --- /dev/null +++ b/games-simulation/openttd/metadata.xml @@ -0,0 +1,16 @@ +<?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> + <use> + <flag name="aplaymidi">Enables midi music in game, using aplaymidi as an external player</flag> + + <flag name="openmedia">Enables the free open media sets: OpenGFX, OpenSFX, OpenMSX, removing the requirement for proprietary TTD assets to play OpenTTD.</flag> + <flag name="lzo">Enables LZO compression for savegames. This is only needed to load extremely old savegames. (versions before 0.2)</flag> + <flag name="dedicated">Build only the openttd server, and not the client.</flag> + </use> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/openttd/openttd-1.10.2.ebuild b/games-simulation/openttd/openttd-1.10.2.ebuild new file mode 100644 index 000000000000..acf83d2f9551 --- /dev/null +++ b/games-simulation/openttd/openttd-1.10.2.ebuild @@ -0,0 +1,183 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs xdg + +MY_PV="${PV/_rc/-RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe" +HOMEPAGE="https://www.openttd.org/" +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/OpenTTD/OpenTTD.git" +else + SRC_URI="https://proxy.binaries.openttd.org/openttd-releases/${MY_PV}/${MY_P}-source.tar.xz" + KEYWORDS="~amd64 ~ppc64 ~x86" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="aplaymidi debug dedicated iconv icu +lzma lzo +openmedia +png cpu_flags_x86_sse +timidity +truetype zlib" +RESTRICT="test" # needs a graphics set in order to test + +RDEPEND="!dedicated? ( + media-libs/libsdl2[sound,video] + icu? ( + dev-libs/icu-layoutex + dev-libs/icu-le-hb + >=dev-libs/icu-58.1:= + ) + truetype? ( + media-libs/fontconfig + media-libs/freetype:2 + sys-libs/zlib:= + ) + ) + lzma? ( app-arch/xz-utils ) + lzo? ( dev-libs/lzo:2 ) + iconv? ( virtual/libiconv ) + png? ( + media-libs/libpng:0 + sys-libs/zlib:= + ) + zlib? ( sys-libs/zlib:= )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig" +PDEPEND=" + !dedicated? ( + openmedia? ( + games-misc/openmsx + games-misc/opensfx + ) + aplaymidi? ( media-sound/alsa-utils ) + !aplaymidi? ( timidity? ( media-sound/timidity++ ) ) + ) + openmedia? ( >=games-misc/opengfx-0.4.7 )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.9.0-cflags.patch + "${FILESDIR}"/${PN}-1.9.0-dont_compress_manpages.patch +) + +src_configure() { + local myopts=( + --binary-dir="bin" + --disable-strip + --doc-dir="share/doc/${PF}" + --install-dir="${D}" + --menu-group="Game;Simulation;" + --prefix-dir="${EPREFIX}/usr" + $(use_with cpu_flags_x86_sse sse) + $(use_with iconv) + $(use_with lzma) + $(use_with lzo liblzo2) + $(use_with png) + $(usex debug '--enable-debug=3' '') + # there is an allegro interface available as well as sdl, but + # the configure for it looks broken so the sdl interface is + # always built instead. + --without-allegro + + --without-fluidsynth + ) + + if use dedicated ; then + myopts+=( --enable-dedicated ) + else + myopts+=( + $(usex aplaymidi '--with-midi=/usr/bin/aplaymidi' '') + $(use_with truetype freetype) + $(use_with icu) + --with-sdl + ) + fi + if use png || { use !dedicated && use truetype; } || use zlib ; then + myopts+=( --with-zlib ) + else + myopts+=( --without-zlib ) + fi + + # configure is a hand-written bash-script, so econf will not work. + # It's all built as C++, upstream uses CFLAGS internally. + CC=$(tc-getCC) CXX=$(tc-getCXX) CFLAGS="" ./configure ${myopts[@]} || die +} + +src_compile() { + emake VERBOSE=1 +} + +src_install() { + default + if use dedicated ; then + newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} + rm -rf "${ED}"/usr/share/{applications,icons,pixmaps} || die + fi + rm -f "${ED}"/usr/share/doc/${PF}/COPYING || die +} + +pkg_preinst() { + xdg_pkg_preinst +} + +pkg_postinst() { + xdg_pkg_postinst + + if ! use lzo ; then + elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not" + elog "required, disabling it does mean that loading old savegames" + elog "or scenarios from ancient versions (~0.2) will fail." + elog + fi + + if use dedicated ; then + ewarn "Warning: The init script will kill all running openttd" + ewarn "processes when triggered, including any running client sessions!" + else + if use aplaymidi ; then + elog "You have emerged with 'aplaymidi' for playing MIDI." + elog "This option is for those with a hardware midi device," + elog "or who have set up ALSA to handle midi ports." + elog "You must set the environment variable ALSA_OUTPUT_PORTS." + elog "Available ports can be listed by using 'aplaymidi -l'." + else + if ! use timidity ; then + elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'" + elog "in USE. Music may or may not work in-game. If you happen" + elog "to have timidity++ installed, music will work so long" + elog "as it remains installed, but OpenTTD will not depend on it." + fi + fi + if ! use openmedia ; then + elog + elog "OpenTTD was compiled without the 'openmedia' USE flag." + elog + elog "In order to play, you must at least install:" + elog "games-misc/opengfx, and games-misc/opensfx, or copy the " + elog "following 6 files from a version of Transport Tycoon Deluxe" + elog "(windows or DOS) to ~/.openttd/data/ or" + elog "${GAMES_DATADIR}/${PN}/data/." + elog + elog "From the WINDOWS version you need: " + elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" + elog "OR from the DOS version you need: " + elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" + elog + elog "File names are case sensitive, but should work either with" + elog "all upper or all lower case names" + elog + elog "In addition, in-game music will be unavailable: for music," + elog "install games-misc/openmsx, or use the in-game download" + elog "functionality to get a music set" + elog + fi + fi +} + +pkg_postrm() { + xdg_pkg_postrm +} diff --git a/games-simulation/openttd/openttd-9999.ebuild b/games-simulation/openttd/openttd-9999.ebuild new file mode 100644 index 000000000000..acf83d2f9551 --- /dev/null +++ b/games-simulation/openttd/openttd-9999.ebuild @@ -0,0 +1,183 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs xdg + +MY_PV="${PV/_rc/-RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe" +HOMEPAGE="https://www.openttd.org/" +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/OpenTTD/OpenTTD.git" +else + SRC_URI="https://proxy.binaries.openttd.org/openttd-releases/${MY_PV}/${MY_P}-source.tar.xz" + KEYWORDS="~amd64 ~ppc64 ~x86" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="aplaymidi debug dedicated iconv icu +lzma lzo +openmedia +png cpu_flags_x86_sse +timidity +truetype zlib" +RESTRICT="test" # needs a graphics set in order to test + +RDEPEND="!dedicated? ( + media-libs/libsdl2[sound,video] + icu? ( + dev-libs/icu-layoutex + dev-libs/icu-le-hb + >=dev-libs/icu-58.1:= + ) + truetype? ( + media-libs/fontconfig + media-libs/freetype:2 + sys-libs/zlib:= + ) + ) + lzma? ( app-arch/xz-utils ) + lzo? ( dev-libs/lzo:2 ) + iconv? ( virtual/libiconv ) + png? ( + media-libs/libpng:0 + sys-libs/zlib:= + ) + zlib? ( sys-libs/zlib:= )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig" +PDEPEND=" + !dedicated? ( + openmedia? ( + games-misc/openmsx + games-misc/opensfx + ) + aplaymidi? ( media-sound/alsa-utils ) + !aplaymidi? ( timidity? ( media-sound/timidity++ ) ) + ) + openmedia? ( >=games-misc/opengfx-0.4.7 )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.9.0-cflags.patch + "${FILESDIR}"/${PN}-1.9.0-dont_compress_manpages.patch +) + +src_configure() { + local myopts=( + --binary-dir="bin" + --disable-strip + --doc-dir="share/doc/${PF}" + --install-dir="${D}" + --menu-group="Game;Simulation;" + --prefix-dir="${EPREFIX}/usr" + $(use_with cpu_flags_x86_sse sse) + $(use_with iconv) + $(use_with lzma) + $(use_with lzo liblzo2) + $(use_with png) + $(usex debug '--enable-debug=3' '') + # there is an allegro interface available as well as sdl, but + # the configure for it looks broken so the sdl interface is + # always built instead. + --without-allegro + + --without-fluidsynth + ) + + if use dedicated ; then + myopts+=( --enable-dedicated ) + else + myopts+=( + $(usex aplaymidi '--with-midi=/usr/bin/aplaymidi' '') + $(use_with truetype freetype) + $(use_with icu) + --with-sdl + ) + fi + if use png || { use !dedicated && use truetype; } || use zlib ; then + myopts+=( --with-zlib ) + else + myopts+=( --without-zlib ) + fi + + # configure is a hand-written bash-script, so econf will not work. + # It's all built as C++, upstream uses CFLAGS internally. + CC=$(tc-getCC) CXX=$(tc-getCXX) CFLAGS="" ./configure ${myopts[@]} || die +} + +src_compile() { + emake VERBOSE=1 +} + +src_install() { + default + if use dedicated ; then + newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} + rm -rf "${ED}"/usr/share/{applications,icons,pixmaps} || die + fi + rm -f "${ED}"/usr/share/doc/${PF}/COPYING || die +} + +pkg_preinst() { + xdg_pkg_preinst +} + +pkg_postinst() { + xdg_pkg_postinst + + if ! use lzo ; then + elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not" + elog "required, disabling it does mean that loading old savegames" + elog "or scenarios from ancient versions (~0.2) will fail." + elog + fi + + if use dedicated ; then + ewarn "Warning: The init script will kill all running openttd" + ewarn "processes when triggered, including any running client sessions!" + else + if use aplaymidi ; then + elog "You have emerged with 'aplaymidi' for playing MIDI." + elog "This option is for those with a hardware midi device," + elog "or who have set up ALSA to handle midi ports." + elog "You must set the environment variable ALSA_OUTPUT_PORTS." + elog "Available ports can be listed by using 'aplaymidi -l'." + else + if ! use timidity ; then + elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'" + elog "in USE. Music may or may not work in-game. If you happen" + elog "to have timidity++ installed, music will work so long" + elog "as it remains installed, but OpenTTD will not depend on it." + fi + fi + if ! use openmedia ; then + elog + elog "OpenTTD was compiled without the 'openmedia' USE flag." + elog + elog "In order to play, you must at least install:" + elog "games-misc/opengfx, and games-misc/opensfx, or copy the " + elog "following 6 files from a version of Transport Tycoon Deluxe" + elog "(windows or DOS) to ~/.openttd/data/ or" + elog "${GAMES_DATADIR}/${PN}/data/." + elog + elog "From the WINDOWS version you need: " + elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf" + elog "OR from the DOS version you need: " + elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF" + elog + elog "File names are case sensitive, but should work either with" + elog "all upper or all lower case names" + elog + elog "In addition, in-game music will be unavailable: for music," + elog "install games-misc/openmsx, or use the in-game download" + elog "functionality to get a music set" + elog + fi + fi +} + +pkg_postrm() { + xdg_pkg_postrm +} diff --git a/games-simulation/pmars-sdl/Manifest b/games-simulation/pmars-sdl/Manifest new file mode 100644 index 000000000000..c603363a2234 --- /dev/null +++ b/games-simulation/pmars-sdl/Manifest @@ -0,0 +1 @@ +DIST pmars-0.9.2-5.tar.gz 200966 BLAKE2B 398323191290a9e3d57cb371c2070585cf78f845ca4cbadfa09f03045abc80f7b3fb71a58c18bbfdf503a3239d25bd0734b10e784d6570766e6b5c0ec606aadf SHA512 197d1967507199ed5eb075fb232a2f15d9bdf4bec03fc6b1d6df5d6259d6627eb40338c5787852ea10d96858029144348128b08e86c7079d96f10fd09dafc315 diff --git a/games-simulation/pmars-sdl/files/pmars-sdl-0.9.2e-format.patch b/games-simulation/pmars-sdl/files/pmars-sdl-0.9.2e-format.patch new file mode 100644 index 000000000000..4e02da8a82a8 --- /dev/null +++ b/games-simulation/pmars-sdl/files/pmars-sdl-0.9.2e-format.patch @@ -0,0 +1,65 @@ +--- a/src/asm.c.old 2015-10-28 13:23:53.465014342 +0100 ++++ b/src/asm.c 2015-10-28 13:23:10.502813377 +0100 +@@ -652,7 +652,7 @@ + macputs(str); + #else + if (!inCdb) +- fprintf(stderr, str); ++ fprintf(stderr, "%s", str); + #if defined DOSALLGRAPHX + else { + if (displayMode == TEXT) +@@ -833,7 +833,7 @@ + #ifdef __MAC__ + textout(notEnoughMemErr); + #else +- fprintf(stderr, notEnoughMemErr); ++ fprintf(stderr, "%s", notEnoughMemErr); + #endif + Exit(MEMERR); + break; +@@ -916,7 +916,7 @@ + } + + if (ierr >= ERRMAX) { +- sprintf(outs, tooManyMsgErr); ++ sprintf(outs, "%s", tooManyMsgErr); + #ifndef VMS + textout(outs); + #else +--- a/src/cdb.c.old 2015-10-28 13:24:04.669805966 +0100 ++++ b/src/cdb.c 2015-10-28 13:23:10.502813377 +0100 +@@ -2760,7 +2760,7 @@ + fprintf(outp, nameByAuthorScores, warrior[idxV[i]].name, warrior[idxV[i]].authorName, + scrV[idxV[i]]); + if (warriors > 2) { +- fprintf(outp, resultsAre); ++ fprintf(outp, "%s", resultsAre); + for (j = 0; j < warriors; ++j) { + fprintf(outp, " %d", warrior[idxV[i]].score[j]); + } +--- a/src/clparse.c.old 2015-10-28 13:24:10.648694768 +0100 ++++ b/src/clparse.c 2015-10-28 13:23:10.502813377 +0100 +@@ -289,7 +289,7 @@ + if (next_input(filep, inputs)) { + if (!strcmp(inputs, "-")) { + newFile = stdin; +- fprintf(stderr, readingStdin); ++ fprintf(stderr, "%s", readingStdin); + } else { + if ((newFile = fopen(inputs, "r")) == NULL) { + code = FILENAME; /* command file not found */ +@@ -430,11 +430,11 @@ + errout(outs); + break; + case MEMORY: +- sprintf(outs, outOfMemory); ++ sprintf(outs, "%s", outOfMemory); + errout(outs); + break; + case FILENAME: +- sprintf(outs, cannotOpenParameterFile); ++ sprintf(outs, "%s", cannotOpenParameterFile); + errout(outs); + break; + } diff --git a/games-simulation/pmars-sdl/metadata.xml b/games-simulation/pmars-sdl/metadata.xml new file mode 100644 index 000000000000..972e3be0ecc4 --- /dev/null +++ b/games-simulation/pmars-sdl/metadata.xml @@ -0,0 +1,9 @@ +<?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> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/pmars-sdl/pmars-sdl-0.9.2e-r1.ebuild b/games-simulation/pmars-sdl/pmars-sdl-0.9.2e-r1.ebuild new file mode 100644 index 000000000000..6e25ce586a28 --- /dev/null +++ b/games-simulation/pmars-sdl/pmars-sdl-0.9.2e-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit readme.gentoo-r1 toolchain-funcs + +MY_PN="${PN/-sdl/}" +MY_PV="${PV/e/-5}" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="Portable redcode simulator's sdl port for core war" +HOMEPAGE="https://corewar.co.uk/pihlaja/pmars-sdl/" +SRC_URI="https://corewar.co.uk/pihlaja/pmars-sdl/${MY_P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sdl X" + +RDEPEND=" + sdl? ( x11-libs/libX11 media-libs/libsdl[video] ) + X? ( x11-libs/libX11 ) + !sdl? ( !X? ( sys-libs/ncurses:0= ) ) +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}"/${P}-format.patch ) + +DOC_CONTENTS=" + There are some macros in /usr/share/pmars/macros + which you should make accessible to pmars by typing + export PMARSHOME=/usr/share/pmars/macros\n +" + +src_compile() { + CFLAGS="${CFLAGS} -DEXT94 -DPERMUTATE" + LFLAGS="-x" + + if use sdl ; then + CFLAGS="${CFLAGS} -DSDLGRAPHX `sdl-config --cflags`" + LIB=`sdl-config --libs` + elif use X ; then + CFLAGS="${CFLAGS} -DXWINGRAPHX" + LIB="-L/usr/X11R6/lib -lX11" + else + CFLAGS="${CFLAGS} -DCURSESGRAPHX" + LIB="-lcurses -ltinfo" + fi + + cd src + + SRC="asm.c + cdb.c + clparse.c + disasm.c + eval.c + global.c + pmars.c + sim.c + pos.c + str_eng.c + token.c" + + for x in ${SRC}; do + einfo "compiling ${x}" + $(tc-getCC) ${CFLAGS} ${x} -c || die + done + + echo + einfo "linking with LIB: ${LIB}" + $(tc-getCC) ${LDFLAGS} *.o ${LIB} -o ${MY_PN} || die +} + +src_install() { + dobin src/${MY_PN} + doman doc/${MY_PN}.6 + + dodoc AUTHORS CONTRIB ChangeLog README doc/redcode.ref + readme.gentoo_create_doc + + insinto "/usr/share/${MY_PN}/warriors" + doins warriors/* + + insinto "/usr/share/${MY_PN}/macros" + doins config/*.mac +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/games-simulation/searchandrescue/Manifest b/games-simulation/searchandrescue/Manifest new file mode 100644 index 000000000000..6c98a8edfca8 --- /dev/null +++ b/games-simulation/searchandrescue/Manifest @@ -0,0 +1,3 @@ +DIST SearchAndRescue-1.7.0.tar 6256640 BLAKE2B 9ccf63408499bd5f44a1eb6d24656ca5403eb732bd166ccd263d5fdd6f29e5168a563cda4e59eff74d39fa832876f0f04451042baf99d332d748828d0f03b7de SHA512 36295e7c20e685068ba6448b5f579eb53fedba663f76ac1d0db1da1765fbbfe6c1c4728e8a90680250ebbb3f4ad181fbe5bdd2f0fc703c774ec27dc829feacc9 +DIST SearchAndRescue-data-1.7.0.tar 52141474 BLAKE2B 2f43e1349d27c11e441d01d7421d9e5b9145d99c6685ddfb1e2a713269123f9cfc2c655359fa65fa09844dcbf3958bc9d4b2c51c4f9c03e401e2bc40f8953f40 SHA512 a323c50a2c64705ebd43c27e836f088094085bc4f5d219a9b0341cc3b16aafe96e364eb36162a7acb6a59aefe6304767f497e2d7bb0dc29d881f51e6535a6295 +DIST SearchAndRescue-data-guadarrama-1.7.0.tar 41738769 BLAKE2B 8c0d02ca8bce7d70eb1016d4676eb35da5c20d1e2c5e65602d8d7414e2ee8bec9bf13399dd3576a3379b62ebc3d7fd7ba85ea33cc1ff2c179278a59bf623daf3 SHA512 1c9615858fc778832566991ee4802c0929c81a9b0b720e5db90b4bb0baff718fa0ba589fe33444ee7eb040622081d60c10036af2b199bf2bd0a7f5f45ba71c72 diff --git a/games-simulation/searchandrescue/metadata.xml b/games-simulation/searchandrescue/metadata.xml new file mode 100644 index 000000000000..ee0bf96efa50 --- /dev/null +++ b/games-simulation/searchandrescue/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">searchandrescue</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/searchandrescue/searchandrescue-1.7.0.ebuild b/games-simulation/searchandrescue/searchandrescue-1.7.0.ebuild new file mode 100644 index 000000000000..a6949977970e --- /dev/null +++ b/games-simulation/searchandrescue/searchandrescue-1.7.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit desktop flag-o-matic prefix toolchain-funcs xdg + +MY_PN=SearchAndRescue +DESCRIPTION="Helicopter based air rescue flight simulator" +HOMEPAGE="http://searchandrescue.sourceforge.net/" +SRC_URI="mirror://sourceforge/searchandrescue/${MY_PN}-${PV}.tar.gz -> ${MY_PN}-${PV}.tar + mirror://sourceforge/searchandrescue/${MY_PN}-data-${PV}.tar.gz -> ${MY_PN}-data-${PV}.tar + mirror://sourceforge/searchandrescue/${MY_PN}-data-guadarrama-${PV}.tar.gz -> ${MY_PN}-data-guadarrama-${PV}.tar" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + media-libs/libsdl + media-libs/sdl-mixer + virtual/glu + virtual/opengl + x11-libs/libICE + x11-libs/libSM + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXxf86vm +" + +DEPEND="${RDEPEND} + x11-base/xorg-proto" + +S=${WORKDIR}/${PN}_${PV} + +src_unpack() { + unpack ${MY_PN}-${PV}.tar + mkdir data || die + cd data || die + unpack ${MY_PN}-data-${PV}.tar + unpack ${MY_PN}-data-guadarrama-${PV}.tar + bunzip2 "${S}"/sar/man/${MY_PN}.6.bz2 || die +} + +src_prepare() { + xdg_src_prepare + + chmod +x configure || die + rm pconf/pconf || die + sed -i "/PlatformSearchPathLib/s:/lib/:/$(get_libdir)/:g" sar/platforms.ini || die + hprefixify sar/platforms.ini +} + +src_configure() { + export CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" \ + CPP="$(tc-getCXX) ${LDFLAGS}" + + append-flags -DNEW_GRAPHICS -DHAVE_SDL_MIXER + + # Needed for the configure script + emake -C pconf pconf CC="${CC}" + + # NOTE: not an autoconf script + ./configure Linux --prefix="${EPREFIX}/usr" || die + sed -i -r 's/^(\s+)@/\1/' sar/Makefile || die +} + +src_compile() { + emake -C sar LIB_DIRS= +} + +src_install() { + dobin sar/${MY_PN} + doman sar/man/${MY_PN}.6 + dodoc AUTHORS HACKING README + doicon sar/icons/${MY_PN}.xpm + insinto /usr/share/games/${PN} + doins -r ../data/* + make_desktop_entry ${MY_PN} "Search and Rescue" ${MY_PN} +} diff --git a/games-simulation/senken/Manifest b/games-simulation/senken/Manifest new file mode 100644 index 000000000000..acab9c6f79f7 --- /dev/null +++ b/games-simulation/senken/Manifest @@ -0,0 +1 @@ +DIST senken-0.3.0.tar.gz 1391010 BLAKE2B ac55f61c6a1c86ca3a891190f562e91aaed56f19f08dffe2a17016dd8ef5e35a3e1c6188b402506d063c4ee812a43f63bfd45b58e102c4a1199a733ab336a8dc SHA512 df0c15cabf667fb7b56db40baf03fcae6695aa9ec0e42a7db682ff20877a5b89ee67e7799e762b4a78cf0f3fdee7f001419091f0683df74ba1bbe6b9501f0272 diff --git a/games-simulation/senken/files/senken-0.3.0-as-needed.patch b/games-simulation/senken/files/senken-0.3.0-as-needed.patch new file mode 100644 index 000000000000..428cbc9ee4c6 --- /dev/null +++ b/games-simulation/senken/files/senken-0.3.0-as-needed.patch @@ -0,0 +1,24 @@ +diff -ru senken-0.3.0.orig/server/Makefile.in senken-0.3.0/server/Makefile.in +--- senken-0.3.0.orig/server/Makefile.in 2003-11-20 02:30:15.000000000 -0500 ++++ senken-0.3.0/server/Makefile.in 2014-10-30 10:58:51.202157036 -0400 +@@ -10,7 +10,7 @@ + + DEFS = @DEFS@ + CPPFLAGS = -I$(srcdir)/../lib -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ +-LIBS = ../lib/libsenken.a @LIBS@ @LIBINTL@ ++LIBS = ../lib/libsenken.a @LIBS@ @LIBINTL@ -lm + + prefix = @prefix@ + exec_prefix = @exec_prefix@ +diff -ru senken-0.3.0.orig/src/Makefile.in senken-0.3.0/src/Makefile.in +--- senken-0.3.0.orig/src/Makefile.in 2003-11-20 02:30:16.000000000 -0500 ++++ senken-0.3.0/src/Makefile.in 2014-10-30 10:59:05.154704393 -0400 +@@ -8,7 +8,7 @@ + + DEFS = @DEFS@ + CPPFLAGS = -I$(srcdir)/../lib -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @GTK_CFLAGS@ +-LIBS = ../lib/libsenken.a @LIBS@ @GTK_LIBS@ ++LIBS = ../lib/libsenken.a @LIBS@ @GTK_LIBS@ -lm + + prefix = @prefix@ + exec_prefix = @exec_prefix@ diff --git a/games-simulation/senken/files/senken-0.3.0-warnings.patch b/games-simulation/senken/files/senken-0.3.0-warnings.patch new file mode 100644 index 000000000000..b15565ad0a90 --- /dev/null +++ b/games-simulation/senken/files/senken-0.3.0-warnings.patch @@ -0,0 +1,31 @@ +diff -ru senken-0.3.0.orig/server/protocol.c senken-0.3.0/server/protocol.c +--- senken-0.3.0.orig/server/protocol.c 2003-11-20 02:30:15.000000000 -0500 ++++ senken-0.3.0/server/protocol.c 2014-10-30 11:04:39.831848871 -0400 +@@ -294,7 +294,7 @@ + /* + * If transaction active just save this for later + */ +- if (connection_txn_active) { ++ if (connection_txn_active(conn)) { + set_op_t *op = calloc(1, sizeof(set_op_t)); + int r; + +diff -ru senken-0.3.0.orig/src/gtkhelp_reports.c senken-0.3.0/src/gtkhelp_reports.c +--- senken-0.3.0.orig/src/gtkhelp_reports.c 2003-11-20 02:30:16.000000000 -0500 ++++ senken-0.3.0/src/gtkhelp_reports.c 2014-10-30 11:06:43.795828908 -0400 +@@ -1,3 +1,4 @@ ++#include <string.h> + #include <gtk/gtk.h> + #include <gdk/gdk.h> + +diff -ru senken-0.3.0.orig/src/main.c senken-0.3.0/src/main.c +--- senken-0.3.0.orig/src/main.c 2003-11-20 02:30:16.000000000 -0500 ++++ senken-0.3.0/src/main.c 2014-10-30 11:06:28.147336339 -0400 +@@ -25,6 +25,7 @@ + # include <config.h> + #endif + ++#include <string.h> + #include <unistd.h> + #include <signal.h> + #include <gtk/gtk.h> diff --git a/games-simulation/senken/metadata.xml b/games-simulation/senken/metadata.xml new file mode 100644 index 000000000000..972e3be0ecc4 --- /dev/null +++ b/games-simulation/senken/metadata.xml @@ -0,0 +1,9 @@ +<?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> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/senken/senken-0.3.0-r1.ebuild b/games-simulation/senken/senken-0.3.0-r1.ebuild new file mode 100644 index 000000000000..9b4e0cb1e242 --- /dev/null +++ b/games-simulation/senken/senken-0.3.0-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +DESCRIPTION="city simulation game" +HOMEPAGE="https://savannah.nongnu.org/projects/senken/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +RDEPEND=" + >=media-libs/libsdl-1.2.4 + media-libs/sdl-image + x11-libs/gtk+:2 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}"/${P}-as-needed.patch + "${FILESDIR}"/${P}-warnings.patch +) + +src_prepare() { + default + + sed -i \ + -e "s:/usr/local/share:/usr/share:" \ + lib/utils.h || die +} +src_configure() { + econf $(use_enable nls) +} + +src_install() { + default + + #dodir "${GAMES_DATADIR}" + #mv "${D}/${GAMES_PREFIX}/share/senken" "${D}/${GAMES_DATADIR}/" || die + #rm -rf "${D}/${GAMES_PREFIX}"/{include,lib,man,share} || die + + insinto /usr/share/senken/img + doins img/*.png + + find "${D}/usr/share/" -type f -exec chmod a-x \{\} + + find "${D}/usr/share/" -name "Makefile.*" -exec rm -f \{\} + +} diff --git a/games-simulation/simutrans/Manifest b/games-simulation/simutrans/Manifest new file mode 100644 index 000000000000..f604b92dcbb2 --- /dev/null +++ b/games-simulation/simutrans/Manifest @@ -0,0 +1,3 @@ +DIST language_pack-Base+texts.zip 1097263 BLAKE2B 08678f36a2425b84bf5f440a546af7ca6507ee17bdcfd3096335c20ce60c23a5375eb133f597806bed28db2d9ed067669e83a4df47443be0cb48bf151ba91ef2 SHA512 015caafaeace03bd5475e66c93bb433d9b07b600c3fcf125a4bda9b2856ba41dc43b923e032920df4a060087ead7180df59092f23ab6dcf12579b580827b1248 +DIST simupak64-120-2.zip 4453079 BLAKE2B 910f7937d5eabe8c97f9b9fb6b1d0a63ffe5c7a897a83d5649581f629c1e6d000442399f3e181c0a6e2b08a6f9948354df1848b84df6c2d37bd65d4c303d1626 SHA512 c7f819142b66c093c8631fcfe8e70c3be667680d745a66eab65e06979f849592d2c09ed18eb33ca2e359b2830f57874ae23d989ab5aa901eece69de83180f357 +DIST simutrans-src-120-2-2.zip 3900947 BLAKE2B 69e9f78883d1b611bc76bbff1dc46ab1a645580ec0114f342aeb5e243c643c0fa4d3684e8102a0196f95320b4f93a0a50a93bb61802e81236f286a2989ac646f SHA512 db9797be132bb1936d8c3192e536523d1249d20a513f3758037097ef46c2bab40d4be8adb68cb21eda2b4820369e89bd0a6e2abc4fe2bbcefe40bb414a3d1ab2 diff --git a/games-simulation/simutrans/files/simutrans-0.120.2.2-Makefile.patch b/games-simulation/simutrans/files/simutrans-0.120.2.2-Makefile.patch new file mode 100644 index 000000000000..f9fb48ab682f --- /dev/null +++ b/games-simulation/simutrans/files/simutrans-0.120.2.2-Makefile.patch @@ -0,0 +1,89 @@ +--- a/Makefile 2017-03-29 12:04:15.000000000 +0300 ++++ b/Makefile 2017-06-08 01:41:32.605031258 +0300 +@@ -87,8 +87,6 @@ + CFLAGS += -minline-all-stringops
+ endif
+ endif
+-else
+- CFLAGS += -O
+ endif
+
+ ifdef DEBUG
+@@ -110,6 +108,7 @@ + endif
+ else
+ CFLAGS += -DNDEBUG
++ CXXFLAGS += -DNDEBUG
+ endif
+
+ ifdef MSG_LEVEL
+@@ -127,6 +126,7 @@ + ifneq ($(MULTI_THREAD),)
+ ifeq ($(shell expr $(MULTI_THREAD) \>= 1), 1)
+ CFLAGS += -DMULTI_THREAD
++ CXXFLAGS += -DMULTI_THREAD
+ ifneq ($(OSTYPE),haiku)
+ LDFLAGS += -lpthread
+ endif
+@@ -142,11 +142,13 @@ + endif
+ ifneq ($(REV),)
+ CFLAGS += -DREVISION="$(REV)"
++ CXXFLAGS += -DREVISION="$(REV)"
+ endif
+ endif
+ endif
+
+ CFLAGS += -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align $(FLAGS)
++CXXFLAGS += -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align $(FLAGS)
+ CCFLAGS += -ansi -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+
+
+@@ -514,6 +516,7 @@ + endif
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS)
+ endif
+
+@@ -553,6 +556,7 @@ + endif
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS)
+ endif
+
+@@ -568,6 +572,7 @@ + SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS) -lSDL_mixer
+ endif
+
+@@ -594,6 +599,7 @@ + SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
+ endif
+ CFLAGS += $(SDL_CFLAGS)
++ CXXFLAGS += $(SDL_CFLAGS)
+ LIBS += $(SDL_LDFLAGS) -lglew32
+ ifeq ($(OSTYPE),mingw)
+ LIBS += -lopengl32
+@@ -609,6 +615,7 @@ + endif
+
+ CFLAGS += -DCOLOUR_DEPTH=$(COLOUR_DEPTH)
++CXXFLAGS += -DCOLOUR_DEPTH=$(COLOUR_DEPTH)
+
+ ifneq ($(findstring $(OSTYPE), cygwin mingw),)
+ SOURCES += simres.rc
+@@ -616,7 +623,6 @@ + endif
+
+ CCFLAGS += $(CFLAGS)
+-CXXFLAGS += $(CFLAGS)
+
+ BUILDDIR ?= build/$(CFG)
+ PROGDIR ?= $(BUILDDIR)
diff --git a/games-simulation/simutrans/metadata.xml b/games-simulation/simutrans/metadata.xml new file mode 100644 index 000000000000..c73be9bad0bc --- /dev/null +++ b/games-simulation/simutrans/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">simutrans</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/simutrans/simutrans-0.120.2.2.ebuild b/games-simulation/simutrans/simutrans-0.120.2.2.ebuild new file mode 100644 index 000000000000..f175a36b9e03 --- /dev/null +++ b/games-simulation/simutrans/simutrans-0.120.2.2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic eutils + +MY_PV=${PV/0./} +MY_PV=${MY_PV//./-} +SIMUPAK="simupak64-${MY_PV%-[0-9]*}.zip" + +DESCRIPTION="A free Transport Tycoon clone" +HOMEPAGE="http://www.simutrans.com/" +SRC_URI="mirror://sourceforge/simutrans/simutrans-src-${MY_PV}.zip + http://simutrans-germany.com/translator/data/tab/language_pack-Base+texts.zip + mirror://sourceforge/simutrans/${SIMUPAK}" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +RDEPEND=" + sys-libs/zlib + app-arch/bzip2 + media-libs/sdl-mixer + media-libs/libpng:0 + media-libs/libsdl[sound,video]" + +DEPEND=" + ${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +PATCHES=( + "${FILESDIR}"/${P}-Makefile.patch +) + +src_unpack() { + unpack simutrans-src-${MY_PV}.zip + unpack "${SIMUPAK}" + + # Bundled text files are incomplete, bug #580948 + cd "${S}/simutrans/text" || die + unpack language_pack-Base+texts.zip +} + +src_prepare() { + default + + strip-flags # bug #293927 + printf "BACKEND=mixer_sdl\nCOLOUR_DEPTH=16\nOSTYPE=linux\nVERBOSE=1" \ + > config.default || die + + # make it look in the install location for the data + sed -i \ + -e "s:argv\[0\]:\"/usr/share/${PN}/\":" \ + simmain.cc || die + + rm simutrans/*.txt || die +} + +src_install() { + newbin build/default/sim ${PN} + insinto /usr/share/${PN} + doins -r simutrans/* + dodoc documentation/* + doicon simutrans.ico + make_desktop_entry simutrans Simutrans /usr/share/pixmaps/simutrans.ico +} diff --git a/games-simulation/singularity/Manifest b/games-simulation/singularity/Manifest new file mode 100644 index 000000000000..473099d139a6 --- /dev/null +++ b/games-simulation/singularity/Manifest @@ -0,0 +1,2 @@ +DIST endgame-singularity-music-007.zip 51774799 BLAKE2B 78595b16e422d2312be860686aca9401f6f1eed35fe40dbbc3a3999b1feb5e32aa6d51a66d94c9241aca2b6606bb7135491298b94c8033a1437c2cd7b23f9120 SHA512 ab46e77c833085f0c5b1b46fef72ab807e79ca422ad043ef67a4bf4384cb0177319f21b4bd01496e6c3fc6fe9a2f36ec256e19f0e829ad7bf9f0c5bd38bf0fe5 +DIST singularity-1.0a1.tar.gz 1927083 BLAKE2B aeed099dd33c135f5b2e21f5e907646f32aaa0879a1b2e1f09c19045499ae52b004a8f52fee72bfe0977805899e4c7cdff6abf36e9fd3604f73cba7e395c265e SHA512 8ce624a50819e0abc04fd81a1d7658eab64ea8325de0a5790ec2a92e5fa6b62cfef8fe705fe8b209194c05927e3cf5adfc6f48934e0a70edf8b251c24084fc25 diff --git a/games-simulation/singularity/metadata.xml b/games-simulation/singularity/metadata.xml new file mode 100644 index 000000000000..6704b10db056 --- /dev/null +++ b/games-simulation/singularity/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="google-code">endgame-singularity</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/singularity/singularity-1.0_alpha1-r1.ebuild b/games-simulation/singularity/singularity-1.0_alpha1-r1.ebuild new file mode 100644 index 000000000000..644b755a6c29 --- /dev/null +++ b/games-simulation/singularity/singularity-1.0_alpha1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit desktop eutils python-single-r1 + +MUSIC="endgame-${PN}-music-007" +DESCRIPTION="Simulation of a true AI. Go from computer to computer, chased by the whole world" +HOMEPAGE="http://www.emhsoft.com/singularity/ https://github.com/singularity/singularity" +SRC_URI="https://github.com/singularity/singularity/releases/download/${P/_alpha/a}/${P/_alpha/a}.tar.gz + http://emhsoft.com/singularity/${MUSIC}.zip" + +LICENSE="GPL-2 CC-BY-SA-2.5" +SLOT="0" +KEYWORDS="~amd64 ~x86" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_MULTI_USEDEP}] + dev-python/pygame[${PYTHON_MULTI_USEDEP}] + dev-python/polib[${PYTHON_MULTI_USEDEP}] + ') +" +DEPEND="${RDEPEND}" +BDEPEND="app-arch/unzip" + +S="${WORKDIR}/${P/_alpha/a}" + +src_install() { + insinto /usr/share/${PN} + doins -r "${PN}" "${PN}.py" + + python_optimize "${ED}/usr/share/${PN}" + + insinto /usr/share/${PN}/${PN}/music + doins "${WORKDIR}"/${MUSIC}/* + + make_wrapper ${PN} "${EPYTHON} ${PN}.py" /usr/share/${PN} + dodoc README.txt TODO Changelog AUTHORS + + domenu "${PN}.desktop" + newicon "${PN}"/data/themes/default/images/icon.png "${PN}.png" +} diff --git a/games-simulation/slime-rancher/Manifest b/games-simulation/slime-rancher/Manifest new file mode 100644 index 000000000000..07b70c9122a5 --- /dev/null +++ b/games-simulation/slime-rancher/Manifest @@ -0,0 +1 @@ +DIST slime_rancher_1_4_1c_34605.sh 637631767 BLAKE2B e3742178acfb9b80429117a37e8c7ec226345fb20b762ef80ca7ff7d58bcde039a199db5f352e78ce6935b6b261924780f54c84dd706a8031b427c9bd52de2a7 SHA512 c9124a7685c12dab942cde3e4b7e4140156c9d1551043d450c0c2f2eb02d1db61b99f22803b1058634abff86e783c889badf5834f0c2f7048a97dc168c962908 diff --git a/games-simulation/slime-rancher/metadata.xml b/games-simulation/slime-rancher/metadata.xml new file mode 100644 index 000000000000..d322aa139b4a --- /dev/null +++ b/games-simulation/slime-rancher/metadata.xml @@ -0,0 +1,9 @@ +<?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> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild b/games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild new file mode 100644 index 000000000000..f69d7ad44247 --- /dev/null +++ b/games-simulation/slime-rancher/slime-rancher-1.4.1c_p34605.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils desktop unpacker xdg + +MY_PN="SlimeRancher" +MY_P="${P//[-.]/_}" +MY_P="${MY_P//_p/_}" + +DESCRIPTION="Cute game where you cultivate slimes on a distant planet" +HOMEPAGE="http://www.slimerancher.com/" +SRC_URI="${MY_P}.sh" +LICENSE="GOG-EULA" +SLOT="0" +KEYWORDS="-* ~amd64" +RESTRICT="bindist fetch splitdebug" + +RDEPEND=" + sys-libs/glibc + virtual/opengl +" + +BDEPEND="app-arch/unzip" + +S="${WORKDIR}/data/noarch/game" + +DIR="/opt/${PN}" +QA_PREBUILT="${DIR}/*" + +pkg_nofetch() { + einfo "Please buy and download ${SRC_URI} from:" + einfo " https://www.gog.com/game/${PN//-/_}" + einfo "and move it to your distfiles directory." +} + +src_unpack() { + unpack_zip ${A} +} + +src_prepare() { + default + + # Some Unity games have a GUI launcher but this one doesn't use it. + rm ${MY_PN}_Data/Plugins/x86_64/ScreenSelector.so || die +} + +src_install() { + exeinto "${DIR}" + newexe ${MY_PN}.x86_64 ${MY_PN} + make_wrapper ${PN} "${DIR}"/${MY_PN} + + insinto "${DIR}" + doins -r ${MY_PN}_Data/ + + newicon -s 128 ${MY_PN}_Data/Resources/UnityPlayer.png ${PN}.png + make_desktop_entry ${PN} "Slime Rancher" +} diff --git a/games-simulation/train-valley/Manifest b/games-simulation/train-valley/Manifest new file mode 100644 index 000000000000..2e3e1fcf138f --- /dev/null +++ b/games-simulation/train-valley/Manifest @@ -0,0 +1 @@ +DIST train_valley_1_3_31403.sh 196066169 BLAKE2B fe9e6ae5b0ef76794823dc86ed100fdac355d3929d85a9a12096f79cf9e6f946e2c85b5b737ebcab813ceef29094734f74546fff06124fe4bf07ef224d5842ff SHA512 16fd627f8ca6399579b17d7a4ce29caba554fbfb0dc72b40827f1c3a061d8c238a7faeb1b5171917362d381642e8cb066cdad5556fb71f4d27225bf227d735cd diff --git a/games-simulation/train-valley/metadata.xml b/games-simulation/train-valley/metadata.xml new file mode 100644 index 000000000000..5df43718eb2a --- /dev/null +++ b/games-simulation/train-valley/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> + <use> + <flag name="gui">Install the GUI for configuring screen resolution and input</flag> + </use> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/games-simulation/train-valley/train-valley-1.3.31403.ebuild b/games-simulation/train-valley/train-valley-1.3.31403.ebuild new file mode 100644 index 000000000000..eeda5d017b72 --- /dev/null +++ b/games-simulation/train-valley/train-valley-1.3.31403.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils desktop unpacker xdg-utils + +DESCRIPTION="Build railroads in order to connect cities, tunnels, and bridges" +HOMEPAGE="http://train-valley.com/tv1.html" +SRC_URI="${P//[-.]/_}.sh" +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="+gui" +RESTRICT="bindist fetch splitdebug" + +RDEPEND=" + virtual/opengl + x11-libs/libX11 + x11-libs/libXrandr + gui? ( + dev-libs/glib:2 + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:2 + ) +" + +S="${WORKDIR}/data/noarch/game" + +DIR="/opt/${PN}" +QA_PREBUILT="${DIR}/*" + +pkg_nofetch() { + einfo "Please buy and download ${SRC_URI} from:" + einfo " https://www.gog.com/game/${PN//-/_}" + einfo "and move it to your distfiles directory." +} + +src_unpack() { + unpack_zip ${A} +} + +src_install() { + exeinto "${DIR}" + newexe ${PN}.$(usex amd64 x86_64 x86) ${PN} + make_wrapper ${PN} "${DIR}"/${PN} + + insinto "${DIR}" + doins -r ${PN}_Data/ + rm -r "${ED}/${DIR}"/${PN}_Data/*/$(usex amd64 x86 x86_64) || die + + if ! use gui; then + rm "${ED}/${DIR}"/${PN}_Data/Plugins/*/ScreenSelector.so || die + fi + + newicon -s 128 ${PN}_Data/Resources/UnityPlayer.png ${PN}.png + make_desktop_entry ${PN} "Train Valley" +} + +pkg_postinst() { xdg_icon_cache_update; } +pkg_postrm() { xdg_icon_cache_update; } |
