diff options
Diffstat (limited to 'games-strategy')
275 files changed, 10707 insertions, 0 deletions
diff --git a/games-strategy/0ad-data/0ad-data-0.0.21_alpha.ebuild b/games-strategy/0ad-data/0ad-data-0.0.21_alpha.ebuild new file mode 100644 index 000000000000..b128bfc0e70a --- /dev/null +++ b/games-strategy/0ad-data/0ad-data-0.0.21_alpha.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_P=0ad-${PV/_/-} +DESCRIPTION="Data files for 0ad" +HOMEPAGE="https://play0ad.com/" +SRC_URI="mirror://sourceforge/zero-ad/${MY_P}-unix-data.tar.xz" + +LICENSE="GPL-2 CC-BY-SA-3.0 LPPL-1.3c BitstreamVera" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + default + rm binaries/data/tools/fontbuilder/fonts/*.txt +} + +src_install() { + insinto /usr/share/0ad + doins -r binaries/data/* +} diff --git a/games-strategy/0ad-data/0ad-data-0.0.22_alpha.ebuild b/games-strategy/0ad-data/0ad-data-0.0.22_alpha.ebuild new file mode 100644 index 000000000000..2413f34ee5d1 --- /dev/null +++ b/games-strategy/0ad-data/0ad-data-0.0.22_alpha.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_P=0ad-${PV/_/-} +DESCRIPTION="Data files for 0ad" +HOMEPAGE="https://play0ad.com/" +SRC_URI="http://releases.wildfiregames.com/${MY_P}-unix-data.tar.xz" + +LICENSE="GPL-2 CC-BY-SA-3.0 LPPL-1.3c BitstreamVera" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + rm binaries/data/tools/fontbuilder/fonts/*.txt +} + +src_install() { + insinto /usr/share/0ad + doins -r binaries/data/* +} diff --git a/games-strategy/0ad-data/Manifest b/games-strategy/0ad-data/Manifest new file mode 100644 index 000000000000..7c36880daf9e --- /dev/null +++ b/games-strategy/0ad-data/Manifest @@ -0,0 +1,7 @@ +DIST 0ad-0.0.21-alpha-unix-data.tar.xz 587025496 SHA256 f3ab3c58ffd3bd647a9baba93ea009d5945d2b5bc7db7053a547e07db36faa97 SHA512 526bce35da0d86aa344f634fc661189211478b9a9b7759bb6d0cf6b2096cfcf3449d53ded38c23583877fed47aa438da0e379088a37819ae890526f5996afd36 WHIRLPOOL ebce2dd81bc3672b42847f63e5fee78574ed4bfd720b96a0c46393bb55f3ec112481e0dd5108dcce3e30683496d0467ff377d42eb89486560adb32bdb05c6f3e +DIST 0ad-0.0.22-alpha-unix-data.tar.xz 632555792 SHA256 4c32cd0a346815cd260357d55d5a61430f670c78a2fa7a321957c0e4559a766e SHA512 ff9928a59b461d4a6082227dce11b7a497e9e518b6cd3a58723963bed9241f7afc2b228e7728a3d03bd2a8c3708f756639b87abd6520d09dab01309c8444ff1d WHIRLPOOL 4368da3799b1000b034a023d13b8c4d360c1a36edc891601963bbfe10433d85564c213711c2397b515900dcca0115c7231f151ec06636efb4f04c8c0c71e92b1 +EBUILD 0ad-data-0.0.21_alpha.ebuild 525 SHA256 d089dc29a335d63af287dae83cd5328973918b14265a39db7ef8653646d96028 SHA512 3e8251d70102bd11b4636be0a89e12bfc5fee4fbd77f180457687c6be5e547da67c41efa396bf32f8cb178a0cee71b47c3a95b2c6155b5ec3ea100e901e08875 WHIRLPOOL 67fe341cac51b1fdd844bd47de8a62d6e1c021f92e134b8d187bf19a493c6667774ee8876b1c1c154b2e065bbee8152ea30bd1aedc399aa0b256aeda923436f7 +EBUILD 0ad-data-0.0.22_alpha.ebuild 532 SHA256 6c15c55ad5a75f771316d886cfe034a4bfb77bfdca92cf5817d76394e206ab2b SHA512 6ab42ff53c6c0f97bc137c7f453a5a341839c02aef5bcd5ae30b31110e318ee3b8cd6731a2686ecb9e4ba08f4eb9083b3166bea4f17691e1ee55a50f0fa7e040 WHIRLPOOL f9e45fc436929af248ab4f280d0cb2cd8d196e7b32423a111ea09a707f478ffd37367d98f14cdc7966e63c36876c180edccf1d20a18bf8b302eb33dfdab96d8d +MISC ChangeLog 4001 SHA256 18bfb9e5d70a211f329fbb3d35cdc1c1c0d91ebc535d1e868349c78b9b3c59e7 SHA512 4ac9ab0772df3f569a4a06a5b2e93cfdc94a97d1c71fb0616265c67e1dda1284d667aa0b032793c5383557212b078850043199f082c5708747854f3e6a669de2 WHIRLPOOL 1794a78411f384e9903a0276222823f77a6aa421e605c2e815f340c6b34e96a1399e69a03597b64e943251ff60f6171e71958446d29eaa60df9a75013290b9ba +MISC ChangeLog-2015 537 SHA256 ac893c6a97e8e69b54f080980b8ef760c4e80653722c9354068114f8d8cc33c8 SHA512 4b1e3c15774ffabc80a388a8a969e3bbec7a895d3ef5fd291943cf660014f2fe8dad208cb7b44cfd92fe0548e3952f875eb1d99b2c6ab2e93dae14c2839ecafa WHIRLPOOL 2a4c1b342fb001518bdb9ab32d1570a821554caeb37ac8385b992322d6521383a7b975fe4c08e18ce172698ce46d3bfe429ac93dc13b11bd63d4dfdda889be01 +MISC metadata.xml 330 SHA256 b82875e6a27cdfb4aac6b0d8c06438cef6798eb5eb893fb149c4580c72ef0412 SHA512 55b1c876bea472fc72321364ac95e97c950c675c68e9a32862eb6135b96f7bf7da5c0b787ddd28685b322a33c60dd51dafe1d382eb46e066a5cf8bd15fb5347f WHIRLPOOL 43b0393624ce082ebcbe84dc2b543f936baac5e1fa8602e613e96c6b9fa90192454b4556e407bfc46e86ace28c79f95e73ae28f7ba2df8dfab05c4ac6674e9a9 diff --git a/games-strategy/0ad-data/metadata.xml b/games-strategy/0ad-data/metadata.xml new file mode 100644 index 000000000000..263ee40e5d4f --- /dev/null +++ b/games-strategy/0ad-data/metadata.xml @@ -0,0 +1,11 @@ +<?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">zero-ad</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/0ad/0ad-0.0.21_alpha.ebuild b/games-strategy/0ad/0ad-0.0.21_alpha.ebuild new file mode 100644 index 000000000000..89de55c9db87 --- /dev/null +++ b/games-strategy/0ad/0ad-0.0.21_alpha.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +WX_GTK_VER="3.0" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="threads,ssl" + +inherit eutils wxwidgets toolchain-funcs gnome2-utils python-any-r1 + +MY_P=0ad-${PV/_/-} +DESCRIPTION="A free, real-time strategy game" +HOMEPAGE="https://play0ad.com/" +SRC_URI="mirror://sourceforge/zero-ad/${MY_P}-unix-build.tar.xz" + +LICENSE="GPL-2 LGPL-2.1 MIT CC-BY-SA-3.0 ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="editor +lobby nvtt pch sound test" +RESTRICT="test" + +RDEPEND=" + dev-libs/boost:= + dev-libs/icu:= + dev-libs/libxml2 + dev-libs/nspr + ~games-strategy/0ad-data-${PV} + media-libs/libpng:0 + media-libs/libsdl2[X,opengl,video] + net-libs/enet:1.3 + net-libs/miniupnpc:= + net-misc/curl + sys-libs/zlib + virtual/jpeg:0 + virtual/opengl + x11-libs/libX11 + x11-libs/libXcursor + editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] ) + lobby? ( net-libs/gloox ) + nvtt? ( media-gfx/nvidia-texture-tools ) + sound? ( media-libs/libvorbis + media-libs/openal )" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + test? ( dev-lang/perl )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + python-any-r1_pkg_setup +} + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch +) + +src_configure() { + local myconf=( + --with-system-nvtt + --with-system-miniupnpc + --minimal-flags + $(usex nvtt "" "--without-nvtt") + $(usex pch "" "--without-pch") + $(usex test "" "--without-tests") + $(usex sound "" "--without-audio") + $(usex editor "--atlas" "") + $(usex lobby "" "--without-lobby") + --collada + --bindir="/usr/bin" + --libdir="/usr/$(get_libdir)"/${PN} + --datadir="/usr/share/${PN}" + ) + + # stock premake4 does not work, use the shipped one + emake -C "${S}"/build/premake/premake4/build/gmake.unix + + # regenerate scripts.c so our patch applies + cd "${S}"/build/premake/premake4 || die + "${S}"/build/premake/premake4/bin/release/premake4 embed || die + + # rebuild premake again... this is the most stupid build system + emake -C "${S}"/build/premake/premake4/build/gmake.unix clean + emake -C "${S}"/build/premake/premake4/build/gmake.unix + + # run premake to create build scripts + cd "${S}"/build/premake || die + "${S}"/build/premake/premake4/bin/release/premake4 \ + --file="premake4.lua" \ + --outpath="../workspaces/gcc/" \ + --platform=$(usex amd64 "x64" "x32") \ + --os=linux \ + "${myconf[@]}" \ + gmake || die "Premake failed" +} + +src_compile() { + tc-export AR + + # build bundled and patched spidermonkey + cd libraries/source/spidermonkey || die + JOBS="${MAKEOPTS}" ./build.sh || die + cd "${S}" || die + + # build 3rd party fcollada + emake -C libraries/source/fcollada/src + + # build 0ad + emake -C build/workspaces/gcc verbose=1 +} + +src_test() { + cd binaries/system || die + ./test -libdir "${S}/binaries/system" || die "test phase failed" +} + +src_install() { + newbin binaries/system/pyrogenesis 0ad + use editor && newbin binaries/system/ActorEditor 0ad-ActorEditor + + insinto /usr/share/${PN} + doins -r binaries/data/l10n + + exeinto /usr/$(get_libdir)/${PN} + doexe binaries/system/libCollada.so + doexe libraries/source/spidermonkey/lib/*.so + use editor && doexe binaries/system/libAtlasUI.so + + dodoc binaries/system/readme.txt + doicon -s 128 build/resources/${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-strategy/0ad/0ad-0.0.22_alpha.ebuild b/games-strategy/0ad/0ad-0.0.22_alpha.ebuild new file mode 100644 index 000000000000..73de7d6ddbe6 --- /dev/null +++ b/games-strategy/0ad/0ad-0.0.22_alpha.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +WX_GTK_VER="3.0" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="threads,ssl" + +inherit eutils wxwidgets toolchain-funcs gnome2-utils python-any-r1 + +MY_P=0ad-${PV/_/-} +DESCRIPTION="A free, real-time strategy game" +HOMEPAGE="https://play0ad.com/" +SRC_URI="http://releases.wildfiregames.com/${MY_P}-unix-build.tar.xz" + +LICENSE="GPL-2 LGPL-2.1 MIT CC-BY-SA-3.0 ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="editor +lobby nvtt pch test" +RESTRICT="test" + +RDEPEND=" + dev-libs/boost:= + dev-libs/icu:= + dev-libs/libxml2 + dev-libs/nspr + ~games-strategy/0ad-data-${PV} + media-libs/libpng:0 + media-libs/libsdl2[X,opengl,video] + media-libs/libvorbis + media-libs/openal + net-libs/enet:1.3 + net-libs/miniupnpc:= + net-misc/curl + sys-libs/zlib + virtual/jpeg:0 + virtual/opengl + x11-libs/libX11 + x11-libs/libXcursor + editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] ) + lobby? ( >=net-libs/gloox-1.0.20 ) + nvtt? ( media-gfx/nvidia-texture-tools )" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + test? ( dev-lang/perl )" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + python-any-r1_pkg_setup +} + +PATCHES=( + "${FILESDIR}"/${PN}-0.0.21_alpha-gentoo.patch +) + +src_configure() { + local myconf=( + --with-system-nvtt + --with-system-miniupnpc + --minimal-flags + $(usex nvtt "" "--without-nvtt") + $(usex pch "" "--without-pch") + $(usex test "" "--without-tests") + $(usex editor "--atlas" "") + $(usex lobby "" "--without-lobby") + --collada + --bindir="/usr/bin" + --libdir="/usr/$(get_libdir)"/${PN} + --datadir="/usr/share/${PN}" + ) + + # stock premake4 does not work, use the shipped one + emake -C "${S}"/build/premake/premake4/build/gmake.unix + + # regenerate scripts.c so our patch applies + cd "${S}"/build/premake/premake4 || die + "${S}"/build/premake/premake4/bin/release/premake4 embed || die + + # rebuild premake again... this is the most stupid build system + emake -C "${S}"/build/premake/premake4/build/gmake.unix clean + emake -C "${S}"/build/premake/premake4/build/gmake.unix + + # run premake to create build scripts + cd "${S}"/build/premake || die + "${S}"/build/premake/premake4/bin/release/premake4 \ + --file="premake4.lua" \ + --outpath="../workspaces/gcc/" \ + --platform=$(usex amd64 "x64" "x32") \ + --os=linux \ + "${myconf[@]}" \ + gmake || die "Premake failed" +} + +src_compile() { + tc-export AR + + # build bundled and patched spidermonkey + cd libraries/source/spidermonkey || die + JOBS="${MAKEOPTS}" ./build.sh || die + cd "${S}" || die + + # build 3rd party fcollada + emake -C libraries/source/fcollada/src + + # build 0ad + emake -C build/workspaces/gcc verbose=1 +} + +src_test() { + cd binaries/system || die + ./test -libdir "${S}/binaries/system" || die "test phase failed" +} + +src_install() { + newbin binaries/system/pyrogenesis 0ad + use editor && newbin binaries/system/ActorEditor 0ad-ActorEditor + + insinto /usr/share/${PN} + doins -r binaries/data/l10n + + exeinto /usr/$(get_libdir)/${PN} + doexe binaries/system/libCollada.so + doexe libraries/source/spidermonkey/lib/*.so + use editor && doexe binaries/system/libAtlasUI.so + + dodoc binaries/system/readme.txt + doicon -s 128 build/resources/${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-strategy/0ad/Manifest b/games-strategy/0ad/Manifest new file mode 100644 index 000000000000..e6f1ed7a7bfb --- /dev/null +++ b/games-strategy/0ad/Manifest @@ -0,0 +1,8 @@ +AUX 0ad-0.0.21_alpha-gentoo.patch 3905 SHA256 d325cc6f996d28fd89a323e1d55d8e0aeb130f949adaa9779fc9ee3cd01ced48 SHA512 592e9fdff6ef6d88efc9c4a5c856e41240845187cc4a4b3d9d6b5c616eb1f664fdf702b7b0a30cdfeedd6d87ac0fab913df477567b84d42e13d2cf2761cfdec8 WHIRLPOOL 06c503b96197480a4efc57721f9eb5f726df2a177699ea2f1a5d9fc3f82691952148056cab0d904cacfdcbe0e1ebcbf1017bcc5065b51d02d938707966a786a5 +DIST 0ad-0.0.21-alpha-unix-build.tar.xz 29196476 SHA256 96be23e4284a3931ef9536f988f2517040bde1f8700ee048bff18c932d8683cf SHA512 68f3586375f7dcbf3dfb6476040b8b43da8e2ea1e74947223ff5c9936b54a93caef919d8982d78c6f4ad01ee8f707b38a2c37cdab88ea5c5408544364cff4c37 WHIRLPOOL 8e72c2c3311169eabab5a8a028ffc90b8d6838f72d23ebbac3e5331a7f9434bbe7cae8cf0f5a97bf30b913f7f7f737d264aaf86298f8f65c81a270b0c4e5f871 +DIST 0ad-0.0.22-alpha-unix-build.tar.xz 29199308 SHA256 fddd36df4fd32b5b31fd8871bc5ed3ec71a921de79517fb6199ba7571ec9f5b1 SHA512 3f917e77c6cc1d3fb585c98950db6eab3f5895ba3db41a8737f8172c769b5582689b436cab31eeafecce0e9639ee456afc7b78ebb03435b06512eb9fe7393771 WHIRLPOOL ae33f4f77cb981a0e8f00969c6b1ee05a2f06bacb70f79bfac74fda383bffedd4c6027370d5003e3d7815d5c68e13308b3553d8810bc69eebee143231968e95c +EBUILD 0ad-0.0.21_alpha.ebuild 3382 SHA256 b7852d29552cc34d914b9f3f5b47fad7ab57ae33b1c06e34f9144832548e2876 SHA512 786d02ee18617435b1b5318dc9d58e6db8de2e32fa38defc4c4eaa0c021af3661cb1dd111ff2bbfd65c7dfbd3a725cb9c38df86ccc56ef3b75cf81614017a531 WHIRLPOOL a4dfaeb9a22e82cf10bcf3bcc16ce8d05d8812041b131375b652b4f0a247c54747f83eb0bc9bef7ad74ddb948b6641ded958e8f51bdc2991a1b1bc89b030cb89 +EBUILD 0ad-0.0.22_alpha.ebuild 3357 SHA256 01a9e8e42736f8976ce34c1d4ac73ea0355553844fdcc56e55bc1dbf3073eeb3 SHA512 14522720cf81831dda716df5f3d079f6816bb0ddd336741149eef4dcc50ca7dded4753ac3260c63013329f4c800c126f20ae4787091f7fb77f2b4b05615d6c48 WHIRLPOOL 10984ef4c915f95448aa4804f4cc9bc13fdcddaf2ff7c0efa21b4ba0e5809abfef1aea8765058e24f807e77a5126433ff0f943196051bcd05531e09150ef7b39 +MISC ChangeLog 5302 SHA256 49fb4a9a88decf86725366d57a9d54084b8afd9aa7dd111c05b050a993e99036 SHA512 d9b944e5e82234d552f3e2c90b0685acde3ef22f971307b0569aff6f162f3a716083485cc9d4b853b059b4415351193b5bd3633b5d8d17481717cf500e808255 WHIRLPOOL 6f417040c74b0b7190b9c3c55eb716d1d1d4045beae42bafd8772810e233b3cb86f83aa3d0a0efe90dc82ed4114af6f33d641c58b5c7c7f875f9d26f6481b7b7 +MISC ChangeLog-2015 1237 SHA256 2b82c4707befa63cd067c788de7d7c4fbd7a25127f7bf5c26154333fcde75608 SHA512 fc8cc3ff7f823948018b740b1af8371bf43ec036158db3cea5ed1fbbb40385e85e65dc0df771e3f601c22d45525d1c4f1c75ce0bea029e179a0db7db2886b83a WHIRLPOOL d62c1334b70579ad31da0ee2c94f9737d66eb73403d0484dfee87b20d27b221a0c1e27c58de5a1497591a24b91b28b512da27fdc3c28da26f8a6c1e1357f3752 +MISC metadata.xml 668 SHA256 5a09a23b6935bfa5a88b9648e32df5be428d0773fbc79745bf73c99808799e74 SHA512 7aab21c31587f1cce5b4635ace0fbbb5bcdc2a6d811df68494ac1fb251fbfc75911cfa3a9e1a60c28f684f64a919164c6e3504fd3fbba3b0ec05afe8278ae343 WHIRLPOOL 05beb7ecd47ae5d1596103dcaf30a4fb581143c6f5628fdf3e3dcf6434aac95f2564d3fd83fd45cbf1c76651a236742ce8dec2299a6cb48e65e87ad2736795c4 diff --git a/games-strategy/0ad/files/0ad-0.0.21_alpha-gentoo.patch b/games-strategy/0ad/files/0ad-0.0.21_alpha-gentoo.patch new file mode 100644 index 000000000000..79549d193683 --- /dev/null +++ b/games-strategy/0ad/files/0ad-0.0.21_alpha-gentoo.patch @@ -0,0 +1,88 @@ +--- 0ad-0.0.21-alpha/build/premake/premake4/build/gmake.unix/Premake4.make ++++ 0ad-0.0.21-alpha/build/premake/premake4/build/gmake.unix/Premake4.make +@@ -26,9 +26,9 @@ + DEFINES += -DNDEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN + INCLUDES += -I../../src/host/lua-5.1.4/src + CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) +- CFLAGS += $(CPPFLAGS) -Wall -Os +- CXXFLAGS += $(CPPFLAGS) -Wall -Os +- LDFLAGS += -s -rdynamic ++ CFLAGS += $(CPPFLAGS) -Wall ++ CXXFLAGS += $(CPPFLAGS) -Wall ++ LDFLAGS += -rdynamic + LIBS += -lm -ldl + RESFLAGS += $(DEFINES) $(INCLUDES) + LDDEPS += +@@ -48,8 +48,8 @@ + DEFINES += -D_DEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN + INCLUDES += -I../../src/host/lua-5.1.4/src + CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) +- CFLAGS += $(CPPFLAGS) -Wall -g +- CXXFLAGS += $(CPPFLAGS) -Wall -g ++ CFLAGS += $(CFLAGS) $(CPPFLAGS) -Wall ++ CXXFLAGS += $(CXXFLAGS) $(CPPFLAGS) -Wall + LDFLAGS += -rdynamic + LIBS += -lm -ldl + RESFLAGS += $(DEFINES) $(INCLUDES) +--- 0ad-0.0.21-alpha/build/premake/premake4/src/tools/gcc.lua ++++ 0ad-0.0.21-alpha/build/premake/premake4/src/tools/gcc.lua +@@ -136,8 +136,6 @@ + if not cfg.flags.Symbols then + if cfg.system == "macosx" then + table.insert(result, "-Wl,-x") +- else +- table.insert(result, "-s") + end + end + +--- 0ad-0.0.21-alpha/libraries/source/fcollada/src/Makefile ++++ 0ad-0.0.21-alpha/libraries/source/fcollada/src/Makefile +@@ -9,9 +9,9 @@ + + CXX ?= g++ + CXXFLAGS += -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function $(OS_DEFINE) $(PIC_FLAGS) $(CPPFLAGS) +-CXXFLAGS_DEBUG := -O0 -g -D_DEBUG -DRETAIL +-CXXFLAGS_RELEASE := -O2 -DNDEBUG -DRETAIL +-CXXFLAGS_TEST := -O0 -g -D_DEBUG ++CXXFLAGS_DEBUG := -D_DEBUG -DRETAIL ++CXXFLAGS_RELEASE := -DNDEBUG -DRETAIL ++CXXFLAGS_TEST := -D_DEBUG + LIBS += `pkg-config libxml-2.0 --libs` + INCLUDES += -IFCollada `pkg-config libxml-2.0 --cflags` + INCLUDES_TEST := -IFCollada/FColladaTest $(INCLUDES) +--- 0ad-0.0.21-alpha/libraries/source/spidermonkey/build.sh ++++ 0ad-0.0.21-alpha/libraries/source/spidermonkey/build.sh +@@ -93,20 +93,8 @@ + cd js/src + + # Clean up data generated by previous builds that could cause problems +-rm -rf build-debug + rm -rf build-release + +-# We want separate debug/release versions of the library, so we have to change +-# the LIBRARY_NAME for each build. +-# (We use perl instead of sed so that it works with MozillaBuild on Windows, +-# which has an ancient sed.) +-perl -i.bak -pe 's/(SHARED_LIBRARY_NAME\s+=).*/$1 '\''mozjs38-ps-debug'\''/' moz.build +-mkdir -p build-debug +-cd build-debug +-CXXFLAGS="${CXXFLAGS} ${TLCXXFLAGS}" ../configure ${CONF_OPTS} --with-nspr-libs="$NSPR_LIBS" --with-nspr-cflags="$NSPR_INCLUDES" --enable-debug --disable-optimize --enable-js-diagnostics --enable-gczeal +-${MAKE} ${MAKE_OPTS} +-cd .. +- + perl -i.bak -pe 's/(SHARED_LIBRARY_NAME\s+=).*/$1 '\''mozjs38-ps-release'\''/' moz.build + mkdir -p build-release + cd build-release +@@ -161,12 +149,9 @@ + mkdir -p ${INCLUDE_DIR_DEBUG} + mkdir -p ${INCLUDE_DIR_RELEASE} + cp -R -L ${FOLDER}/js/src/build-release/dist/include/* ${INCLUDE_DIR_RELEASE}/ +-cp -R -L ${FOLDER}/js/src/build-debug/dist/include/* ${INCLUDE_DIR_DEBUG}/ + + mkdir -p lib/ +-cp -L ${FOLDER}/js/src/build-debug/dist/lib/${LIB_PREFIX}mozjs38-ps-debug${LIB_SRC_SUFFIX} lib/${LIB_PREFIX}mozjs38-ps-debug${LIB_DST_SUFFIX} + cp -L ${FOLDER}/js/src/build-release/dist/lib/${LIB_PREFIX}mozjs38-ps-release${LIB_SRC_SUFFIX} lib/${LIB_PREFIX}mozjs38-ps-release${LIB_DST_SUFFIX} +-cp -L ${FOLDER}/js/src/build-debug/dist/bin/${LIB_PREFIX}mozjs38-ps-debug${DLL_SRC_SUFFIX} ../../../binaries/system/${LIB_PREFIX}mozjs38-ps-debug${DLL_DST_SUFFIX} + cp -L ${FOLDER}/js/src/build-release/dist/bin/${LIB_PREFIX}mozjs38-ps-release${DLL_SRC_SUFFIX} ../../../binaries/system/${LIB_PREFIX}mozjs38-ps-release${DLL_DST_SUFFIX} + + # On Windows, also copy debugging symbols files diff --git a/games-strategy/0ad/metadata.xml b/games-strategy/0ad/metadata.xml new file mode 100644 index 000000000000..11542ae7c10a --- /dev/null +++ b/games-strategy/0ad/metadata.xml @@ -0,0 +1,19 @@ +<?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="editor">Include Atlas scenario editor projects</flag> + <flag name="lobby">Enable the use of <pkg>net-libs/gloox</pkg> + and the multiplayer lobby</flag> + <flag name="nvtt">Support for some uncompressed data formats + via <pkg>media-gfx/nvidia-texture-tools</pkg> + (might be needed for some mods)</flag> + </use> + <upstream> + <remote-id type="sourceforge">zero-ad</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/asc/Manifest b/games-strategy/asc/Manifest new file mode 100644 index 000000000000..8a90647061dc --- /dev/null +++ b/games-strategy/asc/Manifest @@ -0,0 +1,10 @@ +AUX asc-2.6.0.0-gcc6-nothrow-in-dtors.patch 741 SHA256 139442a3383e04977c0cd1a75878618ded2e112081d2bcf1662b05631a95f707 SHA512 d92086128b2b491a6f0c96d0b92f2e5ae9a7d521070405b7971fafa4ab953e6d4996784a6c5837b8cbf2811a18e043481c0278d960f6fe9804d8da68c8afa32d WHIRLPOOL 60b3fe77c10d2f919dbb32f2f772b1819a906174453545835166611cb5b06b8458c726621f702d68caf8aaeb766f5e935ced4cf67aac2208f4ca799716640c87 +DIST asc-2.6.0.0.tar.bz2 42280527 SHA256 e59caa549dc8d8a321211f60652cc809cbbf37d000ee85af790e676d9656cbbb SHA512 e1dea48bf87424fd65772e6d9bad96cf63e4062df5717bbc925562683782afc2d9788ea28e7147d905c3c0f6db3ef7c102a59022988c9fcf8aa6adba91dc5540 WHIRLPOOL 1662259bb1ab1c6f31b8ba227a7ac757f2a89ba4caacd9f2f5f3f737f60c31096f247cbc72eca61e572edce9ba4baeae6d5320e748a1415acc4ee0663f9db3b5 +DIST frontiers.ogg 4691844 SHA256 eabc9b07d1db07626fa817a30dad23b11aada059e32c08914d2d0cf1d58c7fff SHA512 8c2ce497519b3842fba2d39b5c6de6194584d64c0375d404535628898cb2e7a82433fc6008781381a80a6cbb24ff49162de3634ebcf28b17b0631c30668fd8af WHIRLPOOL a48a6596421a7a5b2d663af14e12c04db2a47c3bde8f1cc54dfe72c69b095613e6479eb408483679979f264d848911b34ee7edb56757734229d1990046bcdd5b +DIST machine_wars.ogg 3138308 SHA256 bd7f330c06090d98e5ba0dac5a691af1804ba383b783b7b2f960bc2e53400a77 SHA512 2c1bab89b9397f52dcf7eedfc0dbc88d49a586ac0474c76a09a87a880712bf0fa408c03a65a5f5d322dee86e3b12cbc66d53cd6728e8fa34fa8f2ee2bbc06cd8 WHIRLPOOL 7a83910d48414ffe3687374efb661dd169801f244857a4f154d400b76477917bfa2db63dfddfc57544be95e413cf23e810b346f3a39d4f140454237b235a2eee +DIST time_to_strike.ogg 3830679 SHA256 0334a027b8a45a5df88e1e3e7db9cace2def02396fbcc794d157289e41c9ad05 SHA512 2ed946116cac2ea63d401eb7415d5b3e4e548bc5a5b00b01a6f1c4db6a242895810dfefdf1ace9652f01dc934a70b756aa74d01630cfac97b19ce84a93b772ee WHIRLPOOL d7a280bc4041e449a96e4f79483110c4f86d099be4550fe70edd1882df81d8242fe6bf687079b6b2f608f879462c1a5ca84dae7e11e68ea97d93d0651d48ef4f +EBUILD asc-2.6.0.0-r1.ebuild 1635 SHA256 d08bac957dcf82d9395d6c824a20a1d6cfa13dfb958a58dcab0fe76fb03f8f41 SHA512 e1c94894851f21b0ba11817c76984e343aa3cca6ac1d6c4fa4ca99e3c656a8ad1cebacadd9ed18b3fc4ca8d94fc69c21e106803fe0a8ca6e89db8f1f5c4e218f WHIRLPOOL 98cc49fd3a4af78e636dc005a67d786a6445b34aa34893707d0f0f5187b9265ce1a0c879a993a1421f51d2075e8bd426271bf4102e3d83d62e6c8193803bb414 +EBUILD asc-2.6.0.0-r2.ebuild 1599 SHA256 b4771885e3f249acfb45ad08d00a469ed17be1ea54c34b2ecf0742526753ec4b SHA512 e03b3ba88482b90b44847e92a657f58317f320af8c96f25ce5939f64a1f14cb6f4c43c6d84a36dd097be220b3c0d3e9d2d80536e4d737ad5293c075819c84b70 WHIRLPOOL 2251dce3d4ee7e2f19d973fc86a975ef8b84988fc9d8790b8101dc559938a590ed1867ca3a18d3ade65b0d9c619873f7fbca786a518b505f79eac4b671e430bb +MISC ChangeLog 3133 SHA256 0c87bf34b4fbbbd5676b7605c2b2a1efe166ce46ed775dbb6381dacaa67289c3 SHA512 bb8f82d922e82d825706a5bb8b13364cc5c92b3a36a6dfeb7a79aa4089373e5e7887914101f21ae07b22133b30a17dfaeb7943492534c6f3ff5319da774d387c WHIRLPOOL eed0c2a64712a0f92990b6fd7817230c52d8aaed3736a2c48746b68e5add7b95b70c2cdde6c47137f490587d11d24ad9e66f3c7e06b7fc9810b78e97c5da8fe0 +MISC ChangeLog-2015 7253 SHA256 740f2bb8a1ebe234a32f83a656f90516b79097db5b232a69e8f05cc648333a28 SHA512 81dff049e2b68309f94f582318f527a337bb0248a9076f5f6eae20eb377cf627dc08edefe178d38ba4a731c36319fb4bef78f45f2420ca17adf3ed1d7c682e96 WHIRLPOOL 2280e89c4aad9e5a30f75db06db064d8507667a9e99771bf41e0ac264a3f1a772a388b350096c352d7f026deec302261ba5680f148c05c238f5b8bbf1abc6849 +MISC metadata.xml 329 SHA256 5a59809982d1f0c2b2d7bc73fb1ed99d23c41183cd24088832aa89d43265ad99 SHA512 1fa38f0da7bfc4cc3f1193758234379a9932c58742b914deebfc2d8101154e6303497b61c018eec7f52d5e8561ea2d7df89ad89f5d1cbe3f8a7732a1c922b051 WHIRLPOOL 4963b35a8e904627d2feae36130a51c304c6121c0e4b04137a5c42f269ca4b323646122f8f91a8c37f709ac86d78c676d2ba2c0ed023680276a40836b4fe053d diff --git a/games-strategy/asc/asc-2.6.0.0-r1.ebuild b/games-strategy/asc/asc-2.6.0.0-r1.ebuild new file mode 100644 index 000000000000..b70bbe1c2dcc --- /dev/null +++ b/games-strategy/asc/asc-2.6.0.0-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +WX_GTK_VER=3.0 +inherit eutils toolchain-funcs flag-o-matic wxwidgets games + +DESCRIPTION="turn based strategy game designed in the tradition of the Battle Isle series" +HOMEPAGE="http://www.asc-hq.org/" +SRC_URI="mirror://sourceforge/asc-hq/${P}.tar.bz2 + http://www.asc-hq.org/music/frontiers.ogg + http://www.asc-hq.org/music/time_to_strike.ogg + http://www.asc-hq.org/music/machine_wars.ogg" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="app-arch/bzip2 + media-libs/libsdl[video] + media-libs/libpng:0 + media-libs/sdl-image[gif,jpeg,png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-sound + dev-libs/boost + dev-games/physfs + media-libs/xvid + dev-libs/expat + media-libs/freetype + dev-lang/lua:0 + x11-libs/wxGTK:${WX_GTK_VER}[X] + dev-libs/libsigc++:1.2" + +DEPEND="${RDEPEND} + dev-lang/perl + virtual/pkgconfig + app-arch/zip" + +PATCHES=( "${FILESDIR}/"/${P}-gcc6-nothrow-in-dtors.patch ) + +src_unpack() { + local f + + unpack ${P}.tar.bz2 + for f in ${A} + do + case ${f} in + *ogg) + cp "${DISTDIR}/${f}" "${S}/data/music" || die + ;; + esac + done +} + +src_configure() { + need-wxwidgets unicode + # Added --disable-paraguitest for bugs 26402 and 4488 + # Added --disable-paragui for bug 61154 since it's not really used much + # and the case is well documented at http://www.asc-hq.org/ + if [[ $(gcc-major-version) -eq 4 ]] ; then + replace-flags -O3 -O2 + fi + egamesconf \ + --disable-paraguitest \ + --disable-paragui \ + --datadir="${GAMES_DATADIR_BASE}" +} + +src_install() { + default + dohtml -r doc/* + prepgamesdirs +} diff --git a/games-strategy/asc/asc-2.6.0.0-r2.ebuild b/games-strategy/asc/asc-2.6.0.0-r2.ebuild new file mode 100644 index 000000000000..9f44b9d7d539 --- /dev/null +++ b/games-strategy/asc/asc-2.6.0.0-r2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +WX_GTK_VER=3.0 +inherit eutils toolchain-funcs flag-o-matic wxwidgets + +DESCRIPTION="turn based strategy game designed in the tradition of the Battle Isle series" +HOMEPAGE="http://www.asc-hq.org/" +SRC_URI="mirror://sourceforge/asc-hq/${P}.tar.bz2 + http://www.asc-hq.org/music/frontiers.ogg + http://www.asc-hq.org/music/time_to_strike.ogg + http://www.asc-hq.org/music/machine_wars.ogg" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="app-arch/bzip2 + dev-games/physfs + dev-lang/lua:0 + dev-libs/boost + dev-libs/expat + dev-libs/libsigc++:1.2 + media-libs/libpng:0 + media-libs/libsdl[video] + media-libs/sdl-image[gif,jpeg,png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-sound + media-libs/freetype + media-libs/xvid + x11-libs/wxGTK:${WX_GTK_VER}[X]" + +DEPEND="${RDEPEND} + app-arch/zip + dev-lang/perl + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}/"/${P}-gcc6-nothrow-in-dtors.patch ) + +src_unpack() { + local f + + unpack ${P}.tar.bz2 + for f in ${A} + do + case ${f} in + *ogg) + cp "${DISTDIR}/${f}" "${S}/data/music" || die + ;; + esac + done +} + +src_configure() { + need-wxwidgets unicode + # Added --disable-paraguitest for bugs 26402 and 4488 + # Added --disable-paragui for bug 61154 since it's not really used much + # and the case is well documented at http://www.asc-hq.org/ + if [[ $(gcc-major-version) -eq 4 ]] ; then + replace-flags -O3 -O2 + fi + econf \ + --disable-paraguitest \ + --disable-paragui \ + --datadir="/usr/share" +} + +src_install() { + default + dodoc -r doc/* +} diff --git a/games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch b/games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch new file mode 100644 index 000000000000..e710b22f8c8b --- /dev/null +++ b/games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch @@ -0,0 +1,32 @@ +Bug: https://bugs.gentoo.org/612934 +Upstream Bug: https://sourceforge.net/p/asc-hq/patches/2/ + +--- a/source/basestrm.cpp ++++ b/source/basestrm.cpp +@@ -1728,7 +1728,6 @@ + } + } catch ( ... ) { + displayLogMessage( 9, ASCString("~tn_c_lzw_filestream : caught exception") ); +- throw; + } + } + +--- a/source/simplestream.cpp ++++ b/source/simplestream.cpp +@@ -43,6 +43,7 @@ + #endif + #endif + ++#include "util/messaginghub.h" + + tnbufstream::tnbufstream ( ) + { +@@ -270,7 +271,7 @@ + + int res = fclose( fp ); + if ( res != 0 ) +- throw tfileerror ( getDeviceName() + " : " + strerror(errno)); ++ displayLogMessage( 9, ASCString( getDeviceName() + " : " + strerror(errno) ) ); + + _mode = uninitialized; + diff --git a/games-strategy/asc/metadata.xml b/games-strategy/asc/metadata.xml new file mode 100644 index 000000000000..33170f2a7547 --- /dev/null +++ b/games-strategy/asc/metadata.xml @@ -0,0 +1,11 @@ +<?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">asc-hq</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/boswars/Manifest b/games-strategy/boswars/Manifest new file mode 100644 index 000000000000..2c63eff516b9 --- /dev/null +++ b/games-strategy/boswars/Manifest @@ -0,0 +1,10 @@ +AUX boswars-2.7-gentoo.patch 606 SHA256 707f6e1c53c6ebb113945ba3f8648b999babd733e951c2ffe1f0bf6c5319825f SHA512 d538c1a5cd794b27c7f33989c5b1d3820cbcd7a4195d7cbd18dd92631aac4e5c2a3ab15447e178dcb2e51bcdcb00e939bf29c2f4b70b74a1ac44f841f52f6e98 WHIRLPOOL e5d60cd97ea2eeeb213a8d9d5c7223c69a7307fd3cbbd47b8a4a725ff427943d311f1985b816fda5ba0878a6cd4bd7c43ef0bef6bfe2d70de9777e6a42342703 +AUX boswars-2.7-scons-blows.patch 944 SHA256 55e14fa77b4c7086ed0035cb9c6aec404ebb077c18b8973cefde51d80d4d99c6 SHA512 45e723feaa282760644e11a3e61e52726b6fffb388f7a6b5a0a47a97319e88341e238b46d8dbbe94cf178d5d18ea4ba8ebc257cd16dd98d8aa3cd5cff8d0eecd WHIRLPOOL e6818cf9450bbe315e6ca34c3f1d5913175cf6451aa5dc017dc4fcfa9902789a8e3bc19d86f3c5e750f320a2ff380e716c286e2e14e2aca1fbca937c29b74a5e +DIST bos.png 620 SHA256 fe1d24bc722093bd3882ecab15c15f61b6b0edee263bfd58af662825e76d8b0a SHA512 6a15a5c82f9cff3462d498620a1dd1c7a2a460119689078157e61b27e7e5243a8ac2da7f01c1848d614167a3a748ca1f3e03c1f218479ede3a1c2c0ae85b3cc3 WHIRLPOOL 4688e15b35a4c6e6888b867f16e646e520bf00cbb04d586b08567b2177fe9e82d0a2e1c31060c18ac2149df727f8a781f4394936c77a0d0b6ef846051ff760e7 +DIST boswars-2.7-fixed-images-for-libpng-1.6.tar.xz 552956 SHA256 87f3ee7f4045c3acfacd884348a2b376e710b42aa0f40acbc212732d0bee9a24 SHA512 794addf06cfd5c5bb0ad0988a90337a3a6332789de7bc942807602c84c4fafe4c4b12da63ae210ca220a1be6dcd9677fa9ddb1ae62a7d26a7748af35b07303dc WHIRLPOOL d6bc11f8db099cd91976590a25e63eed51c2cd724eb64d2e859556dcf3ef22a66451b114542a0e0bcc819c517b4c5fdb3e294680a9e11dbe990650815ac37507 +DIST boswars-2.7-src.tar.gz 77280735 SHA256 dc3718f531e9ea413cf37e1333b62a4c5e69f1405502d9c59b9e424635135e3e SHA512 2573c61684e83f356a80292adcf780cc001a4be2a31abba20e6f93ed6deaa38b8eca87f29935a4fe0edc9b4e0fdc3f78ddd709b8132aaaa048ffbcd6c498ec80 WHIRLPOOL f8e0156fbf2d868eb4066bab0592a9fc5c1fce055aba81c056da1d10da4112913f50312fc1526a0ff62159a84b9463907c92b8ae54445fab20dc5879bf961322 +EBUILD boswars-2.7-r1.ebuild 1556 SHA256 f77a4d83859dcb679765cfcc166303b7d003d57e267e03845f3c3760eb1d4011 SHA512 0a0d71d62111277490810d6d077c644bffa5124d90bf0701e5a3036ed8505f0aaee19af4bdec71053b4239838fc0de6845b3488ae471309c028ad5dfc8275d26 WHIRLPOOL 0f141135d49c04665323263dfade8196bedb411e160c3de2309e6bc9dff9c23f6c476c563a75e352c7ea14f7a1c39380d21ee472055d037d6325d185e0953b93 +EBUILD boswars-2.7-r2.ebuild 1534 SHA256 b41a58062d0c784f4b02cec40ee9ef3c545d6fbebb747809a21f14916a74866d SHA512 eb02e9caa002c255806dd4ab03b182eb7889b400bdc504c1c4b061e4e05a82a32cc9e6fc1cd1458a652debe825c18636058fb634d003f2d2f1f82c6b18dbbad4 WHIRLPOOL 2dca263a091800b9c9be6f88f2f51ac759c066b4761bc75ee8811513d1ab6301eb869a57851bc48dcd4733884c6832c0a0f48c90083232c683a70c289d2f7df7 +MISC ChangeLog 2679 SHA256 970ffbd355918f921a042db1c81d7ed3290823e70f8d1b4eff066e601ab23e5b SHA512 8a7fefa4c58c2c88b4a4b6bac57e3250c3e074cb6cb237f780cc5307dd18d210f284e7fbbee04337160ddabcf605c867aeff632c439123f9abf8dab2d79c802a WHIRLPOOL 5710f6907a6fc05130b6b133eb59e028ecc382b68aaa6561153abb922f44fbbafd0defc15cd431d67b53e1a86afad3879573bc84125c614aab7a43583229b944 +MISC ChangeLog-2015 4237 SHA256 24681c90558951309f9be8e84b5895dfd8daff753ca082519c0339d77ed06c1a SHA512 26205d1a287cc620db586a5df95ccd655a07731137584e08db659ca6dff9c5d152b923a9763a54eff6c2251c29feeb16b35eb077cecc8dee03039bdbc8a13cc3 WHIRLPOOL a4eef1e394e23ec0c386703d201d9cfe3921082d021cab2454fcaa513e935c67b9991133cbc5dff9144163fe47e16f49c5a978e60d3bd63ea2efea6cf3970812 +MISC metadata.xml 514 SHA256 a9fe339983e21841c52af69a65491a70660219c398d7558c4f68ff58a1c163fd SHA512 d253904f4c25482960a7815a05eccb8ff0c9acae13491713c47c98c90e012ad0cddc3e964529ab008e6db13602fe6b4d60df76a24ee66aac5f13efa13615440b WHIRLPOOL aba08de5de51c367bc7ec5a64bc9a19b4de61addef42e00c072bf75afdca8bd3dd24e2493eaf2a934092991422971697c74fb13c8291b006477d2f323e0b36b7 diff --git a/games-strategy/boswars/boswars-2.7-r1.ebuild b/games-strategy/boswars/boswars-2.7-r1.ebuild new file mode 100644 index 000000000000..288762f4a41a --- /dev/null +++ b/games-strategy/boswars/boswars-2.7-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils scons-utils games + +DESCRIPTION="Futuristic real-time strategy game" +HOMEPAGE="http://www.boswars.org/" +SRC_URI="http://www.boswars.org/dist/releases/${P}-src.tar.gz + https://dev.gentoo.org/~hasufell/distfiles/${P}-fixed-images-for-libpng-1.6.tar.xz + mirror://gentoo/bos.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="dev-lang/lua:0 + media-libs/libsdl[opengl,sound,video] + media-libs/libpng:0 + media-libs/libvorbis + media-libs/libtheora + media-libs/libogg + virtual/opengl + x11-libs/libX11" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${P}-src + +src_unpack() { + default + # bug 475764 + cp -dRp ${P}-fixed-images-for-libpng-1.6/* ${P}-src/ \ + || die "copying fixed images failed!" +} + +src_prepare() { + rm -f doc/{README-SDL.txt,guichan-copyright.txt} + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-scons-blows.patch + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + engine/include/stratagus.h \ + || die + sed -i \ + -e "/-O2/s:-O2.*math:${CXXFLAGS} -Wall:" \ + SConstruct \ + || die +} + +src_compile() { + escons || die +} + +src_install() { + newgamesbin build/${PN}-release ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r campaigns graphics intro languages maps patches scripts sounds units + newicon "${DISTDIR}"/bos.png ${PN}.png + make_desktop_entry ${PN} "Bos Wars" + # COPYRIGHT.txt is referenced by the html + dodoc CHANGELOG COPYRIGHT.txt README.txt + dohtml -r doc/* + prepgamesdirs +} diff --git a/games-strategy/boswars/boswars-2.7-r2.ebuild b/games-strategy/boswars/boswars-2.7-r2.ebuild new file mode 100644 index 000000000000..e47f414ef946 --- /dev/null +++ b/games-strategy/boswars/boswars-2.7-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils scons-utils + +DESCRIPTION="Futuristic real-time strategy game" +HOMEPAGE="http://www.boswars.org/" +SRC_URI="http://www.boswars.org/dist/releases/${P}-src.tar.gz + https://dev.gentoo.org/~hasufell/distfiles/${P}-fixed-images-for-libpng-1.6.tar.xz + mirror://gentoo/bos.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-lang/lua:0 + media-libs/libogg + media-libs/libpng:0 + media-libs/libsdl[opengl,sound,video] + media-libs/libtheora + media-libs/libvorbis + virtual/opengl + x11-libs/libX11" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${P}-src + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-scons-blows.patch +) + +src_unpack() { + default + # bug 475764 + cp -dRp ${P}-fixed-images-for-libpng-1.6/* ${P}-src/ \ + || die "copying fixed images failed!" +} + +src_prepare() { + default + + rm -f doc/{README-SDL.txt,guichan-copyright.txt} || die + + sed -i \ + -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \ + engine/include/stratagus.h \ + || die + sed -i \ + -e "/-O2/s:-O2.*math:${CXXFLAGS} -Wall:" \ + SConstruct \ + || die +} + +src_compile() { + escons || die +} + +src_install() { + newbin build/${PN}-release ${PN} + insinto /usr/share/${PN} + doins -r campaigns graphics intro languages maps patches scripts sounds units + newicon "${DISTDIR}"/bos.png ${PN}.png + make_desktop_entry ${PN} "Bos Wars" + # COPYRIGHT.txt is referenced by the html + dodoc CHANGELOG COPYRIGHT.txt README.txt + dodoc -r doc/* +} diff --git a/games-strategy/boswars/files/boswars-2.7-gentoo.patch b/games-strategy/boswars/files/boswars-2.7-gentoo.patch new file mode 100644 index 000000000000..a005f6f93ad0 --- /dev/null +++ b/games-strategy/boswars/files/boswars-2.7-gentoo.patch @@ -0,0 +1,12 @@ +diff -ru boswars-2.6.1-src/engine/include/stratagus.h boswars-2.6.1-src/engine/include/stratagus.h +--- boswars-2.6.1-src/engine/include/stratagus.h 2010-04-11 08:12:18.000000000 -0400 ++++ boswars-2.6.1-src/engine/include/stratagus.h 2010-05-22 02:33:50.021377764 -0400 +@@ -133,7 +133,7 @@ + -- General + ----------------------------------------------------------------------------*/ + #ifndef STRATAGUS_LIB_PATH +-#define STRATAGUS_LIB_PATH "." /// Where to find the data files ++#define STRATAGUS_LIB_PATH "@GENTOO_DATADIR@" /// Where to find the data files + #endif + + #ifndef STRATAGUS_HOME_PATH diff --git a/games-strategy/boswars/files/boswars-2.7-scons-blows.patch b/games-strategy/boswars/files/boswars-2.7-scons-blows.patch new file mode 100644 index 000000000000..1d2c04cc4f1b --- /dev/null +++ b/games-strategy/boswars/files/boswars-2.7-scons-blows.patch @@ -0,0 +1,27 @@ +--- a/SConstruct 2010-11-19 21:09:45.724976603 -0500 ++++ b/SConstruct 2010-11-19 21:11:05.723197985 -0500 +@@ -22,6 +22,7 @@ + ## + + import os ++import SCons.Util + import sys + import glob + from stat import * +@@ -50,6 +51,16 @@ + + opts = DefineOptions("build_options.py", ARGUMENTS) + env = Environment(ENV = {'PATH':os.environ['PATH']}) # for an unknown reason Environment(options=opts) doesnt work well ++if os.environ.has_key('CC'): ++ env['CC'] = os.environ['CC'] ++if os.environ.has_key('CFLAGS'): ++ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS']) ++if os.environ.has_key('CXX'): ++ env['CXX'] = os.environ['CXX'] ++if os.environ.has_key('CXXFLAGS'): ++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) ++if os.environ.has_key('LDFLAGS'): ++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) + opts.Update(env) # Needed as Environment(options=opts) doesnt seem to work + Help(opts.GenerateHelpText(env)) + mingw = env.Clone() diff --git a/games-strategy/boswars/metadata.xml b/games-strategy/boswars/metadata.xml new file mode 100644 index 000000000000..242aa2331bb7 --- /dev/null +++ b/games-strategy/boswars/metadata.xml @@ -0,0 +1,13 @@ +<?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"> +Bos Wars is a futuristic real-time strategy game. It is possible to play against +human opponents over LAN, internet, or against the computer. +Bos Wars aims to create a completely original and fun open source RTS game. +</longdescription> +</pkgmetadata> diff --git a/games-strategy/crimson/Manifest b/games-strategy/crimson/Manifest new file mode 100644 index 000000000000..6f7891b22720 --- /dev/null +++ b/games-strategy/crimson/Manifest @@ -0,0 +1,5 @@ +DIST crimson-0.5.3.tar.bz2 882366 SHA256 d59858c05e340367c61c8ca1dd00c36642a0c56d10d1d9a1626c5ba7d88b40d6 SHA512 9632317c4b258ed5e501ad1d058706ed654fc621b07099f65d93e29fe92e53fc8f6bbffa13c70fc2129f30695d3f10e85174234dc96cc171631b3465d2b7cffc WHIRLPOOL 89ddb776b86de245004f69af3421803a8bceb30499b416612a52f3203eaeb98013cf1fe8af027f24756d77a05d3fa23a20a2c361cded41c19279f402498022f3 +EBUILD crimson-0.5.3.ebuild 1298 SHA256 82f27bcf84c84caee137c49afad503a4d8ab3740a55932358826442e1a8b4e21 SHA512 cc92584bbececce34b36bc3f2985171730cbb6bf9657bf0ea47a98cabee41e8e36a9280a416775a5521d248dd2ce45f71c27b180b3a7984be44f59a58609aaed WHIRLPOOL d6af8e225ca8af0d0b24c44f88ebcc9ea163c03d0655a673e116d3f2a1ff1df4b54ba3c5edc3277d077a6de1a7de0db8de46f834b8055b0b87aab9296da0c316 +MISC ChangeLog 2433 SHA256 e8e57693bd68e8caee08f709883dd0a97afe5ff01b3a5afd565983b15d8e3039 SHA512 25ae5ca71f43560402f4d1d27de902d586b69b050bd6d9ee1b156f92b8d192d9d886ffa67da955011a952527f6153671c55c7735e43fe2c333821834b94e8b1d WHIRLPOOL 8df3b64d8ad8a61cb54740334fbfebef35107b8a3892b2465ae93d95a6717875d2e7f1339e0fa90310e578c0972223271987182a1dd7983d05a0f0dd27d15ee4 +MISC ChangeLog-2015 4055 SHA256 a4a441a04255cf2d802e1de148e37fcbddb9d81089e9e42aeeff9bf1a8377e68 SHA512 c0c90b2b8e2528f9a213fa4d5590c23aa2956e0dd44101c86e6f2d33c1fbab209cdbd655db28f2398f6090c58a4b4aec2ad09cd3a974c53d2e798d9c19f8c6d4 WHIRLPOOL f85d32df07cd244e46fd4115d497df69474565d7a8b9dc8e8da4136227c87becb36e3a4c8fcf4408e690b7f52eacfdb8f8bc76e1a92b8e6a48d3c97f47d3be6f +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/crimson/crimson-0.5.3.ebuild b/games-strategy/crimson/crimson-0.5.3.ebuild new file mode 100644 index 000000000000..2099e319409a --- /dev/null +++ b/games-strategy/crimson/crimson-0.5.3.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="Tactical war game in the tradition of Battle Isle" +HOMEPAGE="http://crimson.seul.org/" +SRC_URI="http://crimson.seul.org/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test zlib" + +RDEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer + media-libs/sdl-ttf + media-libs/sdl-net + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + dev-libs/libxslt + test? ( + =app-text/docbook-xml-dtd-4.2* + dev-libs/libxml2 + )" + +src_configure() { + egamesconf \ + --enable-sound \ + --enable-network \ + $(use_with zlib) \ + --enable-cfed \ + --enable-bi2cf \ + --enable-comet \ + --enable-cf2bmp +} + +src_install() { + emake \ + DESTDIR="${D}" \ + pixmapsdir="/usr/share/pixmaps" \ + install + dodoc NEWS README* THANKS TODO + rm -rf "${D}/${GAMES_DATADIR}/applications" + make_desktop_entry crimson "Crimson Fields" + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + echo + ewarn "Crimson Fields ${PV} is not necessarily save-game compatible with previous versions." + echo + elog "If you have older save files and you wish to continue those games," + elog "you'll need to remerge the version with which you started" + elog "those save-games." +} diff --git a/games-strategy/crimson/metadata.xml b/games-strategy/crimson/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/crimson/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/darwinia-demo/Manifest b/games-strategy/darwinia-demo/Manifest new file mode 100644 index 000000000000..cb35c2661518 --- /dev/null +++ b/games-strategy/darwinia-demo/Manifest @@ -0,0 +1,6 @@ +DIST darwinia-demo2-1.3.0.sh 22470072 SHA256 2a51ca4e881f7aafe237fedf2e45ea84b48f02488482f55fb3af605a37833d85 SHA512 f561f3e741052888d8a23445f01e0c2a8d2b207b7786b25f297d76d0f4b4ef91bbf7d1ec842e5e2b1051f3f122af12058e2bcb2495478846713e49c2c7d7d92d WHIRLPOOL a8d43980055901ec88bf9e4e85b8ee49c1dbeb6ef541fe39fc9501bec136e581b57dabf4b59434c71154622f4838c3fcacd42b208236e4b61c306ae8b93ffd2a +EBUILD darwinia-demo-1.3.0-r1.ebuild 1052 SHA256 f3558ce9619b8830b20c0063e1ee93edb924fd14a0a35132df58ab276905d0a3 SHA512 656aed9eb59f4a7f372b477d1d344c5e824f5e91c5a7f78f18dae1808ccf74b5722993e31cad597953308a5be815c9cde93ca628fc01a71a5f6140015ada12ee WHIRLPOOL 3c764f8b525ea0efa332319b5f38dfcfbfff1b8d2da891f9c890d958f01fb326e260fa980a6ba019555bb639810f593c180339db77775f2765863f3d2fef822c +EBUILD darwinia-demo-1.3.0.ebuild 1090 SHA256 b396333b1c660fcd55f5852fe0dba2aa3c776d432cb4a8534c266266fe00f91b SHA512 08429d2ba99080fabd71a4f057440eb154c3eebde19db325b405197d1eccfedc2dffaebaf308c37157a280c99204ea2906760b6a52f56fb8ade16e0e98b45411 WHIRLPOOL fd4fbcd9b77070a1e4dccf5c820f8747997f9d0f0884a3f73a21d8a1ee36eeaa3de9478c373c5424ba4a8a9fb52fc3458f4bece07ebcf6876a6bec10d82f3c98 +MISC ChangeLog 2451 SHA256 45645870db7577b3982aab7760d483bb9848f4d6f601d5e580d7f19768d5f381 SHA512 c4b7d101bc13dcae522abe48d6900c02c59bc3a7fa9cd3adaf6ec9e5c0ff38c69ddae5d25656dee4462015b2666a94f67f6884be3f8d2eca2dada84b7a5f9d3d WHIRLPOOL 039814654c818dc8b331ca5ddde08fb84f83b3526432d5553ae86ef6838fc3fecca99de6fb005cfd4d463fa608500577ce7f59819a8e19511c4c55f00c0f4163 +MISC ChangeLog-2015 2892 SHA256 eb0c9bb0ec238877444f51515fc799210aa2db2e48d97b37aef05587135beab5 SHA512 ce2a59ade25ef97e1cc5a45675bee84e9cee0d9ce0f54c9303e071a489994140f83cf7da39c127d54444977f8dff8f804d7892b34742e0ba24ab9ee4b1b35a21 WHIRLPOOL 1a725eff599119f8a75e9d695605fe3c3cda5b582beddac2f4199bf343b0352c89527928831d758579bd2b47396f17affd0ea821af4b3952ca45ff78626b9aed +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/darwinia-demo/darwinia-demo-1.3.0-r1.ebuild b/games-strategy/darwinia-demo/darwinia-demo-1.3.0-r1.ebuild new file mode 100644 index 000000000000..c49c2f6401b3 --- /dev/null +++ b/games-strategy/darwinia-demo/darwinia-demo-1.3.0-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils unpacker + +DESCRIPTION="Darwinia, the hyped indie game of the year. By the Uplink creators" +HOMEPAGE="http://www.darwinia.co.uk/downloads/demo_linux.html" +SRC_URI="http://www.introversion.co.uk/darwinia/downloads/${PN}2-${PV}.sh" + +LICENSE="Introversion" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" +RESTRICT="mirror strip" + +RDEPEND=" + media-libs/libsdl[abi_x86_32(-)] + media-libs/libvorbis[abi_x86_32(-)] + virtual/glu[abi_x86_32(-)] + ~virtual/libstdc++-3.3 + virtual/opengl[abi_x86_32(-)]" + +S=${WORKDIR} + +dir="/opt/${PN}" + +src_unpack() { + unpack_makeself +} + +src_install() { + exeinto "${dir}/lib" + insinto "${dir}/lib" + + doexe lib/{darwinia.bin.x86,open-www.sh} + doins lib/{sounds,main,language}.dat + + insinto "${dir}" + dodoc README + + exeinto "${dir}" + doexe bin/Linux/x86/darwinia + + make_wrapper darwinia-demo ./darwinia "${dir}" "${dir}" + newicon darwinian.png ${PN}.png + make_desktop_entry darwinia-demo "Darwinia (Demo)" +} diff --git a/games-strategy/darwinia-demo/darwinia-demo-1.3.0.ebuild b/games-strategy/darwinia-demo/darwinia-demo-1.3.0.ebuild new file mode 100644 index 000000000000..95969fa371bb --- /dev/null +++ b/games-strategy/darwinia-demo/darwinia-demo-1.3.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils unpacker games + +DESCRIPTION="Darwinia, the hyped indie game of the year. By the Uplink creators" +HOMEPAGE="http://www.darwinia.co.uk/downloads/demo_linux.html" +SRC_URI="http://www.introversion.co.uk/darwinia/downloads/${PN}2-${PV}.sh" + +LICENSE="Introversion" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="mirror strip" + +RDEPEND=" + ~virtual/libstdc++-3.3 + media-libs/libsdl[abi_x86_32(-)] + media-libs/libvorbis[abi_x86_32(-)] + virtual/glu[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)]" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/${PN} + +src_unpack() { + unpack_makeself +} + +src_install() { + exeinto "${dir}/lib" + insinto "${dir}/lib" + + doexe lib/{darwinia.bin.x86,open-www.sh} + doins lib/{sounds,main,language}.dat + + insinto "${dir}" + dodoc README + + exeinto "${dir}" + doexe bin/Linux/x86/darwinia + + games_make_wrapper darwinia-demo ./darwinia "${dir}" "${dir}" + newicon darwinian.png ${PN}.png + make_desktop_entry darwinia-demo "Darwinia (Demo)" + prepgamesdirs +} diff --git a/games-strategy/darwinia-demo/metadata.xml b/games-strategy/darwinia-demo/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/darwinia-demo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/darwinia/Manifest b/games-strategy/darwinia/Manifest new file mode 100644 index 000000000000..d0f82dafc447 --- /dev/null +++ b/games-strategy/darwinia/Manifest @@ -0,0 +1,7 @@ +DIST darwinia-full-1.3.0.sh 4010019 SHA256 847ecce5b5cee1a576531d0e1291f2e7838a69fd0a2ac426088d3b8944f11bbd SHA512 9790c1534a868b9561acf451cccb3356eb85ecbf8e271e344468b7982466802da5e3537c555839acfa64e1c56a25a08f8dba47a69eaf9de21a7575fba4dc2ebb WHIRLPOOL a6119243befc3b64487247373e43311da0e117aa212dea82f01dc144900e4346dc7c19fff078b0465833ccbffaf2f41a2e29386c34187b495e0314a49c434d81 +DIST darwinia-full-1.4.0b9.sh 4228121 SHA256 9355b4a3feb28c1399ee95a29fd089ed7cc34400a2ae0aaa4b34ea433887f00c SHA512 ed228943d4e70fc5799bbe7566b4fd862f2494f9d02bcd874f0d1b93d7bbc9a2c24a98fb5b8219fed20759bfe2af54d6ea33c60ddd8d8850e591a89822b41bb5 WHIRLPOOL a20dfc49be659ba4418cad4a5de7d287e5402aa56cdd6b8c801c1c2da83779acb51b7f31579d994afaf2ed3a4a956b8a6d7638224371e030917f02d941546fbb +EBUILD darwinia-1.3.0.ebuild 1397 SHA256 80165a3d47e29bb39cfa38625285c07367fc8e5b34639c5e67ebf772a41459f4 SHA512 833bd78495efcf2fca4c440ecae62c3779f15e1b63fc2a89768f9385ca11e9490207115ec5b3aab9e45fa3606aac77d1439a3cf0eae7c5b90df3406eaa912dcf WHIRLPOOL 542c247699c901614827095139e694d364d99a9af313fb4d208b6890f6ce6dbd8f2723909d321fc86046a837e6a557ad44bc1714256c449895714d870d425b94 +EBUILD darwinia-1.4.0_beta9.ebuild 1466 SHA256 5864ae4c3e826d3780e9e3dd77afa44c8540dd8715d01d49ec94a7e17e9df031 SHA512 095fc06955198e382c49ab81f8e5dec75b736f3c57ce2d30972f40550551f4f82f58f538da8c8b3df8533b038eee1c039a0497b5dc6ebc989107e8258ad5edf1 WHIRLPOOL 018b202de6e5c1f76515d16de6b0cb96519e04e9d10af2e2e858e90fa050edcfd123210c73e36d8e47444286dabf743bfe0697609d5c07263b7618bb45335335 +MISC ChangeLog 2502 SHA256 2ee1fa355b904d72ac4813b16b6de97493df3099f477dae226653d8d7b730f43 SHA512 d4a9525172859379a1bf585fa5c77702e878430f3a8f8c88e0da70c2b85f8d22faa88eada3083d22e36f71150be716751d53fc258d3edc6eca6729673d04b5c8 WHIRLPOOL b3a46e24e5420292199e06aaba49b9e1f95f405a3ed33e2a1de96f3a3a114c882fd82448dda7fba8e4c718d7bdb81feda98c7968706b8138b590b57cc9ddbea0 +MISC ChangeLog-2015 3050 SHA256 7f8c331e3cb453ba8fe4a1d0bafeea45a374d6a1a20b27c0a059e8d0c10de38a SHA512 05027f6cc6cd42d62873fc0a233ff82d9494ba64bde1362a5f03fb20813e5deca19b11449c35506bbc2c674ace3471612fe245306487250febef3a04fceaa329 WHIRLPOOL 5dd5ee3f75f75a23d1c292f047448ede15810c5407b516456bb3de68f545b72a93bc0ab09ae0877166dd69b772713c265520632286a06e437765ff39ba59c6e8 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/darwinia/darwinia-1.3.0.ebuild b/games-strategy/darwinia/darwinia-1.3.0.ebuild new file mode 100644 index 000000000000..330b8760ffe0 --- /dev/null +++ b/games-strategy/darwinia/darwinia-1.3.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +CDROM_OPTIONAL="yes" +inherit eutils unpacker cdrom games + +DESCRIPTION="the hyped indie game of the year. By the Uplink creators" +HOMEPAGE="http://www.darwinia.co.uk/support/linux.html" +SRC_URI="http://www.introversion.co.uk/darwinia/downloads/${PN}-full-${PV}.sh" + +LICENSE="Introversion" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="mirror strip" + +RDEPEND=" + ~virtual/libstdc++-3.3 + media-libs/libsdl[abi_x86_32(-)] + media-libs/libvorbis[abi_x86_32(-)] + virtual/glu[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)]" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/${PN} + +src_unpack() { + use cdinstall && cdrom_get_cds gamefiles/main.dat + unpack_makeself +} + +src_install() { + insinto "${dir}"/lib + exeinto "${dir}"/lib + + doins lib/{language,patch}.dat + doexe lib/darwinia.bin.x86 lib/open-www.sh + + exeinto "${dir}" + doexe bin/Linux/x86/darwinia + + if use cdinstall ; then + doins "${CDROM_ROOT}"/gamefiles/{main,sounds}.dat + fi + + dodoc README + newicon darwinian.png darwinia.png + + games_make_wrapper darwinia ./darwinia "${dir}" "${dir}" + make_desktop_entry darwinia "Darwinia" + prepgamesdirs +} + +pkg_postinst() { + if ! use cdinstall; then + ewarn "To play the game, you need to copy main.dat and sounds.dat" + ewarn "from gamefiles/ on the game CD to ${dir}/lib/." + fi + games_pkg_postinst +} diff --git a/games-strategy/darwinia/darwinia-1.4.0_beta9.ebuild b/games-strategy/darwinia/darwinia-1.4.0_beta9.ebuild new file mode 100644 index 000000000000..37781bd8245d --- /dev/null +++ b/games-strategy/darwinia/darwinia-1.4.0_beta9.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +CDROM_OPTIONAL="yes" +inherit eutils unpacker cdrom games + +MY_PV=${PV/_beta/b} +DESCRIPTION="the hyped indie game of the year. By the Uplink creators" +HOMEPAGE="http://www.darwinia.co.uk/support/linux.html" +SRC_URI="http://www.introversion.co.uk/darwinia/downloads/${PN}-full-${MY_PV}.sh" + +LICENSE="Introversion" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" +RESTRICT="mirror strip" + +RDEPEND=" + ~virtual/libstdc++-3.3 + media-libs/libsdl[abi_x86_32(-)] + media-libs/libvorbis[abi_x86_32(-)] + virtual/glu[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)]" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${dir:1}/lib/darwinia.bin.x86" + +src_unpack() { + use cdinstall && cdrom_get_cds gamefiles/main.dat + unpack_makeself +} + +src_install() { + insinto "${dir}"/lib + exeinto "${dir}"/lib + + doins lib/{language,patch}.dat + doexe lib/darwinia.bin.x86 lib/open-www.sh + + exeinto "${dir}" + doexe bin/Linux/x86/darwinia + + if use cdinstall ; then + doins "${CDROM_ROOT}"/gamefiles/{main,sounds}.dat + fi + + dodoc README + newicon darwinian.png darwinia.png + + games_make_wrapper darwinia ./darwinia "${dir}" "${dir}" + make_desktop_entry darwinia "Darwinia" + prepgamesdirs +} + +pkg_postinst() { + if ! use cdinstall; then + ewarn "To play the game, you need to copy main.dat and sounds.dat" + ewarn "from gamefiles/ on the game CD to ${dir}/lib/." + fi + games_pkg_postinst +} diff --git a/games-strategy/darwinia/metadata.xml b/games-strategy/darwinia/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/darwinia/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/defcon-demo/Manifest b/games-strategy/defcon-demo/Manifest new file mode 100644 index 000000000000..d4c7af13d7af --- /dev/null +++ b/games-strategy/defcon-demo/Manifest @@ -0,0 +1,8 @@ +AUX defcon 400 SHA256 132840e1a669b6e5fc31eb3ad67bc2e95f0b34970a25e1b9fae13578cdf933d1 SHA512 d417fcf9560a3b3a7232e3c86b4315f0de6ed86ce8263348520910ff6bc1d14e649f31d500f52c70c2be655836261219ca9dce4f8df9a32d5ca2b00421667058 WHIRLPOOL e6cc0a31324cfc965cc9279a8bd7d43d5ddd52393786aeb9c244ec9bcfec14c375b436cca14abbd47342a96f73248a57e596cc7e185ed4b534433feff8828dea +DIST defcon_1.6-1_amd64.deb 62377900 SHA256 52142cf3684f054f2449bb0dae96a3b9e0a9d5bb003ea479b25f8a55daffcb26 SHA512 b71aacc3cd94eec8f1ea19ee03d8098fcdd96191c12d614f55076826ef0bb44c8ada66dfd3df7d94d042b33bdd8fa5f0f58e69fc980d6213c320ab4ce2d682a9 WHIRLPOOL 8c9813764b412f4b2d2f1d75530e60800e49b98668bce11e931d898404ec10d45bc42e3c5478154b696c41b9dff93bcb0c72817ece38aedb50cc11bbc53265f1 +DIST defcon_1.6-1_i386.deb 62311684 SHA256 e61f1ebe93eaf821b6313b37e080a76a9444c2c46afc8e2386a0f2b644b8d1d3 SHA512 0e60e8fbca2f3046228b656990e3adb471de4f64a99d435c96b1e5a8cc49b1250c48ceeb19a4bcb58354e750398de2559256d26a38b20286dec3c0ce7f97ebb8 WHIRLPOOL 0d5fed7be50abaa2dd29434aae986bb63851a208f394b950a55c89d02cc36faf571209730641842a7af1cde0f33501cd6cb0dcb33c8287ef591d5675c67d3cbe +EBUILD defcon-demo-1.60-r1.ebuild 2178 SHA256 3026f4fd1e0e9849188bf33cb0114e2b754c22abb38c305a871703e1856312d5 SHA512 76deacb77ad8d5959a750bc74e71cd30d16b70394065879ea34ad7c0eb39204e7326e5efc777928b9544ad68e50534bb76ddcf605c2263b137dfea9c345f7dae WHIRLPOOL 422b4955003513ad98ae9505de15bde94d49bd311bffa3868d9935f157b581e23a7ffee1a30bf0a6dcbd36440bc191ead1ca7f3979a987d3235305d0acc6b98e +EBUILD defcon-demo-1.60.ebuild 2277 SHA256 54bd697b6a5729ab2ad13e10675e9c88bc29085c81b5da58e53e4e881fcd2caa SHA512 40ebf679cd1ef98dfac3f2219c16d5d1c486673d752c0649437ffe6fa1ba8ec0e7897ce20dae43921ed5652822cba4708be96533bda2a1ac20b0437798d47f2f WHIRLPOOL ea1654080412641ad25a2f0551008eb26ecb545fca9959214f870f20f99c243b1d07cddca08e97e0403a59f26eb824d261084ebefe6d8aaa8bdca73c7e435d52 +MISC ChangeLog 2719 SHA256 69d4f7575e12a2f44f35d49cd970cee92384704f42f208d854e0a0a26977ac90 SHA512 c84ad6dd2f9915ea13e2c3c11abc0af562e3233bbdda954aa8c8cb730adbe9ef1ff53aa8397b85006b80413377937caa61b8c7482c98259d54a376f1a8f8ee13 WHIRLPOOL 32051f369cf2b5802274526d98d8ccbbb488f6877f8a5130f1e9c34167053aa87449e0bbc0def694dabe7a00f9ce25d4ca646882822a284aaab5757e4e7fdba9 +MISC ChangeLog-2015 1244 SHA256 9ec5dccb675ca654cba02db18db69d494bb43e94bfe83aa77aa59402bf9bc5b6 SHA512 342a237cb70dd6f5195548769f7f1fdfd801607e1616a288f029a23d0385a217b9ab0a04d36f3f18dd7be46dafc9c51b4206bd4921d00e946b164770d1b349b1 WHIRLPOOL 2b61884e90b27adf508582941d188bcbd00072e9768bc609e53b30f07625b66321692181abb312a3bdc05f7c7e6e1219ce5f8ad30720de7f6696005179863d9c +MISC metadata.xml 390 SHA256 ad3dedcf03e5e1bf2e2007bba0f9ea119071066bcb56f9d7bb14b9073a941733 SHA512 afc01361f043a0267f09fc1a83571ade9a3cb3633744ff18e5b5c5f14ac061b5e9d6876c0b3805664a8321a6572bb6c2c3c1f3f0d9f0762d306b80a1b517ea5b WHIRLPOOL 07d1f82b8bebaa1eecd95192968b266cf7c64473bee701f2a8e0765c4ad62ca7824a78fa7a4a7406b3eea592eb8ec07e467781cd57df8a9005021fbb197cd7c3 diff --git a/games-strategy/defcon-demo/defcon-demo-1.60-r1.ebuild b/games-strategy/defcon-demo/defcon-demo-1.60-r1.ebuild new file mode 100644 index 000000000000..486a654236bb --- /dev/null +++ b/games-strategy/defcon-demo/defcon-demo-1.60-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils toolchain-funcs gnome2-utils + +MY_PN=defcon +MY_PV=${PV:0:3} +MY_PVR=1 +MY_P=defcon_${MY_PV}-${MY_PVR} + +DESCRIPTION="Global thermonuclear war simulation with multiplayer support" +HOMEPAGE="http://www.introversion.co.uk/defcon/" +SRC_URI="x86? ( http://www.introversion.co.uk/defcon/downloads/${MY_P}_i386.deb ) + amd64? ( http://www.introversion.co.uk/defcon/downloads/${MY_P}_amd64.deb )" + +LICENSE="Introversion" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="+system-libs" +RESTRICT="mirror strip" + +# glibc discussion: +# http://forums.introversion.co.uk/defcon/viewtopic.php?t=4016 +RDEPEND=" + media-libs/libogg + media-libs/libvorbis + >=sys-libs/glibc-2.3 + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext + system-libs? ( media-libs/libsdl[sound,video] )" +DEPEND="" + +QA_PREBUILT="/opt/${PN}/lib/${MY_PN}.bin.x86" + +S="${WORKDIR}/usr/local/games/${MY_PN}" + +src_unpack() { + default + unpack ./data.tar.gz + + cd "${S}" || die + # maintain compatibility with old installation/script + [[ -e lib64 ]] && { mv lib64 lib || die ;} + [[ -e ${MY_PN}.bin.x86_64 ]] && { mv ${MY_PN}.bin.x86_64 ${MY_PN}.bin.x86 || die ;} +} + +src_prepare() { + default + + # FindPath scripts are ugly and unnecessary + if use system-libs ; then + rm -f lib/lib* + fi + sed \ + -e "s:GAMEDIR:/opt/${PN}:g" \ + "${FILESDIR}"/${MY_PN} > "${T}"/${MY_PN} || die + echo "int chdir(const char *d) { return 0; }" > chdir.c || die +} + +src_compile() { + echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS} -fPIC -shared -o lib/chdir.so chdir.c" + $(tc-getCC) ${CFLAGS} ${LDFLAGS} -fPIC -shared -o lib/chdir.so chdir.c || die +} + +src_install() { + local dir="/opt/${PN}" + + insinto "${dir}/lib" + doins *.dat + + exeinto "${dir}"/lib + doexe lib/*.so + doexe ${MY_PN}.bin.x86 + + doicon -s 128 ${MY_PN}.png + + # Can be upgraded to full version, so is not installed as "demo" + dobin "${T}"/${MY_PN} + make_desktop_entry ${MY_PN} "Defcon" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + elog "Screenshots will appear in ~/.${MY_PN}/lib" +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/defcon-demo/defcon-demo-1.60.ebuild b/games-strategy/defcon-demo/defcon-demo-1.60.ebuild new file mode 100644 index 000000000000..8dde409344d1 --- /dev/null +++ b/games-strategy/defcon-demo/defcon-demo-1.60.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs gnome2-utils games + +MY_PN=defcon +MY_PV=${PV:0:3} +MY_PVR=1 +MY_P=defcon_${MY_PV}-${MY_PVR} + +DESCRIPTION="Global thermonuclear war simulation with multiplayer support" +HOMEPAGE="http://www.introversion.co.uk/defcon/" +SRC_URI="x86? ( http://www.introversion.co.uk/defcon/downloads/${MY_P}_i386.deb ) + amd64? ( http://www.introversion.co.uk/defcon/downloads/${MY_P}_amd64.deb )" + +LICENSE="Introversion" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="+system-libs" +RESTRICT="mirror strip" + +# glibc discussion: +# http://forums.introversion.co.uk/defcon/viewtopic.php?t=4016 +RDEPEND=" + media-libs/libogg + media-libs/libvorbis + >=sys-libs/glibc-2.3 + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXext + x11-libs/libXdmcp + system-libs? ( media-libs/libsdl[sound,video] )" +DEPEND="" + +QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/lib/${MY_PN}.bin.x86" + +S=${WORKDIR}/usr/local/games/${MY_PN} + +src_unpack() { + default + unpack ./data.tar.gz + + cd "${S}" || die + # maintain compatibility with old installation/script + [[ -e lib64 ]] && { mv lib64 lib || die ;} + [[ -e ${MY_PN}.bin.x86_64 ]] && { mv ${MY_PN}.bin.x86_64 ${MY_PN}.bin.x86 || die ;} +} + +src_prepare() { + # FindPath scripts are ugly and unnecessary + if use system-libs ; then + rm -f lib/lib* + fi + sed \ + -e "s:GAMEDIR:${GAMES_PREFIX_OPT}/${PN}:g" \ + "${FILESDIR}"/${MY_PN} > "${T}"/${MY_PN} || die + echo "int chdir(const char *d) { return 0; }" > chdir.c || die +} + +src_compile() { + echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS} -fPIC -shared -o lib/chdir.so chdir.c" + $(tc-getCC) ${CFLAGS} ${LDFLAGS} -fPIC -shared -o lib/chdir.so chdir.c || die +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + + insinto "${dir}/lib" + doins *.dat + + exeinto "${dir}"/lib + doexe lib/*.so + doexe ${MY_PN}.bin.x86 + + doicon -s 128 ${MY_PN}.png + + # Can be upgraded to full version, so is not installed as "demo" + dogamesbin "${T}"/${MY_PN} + make_desktop_entry ${MY_PN} "Defcon" + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + elog "Screenshots will appear in ~/.${MY_PN}/lib" +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/defcon-demo/files/defcon b/games-strategy/defcon-demo/files/defcon new file mode 100644 index 000000000000..6e9dd3b5307c --- /dev/null +++ b/games-strategy/defcon-demo/files/defcon @@ -0,0 +1,15 @@ +#!/bin/sh +if [ -n "GAMEDIR/lib" ] ; then + if [ "${LD_LIBRARY_PATH+set}" = "set" ] ; then + export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:GAMEDIR/lib" + else + export LD_LIBRARY_PATH="GAMEDIR/lib" + fi +fi +if [[ ! -e ~/.defcon/lib ]] ; then + mkdir -p ~/.defcon/lib \ + && cd ~/.defcon/lib \ + && ln -s "GAMEDIR"/lib/* . +fi +cd ~/.defcon/lib +LD_PRELOAD="GAMEDIR/lib/chdir.so" exec ./defcon.bin.x86 "$@" diff --git a/games-strategy/defcon-demo/metadata.xml b/games-strategy/defcon-demo/metadata.xml new file mode 100644 index 000000000000..6e48df8a7f4f --- /dev/null +++ b/games-strategy/defcon-demo/metadata.xml @@ -0,0 +1,11 @@ +<?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="system-libs">Use system libraries instead of the ones included in the upstream distribution.</flag> + </use> +</pkgmetadata> diff --git a/games-strategy/dominions2/Manifest b/games-strategy/dominions2/Manifest new file mode 100644 index 000000000000..a4ff5861a35a --- /dev/null +++ b/games-strategy/dominions2/Manifest @@ -0,0 +1,9 @@ +DIST DOM2_Walkthrough.pdf 549897 SHA256 f6a3400f3fe03b89f23ec8c4492561bd58c684790f99669de0d7f1d08ff31855 SHA512 cc73bd7e95d8ce1528196f00d91d88a018b88471edade76672feb53b6ff728c9cc5f02e333312533a72842186833669ec290abffa8f51feb15e224b455987b39 WHIRLPOOL d79588e97e9c563f6ea52ef043b4e194e6e9efacffc48d32b5c0834e08e482eeeb6bc9052bb0efef4f0f3689be3f7b63499be74fce4119e49a09001f8d4039af +DIST dominions2.png 1135 SHA256 530479327df7f2940a28eabb09217350fcc6009d0e81a9078d09d6b6515f6dc4 SHA512 1241c64a4acdd4740cc9440ba286b595c2e00a41182c014ef06b7184c3991f2df44e4677f3408b28cd25f928337a60c1e2859486c057ee3bdd393fb99b8d347f WHIRLPOOL 31c22cfa1ad318e70e0d81140854d990cd0b9ce448dc562f38ba5f655519ced2ff527939c361b51e5f8b5fe0e65d8790b711ea180be1ab7e7d98ae01be258f66 +DIST dompatch216_linux_ppc.tgz 1982323 SHA256 224e1cd46d8078798f185ca956a137fdf3b76b339f49cc5b2f3304d553ea0ad9 SHA512 6b1ff8b5a041c42193b8f369ee0ff242048fd589ffd9b610628a7bf7a0d159fe6e590b04b914ecbf3b94ef2b94a66a062be84d595777127d8f11311fa92c3ae9 WHIRLPOOL 8f2f35576026a7e88b90c912ee60cd2e39ffbfb7db228b0c5589d58f9988b3e9dfbc96551822649a03cbabf8efd7ff9697dfceb4f5ed8818a2bc07b6c318165c +DIST dompatch216_linux_x86.tgz 1892714 SHA256 19efb6b3db9fdfdf752ac53dd4352df990b95f84a37cfc61f729ce77ae142dc1 SHA512 9bb2a024235585181f91d8414c07ce8c490fed5ddab9d25817b7ea01618f0f2cf8714fb39a4406abe88e25b354f14ba1ef2db79c39d4c30b4e399d1b60477c2d WHIRLPOOL 8fcdcc98e43d8392dd38b6bb1300a08eeff4782dd567d47b5471d4363a492b1eb90d6f3c589a8a768100df92d820da8cd3d9d1360cfebc671268663bf232a27b +DIST manual_addenda.pdf 192454 SHA256 ecbed702d1dae4ef2a08a33d03fb4b92aec8cd39df48ac085ed2748dcd159ab4 SHA512 ec582e9685edf7164ba8e7c6c99880b30c8a6737d2d339eec2642196abd175857bfef2e1ea3da3ccb0110d441c477c8fad64d47fbb8b1aa39b405484eb548443 WHIRLPOOL de3a675380ab67329cb94b8d0c9669c57a855bf3f36f04dcd6d3c7b596dcef0c79f5943ffd9c8aaf3b83bc729368f0d463059934d720a216962a0f6770cf2424 +EBUILD dominions2-2.16.ebuild 2650 SHA256 da97575030cd2ed5c8e6b35e56fe57b64c77b3feccdd8d4c6a822697f9a417cc SHA512 3350412fb2f8679d591441320e6139fd83bde6e74e6ee0ee7c76a6f720b67c30ba59ee85b8bebdb6af7e6c22c53ab71a29eff8461c08f884d150412c08ff6e01 WHIRLPOOL 4fdfeee4ce225b829d2d2f8c4878d9760e20aff63dfefe6ca1080e7737b47dfd26cb67413fd962244718f775dc74997d0bda032bfd00696788adf84fe86be350 +MISC ChangeLog 2440 SHA256 db02cee57c6ebd9e91834d13b0fb673b4a106fe578b381255c3788c2120d79d6 SHA512 26589b8b32ce853031f58249e3022cbda4b4244031e7848711d1a73e91a4ccbf5527d536412df830bf8ad7a371b0b7a2e8c2a5b5079022333ccd87b415b9b6f5 WHIRLPOOL 09ee50e14bb4590356c4dcdb898cad1caf999314be80e7d71fe2a2387cbb10149d4ff211bcc73a71d2ee05f505eaad6e363ff5f8d6bed05c0e3a71272656eb30 +MISC ChangeLog-2015 1987 SHA256 3a0ca5c0bb5c7a64f247644c48b0e1079b425309ac22c03bb4db169635fb2033 SHA512 c2b12c05c3c6681cd08efb5ff78a7e5b16d29b54c416a38f10473f21fa6c5bf5f7605f2fdee6f2aee27877062879321a6ac61d27bf899ae48f646bc9c5aa971a WHIRLPOOL b1570de6690626f1d2b48673048ce438fb532f31b4273270579e88f5f5f9d663a040d895deff9893707bf950d2ebf5169265d610b757b37f173e2a583749aa7e +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/dominions2/dominions2-2.16.ebuild b/games-strategy/dominions2/dominions2-2.16.ebuild new file mode 100644 index 000000000000..eca8acd9d25d --- /dev/null +++ b/games-strategy/dominions2/dominions2-2.16.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils cdrom games + +DESCRIPTION="Dominions 2: The Ascension Wars is an epic turn-based fantasy strategy game" +HOMEPAGE="http://www.illwinter.com/dom2/index.html" +SRC_URI="x86? ( + http://www.shrapnelgames.com/downloads/dompatch${PV/\./}_linux_x86.tgz ) + amd64? ( + http://www.shrapnelgames.com/downloads/dompatch${PV/\./}_linux_x86.tgz ) + ppc? ( + http://www.shrapnelgames.com/downloads/dompatch${PV/\./}_linux_ppc.tgz ) + doc? ( http://www.shrapnelgames.com/downloads/DOM2_Walkthrough.pdf + http://www.shrapnelgames.com/downloads/manual_addenda.pdf ) + mirror://gentoo/${PN}.png" + +# I am not sure what license applies to Dominions II and I couldn't find +# further information on their homepage or on the game CD :( +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" +RESTRICT="bindist strip" + +RDEPEND=" + || ( + ppc? ( + media-libs/libsdl + virtual/opengl + virtual/glu + ) + !ppc? ( + media-libs/libsdl[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)] + virtual/glu[abi_x86_32(-)] + ) + )" + +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +src_unpack() { + mkdir -p "${S}"/patch || die + cd "${S}"/patch || die + if use x86 || use amd64 ; then + unpack dompatch${PV/\./}_linux_x86.tgz + elif use ppc ; then + unpack dompatch${PV/\./}_linux_ppc.tgz + fi +} + +src_install() { + cdrom_get_cds dom2icon.ico + einfo "Copying files to harddisk... this may take a while..." + + exeinto "${dir}" + if use amd64 || use x86 ; then + doexe "${CDROM_ROOT}"/bin_lin/x86/dom2* + elif use ppc ; then + doexe "${CDROM_ROOT}"/bin_lin/ppc/dom2* + fi + insinto "${dir}" + doins -r "${CDROM_ROOT}"/dominions2.app/Contents/Resources/* + dodoc "${CDROM_ROOT}"/doc/* + + # applying the official patches just means overwriting some important + # files with their more recent versions: + einfo "Applying patch for version ${PV}..." + dodoc "${S}"/patch/doc/* + doexe "${S}"/patch/dom2 + rm -rf "${S}"/patch/doc/ "${S}"/patch/dom2 || die + doins -r "${S}"/patch/* + + if use doc; then + elog "" + elog "Installing extra documentation to '/usr/share/doc/${P}'" + elog "" + elog "You may want to study 'DOM2_Walkthrough.pdf' carefully if" + elog "you are new to Dominions II." + elog "" + dodoc "${DISTDIR}"/{DOM2_Walkthrough,manual_addenda}.pdf + fi + + doicon "${DISTDIR}"/${PN}.png + + # update times + find "${D}" -exec touch '{}' \; + + games_make_wrapper dominions2 ./dom2 "${dir}" "${dir}" + make_desktop_entry dominions2 "Dominions II" dominions2 + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "To play the game run:" + elog " dominions2" + echo +} diff --git a/games-strategy/dominions2/metadata.xml b/games-strategy/dominions2/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/dominions2/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/dopewars/Manifest b/games-strategy/dopewars/Manifest new file mode 100644 index 000000000000..15cb5b436e3c --- /dev/null +++ b/games-strategy/dopewars/Manifest @@ -0,0 +1,6 @@ +AUX dopewars-1.5.12-CVE-2009-3591.patch 714 SHA256 3de0776643b449d908dda43bb7e246a06da5ab8e81396974cb03a81bc8d9fca5 SHA512 3175d69c55843bc21f619d1df045796f39413f8d0cf27274464d68779518867576bd880b45b8760f2ee13e33a77f84dc97dd1308fa82d4e77a43890384f4d78e WHIRLPOOL 4964fada45041b2b13dc72a0075d6923cebea6c331dc83fae222d336adb662c7d4156caa92f8642732e83495f16dcea637239aa38104339891c0be0c864f1462 +DIST dopewars-1.5.12.tar.gz 1419725 SHA256 23059dcdea96c6072b148ee21d76237ef3535e5be90b3b2d8239d150feee0c19 SHA512 cfabaf9326c847aed6210a852ace64c697df5845a66b3179b8dc8dea7b99a11e1f91358d4ee54929a56c70d5f3a76f9f7bb4079fdef765601f165b4cd06cba5a WHIRLPOOL db9e64f9694fbb0b2ebfd78cf76af6c7cdf9151003f55f595f6bc36bdbf45508c4ff43d133c09a304c0cd7c436c97203ce93b6373f8e6583d7d4367764f88ddb +EBUILD dopewars-1.5.12-r2.ebuild 1554 SHA256 6ddcfe02740a0256e3dbfb3bc04b89aedaca369b0607e628a196af3c5f9cba29 SHA512 81e9b25b954d389b8507d4900886eb49c4e3ae85dcd068030215da8e88105f425eced25d5c92ea0e935546c641b4106186ba484f9b56e132d171ddf9851096cb WHIRLPOOL d306797be1936d7c10cf41797fd836910e27ca3cd96a03180dbc72e2333dfed133b83016149e767f15862f2e487c307e171f40e0d9ad5c185aa39142484e3870 +MISC ChangeLog 2646 SHA256 c30ac40fb07c2fe1096cd9dfa712a1c6d17bdaa6e8d4b1b9c88f8f3eea42cc83 SHA512 cb1093c9dc0ed64f3ae76a1ea48c90d09faaa167d5e0d25842313a38ac144095fce91d0d94e0c7a59262dcb354c9f7d5b2feaccba90a0fdd12c7979d45b3deb2 WHIRLPOOL 10c8415a638a7a159537d0a1f13fc589b02b9ead50ea167853e667ee9110cf4f8e3134321dfacaa8748f958e6311591f9c10a04f0dfb2190965243fc89421712 +MISC ChangeLog-2015 6018 SHA256 ba00cf600a3d6d3bcd93d923082e75ef3a0a60840976930c8344d75f8bc24b77 SHA512 ef51cf6d2e0378273929a87282c120b2bf0de0f47f6f9c0882e67a81c1e1384af935a9f5edfecab1bff5325e15b62ded04afcc2370a131a793ebf32fcfe7e47f WHIRLPOOL 12579a4bcde83edac2da222aa9cf796326ec7aa8e94cac9c0649160a681989f7ad33ff55e4063c8f468353c721650f66026df1001020505efc455049e60b80fe +MISC metadata.xml 331 SHA256 17d08464b1be46d071f404aba43faa62afd677751d596cdf7eca15f0f047a49f SHA512 26259f05b18c933c638d693805a106d26288c96ba220a719d8ec12d65b28c9abdb1d120694d31c07194282081e92dd83522e936771ab71e2ce86ea12d629d5b4 WHIRLPOOL bc57a38e8736c34922579c4cbed2445c63fbfb81dbca97994a7557ad635409138d67b1f739b9b850025bf714c87f832f4225da434dd9eecc5563bde158e82c25 diff --git a/games-strategy/dopewars/dopewars-1.5.12-r2.ebuild b/games-strategy/dopewars/dopewars-1.5.12-r2.ebuild new file mode 100644 index 000000000000..8f146a04be38 --- /dev/null +++ b/games-strategy/dopewars/dopewars-1.5.12-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="Re-Write of the game Drug Wars" +HOMEPAGE="http://dopewars.sourceforge.net/" +SRC_URI="mirror://sourceforge/dopewars/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nls ncurses gtk gnome sdl" + +RDEPEND="ncurses? ( >=sys-libs/ncurses-5.2:0 ) + gtk? ( x11-libs/gtk+:2 ) + dev-libs/glib:2 + nls? ( virtual/libintl ) + sdl? ( + media-libs/libsdl + media-libs/sdl-mixer + )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-CVE-2009-3591.patch + sed -i \ + -e "/priv_hiscore/ s:DPDATADIR:\"${GAMES_STATEDIR}\":" \ + -e "/\/doc\// s:DPDATADIR:\"/usr/share\":" \ + -e 's:index.html:html/index.html:' \ + src/dopewars.c || die +} + +src_configure() { + local myservconf + + if ! use gtk ; then + myservconf="--disable-gui-client --disable-gui-server --disable-glibtest --disable-gtktest" + fi + + egamesconf \ + --disable-dependency-tracking \ + $(use_enable ncurses curses-client) \ + $(use_enable nls) \ + $(use_with sdl) \ + --without-esd \ + --enable-networking \ + --enable-plugins \ + ${myservconf} +} + +src_install() { + default + + dodir /usr/share + if use gnome ; then + mv "${D}/${GAMES_DATADIR}"/gnome "${D}/usr/share" || die + else + rm -r "${D}/${GAMES_DATADIR}"/gnome || die + fi + mv "${D}/${GAMES_DATADIR}"/pixmaps "${D}/usr/share" || die + dohtml -r "${D}/${GAMES_DATADIR}"/doc/*/* + rm -r "${D}/${GAMES_DATADIR}"/doc || die + + prepgamesdirs +} diff --git a/games-strategy/dopewars/files/dopewars-1.5.12-CVE-2009-3591.patch b/games-strategy/dopewars/files/dopewars-1.5.12-CVE-2009-3591.patch new file mode 100644 index 000000000000..d657bf8744f1 --- /dev/null +++ b/games-strategy/dopewars/files/dopewars-1.5.12-CVE-2009-3591.patch @@ -0,0 +1,20 @@ +Patch for CVE-2009-3591 -- bug 288295. + +Fetched from upstream SVN: +http://dopewars.svn.sourceforge.net/viewvc/dopewars/dopewars/trunk/src/serverside.c?r1=1033&r2=1032&pathrev=1033 + +--- dopewars/trunk/src/serverside.c 2009/03/10 07:18:49 1032 ++++ dopewars/trunk/src/serverside.c 2009/10/05 04:11:32 1033 +@@ -504,6 +504,12 @@ + break; + case C_REQUESTJET: + i = atoi(Data); ++ /* Make sure value is within range */ ++ if (i < 0 || i >= NumLocation) { ++ dopelog(3, LF_SERVER, _("%s: DENIED jet to invalid location %s"), ++ GetPlayerName(Play), Data); ++ break; ++ } + if (Play->EventNum == E_FIGHT || Play->EventNum == E_FIGHTASK) { + if (CanRunHere(Play)) { + break; diff --git a/games-strategy/dopewars/metadata.xml b/games-strategy/dopewars/metadata.xml new file mode 100644 index 000000000000..17b7414b8c0f --- /dev/null +++ b/games-strategy/dopewars/metadata.xml @@ -0,0 +1,11 @@ +<?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">dopewars</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/dunelegacy/Manifest b/games-strategy/dunelegacy/Manifest new file mode 100644 index 000000000000..be330389f05d --- /dev/null +++ b/games-strategy/dunelegacy/Manifest @@ -0,0 +1,7 @@ +AUX dunelegacy-0.96.3-build.patch 1942 SHA256 3e95bdfbe3ec02b782dbc002f3ce22ff21536f124fb58faa470dccaea1f64230 SHA512 fa3ffaa26ba1d85bc65d646347ef9c725bfb4f8b7e78c3ca13429356def201bb255d31c6ec684ca99dd0928bf9a3b83af547a7cb865ba1c2475ce03401fa91bb WHIRLPOOL 48d8b5b62098f43088482b9e0d7285fe35431382e8ac8105a103622de8a4ca81f6c07bb8c75da02af2571da5d79140eecb68d9159b8adbbe9ca3762260cd4951 +DIST dunelegacy-0.96.3-no-autoreconf.patch.xz 8908 SHA256 fae291f43c01bcf6af437602738b506631a1f0aea2b680912ffb5e1280507975 SHA512 fc17c771a19611057b2990b76eda0eea08e011dcac455bdf7e26bba1f2e2aa6cec120f2dcbce488a2318553f9e58b4a2b5ea24c7e1e27ada9ec5740f2b66ca4c WHIRLPOOL 707abf066efbaafd95063aca23d1cdfdd6c5b01f16b5d0952b8cb4f765d08dcd0316c8876522c7bfdd476801dd1b0eab7aa0069ae0cd5bbe78118de50810d40c +DIST dunelegacy-0.96.3-src.tar.bz2 1652302 SHA256 677159c174d9f9e8eb20e5e5cec997decf8e5a7091dc1583dc23fe340c5f6222 SHA512 c84281b44bdac4eec360d90e2f23aa75468cf08c6edd6a5002c539e609312fd39e3284518ef5498201f2b0433d11cf2478cd13a2159af7c6bbef326e680fa241 WHIRLPOOL a90330135e74ee2875c18f8696aee9598cee07e185d6f7759f180d9934e5e063e0a5b449644e2744d8e480e9be35bb93277d71d0a021f3dccb0541540ef84439 +EBUILD dunelegacy-0.96.3.ebuild 1390 SHA256 85d634fb662e2d1b1399f872186b9d5553e937f04f00d294e2fca4d73252a775 SHA512 85114065f846036893f651361da3277a90f1a3a5989f3fa631c0b4b83a90237b485ccee6b72eac3453ed8112d5027c50d14192f8a650ecb1adc8c3cd242d446e WHIRLPOOL 36736afff565dce1c773abdd3c1bf9ce3ecb468a02a2ce39b30a635a36fd3b6b2d41d42c38217b796146ce9f795ea2f941f774d519791835c73d64517a0a04f5 +MISC ChangeLog 2616 SHA256 8b0e17a0320a7dc74f97cf7dbfefffb93dfb6f42ff6cb743316e469b30940209 SHA512 32d20d71a200e3252f16ca8c907178566a1fb0bdde3c74d73a89725e99682fc4c69977c5da107830935781cc7541c40cd0e28af6ccb0c62ccd2c7bd423d84c07 WHIRLPOOL 7437f5672a831508a1c0ca874267f86b412fbba1818dbc121b0586f1b2a6cdd9a43f8c319274ac59c5868b3d744ed2d16184712ce8ba082d5d68ecb2f5a58a75 +MISC ChangeLog-2015 2182 SHA256 078988f2c83c681a22d8ae7ec391a9d80a5ba8826bc318a467d440d47407ceaf SHA512 28e181c6e5755fee70f25b713c5b545582edf45cd39488beb1832c1eb6a6bc9256080b06515011f96626eed34306508ec9f263d2a4cf704cac13ff7c1b02bdfd WHIRLPOOL cd3a4835b25c38b0fc643836756201cf919fe739f76c7ba6195d0891a31d564fc5003e8ad5bc2823ea024bd2cbae158fc78e1d41cb98c6ea00308417fedd0c05 +MISC metadata.xml 1103 SHA256 c193643f33cf499c953608732ac76e221e14afdb0820f8948cd9216139fbe87c SHA512 de8920f2cb074e969cb3b8310bf2fb111c52c90a2675833fdefc895cafac79091cee0696b52a40065cd81289d80796cb0b0e40bd8db0e349ba92ec180091edcb WHIRLPOOL 3921a324432a2d40a596be656ee552e3da17ddc3edd6dfb3a5afe50103ff095992d294ea0a4a7361e2b487a0d2d433caab6d10800d1de3de9b68386818a9eeae diff --git a/games-strategy/dunelegacy/dunelegacy-0.96.3.ebuild b/games-strategy/dunelegacy/dunelegacy-0.96.3.ebuild new file mode 100644 index 000000000000..53ca22069a6f --- /dev/null +++ b/games-strategy/dunelegacy/dunelegacy-0.96.3.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# do not use autotools related stuff in stable ebuilds +# unless you like random breakage: 469796, 469798, 424041 + +EAPI=5 +inherit eutils gnome2-utils games # STABLE ARCH +#inherit autotools eutils gnome2-utils games # UNSTABLE ARCH + +DESCRIPTION="Updated clone of Westood Studios' Dune2" +HOMEPAGE="http://dunelegacy.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2" +SRC_URI="${SRC_URI} https://dev.gentoo.org/~hasufell/distfiles/${P}-no-autoreconf.patch.xz" # STABLE ARCH + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="+alsa pulseaudio" + +RDEPEND="media-libs/libsdl[X,alsa?,sound,pulseaudio?,video] + media-libs/sdl-mixer[midi,mp3,vorbis]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +# exits on start without libsdl[alsa] or libsdl[pulseaudio] +REQUIRED_USE="|| ( alsa pulseaudio )" + +src_prepare() { + epatch "${DISTDIR}"/${P}-no-autoreconf.patch.xz # STABLE ARCH +# epatch "${FILESDIR}"/${P}-build.patch # UNSTABLE ARCH +# eautoreconf # UNSTABLE ARCH +} + +src_install() { + default + + doicon -s scalable ${PN}.svg + doicon -s 48 ${PN}.png + make_desktop_entry ${PN} "Dune Legacy" + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/dunelegacy/files/dunelegacy-0.96.3-build.patch b/games-strategy/dunelegacy/files/dunelegacy-0.96.3-build.patch new file mode 100644 index 000000000000..93dd907738bc --- /dev/null +++ b/games-strategy/dunelegacy/files/dunelegacy-0.96.3-build.patch @@ -0,0 +1,60 @@ +Author: hasufell <hasufell@gentoo.org> +Date: Thu Aug 9 18:57:40 2012 +0200 + + respect flags + use pkg-config + use LDADD instead of LDFLAGS for libs + +--- configure.ac ++++ configure.ac +@@ -16,14 +16,6 @@ + + AC_SUBST(dunelegacydatadir) + +-dnl Some flags for gcc +-CXXFLAGS="-O3 -pipe -pedantic -Wall -Wextra -Wno-unused-parameter -DNDEBUG" +-dnl Additional flags: -Wconversion -Wno-sign-conversion +- +-dnl Some flags for clang +-dnl CXXFLAGS="-O3 -pipe -pedantic -Weverything -Wno-sign-conversion -Wno-conversion -Wno-shadow -Wno-missing-noreturn -Wno-padded -Wno-packed -Wno-weak-vtables -Wno-c++11-narrowing -Wno-cast-align -Wno-unreachable-code -Wno-missing-prototypes -Wno-float-equal -Wno-global-constructors -Wno-exit-time-destructors -Wno-format-nonliteral -Wno-unused-macros -Wextra -Wno-unused-parameter" +- +- + dnl test for -ffp-contract=off (gcc >= 4.6) and use -mno-fused-madd instead + oldCFLAGS="$CFLAGS" + CFLAGS="-ffp-contract=off" +@@ -33,34 +25,14 @@ + ) + CFLAGS="$oldCFLAGS" + +-case "$target_cpu" in +-i*86) CXXFLAGS="$CXXFLAGS -mfpmath=sse -msse";; +-esac +- +-AC_ARG_ENABLE([debug], +- [AS_HELP_STRING([--enable-debug], +- [compile with debug information @<:@default=disabled@:>@])], +- [], +- []) +- +-if test "$enable_debug" = "yes" ; then +- CXXFLAGS="$CXXFLAGS -g" +-fi + + dnl Check for SDL library + SDL_VERSION=1.2.0 +-AM_PATH_SDL($SDL_VERSION, : , AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])) ++PKG_CHECK_MODULES([SDL], [sdl >= $SDL_VERSION SDL_mixer]) + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + +-dnl Check for SDL_mixer library. +-AC_CHECK_LIB(SDL_mixer, +- Mix_OpenAudio, +- LIBS="$LIBS -lSDL_mixer", +- AC_MSG_ERROR([*** SDL_mixer library not found!]) +-) +- + dnl enet defines + AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)]) + AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAS_GETHOSTBYNAME_R)]) diff --git a/games-strategy/dunelegacy/metadata.xml b/games-strategy/dunelegacy/metadata.xml new file mode 100644 index 000000000000..4dc56b2c71f1 --- /dev/null +++ b/games-strategy/dunelegacy/metadata.xml @@ -0,0 +1,25 @@ +<?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> + <bugs-to>https://sourceforge.net/apps/mediawiki/dunelegacy/index.php?title=Development/Reporting_Bugs</bugs-to> + <remote-id type="sourceforge">dunelegacy</remote-id> + </upstream> + <longdescription lang="en"> + Dune Legacy is an effort by a handful of developers to revitalize + the first-ever real-time strategy game. The original game was the + basis for the hugely successful Command and Conquer series, and the + gameplay has been replicated an extended to a wide variety of + storylines and series. + + Lead one of three interplanetary houses, Atreides, Harkonnen or + Ordos, in an attempt to harvest the largest amount of spice from + the sand dunes. Exchange your spice stockpiles for credits through + refinement and build an army capable of thwarting attempts of the + other houses to stop your harvesting! + </longdescription> +</pkgmetadata> diff --git a/games-strategy/endless-sky/Manifest b/games-strategy/endless-sky/Manifest new file mode 100644 index 000000000000..e4b5a45ca036 --- /dev/null +++ b/games-strategy/endless-sky/Manifest @@ -0,0 +1,6 @@ +DIST endless-sky-0.9.1.tar.gz 54138358 SHA256 ebfb5ae656dfbdebd312f83b71063bb5b9c966e7b884f98e109e993aa8c1dc5e SHA512 62d5a375c4580264c607799c427d917a76d5d1b987fcfb1efe77aa8fac5e3607d0c02da789368c539613bf255dfe0512b9c7e696bf4de8730c2dd6fecb971837 WHIRLPOOL 3bdbbbd1e605b8db2463a0c79e461a619bba60308ff78abfbac9ac3087dd505330afcc1cfef543f34e4a759537e7cf95f6d9c374153933bb457732e71c327960 +DIST endless-sky-0.9.6.tar.gz 71119557 SHA256 41699dabb72a276c96019d0714e54492866e29661f161052a1caf334332be1e4 SHA512 e8dbae856153246f68a3c7ba68fd33a15cf60908f65003f614269df6909ed8d7ad848b4add4ee071b295f58be92c532e6579982d3c20b83d9203b74077f90bae WHIRLPOOL 148e5a89a1386eef2f6d16d67eeda5b0f9197620aa36fdb849139c0a8dc9720ab3350e559d3c9e3299fde12bdf9a236c12d9ff1a2ce484851ff40b2948a6fdd2 +EBUILD endless-sky-0.9.1.ebuild 1366 SHA256 aa04324abe51f4109d8963ea19acaa8656655403a3f251a5e411238da8441370 SHA512 8680c24157ef77e269bdea7fbaa458a0e04e731646d186d258e7ce6d2e9524c4983012755cc5b85664993badcb742a5dcb3ff4d0080d8c8a2942cfc961ba19bc WHIRLPOOL 46cc62c80541ba571668976d9e1d2d58b6b1f0052684f5dd4614a9716290fd3cc21d2ed8c1acfbe8411433b55f1551b87a4ebc2e5577f3c0d3962e0bc7bf39d3 +EBUILD endless-sky-0.9.6.ebuild 1309 SHA256 32fa4ab00f16e4ba53242403eb1539a66dd609b3ef70e79e79b33a6caa259536 SHA512 4f3f4763d0c9160043f04a9486c921d9c7eada3258a4da07a61445bcb8c171ce746f9c03881149236e70e66aa96f10f113e1b884a34ae230f75cbf896c1e4e12 WHIRLPOOL 4744fa7a9f0896cd1bb31799e3cc93f2a0ef52f3e206459f28c1f0fff51a3f8627942fb41a567e52940ee765b91eb9f0c2f65977f30d207391f3c5a52049f7ff +MISC ChangeLog 2734 SHA256 f71703195cd45f13792aa037068eb12507ae4536d14c5c3cb17932fb1cc3bdb8 SHA512 6c34e8037bc1e8e623ed993de92d6265f665ac5315518740719452c896601d9404322619fa1abb6a6449e9d0fe1b808ab316f394f05c776ca4fb343b815eff09 WHIRLPOOL 50150f4e190e1947f96cb7a96ee4c74acb3adfffcc5740554e8f219c5392e450ccb849fc0f7268523e9fe6c8551bdb80ccdb09401e299da3da549338c10c3357 +MISC metadata.xml 956 SHA256 7c6e6093547e6c5757660e61aa1310abccb47de10115713d8d9be14246860eaa SHA512 828af411b4c40603ec22ed221014f1b4a66184c15eb125c22796a6976b1dc7a6adbf85560db0428384de8e6433d4ff0a7a7ef3a9efe577064a69bbeae7a9ccd9 WHIRLPOOL 032dd5c386cc2f4158105a478042f6332a36426c3c561dc3a5d8f0c762338224c3c9ada2e55f77fc7ad30c16eadf697a6423b2ecb177a760d8cb439de7e6fe34 diff --git a/games-strategy/endless-sky/endless-sky-0.9.1.ebuild b/games-strategy/endless-sky/endless-sky-0.9.1.ebuild new file mode 100644 index 000000000000..9d5709a78fc1 --- /dev/null +++ b/games-strategy/endless-sky/endless-sky-0.9.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils gnome2-utils scons-utils + +DESCRIPTION="Space exploration, trading & combat in the tradition of Terminal Velocity" +HOMEPAGE="https://endless-sky.github.io" +SRC_URI="https://github.com/endless-sky/endless-sky/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="CC-BY-SA-4.0 CC-BY-SA-3.0 GPL-3+ public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="media-libs/glew:0 + media-libs/libsdl2 + media-libs/libjpeg-turbo + media-libs/libpng:= + media-libs/openal + virtual/opengl" +DEPEND="${RDEPEND}" + +src_prepare() { + sed -i 's/"-std=c++0x", "-O3", "-Wall"/"-std=c++0x", "-Wall"/' SConstruct || die + sed -i 's#env.Install("$DESTDIR$PREFIX/games", sky)#env.Install("$DESTDIR$PREFIX/bin", sky)#g' SConstruct || die + eapply_user +} + +src_compile() { + escons +} + +src_install() { + escons PREFIX="${D}/usr/" install +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} + +pkg_postinst() { + einfo "Endless Sky provides high-res sprites for high-dpi screens." + einfo "If you want to use them, download" + einfo + einfo " https://github.com/endless-sky/endless-sky-high-dpi/releases" + einfo + einfo "and extract it to ~/.local/share/endless-sky/plugins/." + einfo + einfo " Enjoy." +} diff --git a/games-strategy/endless-sky/endless-sky-0.9.6.ebuild b/games-strategy/endless-sky/endless-sky-0.9.6.ebuild new file mode 100644 index 000000000000..e01d717396f9 --- /dev/null +++ b/games-strategy/endless-sky/endless-sky-0.9.6.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils gnome2-utils scons-utils + +DESCRIPTION="Space exploration, trading & combat in the tradition of Terminal Velocity" +HOMEPAGE="https://endless-sky.github.io" +SRC_URI="https://github.com/endless-sky/endless-sky/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="CC-BY-SA-4.0 CC-BY-SA-3.0 GPL-3+ public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="media-libs/glew:0 + media-libs/libsdl2 + media-libs/libjpeg-turbo + media-libs/libpng:= + media-libs/openal + virtual/opengl" +DEPEND="${RDEPEND}" + +src_prepare() { + sed -i 's/\(.*flags += \["\)-O3\("\]\)/\1\2/g' SConstruct || die + sed -i 's#env.Install("$DESTDIR$PREFIX/games", sky)#env.Install("$DESTDIR$PREFIX/bin", sky)#g' SConstruct || die + eapply_user +} + +src_compile() { + escons +} + +src_install() { + escons PREFIX="${D}/usr/" install +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} + +pkg_postinst() { + einfo "Endless Sky provides high-res sprites for high-dpi screens." + einfo "If you want to use them, download" + einfo + einfo " https://github.com/endless-sky/endless-sky-high-dpi/releases" + einfo + einfo "and extract it to ~/.local/share/endless-sky/plugins/." + einfo + einfo " Enjoy." +} diff --git a/games-strategy/endless-sky/metadata.xml b/games-strategy/endless-sky/metadata.xml new file mode 100644 index 000000000000..165e0a243efb --- /dev/null +++ b/games-strategy/endless-sky/metadata.xml @@ -0,0 +1,22 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tomboy64@sina.cn</email> + <name>Tommy Boy</name> + </maintainer> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + Explore other star systems. Earn money by trading, carrying passengers, or completing missions. Use your earnings to buy a better ship or to upgrade the weapons and engines on your current one. Blow up pirates. Take sides in a civil war. Or leave human space behind and hope to find some friendly aliens whose culture is more civilized than your own... + </longdescription> + <upstream> + <remote-id type="github">endless-sky/endless-sky</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/freeciv/Manifest b/games-strategy/freeciv/Manifest new file mode 100644 index 000000000000..946f98f01474 --- /dev/null +++ b/games-strategy/freeciv/Manifest @@ -0,0 +1,9 @@ +DIST freeciv-2.5.6.tar.bz2 41185678 SHA256 cfadc23eec11a5a8ae74a7d3719eb126026137f0700da065367fd55cbab6999b SHA512 85f87d73e7f9a74ff4fe71962481374b2e37a98574615fb94831af0b3d8c1e5c8bbee9a9bbb0223ff455ca46ead85f050f941fb97777c015d1d760d8468cb3db WHIRLPOOL a93bcf972226b65df1cbd33816949593f27bc12aea92abd00e94eaf6659682b59bc3019897e8917eacbf3e9ed88067fd261afc4374f72c392feb07e08ac02cc1 +DIST freeciv-2.5.7.tar.bz2 41200685 SHA256 ffe36736db6a64893681e9eea8b90f7abe05eaebe6b777e82149a98cad6dbed2 SHA512 09e286f3b9a1bbfe9f9e306c0c559f9d93a1e90a671f772061e600fa2b34ec31da0fe98977f7e6e213ea53af0a40f345734d16727850f10a427c515b5d10c0c1 WHIRLPOOL d084116f7425c31fdaca768dfb556bc5634e65103e5764fe71adf4e37e2eea0ceb80ac4922c90c80283e1931c77a8213ebddd858d7da7db2d9a88f72d8851c8b +DIST freeciv-2.5.9.tar.bz2 41176249 SHA256 b83c73585ae80898b27379984f936591b51422c9caccb94880fa16030c975928 SHA512 e8002dc2d0c313ec34d6245f69bf8cc9ed4f98a826d9f564e21cbca379529f6060b8efb3453ec38cb2c7efd222a4aea04033c3ff84b191271ba0af5b770c7677 WHIRLPOOL 78c2bc06897ec49aba9375584cc554dd215ce970b17850da31c58159afc14a44d33b8c85064bc0e583ac68f43f41323beb62c8bc922c27345000524353545024 +EBUILD freeciv-2.5.6.ebuild 4460 SHA256 856d695fc1d8b055c023d67a539c9bf729bd773e65bc8d15a3e395ea40ab6ecc SHA512 fbc54a55617f90118911386e646c04aa18a0e479a9959fa4fca620cbb212a7db0b2971c6d1eb64b90863cda102e171c461c7b7cebd1dfab2aa10d164f722d5b6 WHIRLPOOL 3118e4fdf8e6b420795f60bd7ed3cc1e5993ebef9c7a549dc840758978c2d8aabd5f85be7dfa54338edd34ca0490e218cfb4539f7ec5548cb6b5d14d5ba3c20e +EBUILD freeciv-2.5.7.ebuild 4462 SHA256 05404258481168315c1e8713954e4db717b80eaacb20ede11cb5ea691ae3f487 SHA512 bf26e1e7a50be342efc9a3186ac6ec76f3215cefc3282d6537f5c4d1f83ba76d24ccbc05a7eb91a71bc11d9c0a2275e8fe8a8915a52608a81f0a69830f4e9ed9 WHIRLPOOL 59b49d83e4bb8614b98d1fdf57f4ebef264c5803cff25ebc98d914e083b064dc692d52ecc09dcc959445080df962188e301ca94125f7c85459c930f5deed8c76 +EBUILD freeciv-2.5.9.ebuild 4479 SHA256 e89b1bdd03b6c01aec6ff94c77882d17f01ba3fbca5f23a3402e3ee2979e1dd2 SHA512 74e95249151f15bf63cb82a0bf7f3d3472ff33eb47882fce67e4dfe531dc9f6ec207f522faf0b8b6ae47583600b54328b636cb0103d864823374d2819561acd4 WHIRLPOOL 993396caebd36377248a7a872cf6a6724e15c2678bc06d90c4400558d59683793ed2d3a9ef2ec70a1dfaad3833019e274c259ac4d433f23f1d7bf7755e5ea017 +MISC ChangeLog 5612 SHA256 948aaf9910f8dbf501516a06c8d8222137a066c753d8aba5c02bdb52472e310b SHA512 eb144bb445a1c602e0eb994bb33db7264e5ca29f2fef918674965d3b4d6b7c01d4c12e3916627dc229be4ffe97e937377a4333efc8ac36737dece60588ff5635 WHIRLPOOL ea8283232dfca128aab441aa429bd986bfb79e10825ec18881f24867c15dbaaf6865de91bae684035ee8e2684b114c4470a3c79019d24fa9688193c25977823d +MISC ChangeLog-2015 23887 SHA256 82fa7a1e6d66dc366eb6b59ebb3a9033cc14f0d33e0c425e725d498b182aaf92 SHA512 2c39d2cece064f59dff6eeda04ab86d15abd169169c6dbe4127fde52ba07ac33c81143852bd994e862200ce4c008adcf0384f122da631d75b4d0e051f1175e47 WHIRLPOOL 7aec3d83a5529ec4cff22f248ca0033d51adaf765097571e6eef014d218acc534d27001784c11a91265b4416faf04037ac4473ea3cf031859860a52709833454 +MISC metadata.xml 1031 SHA256 4129345cf273f72b09d711ab06b48fe08c5965bfd99a8fe0e6c70474906409f0 SHA512 cbf6f0e418650f16f4b517895e6e03a9ffb3bdcd66563fab4ec067e6d4df79a1fb13d0cb9b7b314ad274839b430176405a3760e06a7d1f603f3464d1ff2bb201 WHIRLPOOL b986fed0bfc62702cadeb1a7f593e3a6ce87485546e3f7d69613bccd7b2bc3d671d2c01266388ebbc7b362215745cc02a35414024764483daa6882acbed73a69 diff --git a/games-strategy/freeciv/freeciv-2.5.6.ebuild b/games-strategy/freeciv/freeciv-2.5.6.ebuild new file mode 100644 index 000000000000..4ff97a11daaf --- /dev/null +++ b/games-strategy/freeciv/freeciv-2.5.6.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils flag-o-matic gnome2-utils + +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="mirror://sourceforge/freeciv/${P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~ppc64 x86" +IUSE="auth aimodules dedicated +gtk ipv6 mapimg modpack mysql nls qt5 readline sdl +server +sound sqlite system-lua" + +# postgres isn't yet really supported by upstream +RDEPEND="app-arch/bzip2 + app-arch/xz-utils + net-misc/curl + sys-libs/zlib + auth? ( + mysql? ( virtual/mysql ) + sqlite? ( dev-db/sqlite:3 ) + !mysql? ( ( !sqlite? ( virtual/mysql ) ) ) + ) + readline? ( sys-libs/readline:0= ) + dedicated? ( aimodules? ( dev-libs/libltdl:0 ) ) + !dedicated? ( + media-libs/libpng:0 + gtk? ( x11-libs/gtk+:2 ) + mapimg? ( media-gfx/imagemagick:= ) + modpack? ( x11-libs/gtk+:2 ) + nls? ( virtual/libintl ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + sdl? ( + media-libs/libsdl[video] + media-libs/sdl-gfx + media-libs/sdl-image[png] + media-libs/sdl-ttf + ) + server? ( aimodules? ( sys-devel/libtool:2 ) ) + sound? ( + media-libs/libsdl[sound] + media-libs/sdl-mixer[vorbis] + ) + !sdl? ( !gtk? ( x11-libs/gtk+:2 ) ) + ) + system-lua? ( >=dev-lang/lua-5.2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig + !dedicated? ( + x11-proto/xextproto + nls? ( sys-devel/gettext ) + )" + +pkg_setup() { + if use !dedicated && use !server ; then + ewarn "Disabling server USE flag will make it impossible" + ewarn "to start local games, but you will still be able to" + ewarn "join multiplayer games." + fi +} + +src_prepare() { + default + + # install the .desktop in /usr/share/applications + # install the icons in /usr/share/pixmaps + sed -i \ + -e 's:^.*\(desktopfiledir = \).*:\1/usr/share/applications:' \ + -e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \ + -e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \ + client/Makefile.in \ + server/Makefile.in \ + tools/Makefile.in \ + data/icons/Makefile.in || die + sed -i -e 's/=SDL/=X-SDL/' bootstrap/freeciv-sdl.desktop.in || die +} + +src_configure() { + local myclient myopts mydatabase + + if use auth ; then + if use !mysql && use !sqlite ; then + einfo "No database backend chosen, defaulting" + einfo "to mysql!" + mydatabase=mysql + else + use mysql && mydatabase="${mydatabase} mysql" + use sqlite && mydatabase="${mydatabase} sqlite3" + fi + else + mydatabase=no + fi + + if use dedicated ; then + myclient="no" + myopts="--enable-server" + else + if use !sdl && use !gtk && ! use qt5 ; then + einfo "No client backend given, defaulting to" + einfo "gtk2 client!" + myclient="gtk2" + else + use sdl && myclient+=" sdl" + use gtk && myclient+=" gtk2" + if use qt5 ; then + myclient+=" qt" + append-cxxflags -std=c++11 + fi + fi + myopts="$(use_enable server) --without-ggz-client" + fi + + # disabling shared libs will break aimodules USE flag + econf \ + --localedir=/usr/share/locale \ + $(use_enable ipv6) \ + $(use_enable mapimg) \ + --enable-aimodules="$(usex aimodules "yes" "no")" \ + --enable-shared \ + --enable-fcdb="${mydatabase}" \ + $(use_enable nls) \ + $(use_with readline) \ + $(use_enable sound sdl-mixer) \ + --enable-fcmp="$(usex modpack "gtk2" "no")" \ + $(use_enable system-lua sys-lua) \ + ${myopts} \ + --enable-client="${myclient}" +} + +src_install() { + default + + if use dedicated ; then + rm -rf "${D}/usr/share/pixmaps" + rm -f "${D}"/usr/share/man/man6/freeciv-{client,gtk2,gtk3,modpack,qt,sdl,xaw}* + else + if use server ; then + # Create and install the html manual. It can't be done for dedicated + # servers, because the 'freeciv-manual' tool is then not built. Also + # delete freeciv-manual from the GAMES_BINDIR, because it's useless. + # Note: to have it localized, it should be ran from _postinst, or + # something like that, but then it's a PITA to avoid orphan files... + ./tools/freeciv-manual || die + docinto html + dodoc manual*.html + fi + if use sdl ; then + make_desktop_entry freeciv-sdl "Freeciv (SDL)" freeciv-client + else + rm -f "${D}"/usr/share/man/man6/freeciv-sdl* + fi + rm -f "${D}"/usr/share/man/man6/freeciv-xaw* + fi + find "${D}" -name "freeciv-manual*" -delete + + rm -f "${D}/usr/$(get_libdir)"/*.a + prune_libtool_files +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/freeciv/freeciv-2.5.7.ebuild b/games-strategy/freeciv/freeciv-2.5.7.ebuild new file mode 100644 index 000000000000..c408d24ee008 --- /dev/null +++ b/games-strategy/freeciv/freeciv-2.5.7.ebuild @@ -0,0 +1,176 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils flag-o-matic gnome2-utils + +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="mirror://sourceforge/freeciv/${P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="auth aimodules dedicated +gtk ipv6 mapimg modpack mysql nls qt5 readline sdl +server +sound sqlite system-lua" + +# postgres isn't yet really supported by upstream +RDEPEND="app-arch/bzip2 + app-arch/xz-utils + net-misc/curl + sys-libs/zlib + auth? ( + mysql? ( virtual/mysql ) + sqlite? ( dev-db/sqlite:3 ) + !mysql? ( ( !sqlite? ( virtual/mysql ) ) ) + ) + readline? ( sys-libs/readline:0= ) + dedicated? ( aimodules? ( dev-libs/libltdl:0 ) ) + !dedicated? ( + media-libs/libpng:0 + gtk? ( x11-libs/gtk+:2 ) + mapimg? ( media-gfx/imagemagick:= ) + modpack? ( x11-libs/gtk+:2 ) + nls? ( virtual/libintl ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + sdl? ( + media-libs/libsdl[video] + media-libs/sdl-gfx + media-libs/sdl-image[png] + media-libs/sdl-ttf + ) + server? ( aimodules? ( sys-devel/libtool:2 ) ) + sound? ( + media-libs/libsdl[sound] + media-libs/sdl-mixer[vorbis] + ) + !sdl? ( !gtk? ( x11-libs/gtk+:2 ) ) + ) + system-lua? ( >=dev-lang/lua-5.2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig + !dedicated? ( + x11-proto/xextproto + nls? ( sys-devel/gettext ) + )" + +pkg_setup() { + if use !dedicated && use !server ; then + ewarn "Disabling server USE flag will make it impossible" + ewarn "to start local games, but you will still be able to" + ewarn "join multiplayer games." + fi +} + +src_prepare() { + default + + # install the .desktop in /usr/share/applications + # install the icons in /usr/share/pixmaps + sed -i \ + -e 's:^.*\(desktopfiledir = \).*:\1/usr/share/applications:' \ + -e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \ + -e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \ + client/Makefile.in \ + server/Makefile.in \ + tools/Makefile.in \ + data/icons/Makefile.in || die + sed -i -e 's/=SDL/=X-SDL/' bootstrap/freeciv-sdl.desktop.in || die +} + +src_configure() { + local myclient myopts mydatabase + + if use auth ; then + if use !mysql && use !sqlite ; then + einfo "No database backend chosen, defaulting" + einfo "to mysql!" + mydatabase=mysql + else + use mysql && mydatabase="${mydatabase} mysql" + use sqlite && mydatabase="${mydatabase} sqlite3" + fi + else + mydatabase=no + fi + + if use dedicated ; then + myclient="no" + myopts="--enable-server" + else + if use !sdl && use !gtk && ! use qt5 ; then + einfo "No client backend given, defaulting to" + einfo "gtk2 client!" + myclient="gtk2" + else + use sdl && myclient+=" sdl" + use gtk && myclient+=" gtk2" + if use qt5 ; then + myclient+=" qt" + append-cxxflags -std=c++11 + fi + fi + myopts="$(use_enable server) --without-ggz-client" + fi + + # disabling shared libs will break aimodules USE flag + econf \ + --localedir=/usr/share/locale \ + $(use_enable ipv6) \ + $(use_enable mapimg) \ + --enable-aimodules="$(usex aimodules "yes" "no")" \ + --enable-shared \ + --enable-fcdb="${mydatabase}" \ + $(use_enable nls) \ + $(use_with readline) \ + $(use_enable sound sdl-mixer) \ + --enable-fcmp="$(usex modpack "gtk2" "no")" \ + $(use_enable system-lua sys-lua) \ + ${myopts} \ + --enable-client="${myclient}" +} + +src_install() { + default + + if use dedicated ; then + rm -rf "${D}/usr/share/pixmaps" + rm -f "${D}"/usr/share/man/man6/freeciv-{client,gtk2,gtk3,modpack,qt,sdl,xaw}* + else + if use server ; then + # Create and install the html manual. It can't be done for dedicated + # servers, because the 'freeciv-manual' tool is then not built. Also + # delete freeciv-manual from the GAMES_BINDIR, because it's useless. + # Note: to have it localized, it should be ran from _postinst, or + # something like that, but then it's a PITA to avoid orphan files... + ./tools/freeciv-manual || die + docinto html + dodoc manual*.html + fi + if use sdl ; then + make_desktop_entry freeciv-sdl "Freeciv (SDL)" freeciv-client + else + rm -f "${D}"/usr/share/man/man6/freeciv-sdl* + fi + rm -f "${D}"/usr/share/man/man6/freeciv-xaw* + fi + find "${D}" -name "freeciv-manual*" -delete + + rm -f "${D}/usr/$(get_libdir)"/*.a + prune_libtool_files +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/freeciv/freeciv-2.5.9.ebuild b/games-strategy/freeciv/freeciv-2.5.9.ebuild new file mode 100644 index 000000000000..50f294a240bc --- /dev/null +++ b/games-strategy/freeciv/freeciv-2.5.9.ebuild @@ -0,0 +1,177 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils flag-o-matic gnome2-utils + +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="mirror://sourceforge/freeciv/${P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="auth aimodules dedicated +gtk ipv6 mapimg modpack mysql nls qt5 readline sdl +server +sound sqlite system-lua" + +# postgres isn't yet really supported by upstream +RDEPEND="app-arch/bzip2 + app-arch/xz-utils + net-misc/curl + sys-libs/zlib + auth? ( + mysql? ( virtual/mysql ) + sqlite? ( dev-db/sqlite:3 ) + !mysql? ( ( !sqlite? ( virtual/mysql ) ) ) + ) + readline? ( sys-libs/readline:0= ) + dedicated? ( aimodules? ( dev-libs/libltdl:0 ) ) + !dedicated? ( + media-libs/libpng:0 + gtk? ( x11-libs/gtk+:2 ) + mapimg? ( media-gfx/imagemagick:= ) + modpack? ( x11-libs/gtk+:2 ) + nls? ( virtual/libintl ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + sdl? ( + media-libs/libsdl[video] + media-libs/sdl-gfx + media-libs/sdl-image[png] + media-libs/sdl-ttf + ) + server? ( aimodules? ( sys-devel/libtool:2 ) ) + sound? ( + media-libs/libsdl[sound] + media-libs/sdl-mixer[vorbis] + ) + !sdl? ( !gtk? ( x11-libs/gtk+:2 ) ) + ) + system-lua? ( >=dev-lang/lua-5.2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig + !dedicated? ( + x11-proto/xextproto + nls? ( sys-devel/gettext ) + )" + +pkg_setup() { + if use !dedicated && use !server ; then + ewarn "Disabling server USE flag will make it impossible" + ewarn "to start local games, but you will still be able to" + ewarn "join multiplayer games." + fi +} + +src_prepare() { + default + + # install the .desktop in /usr/share/applications + # install the icons in /usr/share/pixmaps + sed -i \ + -e 's:^.*\(desktopfiledir = \).*:\1/usr/share/applications:' \ + -e 's:^\(icon[0-9]*dir = \)$(prefix)\(.*\):\1/usr\2:' \ + -e 's:^\(icon[0-9]*dir = \)$(datadir)\(.*\):\1/usr/share\2:' \ + client/Makefile.in \ + server/Makefile.in \ + tools/Makefile.in \ + data/icons/Makefile.in || die + sed -i -e 's/=SDL/=X-SDL/' bootstrap/freeciv-sdl.desktop.in || die +} + +src_configure() { + local myclient mydatabase myeconfargs + + if use auth ; then + if ! use mysql && ! use sqlite ; then + einfo "No database backend chosen, defaulting" + einfo "to mysql!" + mydatabase=mysql + else + use mysql && mydatabase+=" mysql" + use sqlite && mydatabase+=" sqlite3" + fi + else + mydatabase=no + fi + + if use dedicated ; then + myclient="no" + myeconfargs+=( --enable-server ) + else + if use !sdl && use !gtk && ! use qt5 ; then + einfo "No client backend given, defaulting to" + einfo "gtk2 client!" + myclient="gtk2" + else + use sdl && myclient+=" sdl" + use gtk && myclient+=" gtk2" + if use qt5 ; then + myclient+=" qt" + append-cxxflags -std=c++11 + fi + fi + myeconfargs+=( $(use_enable server) --without-ggz-client ) + fi + + myeconfargs+=( + --enable-aimodules="$(usex aimodules "yes" "no")" + --enable-client="${myclient}" + --enable-fcdb="${mydatabase}" + --enable-fcmp="$(usex modpack "gtk2" "no")" + # disabling shared libs will break aimodules USE flag + --enable-shared + --localedir=/usr/share/locale + $(use_enable ipv6) + $(use_enable mapimg) + $(use_enable nls) + $(use_enable sound sdl-mixer) + $(use_enable system-lua sys-lua) + $(use_with readline) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + if use dedicated ; then + rm -rf "${ED%/}/usr/share/pixmaps" + rm -f "${ED%/}"/usr/share/man/man6/freeciv-{client,gtk2,gtk3,modpack,qt,sdl,xaw}* + else + if use server ; then + # Create and install the html manual. It can't be done for dedicated + # servers, because the 'freeciv-manual' tool is then not built. Also + # delete freeciv-manual from the GAMES_BINDIR, because it's useless. + # Note: to have it localized, it should be ran from _postinst, or + # something like that, but then it's a PITA to avoid orphan files... + ./tools/freeciv-manual || die + docinto html + dodoc manual*.html + fi + if use sdl ; then + make_desktop_entry freeciv-sdl "Freeciv (SDL)" freeciv-client + else + rm -f "${ED%/}"/usr/share/man/man6/freeciv-sdl* + fi + rm -f "${ED%/}"/usr/share/man/man6/freeciv-xaw* + fi + find "${ED}" -name "freeciv-manual*" -delete + + rm -f "${ED%/}/usr/$(get_libdir)"/*.a + prune_libtool_files +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/freeciv/metadata.xml b/games-strategy/freeciv/metadata.xml new file mode 100644 index 000000000000..6a23f56ccce9 --- /dev/null +++ b/games-strategy/freeciv/metadata.xml @@ -0,0 +1,27 @@ +<?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="aimodules">Support for dynamically loadable AI + modules (server-side)</flag> + <flag name="auth">Add authentication capability via + mysql, postgres or sqlite3</flag> + <flag name="mapimg">Additional mag image toolkit + via <pkg>media-gfx/imagemagick</pkg></flag> + <flag name="modpack">Build the freeciv-modpack-program + to download/install mods</flag> + <flag name="server">Enable server support. Disabling this + will also make it impossible to start local games.</flag> + <flag name="sound">Add support for sound provided by + <pkg>media-libs/sdl-mixer</pkg></flag> + <flag name="system-lua">Use <pkg>dev-lang/lua</pkg> instead of + the bundled liblua</flag> + </use> + <upstream> + <remote-id type="sourceforge">freeciv</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/freecol/Manifest b/games-strategy/freecol/Manifest new file mode 100644 index 000000000000..ee9c6700d086 --- /dev/null +++ b/games-strategy/freecol/Manifest @@ -0,0 +1,9 @@ +AUX freecol-0.11.5-gentoo.patch 1251 SHA256 c56baa4a1e50c69bf1bc98040d2aa243e61a76c4e597178dd234b83d89c9f48c SHA512 c94fa10fb210547b67b38562faa2d1e39f17264cdfc8819c5b6b856ba068757d88e29ea43bec573400a81b081965f687aea93335b62969b15122d9373290f224 WHIRLPOOL a590139a9afc6cc59baf723614b0108b4e64ea0c1d9a4f9f93b62ea49a21cf7abd4499e3f999393f7dfc07d514a5b702ff544eeadffccfa350f9fd6a8e66a75c +AUX freecol-0.11.6-gentoo.patch 1251 SHA256 c56baa4a1e50c69bf1bc98040d2aa243e61a76c4e597178dd234b83d89c9f48c SHA512 c94fa10fb210547b67b38562faa2d1e39f17264cdfc8819c5b6b856ba068757d88e29ea43bec573400a81b081965f687aea93335b62969b15122d9373290f224 WHIRLPOOL a590139a9afc6cc59baf723614b0108b4e64ea0c1d9a4f9f93b62ea49a21cf7abd4499e3f999393f7dfc07d514a5b702ff544eeadffccfa350f9fd6a8e66a75c +DIST freecol-0.11.5-src.zip 45280324 SHA256 99b31077fb3d7bfab44fcb900e0ea828a1dedf44fa814e05e166f240a68a5078 SHA512 1059c3b5c87c0f5ae07a99aaab1af2f73c7767a536aa2cff1b6c518b53d9ef6cb75713b4aeb601ab02bf946dcf451d01775b27cf82c457c0b9869e4cfeb55965 WHIRLPOOL 859c5097db4db88642fdfe0189bb731f47e7fe5118e943958698c351b21b6e0762a106b9541a8554633f770c7c2a0d4b57a8b7b26584e96be1277ec887721d67 +DIST freecol-0.11.6-src.zip 45002451 SHA256 52bbc35a8101cbfa770a004750c88969d6caf3f182733671a1e04dd97b86021a SHA512 fbfec95ad7128477d631be92b750d639d42bde3e052c94265590933e841adf66e670d5e1b2f6e8ef05629afeafded60cbb495ef93272ebc14ce7fd2f2eaa53de WHIRLPOOL 355c046419c4fe62a1564460145d13938ae7435a8cb518e1de156a5f575627249c5bccd79d56e8a2b3f156d8f0d291d2cd9c24e4c1d9b27efb9427a8a33acb07 +EBUILD freecol-0.11.5.ebuild 1678 SHA256 a0aafdd9daff4017ad3ffa2fd79bbe2f0c5f77eef1ce54afb91964a6cc466579 SHA512 a34dd87ef563003915d237eb613f0fb9ce807beb1272b22034d140572921c4951bf389a92d6c043db6ded1a4929bd54d9960faf8cb2eb896b3b86a4ff97094eb WHIRLPOOL c791b4691c5dd55ce64e9bf91d13a4226d6e7bd07f18c6c296caf94a6b0bb8aee1f125f3ef30cd15e075a07f3d32879040a1a18647343748170198fef8ca83a8 +EBUILD freecol-0.11.6.ebuild 1667 SHA256 4e554a47fbd530865a6cf7fb13b719bf0a616a60ee335d26af3470ca961d2fc4 SHA512 ff4be102e960c24f164d3bdfbdb43e3da599bf28d9ba946f89e99a8b72ee3d32a6497a357e001a5759f6be9b58b79fc438f1104a04bd5e8fd8ea33b366f80cb5 WHIRLPOOL 0883e2d43e588e69a1f9d45d3a7cbdd72e27cf8cf55aee2a1919f0a537f367e2a7151f65e1bf34b13f758ea1883d9f060cdf3b5dc3565ec536d0644d0f1eacca +MISC ChangeLog 3887 SHA256 bfa4fe3b0ae4f04fdda3c71efbf236bf681f741d588e93c25cffa612c333a32c SHA512 5ccf5306014e7f319e5d79a692aafcc75424a62c27353534863463c16b8f4f047a9447539322a431d79e9bb77581dcd9811679d3d68b7de92738d6716dc91ff2 WHIRLPOOL 8249dad1101de6addd9adbf7b122202b0659e87b7e234212191c00d98543e7735b4e051642eecda890e5726a9616772ab648b61b4804c1b846958f97931a97fb +MISC ChangeLog-2015 6861 SHA256 fb7dfba4c9ff13e44b9bf21d80200e0f79124210fabab346957b01803e0632e7 SHA512 4b3b4adf5f4b17b4c21476740b2abcaa62e1745e2caba1726ba58863c95f3369cc77da5c56c0117327730300f83d62313fe64ae7a7294a5206272454f7db3f92 WHIRLPOOL e8695669eca1255a3049091dd5dd0806ab46a75983c6287c8f427f770886831ccaa28fcb3eff4d8742a0e88be7f8cf06542922ac3e34f7a49261282414a5a888 +MISC metadata.xml 330 SHA256 5e9fc5b58af28e0361bbf6b2b650aa88ea9f4f69e94126d5feb173e8cc8b2ab8 SHA512 a626ad559d71b69d9f074fc7a223d226c3e911f21adecfaea48425f81fd81accf443e7518f16bbbadb1b92854f7c99e3eafda22ba0aa787bae3d44b02f8d71ab WHIRLPOOL 807868ea1247623d0c0b07366951cc3cca946871409ce1bf45fb108931b83e36424945f4103772dc22b9f9642e369a9b986ccc07ca891826a8557c31672a8c2c diff --git a/games-strategy/freecol/files/freecol-0.11.5-gentoo.patch b/games-strategy/freecol/files/freecol-0.11.5-gentoo.patch new file mode 100644 index 000000000000..c087193eb8c5 --- /dev/null +++ b/games-strategy/freecol/files/freecol-0.11.5-gentoo.patch @@ -0,0 +1,27 @@ +--- build.xml.orig 2015-12-09 21:10:08.272361404 -0500 ++++ build.xml 2015-12-09 21:11:26.189663216 -0500 +@@ -36,12 +36,11 @@ + + <path id="libraries.classpath"> + <!-- MigLayout manager --> +- <pathelement location="${basedir}/${miglayout-swing.jar}"/> +- <pathelement location="${basedir}/${miglayout-core.jar}"/> ++ <pathelement location="${miglayout.jar}"/> + <!-- Command line processor --> +- <pathelement location="${basedir}/${cli.jar}"/> ++ <pathelement location="${cli.jar}"/> + <!-- Cortado Video Applet --> +- <pathelement location="${basedir}/${cortado.jar}"/> ++ <pathelement location="${cortado.jar}"/> + <!-- JOgg/JOrbis libraries --> + <pathelement location="${basedir}/jars/jogg-0.0.17.jar"/> + <pathelement location="${basedir}/jars/jorbis-0.0.17.jar"/> +@@ -162,7 +161,7 @@ + + <target name="manifest" depends="git-revision" + description="Creates the Manifest file."> +- <manifestclasspath property="jar.classpath" ++ <manifestclasspath maxParentLevels="50" property="jar.classpath" + jarfile="Freecol.jar"> + <classpath refid="libraries.classpath" /> + </manifestclasspath> diff --git a/games-strategy/freecol/files/freecol-0.11.6-gentoo.patch b/games-strategy/freecol/files/freecol-0.11.6-gentoo.patch new file mode 100644 index 000000000000..c087193eb8c5 --- /dev/null +++ b/games-strategy/freecol/files/freecol-0.11.6-gentoo.patch @@ -0,0 +1,27 @@ +--- build.xml.orig 2015-12-09 21:10:08.272361404 -0500 ++++ build.xml 2015-12-09 21:11:26.189663216 -0500 +@@ -36,12 +36,11 @@ + + <path id="libraries.classpath"> + <!-- MigLayout manager --> +- <pathelement location="${basedir}/${miglayout-swing.jar}"/> +- <pathelement location="${basedir}/${miglayout-core.jar}"/> ++ <pathelement location="${miglayout.jar}"/> + <!-- Command line processor --> +- <pathelement location="${basedir}/${cli.jar}"/> ++ <pathelement location="${cli.jar}"/> + <!-- Cortado Video Applet --> +- <pathelement location="${basedir}/${cortado.jar}"/> ++ <pathelement location="${cortado.jar}"/> + <!-- JOgg/JOrbis libraries --> + <pathelement location="${basedir}/jars/jogg-0.0.17.jar"/> + <pathelement location="${basedir}/jars/jorbis-0.0.17.jar"/> +@@ -162,7 +161,7 @@ + + <target name="manifest" depends="git-revision" + description="Creates the Manifest file."> +- <manifestclasspath property="jar.classpath" ++ <manifestclasspath maxParentLevels="50" property="jar.classpath" + jarfile="Freecol.jar"> + <classpath refid="libraries.classpath" /> + </manifestclasspath> diff --git a/games-strategy/freecol/freecol-0.11.5.ebuild b/games-strategy/freecol/freecol-0.11.5.ebuild new file mode 100644 index 000000000000..39fc16767772 --- /dev/null +++ b/games-strategy/freecol/freecol-0.11.5.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils java-pkg-2 java-ant-2 games + +DESCRIPTION="An open source clone of the game Colonization" +HOMEPAGE="http://www.freecol.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +COMMON_DEP="dev-java/jsr173 + dev-java/wstx:3.2 + dev-java/commons-cli:1 + dev-java/cortado + dev-java/miglayout" +DEPEND=">=virtual/jdk-1.7 + app-arch/unzip + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.7 + ${COMMON_DEP}" + +S=${WORKDIR}/${PN} + +java_prepare() { + # jorbis isn't in portage yet + rm jars/{commons-cli-1.1,cortado-0.6.0,miglayout-core-4.2,miglayout-swing-4.2}.jar || die + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_prepare() { + java-pkg-2_src_prepare +} + +src_configure() { + java-ant-2_src_configure +} + +src_compile() { + EANT_BUILD_TARGET=package + EANT_EXTRA_ARGS=" + -Dstax.jar=$(java-pkg_getjars jsr173) + -Dwoodstox.jar=$(java-pkg_getjars wstx-3.2) + -Dcli.jar=$(java-pkg_getjars commons-cli-1) + -Dmiglayout.jar=$(java-pkg_getjars miglayout) + -Dcortado.jar=$(java-pkg_getjars cortado) + " + java-pkg-2_src_compile +} + +src_install() { + java-pkg_jarinto "${GAMES_DATADIR}"/${PN} + java-pkg_dojar FreeCol.jar + java-pkg_dolauncher ${PN} \ + -into "${GAMES_PREFIX}" \ + --pwd "${GAMES_DATADIR}"/${PN} \ + --jar FreeCol.jar \ + --java_args -Xmx512M + insinto "${GAMES_DATADIR}"/${PN} + doins -r data schema splash.jpg + doicon data/${PN}.png + make_desktop_entry ${PN} FreeCol + dodoc README + prepgamesdirs +} + +pkg_setup() { + games_pkg_setup + java-pkg-2_pkg_setup +} + +pkg_preinst() { + games_pkg_preinst + java-pkg-2_pkg_preinst +} diff --git a/games-strategy/freecol/freecol-0.11.6.ebuild b/games-strategy/freecol/freecol-0.11.6.ebuild new file mode 100644 index 000000000000..0fd3df020aa7 --- /dev/null +++ b/games-strategy/freecol/freecol-0.11.6.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils java-pkg-2 java-ant-2 games + +DESCRIPTION="An open source clone of the game Colonization" +HOMEPAGE="http://www.freecol.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +COMMON_DEP="dev-java/jsr173 + dev-java/wstx:3.2 + dev-java/commons-cli:1 + dev-java/cortado + dev-java/miglayout" +DEPEND=">=virtual/jdk-1.8 + app-arch/unzip + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.8 + ${COMMON_DEP}" + +S=${WORKDIR}/${PN} + +java_prepare() { + # jorbis isn't in portage yet + rm jars/{commons-cli-1.1,cortado-0.6.0,miglayout-core-4.2,miglayout-swing-4.2}.jar || die + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_prepare() { + java-pkg-2_src_prepare +} + +src_configure() { + java-ant-2_src_configure +} + +src_compile() { + EANT_BUILD_TARGET=package + EANT_EXTRA_ARGS=" + -Dstax.jar=$(java-pkg_getjars jsr173) + -Dwoodstox.jar=$(java-pkg_getjars wstx-3.2) + -Dcli.jar=$(java-pkg_getjars commons-cli-1) + -Dmiglayout.jar=$(java-pkg_getjars miglayout) + -Dcortado.jar=$(java-pkg_getjars cortado) + " + java-pkg-2_src_compile +} + +src_install() { + java-pkg_jarinto "${GAMES_DATADIR}"/${PN} + java-pkg_dojar FreeCol.jar + java-pkg_dolauncher ${PN} \ + -into "${GAMES_PREFIX}" \ + --pwd "${GAMES_DATADIR}"/${PN} \ + --jar FreeCol.jar \ + --java_args -Xmx512M + insinto "${GAMES_DATADIR}"/${PN} + doins -r data schema + doicon data/${PN}.png + make_desktop_entry ${PN} FreeCol + dodoc README + prepgamesdirs +} + +pkg_setup() { + games_pkg_setup + java-pkg-2_pkg_setup +} + +pkg_preinst() { + games_pkg_preinst + java-pkg-2_pkg_preinst +} diff --git a/games-strategy/freecol/metadata.xml b/games-strategy/freecol/metadata.xml new file mode 100644 index 000000000000..683a3878d849 --- /dev/null +++ b/games-strategy/freecol/metadata.xml @@ -0,0 +1,11 @@ +<?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">freecol</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/freeorion/Manifest b/games-strategy/freeorion/Manifest new file mode 100644 index 000000000000..c7db63489ed0 --- /dev/null +++ b/games-strategy/freeorion/Manifest @@ -0,0 +1,7 @@ +AUX freeorion.envd 70 SHA256 8c4c6209162963803cc763b7f15fc9fe3b3c38cecab6802b7787ea31d5adb2ab SHA512 ed9e2adf837cd381241dacf4da446a8ded1486c51a011eaf0cdf84b62831cd005f3e210b8f31847f9aba1d54ddd5f352fde6b33eefb215ab264ff53c3e3be74b WHIRLPOOL 634f85d5d4fd269a1ce98c24ed04baaccc2a9ad55f83a2e9efbc200f418825fe4234b604cbecf6c898b123c68c85df401fe8e7ad819b15bae6cb57352f6e0a0a +DIST freeorion-0.4.7.1.tar.gz 105942075 SHA256 924a88464e92c14aa8f6722b57f702e07d43c7257cf272150c98bc3c1124a87e SHA512 9c8d0437ee827a1104a541e1123ce6b5d229bd6253bfe275028805a4c34de882ca3a9d5361e3f64098f935d0926a656a64fe468690c8d195e05de86cd1b2699d WHIRLPOOL 87b328364320221715b1dc16154a40299229990b8726a4053ba875ca4fdc6838c354cae7d93036fbe92003e2f2158b9325715e20488e8af7c22723924ce3eec1 +EBUILD freeorion-0.4.7.1.ebuild 1679 SHA256 7595e0f8ac9886fe9f706a892c3532a481a41a02d6c981b558d0b5621bcb518a SHA512 88f9d3905770f0a97a3938d58bad1c6698c5d8b651718a19cb634aaef857582023051700bc692ae59a2b8ee83b1da6841fff1a576078f7df1705e388b6faca7b WHIRLPOOL 2f49d37a1b2d649a353dd64e3996f38f43bfa653f4fe67027ee5d12198b046b8cf04bb3d6f50200bd35f78ec5f1411ea0cfafb17249950090d499f855b7ae2cf +EBUILD freeorion-9999.ebuild 1679 SHA256 7595e0f8ac9886fe9f706a892c3532a481a41a02d6c981b558d0b5621bcb518a SHA512 88f9d3905770f0a97a3938d58bad1c6698c5d8b651718a19cb634aaef857582023051700bc692ae59a2b8ee83b1da6841fff1a576078f7df1705e388b6faca7b WHIRLPOOL 2f49d37a1b2d649a353dd64e3996f38f43bfa653f4fe67027ee5d12198b046b8cf04bb3d6f50200bd35f78ec5f1411ea0cfafb17249950090d499f855b7ae2cf +MISC ChangeLog 3602 SHA256 e30acfbe7012673a45506e57c50c6f89cd113f934290e218e3f3a95abbe00c81 SHA512 8c59f15ec7782082efff950b7703930b46ade7dd96bbe3754e3cbc4a25e5e851aecfbd9be740125cff291595e7507df3e6c2474eca1838a893fd2e671ef80c8d WHIRLPOOL 042d19cf15adb814942775f21972cac628190c32e5583dd5f241c675a704f6df8033cf6ce040d8efdc125064cfec39c22bf534fd67d5877d57d2c5385914fc2b +MISC ChangeLog-2015 3374 SHA256 18ce9858d6761ef419cff3f7952c1733da1c485208fa1a15bb5e484287fc3900 SHA512 21fa57d45d8f0cf006c93abf13ed3ff8b35b1e7f585429913897dabaf7471ad902dfaabc0c7edaae16e9bba9cb0e83a99d55628d887224911ba6b2e3ad5f3083 WHIRLPOOL 3ad2330df69a3cb6352898eb2666ab8be905f653dc1ef1d960b8a233da8a42f00d36f7d4645b48f975de7ce31aacee10b51e11c0660eb0e0ee1b2899c6d0ab8c +MISC metadata.xml 684 SHA256 1caf90b23055bfd586d6e8d2db082fcc5073a8cbdd41f0d79f596f68a2f5f3ac SHA512 e569a1bb722ad194a47292a6c67670fef05f5f1ac390245c81140e8fcc57f2699eec4e8037e3cae31d46d7e62eac8504d69971dc7db76226f2a31f85bb531bb1 WHIRLPOOL 90fa61ce53f738755861dc831a27e7f8e93d087891c4c8287f48f63df03fec48e19af5bf935b57cf573b6c65e702538cc35687dd7f0377c05e1aed93ef003939 diff --git a/games-strategy/freeorion/files/freeorion.envd b/games-strategy/freeorion/files/freeorion.envd new file mode 100644 index 000000000000..182c707cb002 --- /dev/null +++ b/games-strategy/freeorion/files/freeorion.envd @@ -0,0 +1 @@ +LDPATH="/usr/lib64/freeorion:/usr/lib32/freeorion:/usr/lib/freeorion" diff --git a/games-strategy/freeorion/freeorion-0.4.7.1.ebuild b/games-strategy/freeorion/freeorion-0.4.7.1.ebuild new file mode 100644 index 000000000000..1be8614838d4 --- /dev/null +++ b/games-strategy/freeorion/freeorion-0.4.7.1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +inherit cmake-utils python-any-r1 gnome2-utils + +DESCRIPTION="A free turn-based space empire and galactic conquest game" +HOMEPAGE="http://www.freeorion.org" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/freeorion/freeorion.git" +else + MY_PV="${PV/_/-}" + SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${PN}-${MY_PV}" +fi + +LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0" +SLOT="0" +IUSE="" + +RDEPEND=" + >=dev-libs/boost-1.56[python,threads] + media-libs/freealut + media-libs/freetype + media-libs/glew:* + media-libs/libsdl2 + >=media-libs/libogg-1.1.3 + media-libs/libpng:0 + media-libs/libsdl2[X,opengl,video] + >=media-libs/libvorbis-1.1.2 + media-libs/openal + sci-physics/bullet + sys-libs/zlib + virtual/opengl + !dev-games/gigi" + # Use bundled gigi as of freeorion-0.4.3 + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig" + +pkg_setup() { + # build system is using FindPythonLibs.cmake which needs python:2 + python-any-r1_pkg_setup +} + +src_prepare() { + sed -e "s/-O3//" -i CMakeLists.txt || die + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_BUILD_TYPEE=Release + -DRELEASE_COMPILE_FLAGS="" + -DCMAKE_SKIP_RPATH=ON + ) + + append-cppflags -DBOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc ChangeLog.md + + newenvd "${FILESDIR}/${PN}.envd" 99${PN} +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/freeorion/freeorion-9999.ebuild b/games-strategy/freeorion/freeorion-9999.ebuild new file mode 100644 index 000000000000..1be8614838d4 --- /dev/null +++ b/games-strategy/freeorion/freeorion-9999.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +inherit cmake-utils python-any-r1 gnome2-utils + +DESCRIPTION="A free turn-based space empire and galactic conquest game" +HOMEPAGE="http://www.freeorion.org" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/freeorion/freeorion.git" +else + MY_PV="${PV/_/-}" + SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${PN}-${MY_PV}" +fi + +LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0" +SLOT="0" +IUSE="" + +RDEPEND=" + >=dev-libs/boost-1.56[python,threads] + media-libs/freealut + media-libs/freetype + media-libs/glew:* + media-libs/libsdl2 + >=media-libs/libogg-1.1.3 + media-libs/libpng:0 + media-libs/libsdl2[X,opengl,video] + >=media-libs/libvorbis-1.1.2 + media-libs/openal + sci-physics/bullet + sys-libs/zlib + virtual/opengl + !dev-games/gigi" + # Use bundled gigi as of freeorion-0.4.3 + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig" + +pkg_setup() { + # build system is using FindPythonLibs.cmake which needs python:2 + python-any-r1_pkg_setup +} + +src_prepare() { + sed -e "s/-O3//" -i CMakeLists.txt || die + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_BUILD_TYPEE=Release + -DRELEASE_COMPILE_FLAGS="" + -DCMAKE_SKIP_RPATH=ON + ) + + append-cppflags -DBOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc ChangeLog.md + + newenvd "${FILESDIR}/${PN}.envd" 99${PN} +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/freeorion/metadata.xml b/games-strategy/freeorion/metadata.xml new file mode 100644 index 000000000000..ccd88c4f149a --- /dev/null +++ b/games-strategy/freeorion/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>NP-Hardass@gentoo.org</email> + <name>NP-hardass</name> + </maintainer> + <longdescription lang="en"> + FreeOrion is a free, open source, turn-based space empire and + galactic conquest (4X) computer game being designed and built by the + FreeOrion project. FreeOrion is inspired by the tradition of the + Master of Orion games, but is not a clone or remake of that series + or any other game. + </longdescription> + <upstream> + <remote-id type="github">freeorion/freeorion</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/freesynd/Manifest b/games-strategy/freesynd/Manifest new file mode 100644 index 000000000000..7f387825c6bd --- /dev/null +++ b/games-strategy/freesynd/Manifest @@ -0,0 +1,6 @@ +AUX freesynd-0.7.1-cmake.patch 931 SHA256 e5c058dc4a4c3633c45eed4f0de4f33230236fe3231cd2f35a1896a9ba329b4c SHA512 994d12a2f079582bda03a600888c2d7ed2043468d69ce752e64deb45d156de5a7556edabd00d2635acc2c39882a8074193dc559e423e8e0181e9d4ea9d8b8b6f WHIRLPOOL 7fcb80febf70b6d238a94ea2c00a7922393be7df764f48edca8c2bd08b40b6772def67543b7ceed789ddd07f3cac88d508c3fe98f841f17a54444606682251ee +DIST freesynd-0.7.1.tar.gz 2576695 SHA256 e55b0b3386cdace81fdcd8e33943535abf19ba0797b78c404689bcdd2c55f7de SHA512 b87e6adaf71206532b4f90cd230ca6be00438fe26f000c5a0bfebf2839fea80d78d98ddc27331a2224874338c3e14ffbfa58b8c5bdbdc53c93bba8d6a9e6b7b4 WHIRLPOOL c6b49b4971a4b6404006e3579fba23342cdb98119836f0db489d05db10ed8b45f8d4282f16b9cd726a810ec9eb6d06be95d3e0f67985e993a4010d97c715cf14 +EBUILD freesynd-0.7.1.ebuild 1665 SHA256 b0484dbfe776ecda97e9efe014ea35b3ca6e8277c6ae55f94e0ab66f8d85ce56 SHA512 912f6ba3b63c4f814f2faef18dd1b9fb7b89db250280406524352c8f4a4602f14fbbadeeddfd8206931729136de8af340fe391b30658755b27d922ddd6fde72d WHIRLPOOL afb611b7e0cf9e2c1c7ca00e0ae89a3a2a4c18fb5f129a0225615c1150d36ca4d487378814c697275d05f5447189f8f129bac6f722b10d1612134cf276af1f89 +MISC ChangeLog 2471 SHA256 c66126aac4d3379bca181fcf1c0d4c7691eb93d3f31db5d711f7c3522a4d83b7 SHA512 1b37516b7f9ac9cfb68ed03a43a78d215d4843798ff0766204e1a00f7dba4c8c47d24998ec2ee9ba7d4d5a7a17048052e9727805eabda92c757bb91f000bf4a3 WHIRLPOOL 1a5d517cb21d8d87d81ff06501f9c5bc85aff61d2678426e5517d9acb37b30b75260226f83648637bbd6a433137d8aba13e64ffe92c4f5aced4cb2f65115f987 +MISC ChangeLog-2015 1257 SHA256 9a5b2a63f8dac922a90d30252aa9f229ca74d3b8ce5ab38c14a988866d0286a2 SHA512 e86ce06474cd29fcdbe30c4e553b293a6bcf66da63d5f1fa7c63eebe0fd815a11d01e26d697abf1b207a7a391843211f8b2c56e7aadc8397d196b0eb3cf082f2 WHIRLPOOL b5101eb249d3cc47d7f6c6d00827b3f8618584bdeca089891cfc3e2cda3526a66693a6e009accb4c3b4ea01807398a4bd7fbde77bc85b0ec3318782fa2a89080 +MISC metadata.xml 401 SHA256 377a15b5363d584c8b8b26925f566e4a76f4395e7966e89f437dba3c34f20751 SHA512 5750ad5bed978d8a906a3cea47f3602257b5390bb87096c1e005d0c2bd1921b9033bdfb87f14506e88e8929268a9c9bb0003c9b343d0a0040b30df2058726152 WHIRLPOOL 900a0e3d0a9f9c6015357cd6d4fb0dfa811677d3d13f15f3acce94fb542f3f1c9f964d55f957bcd5e654359b3f6cb1807991942f5b7d683528e07c224a2295d9 diff --git a/games-strategy/freesynd/files/freesynd-0.7.1-cmake.patch b/games-strategy/freesynd/files/freesynd-0.7.1-cmake.patch new file mode 100644 index 000000000000..817cd39dcb4f --- /dev/null +++ b/games-strategy/freesynd/files/freesynd-0.7.1-cmake.patch @@ -0,0 +1,28 @@ +--- freesynd-0.7.1/CMakeLists.txt ++++ freesynd-0.7.1/CMakeLists.txt +@@ -34,6 +34,13 @@ + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_C_FLAGS}") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}") + ++option(BUILD_DEV_TOOLS "Build development tools") ++option(WITH_DEBUG "Enable debug definitions") ++ ++if(WITH_DEBUG) ++ add_definitions (-D_DEBUG) ++endif() ++ + # Set standard definitions for all platforms. + add_definitions (-DSYSTEM_SDL) + add_definitions (-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\") +@@ -59,10 +66,7 @@ + message (FATAL_ERROR "Unable to locate PNG") + endif () + +-if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "debug") +- set (BUILD_DEV_TOOLS TRUE) +-else () +- set (BUILD_DEV_TOOLS FALSE) ++if (CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE STREQUAL "debug") + # We only define an install target if we're doing a release build. + # Furthermore, on Mac, the data folder is a part of the app bundle. + if (NOT APPLE) diff --git a/games-strategy/freesynd/freesynd-0.7.1.ebuild b/games-strategy/freesynd/freesynd-0.7.1.ebuild new file mode 100644 index 000000000000..ca97959a7212 --- /dev/null +++ b/games-strategy/freesynd/freesynd-0.7.1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils cmake-utils gnome2-utils games + +DESCRIPTION="A cross-platform reimplementation of engine for the classic Bullfrog game, Syndicate" +HOMEPAGE="http://freesynd.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug devtools" + +RDEPEND="media-libs/libogg + media-libs/libpng:0 + media-libs/libsdl[X,sound,video] + media-libs/libvorbis + media-libs/sdl-mixer[mp3,vorbis] + media-libs/sdl-image[png]" +DEPEND=${RDEPEND} + +CMAKE_IN_SOURCE_BUILD=1 + +src_prepare() { + epatch "${FILESDIR}"/${P}-cmake.patch + + sed \ + -e "s:#freesynd_data_dir = /usr/share/freesynd/data:freesynd_data_dir = ${GAMES_DATADIR}/${PN}/data:" \ + -i ${PN}.ini || die +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_with debug DEBUG) + $(cmake-utils_use_build devtools DEV_TOOLS) + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + dogamesbin src/${PN} + use devtools && newgamesbin src/dump ${PN}-dump + insinto "${GAMES_DATADIR}"/${PN} + doins -r data + newicon -s 128 icon/sword.png ${PN}.png + make_desktop_entry ${PN} + dodoc NEWS README INSTALL AUTHORS + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + elog "You have to set \"data_dir = /my/path/to/synd-data\"" + elog "in \"~/.${PN}/${PN}.ini\"." + + if use debug ; then + ewarn "Debug build is not meant for regular playing," + ewarn "game speed is higher." + fi + + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/freesynd/metadata.xml b/games-strategy/freesynd/metadata.xml new file mode 100644 index 000000000000..2ba784f8d996 --- /dev/null +++ b/games-strategy/freesynd/metadata.xml @@ -0,0 +1,14 @@ +<?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="devtools">Build development tools</flag> + </use> + <upstream> + <remote-id type="sourceforge">freesynd</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/galaxyhack/Manifest b/games-strategy/galaxyhack/Manifest new file mode 100644 index 000000000000..67cdf43828c3 --- /dev/null +++ b/games-strategy/galaxyhack/Manifest @@ -0,0 +1,12 @@ +AUX galaxyhack-1.74-boost-1.50.patch 3190 SHA256 6995819045078d8df619452995fa3a39b6ce23ff7d1245ad9b195fdba082074e SHA512 72a715cbfcfd8faa7cbe3aa6def2f66f80194cacb50411c3b1a1995f04cdcb5d4d42d3dc8295a50d7969c20ae6e1ca31ad44ff0447f0b2782df27726e8a77de8 WHIRLPOOL 66ac5f07e93c6160767cb47bdc314827a5371efee1e6b02cef985cc4c1220ee9fe33facdb286af46862420d7fda8fc51d861a4e7ee990f0752fd4246276c1cde +AUX galaxyhack-1.74-boost.patch 245 SHA256 1aeb8d201d8d76fe9953afa34e93e82cd31c62234a5fd33bb6b776f3e7980722 SHA512 19a6ef4ee430edab619d60d4410d318e07ba3dd75b48036331029ff0de11ad5ccc73970825708764a7da9870d9ae8a7708a22176aa6698fdd4c2837bf3a91885 WHIRLPOOL ebc1153424359706c4bda172fd25277856fa9987429e3e8b61542b485325f120b72e52ef60d26325c5f02cc159128baf65b9a27b0db74ebfdc99e667a78bd0b7 +AUX galaxyhack-1.74-destdirs.patch 386 SHA256 c9a6ce4657120c0d50f8b606db1b5b54131821397a18187a5f8a4dff12f04927 SHA512 d48bbc0b55baccbf290e81fce500436e9b13958d8028171608c220da05ecc676c4e3d3e78141d097569715fa7c4e8d4ea7a380fbd485bee1ea85178a6b3235b7 WHIRLPOOL 96f92fc178a11f9306fe199cfe1c8100f17c72ba44f6f8768b58bf1d28df2b1c9b2e6a4018c7ac41b7c6b1b44595e030dd796044092ef0d32b3a471232e685a3 +AUX galaxyhack-1.74-format.patch 1764 SHA256 8686884dac77ddc674579b15fe74a3a1219dde524251d3bc6e16e7459ee946f1 SHA512 2a2eadc378761c2827e7519f41805d202867c6df60d66bc3ff6dc2ae26ea7a4acc5b804c04d4c5d91bc9f3d6d8ee4b785f715e60c26197f649c78dad63c8bd4c WHIRLPOOL 977f96445bfc1d858166e0747cef53813096c71bc509cbf7b9c10847d55ca8884da0546c53bb831f5b2bfa8e48e28f73e825fe77b0b95a934ae89657ed4ad737 +AUX galaxyhack-1.74-gcc43.patch 309 SHA256 7808ab6f84a6467b09699762fba3225275936647f34408c423499bed5faa1ca3 SHA512 21169edbaf8f4c0d8f4fcd44a494e0121fb332b42cf14ba09818cf871cfdb792e4bbe00c7ae1b9ddc9094c96edda785f2763c76a70dcf92ec7ea163e3248aaa0 WHIRLPOOL a4514dd99a8d4e7e27600c27040c62b8a409d7853f440bfc99cacc6162d24ea228a1a503de363121321fd0709be3cd60b0c367c5366e708ac197c4e86732b1c3 +AUX galaxyhack-1.74-gentoo.patch 988 SHA256 d6a1da167e0e53b46f7f4a06cb3cee4757a6e4af88350f73cdf669e556be6420 SHA512 5cff46c4443d402e835eb6bebb6f037bd9c443b6522c6d05cc1abc101d0ad52d625fe2039bf2bc508b08bff9403dbfd6afa8e3dcefc0201d07596b5ac431a70e WHIRLPOOL 722f1823b1e1ae4774f9febe5d968d66338bf04b6474bec5b56409241202e9c8cc20fd9c91bc6c6abbd7769fc23909e6f71536a335a845d56126f1b9a5f4dba9 +DIST galaxyhack-1.74.tar.bz2 9948336 SHA256 ae6529008fe5be76607ce78833ef3b5d55e10f60a998b5747255b0854037880a SHA512 d708494b1ad572c0243da9e7168b4707112ec3c99a09498b87f8e0cb2e4e5bc9df8dc4631e3fb4d3cd7517ec4b17e937798dec3fcf770de9d0fc1b5e29a0bd58 WHIRLPOOL 59f08b96a2eae620e46d0880dc5ad894c94347c682669dff4e6128dba3071082ac374e34d85bfdbf68627f2670bb5addabfe9f7cabd7e9827afa2a291cbcaf0b +DIST galaxyhack.png 819 SHA256 248d32aeaa03e4183cf0333bd4da1d32ea11883fcb77efe6ebc6e2be201e9903 SHA512 b8ab4dd1c18c079ec3f60b3d04843fbb7a892feb8f872d498c20eb3142e7de26bff90c93b308656e1afe5ee77074fcb3f78542dfd175c27a9b865a512e0b0200 WHIRLPOOL 6be53f8e5d5eed0e0514c37d1f08163ce59569479751569652821c0021520b9ffb47c23a99ea3ba03dd637838d68a5d4dc8d8d6b34656afaa2d942b2e93ed284 +EBUILD galaxyhack-1.74.ebuild 1576 SHA256 fd532333679e3b4ac1f14743e8c44a400bc15f11dfdc9bf295d3b08477666526 SHA512 ae709d1ce1d8349c5b6dd3a304f0f998f790745807110d565f06c87685d5405c8bf843c8a8f13eace1d98995c0f4466d1d6e1ac5e721c5625478c17e6fbee8f0 WHIRLPOOL ec2a80a3ca74071459c3a4cb47e3bfc41e04b73319dd97895203c21bd31b037e3a34e3a5d46bc7f15f292b6e7f7a56d8b20b5bc1fc33d555dc64f4f51c5f9568 +MISC ChangeLog 3205 SHA256 3a6c6826abcdfe64e5853cdee8ccc70dd31352c3b6e61b2c642f96738e234115 SHA512 368f15ed32f46d789f7b23ae82853b6e1385198bd5b178f9d8529665094497ef3b3cdd447aca32399e03f43c88a8b6b12e6e0e14105ab532e7eea6e28ae057a6 WHIRLPOOL aae3ad60259567156c9be04eb88339ce0b7e423ad06ab9be9361ee75cb32e05c89785302160687cadd536c13366599c63faa7ad574625144cf746ad7b051949b +MISC ChangeLog-2015 2176 SHA256 c5919eb95932338eb4588284f51c482556e68773f710ee3ba9e84d10b6e99b38 SHA512 b88939bbe1d7b93bed81c8eed1a81aee42920e670a07e01daf4ba8ecb88fa8b1365ca8edbf51f4a2ed05b72a987070e5e8b37c5df4b6132b222966a07ed4cdc0 WHIRLPOOL 38d8daea0836ffac37a04a62f845096faed4bf882783671a2e7de0507745c510639e8efc2f34479b6da8f5ad74efaa22e98de6622655cfd7caa64ef31b7a4890 +MISC metadata.xml 1383 SHA256 44b15a56e6717fba834fc78f3b240ea14b0bfb42f6696d9a0586ece8f59fdbde SHA512 1857f21b7f01d16e5eaa7fd6f3b653c820837d5b47022bf47c02af44c5bb00f0010c36c722aa1225d0cf0cdec8d85c4f6f14e5c7c0785da8706ea9886a72b285 WHIRLPOOL aa1dc68e0d6e4449f19ff7b1244e68ef05285c08f6e0d48044712c83685b023cfcced6ebd01d48b993e6a72fe8244b02bde1de2c7b12cfd62ad8474e0d40fed2 diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-boost-1.50.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-boost-1.50.patch new file mode 100644 index 000000000000..1b630c66fb20 --- /dev/null +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-boost-1.50.patch @@ -0,0 +1,77 @@ +--- ForceSelectWin.cpp.orig 2012-08-20 17:35:01.000000000 +0200 ++++ ForceSelectWin.cpp 2012-08-20 17:47:19.000000000 +0200 +@@ -1596,15 +1596,15 @@ + fs::directory_iterator directoryEnd; // default construction yields past-the-end
+ for (fs::directory_iterator iter(sourcePath); iter != directoryEnd; ++iter) {
+ if (is_directory(*iter)) {
+- fs::create_directory(destPath.string() + "/" + iter->leaf());
+- DoCopy(sourcePath.string() + "/" + iter->leaf(), destPath.string() + "/" + iter->leaf());
++ fs::create_directory(destPath.string() + "/" + iter->path().filename().string());
++ DoCopy(sourcePath.string() + "/" + iter->path().filename().string(), destPath.string() + "/" + iter->path().filename().string());
+ continue;
+ }
+ string destFile;
+- if (iter->leaf() == sideName + ".dat")
++ if (iter->path().filename() == sideName + ".dat")
+ destFile = theInput + ".dat";
+ else
+- destFile = iter->leaf();
++ destFile = iter->path().filename().string();
+
+ fs::copy_file(*iter, destPath.string() + "/" + destFile);
+ }
+--- Main.cpp.orig 2012-08-20 17:48:13.000000000 +0200 ++++ Main.cpp 2012-08-20 17:50:51.000000000 +0200 +@@ -339,12 +339,6 @@ +
+ void GameInit(char* argv[]) {
+ namespace fs = boost::filesystem;
+- //boost is really quite stupid
+- #ifndef WIN32
+- fs::path::default_name_check(fs::windows_name);
+- #else
+- fs::path::default_name_check(fs::native);
+- #endif
+
+ FindHomePath();
+ LoadSettings(argv);
+--- Menu_Base.cpp.orig 2012-08-20 17:51:05.000000000 +0200 ++++ Menu_Base.cpp 2012-08-20 17:52:15.000000000 +0200 +@@ -206,7 +206,7 @@ +
+ fs::directory_iterator directoryEnd; // default construction yields past-the-end
+ for (fs::directory_iterator iter(directory); iter != directoryEnd; ++iter) {
+- string filename = iter->leaf();
++ string filename = iter->path().filename().string();
+
+ if (filename.find('.') == filename.npos)
+ continue;
+@@ -237,7 +237,7 @@ + fs::directory_iterator directoryEnd; // default construction yields past-the-end
+ for (fs::directory_iterator iter(globalSettings.bdp + "fleets/"); iter != directoryEnd; ++iter) {
+ if (fs::is_directory(*iter)) {
+- string fleetName = iter->leaf();
++ string fleetName = iter->path().filename().string();
+
+ if (CheckFleetExists(fleetName)) {
+ tempItem.desc = fleetName;
+@@ -261,7 +261,7 @@ + fs::path iterPath(GetFleetDir(whichSide));
+ fs::directory_iterator directoryEnd; // default construction yields past-the-end
+ for (fs::directory_iterator iter(iterPath); iter != directoryEnd; ++iter) {
+- string filename = iter->leaf();
++ string filename = iter->path().filename().string();
+
+ if (filename.find('.') == filename.npos)
+ continue;
+--- Stuff.cpp.orig 2012-08-20 17:52:36.000000000 +0200 ++++ Stuff.cpp 2012-08-20 17:53:11.000000000 +0200 +@@ -657,7 +657,7 @@ + fs::directory_iterator directoryEnd; // default construction yields past-the-end
+ for (fs::directory_iterator iter(tempPath); iter != directoryEnd; ++iter) {
+ if (fs::is_directory(*iter) && !fs::is_empty(*iter))
+- RemoveDirectory(iter->string());
++ RemoveDirectory(iter->path().string());
+ else
+ fs::remove(*iter);
+ }
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch new file mode 100644 index 000000000000..c7fd49135dee --- /dev/null +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch @@ -0,0 +1,11 @@ +--- src/SetupBattle.cpp ++++ src/SetupBattle.cpp +@@ -18,7 +18,7 @@ + #include "PreBattle.h"
+
+ #include <sstream>
+-#include <boost/filesystem/exception.hpp>
++#include <boost/filesystem.hpp>
+
+ using std::stringstream;
+ using std::getline;
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch new file mode 100644 index 000000000000..4b5beef56ac7 --- /dev/null +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch @@ -0,0 +1,11 @@ +--- Main.cpp.old 2006-07-28 00:04:46.000000000 +0200 ++++ Main.cpp 2006-07-28 00:08:28.000000000 +0200 +@@ -184,7 +184,7 @@ + #ifndef WIN32
+ string settingsPath = userHomePath + "settings.dat";
+ if (!DoesFileExist(settingsPath))
+- settingsPath = "settings.dat";
++ settingsPath = "@GAMES_DATADIR@/galaxyhack/settings.dat";
+ #else
+ string settingsPath = "settings.dat";
+ #endif
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch new file mode 100644 index 000000000000..4bd9e8fc6f83 --- /dev/null +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch @@ -0,0 +1,64 @@ +--- JSDL.cpp.old 2016-01-04 10:42:56.404316856 +0100 ++++ JSDL.cpp 2016-01-04 10:51:16.744255312 +0100 +@@ -47,14 +47,14 @@ + if (!globalSettings.batch) {
+ if (SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO) == -1) {
+ char output[120];
+- sprintf(output, SDL_GetError());
++ strcpy(output, SDL_GetError());
+ throw runtime_error(output);
+ }
+
+ if (!globalSettings.disableSound) {
+ if (SDL_InitSubSystem(SDL_INIT_AUDIO) == -1) {
+ char error[120];
+- sprintf(error, SDL_GetError());
++ strcpy(error, SDL_GetError());
+ string errorStr = error;
+ errorStr += ", continuing without initialising sound.";
+ WriteLog(errorStr);
+@@ -81,7 +81,7 @@ + //4096 is rather a large chunksize, should be smaller if I add sound effects
+ if (Mix_OpenAudio(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, 2, 4096) == -1) {
+ char output[100];
+- sprintf(output, Mix_GetError());
++ strcpy(output, Mix_GetError());
+ throw runtime_error(output);
+ }
+ }
+@@ -101,7 +101,7 @@ + if (screen == NULL) {
+ SDL_Quit();
+ char output[120];
+- sprintf(output, SDL_GetError());
++ strcpy(output, SDL_GetError());
+ throw runtime_error(output);
+ }
+ }
+@@ -114,7 +114,7 @@ +
+ if (loadingSurface == NULL) {
+ char output[100];
+- sprintf(output, IMG_GetError());
++ strcpy(output, IMG_GetError());
+ throw runtime_error(output);
+ }
+
+@@ -308,7 +308,7 @@ +
+ if (!theMusic) {
+ char output[100];
+- sprintf(output, Mix_GetError());
++ strcpy(output, Mix_GetError());
+ throw runtime_error(output);
+ }
+ }
+@@ -319,7 +319,7 @@ +
+ if (Mix_PlayMusic(theMusic, -1) == -1) {
+ char output[100];
+- sprintf(output, Mix_GetError());
++ strcpy(output, Mix_GetError());
+ throw runtime_error(output);
+ }
+ }
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch new file mode 100644 index 000000000000..eeb64d12e587 --- /dev/null +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch @@ -0,0 +1,12 @@ +diff -aur src.old/JSDL.cpp src/JSDL.cpp +--- src.old/JSDL.cpp 2008-07-17 18:31:38.000000000 +0200 ++++ src/JSDL.cpp 2008-07-17 19:19:39.000000000 +0200 +@@ -20,7 +20,7 @@ + #include <cstdlib>
+ #include <fstream>
+ #include <stdexcept>
+-
++#include <cstring>
+ using std::runtime_error;
+ using std::memcpy;
+
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch new file mode 100644 index 000000000000..a609a473fe7f --- /dev/null +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch @@ -0,0 +1,28 @@ +--- Makefile.old 2009-02-11 22:21:26.000000000 +0100 ++++ Makefile 2009-02-11 22:20:58.000000000 +0100 +@@ -6,12 +6,11 @@ + # James Gregory and Everton da Silva Marques <evertonsm@yahoo.com.br> + # + +-INSTALL_DIR=/usr/local/share +-INSTALL_BIN_DIR=/usr/local/bin ++INSTALL_DIR="${GAMES_DATADIR}" ++INSTALL_BIN_DIR="${GAMES_BINDIR}" + +-CXX = g++ +-CXXFLAGS = $(shell sdl-config --cflags) -O3 +-LDFLAGS = $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lboost_filesystem ++CXXFLAGS += $(shell sdl-config --cflags) ++LDLIBS = $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lboost_filesystem -lboost_system -lm + + OBJS = AIInterpreter.o AutoFireUnit.o BCCompiler.o DerivedGroups.o DragWindow.o \ + ForceSelect.o ForceSelectWin.o GenWindow.o GenWindow_Base.o GFX.o Globals.o \ +@@ -40,7 +39,7 @@ + install $(TARGET) $(INSTALL_BIN_DIR) + + $(TARGET): $(OBJS) +- $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) + + %.o: %.cpp + $(CXX) $(CXXFLAGS) -c $< -o $@ diff --git a/games-strategy/galaxyhack/galaxyhack-1.74.ebuild b/games-strategy/galaxyhack/galaxyhack-1.74.ebuild new file mode 100644 index 000000000000..f36cf0ed70b2 --- /dev/null +++ b/games-strategy/galaxyhack/galaxyhack-1.74.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic games + +DESCRIPTION="Multiplayer AI script based strategy game" +HOMEPAGE="http://galaxyhack.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2 galaxyhack" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/libsdl[video] + media-libs/sdl-image[png] + media-libs/sdl-mixer[mod,vorbis] + >=dev-libs/boost-1.34" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${PN}/src + +src_prepare() { + edos2unix Makefile + epatch \ + "${FILESDIR}"/${P}-destdirs.patch \ + "${FILESDIR}"/${P}-boost.patch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-boost-1.50.patch \ + "${FILESDIR}"/${P}-format.patch \ + "${FILESDIR}"/${P}-gentoo.patch + sed -i "s:@GAMES_DATADIR@:${GAMES_DATADIR}:" \ + Main.cpp || die + sed -i "/Base data path/s:pwd:${GAMES_DATADIR}/${PN}:" \ + ../settings.dat || die +} + +src_install() { + dogamesbin "${PN}" + cd .. + insinto "${GAMES_DATADIR}"/${PN} + doins -r fleets gamedata graphics music standardpictures \ + settings.dat + dodoc readme.txt + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} GalaxyHack + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "Settings will default to those found in" + elog "${GAMES_DATADIR}/galaxyhack/settings.dat" + elog "Per user settings can be specified by creating" + elog "~/.galaxyhack/settings.dat" + elog "Additional user submitted fleets can be downloaded from" + elog "http://galaxyhack.sourceforge.net/viewfleets.php" +} diff --git a/games-strategy/galaxyhack/metadata.xml b/games-strategy/galaxyhack/metadata.xml new file mode 100644 index 000000000000..9dbded1c3212 --- /dev/null +++ b/games-strategy/galaxyhack/metadata.xml @@ -0,0 +1,29 @@ +<?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"> +GalaxyHack allows you to design a fleet of spaceships which can then be tested +in AI script based battles against fleets designed by other players. Though +battles take place in real time, the strategy comes before hand, both in +writing short AI scripts in a simple scripting language, and also in the set up +and selection of your fleet. You don't actually have any control over your +units at all mid-battle, but rather use the time to see where the set up of +your fleets is working, where your fleets' weaknesses lie and changes are +needed, and perhaps also to learn from the strategy of your opponent. + +The game revolves around very large capital ships, from which smaller ships are +launched, but which are not designed for attacking themselves, and which cannot +be moved mid-battle. To win a battle you must destroy of all of your opponent's +capital ships before they destroy yours. + +There can be hundreds of units in any one battle, but there is no harvesting, +resource management or base building. +</longdescription> + <upstream> + <remote-id type="sourceforge">galaxyhack</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/glob2/Manifest b/games-strategy/glob2/Manifest new file mode 100644 index 000000000000..d3ab2013117b --- /dev/null +++ b/games-strategy/glob2/Manifest @@ -0,0 +1,10 @@ +AUX glob2-0.9.4.4-gcc44.patch 184 SHA256 21b1c25ecb2f55d71c0b5723b8ad8737a414f7565e08e1e527a2cbbfb794ec41 SHA512 e3d5d84c4c9240806ec97eace315b92288da4cbb28da230f91e3dc9aa224d4b7e010d4e132b53a538ae7d477a72320b27b482e9423182d1496751dbec58f461f WHIRLPOOL 303f1fa9f84251dd611f7f86e7afd08a5f13e52e1aca5a8a363038f737c7c2831f61cf57e9e1dde7becea7790a0b49025b96a3cd3236170dda0c456b153e4049 +AUX glob2-0.9.4.4-gcc49.patch 907 SHA256 23075c7e19f250c676df19cf2d3694230b1859fc1dba40aa780cc852d0036937 SHA512 7a1f19fe40effa577b2eb03ec4f2ddd7df78bff1c3df25c8b15df37d9feb03e4583e1776e4c2240130f318f9fa643d2d662492c9c5be46ed659bd587f88eafac WHIRLPOOL 08ffdef267939e8a08c6cd906123b74699f6771e18f866d59d476f9fb3b28b4b21dfb41df792d7f886b1cf1393512c98350924c090a1e263b6211259978db15b +AUX glob2-0.9.4.4-gcc6.patch 1767 SHA256 629af154ef2e13525860e3105856d7d9ed33c87432b51bd3d82fe5ebd79f6b45 SHA512 d2eddfe657f81a1ec085298f09aafb904d22a80d601aca6405d92d6f17b28d0f3f3b5b445a9423988b7bc8869ca41698783e4139928f9f2ba33093ded6a3cb02 WHIRLPOOL d79cbdf20691fcf4deded9146959658b92bdb88bd2b68e6f3ae793a40cead7388408add4cdceb35ac81477e04516535c8678f196b7a2346d0bdcb7f9b0530f97 +AUX glob2-0.9.4.4-scons-blows.patch 904 SHA256 9676b6477c7f95d346c3d4ee53654cb5a03afcbeee8e676b895dd7a4f7b81214 SHA512 1018f2481d82df9b5e8ddd497fc1878a58a13e54c369e3e3f3a9f541f5140a92fec54460da5ff76c6913ad202385c53534d4c88e0140b8d4f65b759e23393a7b WHIRLPOOL 0f1441e56a8fe5f779a117d4399e5273e57cf22655bfa450553a94775cc98fd79ada683a21e87beba56a8b1d9e77d1e2ce55c00a4cd2c23f665a8b2fde408fea +AUX glob2-0.9.4.4-underlinking.patch 672 SHA256 51536fd699ded8f36523ea77d1e7819ffdff744a9055be29de9e1f860d277c24 SHA512 24551c73af34badaa4a464da30c771c95082f0bfe83f351b264abddc578d5486a71f1a79b02d13ff48753e67059f8350752e77eb89397029833647bb74d79d21 WHIRLPOOL 2b6fa95e55aa3bd5e3f046ff31a86fbea41bd366954d0ead63254e1803883b5f7ad2e34456f42e63a93966639ea16562170e9ea49bc55ceecc2b2cfffa271bab +DIST glob2-0.9.4.4.tar.gz 11338986 SHA256 0f4d898ec6b05ce27b4a12ef242cc26571304b90d2509932a4743c71311314b8 SHA512 c82ace807ad208bc386b730f1fe6d6162640a9468440482f3584f8ccab825967660d8bbf6b3bebf70c74d1ed95f153cd9b5a0bd72dc247a1f97176c6c737f6ca WHIRLPOOL d151bc9601eb283a366d98ae23bd5eb6b793024c5f9b9cf49ddc55910142885e5b2f89bfdce4f879190368466f2cc01e836a9178fd899d27d4342bee4c1f9a3a +EBUILD glob2-0.9.4.4-r1.ebuild 1357 SHA256 ac9d8eb64ccfcf7a48f86a9c054ac030dfff2aed717677e6a423e8b097cbd238 SHA512 84b1c1ba7259ccaca698538ea1a91ba6667d9d68e07766a68a10c06f26ac94125f7b558773a51b66eb66828f48b014f4dc8339dce4d053b06bae92b13ecd16b4 WHIRLPOOL 0ad52014a2735b8a2ba650d204343f189edc5f8f0543889c0c4b6b73ab335600d30f191ad2f3e9a4779ea1c46fa7cdba389640b8223726684cb4b8beda4cc205 +MISC ChangeLog 2592 SHA256 44915cc1a1430a4b06031232866abc216e769698f0031fa1927768ee2593aaac SHA512 36987de31274817e15155f2b94c6335da0701c3d782b119eec5d3a0bbbf24ddca928ff02a34a4bc1ce1e6b9313180900e827e2c60f941cc3e5c44f411ae810e0 WHIRLPOOL 17fdfc3f0857694a848eba5763e2959d5303acd1f2f78c99d7800ce62e8e51cb5610cb9b5514b0d922ecc8f0fa8fd7578687a12f8d194b0311c0cd3280423b82 +MISC ChangeLog-2015 7772 SHA256 6a518b2a029f396bbc6c7c2360c64d93e0d7f236e5024ca05fd4868438be92f6 SHA512 0f63287038b177425d37545c0397b7906cf1909d740777552f05ea5771cee5945f9a6e946b44874eb07a8bd6aec277d8e88c11622ea632f59a52c483ee14c0d4 WHIRLPOOL 939381eb90ce7eed262df66f563eb90ada8c1135950312427df5c216f16af3b066b3afecb6f65f10911e8492dd6d85bbcea578f9d0dd235057d2670d9a78ddfe +MISC metadata.xml 637 SHA256 55cc42f813cd185cebbdae05d178f21bc8d33621d47336aaea0dc282de929f4a SHA512 af021418808275511478f34bcbd4a3fadd193a583c7e94c676e94d39d10fb23c8d2de7b3ef5c8da81f2f6291a3bf9d0cc09448aea1b16959e7c811ba38d64e66 WHIRLPOOL f10239194f10cd58a73ff4a18c52f2235ac698a26488864aec9e48a74f151ffcffe564cb1fb56b6988187fe23ab9b3bf56fcb2995cfba5b414dbd575623a64f0 diff --git a/games-strategy/glob2/files/glob2-0.9.4.4-gcc44.patch b/games-strategy/glob2/files/glob2-0.9.4.4-gcc44.patch new file mode 100644 index 000000000000..5ce62ea6e46c --- /dev/null +++ b/games-strategy/glob2/files/glob2-0.9.4.4-gcc44.patch @@ -0,0 +1,12 @@ +--- libgag/include/StreamBackend.h.old ++++ libgag/include/StreamBackend.h +@@ -28,6 +28,9 @@ + #ifdef putc + #undef putc + #endif ++#ifdef getc ++#undef getc ++#endif + + namespace GAGCore + { diff --git a/games-strategy/glob2/files/glob2-0.9.4.4-gcc49.patch b/games-strategy/glob2/files/glob2-0.9.4.4-gcc49.patch new file mode 100644 index 000000000000..fca1efb5891a --- /dev/null +++ b/games-strategy/glob2/files/glob2-0.9.4.4-gcc49.patch @@ -0,0 +1,35 @@ +From https://bugs.gentoo.org/show_bug.cgi?id=538580 + +Works around this build failure: + +In file included from src/AICastor.cpp:26:0: +src/Game.h: In member function 'void AICastor::computeBuildingNeighbourMap(int, int)': +src/Game.h:152:9: error: 'struct Game::BuildProject' is private + struct BuildProject + ^ +src/AICastor.cpp:2296:23: error: within this context + for (std::list<Game::BuildProject>::iterator bpi=game->buildProjects.begin(); bpi!=game->buildProjects.end(); bpi++) + ^ +scons: *** [src/AICastor.o] Error 1 +scons: building terminated because of errors. + +patch submitted by zimous + +--- glob2-0.9.4.4.orig/src/Game.h ++++ glob2-0.9.4.4/src/Game.h +@@ -149,6 +149,7 @@ + BOTTOM_TO_TOP + }; + ++public: + struct BuildProject + { + int posX; +@@ -159,6 +160,7 @@ + int unitWorkingFuture; + }; + ++private: + ///Initiates Game + void init(GameGUI *gui, MapEdit* edit); + diff --git a/games-strategy/glob2/files/glob2-0.9.4.4-gcc6.patch b/games-strategy/glob2/files/glob2-0.9.4.4-gcc6.patch new file mode 100644 index 000000000000..f1152c3ba1cc --- /dev/null +++ b/games-strategy/glob2/files/glob2-0.9.4.4-gcc6.patch @@ -0,0 +1,49 @@ +Bug: https://bugs.gentoo.org/610382 +Upstream commit: https://bitbucket.org/giszmo/glob2/commits/c9dc715624318e4fea4abb24e04f0ebdd9cd8d2a + +# HG changeset patch +# User Jonathan Wakely <jwakely@redhat.com> +# Date 1485875296 0 +# Node ID c9dc715624318e4fea4abb24e04f0ebdd9cd8d2a +# Parent c4da01699846179d8bf21e8dae2b973158ec0775 +Fix last argument to ChooseMapScreen constructor + +Since C++14 'false' is not a valid null pointer constant, so cannot be passed +to functions expecting pointer arguments. + +diff --git a/src/EditorMainMenu.cpp b/src/EditorMainMenu.cpp +--- a/src/EditorMainMenu.cpp ++++ b/src/EditorMainMenu.cpp +@@ -90,7 +90,7 @@ + } + else if (par1==LOADMAP) + { +- ChooseMapScreen chooseMapScreen("maps", "map", false, "games", "game", false); ++ ChooseMapScreen chooseMapScreen("maps", "map", false, "games", "game", NULL); + int rc=chooseMapScreen.execute(globalContainer->gfx, 40); + if (rc==ChooseMapScreen::OK) + { +diff --git a/src/LANMenuScreen.cpp b/src/LANMenuScreen.cpp +--- a/src/LANMenuScreen.cpp ++++ b/src/LANMenuScreen.cpp +@@ -62,7 +62,7 @@ + } + else if(par1 == HOST) + { +- ChooseMapScreen cms("maps", "map", false, "games", "game", false); ++ ChooseMapScreen cms("maps", "map", false, "games", "game", NULL); + int rc = cms.execute(globalContainer->gfx, 40); + if(rc == ChooseMapScreen::OK) + { +diff --git a/src/YOGClientLobbyScreen.cpp b/src/YOGClientLobbyScreen.cpp +--- a/src/YOGClientLobbyScreen.cpp ++++ b/src/YOGClientLobbyScreen.cpp +@@ -326,7 +326,7 @@ + + void YOGClientLobbyScreen::hostGame() + { +- ChooseMapScreen cms("maps", "map", false, "games", "game", false); ++ ChooseMapScreen cms("maps", "map", false, "games", "game", NULL); + int rc = cms.execute(globalContainer->gfx, 40); + if(rc == ChooseMapScreen::OK) + { diff --git a/games-strategy/glob2/files/glob2-0.9.4.4-scons-blows.patch b/games-strategy/glob2/files/glob2-0.9.4.4-scons-blows.patch new file mode 100644 index 000000000000..b0fb92d47974 --- /dev/null +++ b/games-strategy/glob2/files/glob2-0.9.4.4-scons-blows.patch @@ -0,0 +1,26 @@ +--- SConstruct.orig ++++ SConstruct +@@ -1,6 +1,7 @@ + EnsureSConsVersion(0, 96, 92) + import sys + import os ++import SCons.Util + import glob + sys.path.append( os.path.abspath("scons") ) + import bundle +@@ -268,6 +269,15 @@ + env["TARFILE"] = env.Dir("#").abspath + "/glob2-" + env["VERSION"] + ".tar.gz" + env["TARFLAGS"] = "-c -z" + env.Alias("dist", env["TARFILE"]) ++ # Using suggestions for https://dev.gentoo.org/~vapier/scons-blows.txt ++ if os.environ.has_key('CC'): ++ env['CC'] = os.environ['CC'] ++ if os.environ.has_key('CXX'): ++ env['CXX'] = os.environ['CXX'] ++ if os.environ.has_key('CXXFLAGS'): ++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) ++ if os.environ.has_key('LDFLAGS'): ++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) + + def PackTar(target, source): + if "dist" in COMMAND_LINE_TARGETS: diff --git a/games-strategy/glob2/files/glob2-0.9.4.4-underlinking.patch b/games-strategy/glob2/files/glob2-0.9.4.4-underlinking.patch new file mode 100644 index 000000000000..65eba48717db --- /dev/null +++ b/games-strategy/glob2/files/glob2-0.9.4.4-underlinking.patch @@ -0,0 +1,19 @@ +--- glob2-0.9.4.4.orig/SConstruct ++++ glob2-0.9.4.4/SConstruct +@@ -110,6 +110,16 @@ + print "Could not find libz or zlib1.dll" + missing.append("zlib") + ++ boost_system = '' ++ if conf.CheckLib("boost_system"): ++ boost_system="boost_system" ++ elif conf.CheckLib("boost_system-mt"): ++ boost_system="boost_system-mt" ++ else: ++ print "Could not find libboost_system or libboost_system-mt" ++ missing.append("libboost_system") ++ env.Append(LIBS=[boost_system]) ++ + boost_thread = '' + if conf.CheckLib("boost_thread") and conf.CheckCXXHeader("boost/thread/thread.hpp"): + boost_thread="boost_thread" diff --git a/games-strategy/glob2/glob2-0.9.4.4-r1.ebuild b/games-strategy/glob2/glob2-0.9.4.4-r1.ebuild new file mode 100644 index 000000000000..3017798e40f6 --- /dev/null +++ b/games-strategy/glob2/glob2-0.9.4.4-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils gnome2-utils scons-utils games + +DESCRIPTION="Real Time Strategy (RTS) game involving a brave army of globs" +HOMEPAGE="http://globulation2.org/" +SRC_URI="mirror://nongnu/glob2/${PV:0:5}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + >=dev-libs/boost-1.34[threads] + dev-libs/fribidi + media-libs/libsdl[opengl] + media-libs/libvorbis + media-libs/sdl-image[png] + media-libs/sdl-net + media-libs/sdl-ttf + media-libs/speex + virtual/glu + virtual/opengl" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-{gcc{44,49,6},scons-blows,underlinking}.patch +} + +src_configure() { + myesconsargs=( + INSTALLDIR="${GAMES_DATADIR}"/${PN} + DATADIR="${GAMES_DATADIR}"/${PN} + ) + escons data +} + +src_compile() { + escons +} + +src_install() { + dogamesbin src/${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r campaigns data maps scripts + find "${D}/${GAMES_DATADIR}"/${PN} -name SConscript -exec rm -f '{}' + + newicon -s 48 data/icons/glob2-icon-48x48.png ${PN}.png + make_desktop_entry glob2 "Globulation 2" + dodoc README* + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/glob2/metadata.xml b/games-strategy/glob2/metadata.xml new file mode 100644 index 000000000000..181fc4eec533 --- /dev/null +++ b/games-strategy/glob2/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> +Globulation2 is an innovative high quality Real-Time Strategy [RTS], +which minimizes micro-management by automatically assigning tasks to +the units. The player has to choose the number of units he wants for +the different tasks, and the units will do their best to satisfy the +requests. This allows to manage more units and to focus on strategies. +</longdescription> +</pkgmetadata> diff --git a/games-strategy/gorky17-demo/Manifest b/games-strategy/gorky17-demo/Manifest new file mode 100644 index 000000000000..bf51621c5e03 --- /dev/null +++ b/games-strategy/gorky17-demo/Manifest @@ -0,0 +1,6 @@ +DIST gorky17-demo-1.0-1.0.1-x86.run 955547 SHA256 557bd97400101da9b557a5bfc5e6b9d352a9f10f79c927f31d74581ba7acc16b SHA512 ffd054aa1b169de5cca3c85d58ce2cba127f0caca533f8d4f0046ce63e5505a0ea25c3bbea9a2dde863a8fecefb7f8d322968f90ab3f688dee70a2f0d44826ba WHIRLPOOL c133f6175cfaf5e71c183687fa78b49ab7df1816f6ec9ee8696f9be0c7d5ea2b4e0d39decbb7561db9a7e5ceacb78958e11072fbc5812f7c6627b58dde03cf4a +DIST gorky17_demo.run 158781516 SHA256 35cf62e06747bfe3445c1d3a61ad1644922528c264ff2ec7b5b510f9bc9dd51a SHA512 7e7bf2a6a9f815381381ef5c50135232db7c6ec734300b807794107ab1b902d659f55569ea03c7d68c3e6dbf98e366de8bca4fd13dac3c688ba48d2f244e9f00 WHIRLPOOL 5e4188d85efb60f3abaa56941a1005c14de26ba4a458cfb2dd3753cde825a1f3945351a06c82b934b4f1c94c9dacf1e2d9b00d17852eb1e140166131dab66192 +EBUILD gorky17-demo-1.0.1.0.1-r1.ebuild 1842 SHA256 84d255c72f0ea745990724d8192f1467268955d15a83fe08e0cb97fe40e9c28a SHA512 bfa408ffe721ce04e2df65e4a02c9bc981a0ca796b93b12affc63ba4d75fce7f1b88110af0b7be73bc84fef1cd1f2656ec8aa06343837f525a70a60e8163aed7 WHIRLPOOL 3267daf4730b59e61821c87fb73eb5fdfe3a18638825fb6dcb6d2ebcef4b1d6b113293d02c9e6addc5a929450a06a8bb4c440dea60971e829b3ca96273a7af34 +MISC ChangeLog 2462 SHA256 e18e52bc94326370c966715c15e38cb3e64305e3588ea3aa589611c72110f456 SHA512 63ecb1544f80c6fb2582cb96c31a60ea040e9109efde2935098f208868a50f03fbafa330a416d7f2a3f85ae26677986038af48931feb5fe88a646e087861f4bb WHIRLPOOL e45624272dc711006dda2da5d7518d5e78c23b786b76e3e22c2e97f676d0f0daba39bec296c887ae64a935263933baa7f4828494a622f0d8243a93f4f169efbd +MISC ChangeLog-2015 2251 SHA256 995d9621c18649dfb8d673d175ef086079f3e21ef6db1bfeed13f3833a2a6302 SHA512 aa40d65b181948088b3a574cc44edecbbce8790915ab0c0938d36a4f4fd0c860dc30709073721e11f39a663833c1dd3086b2a759754f26b95884c92a95edea1b WHIRLPOOL 3d03e3cb1ea4f13935900c9955c90c4788ef02a8f678f4f7598d979cb25252d117d8ecd3d7e760a0705d9cc2a842dc6f25049dda73fef8d39d913859f630a4d6 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/gorky17-demo/gorky17-demo-1.0.1.0.1-r1.ebuild b/games-strategy/gorky17-demo/gorky17-demo-1.0.1.0.1-r1.ebuild new file mode 100644 index 000000000000..5a65f2538872 --- /dev/null +++ b/games-strategy/gorky17-demo/gorky17-demo-1.0.1.0.1-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils unpacker versionator games + +MY_PN="gorky17" +MY_PV=$(replace_version_separator 2 '-') + +DESCRIPTION="Horror conspiracy game mixing elements of strategy and role-playing" +HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=gorky17" +SRC_URI="http://demofiles.linuxgamepublishing.com/${MY_PN}/${MY_PN}_demo.run + http://updatefiles.linuxgamepublishing.com/gorky17-demo/${PN}-${MY_PV}-x86.run" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +RESTRICT="mirror bindist strip" + +RDEPEND=" + >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r4[abi_x86_32(-)] + >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)] + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + >=x11-libs/libXau-1.0.7-r1[abi_x86_32(-)] + >=x11-libs/libXdmcp-1.1.1-r1[abi_x86_32(-)] + >=x11-libs/libXext-1.3.2[abi_x86_32(-)]" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +QA_EXECSTACK="${dir:1}/gorky17_demo ${dir:1}/gorky17_demo.dynamic" + +src_unpack() { + unpack_makeself ${MY_PN}_demo.run + unpack ./data/data.tar.gz + + mkdir patch_dir + cd patch_dir + unpack_makeself ${PN}-${MY_PV}-x86.run + cd "${S}" + + # Apply patch + mv bin/Linux/x86/* . + mv patch_dir/*.sh . + ./patch_dir/bin/Linux/x86/loki_patch patch_dir/patch.dat . || die + + rm -r update.sh *patch.sh data lgp_* patch_dir setup* bin +} + +src_install() { + insinto "${dir}" + doins -r * + rm "${Ddir}"/${MY_PN}* + + exeinto "${dir}" + doexe ${MY_PN}* + + games_make_wrapper ${PN} ./${MY_PN}_demo "${dir}" "${dir}" + newicon icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Gorky 17 (Demo)" ${PN} + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + + elog "The instruction manual is available as:" + elog " http://demofiles.linuxgamepublishing.com/gorky17/manual.pdf" + echo +} diff --git a/games-strategy/gorky17-demo/metadata.xml b/games-strategy/gorky17-demo/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/gorky17-demo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/gwp/Manifest b/games-strategy/gwp/Manifest new file mode 100644 index 000000000000..f80a062d3041 --- /dev/null +++ b/games-strategy/gwp/Manifest @@ -0,0 +1,7 @@ +AUX gwp-0.4.0-exec-stack.patch 2842 SHA256 645f0b054e476ce11e7d4b5c7fe6a9402122afb02dc69b70b15c51c808aa80d5 SHA512 b6845071c5639e4d240742e7470de4723e534814b670e8b98b1971c6e1ae2a64a8d4b8ffaf86ef28bdf3ad6d861dfeee5e2c5e46c43ea955614999fbed46da96 WHIRLPOOL f792febe013ae3d79740eb10ec5adeba1c696106c73d5afd136bb7bc46fe22dc2c853e7a592ccd1895ba5549663c78bcb68bccde771f7cb39eb742954d6a8fbc +AUX gwp-0.4.0-gcc41.patch 4100 SHA256 36f37f2f7e2444830fd5216df3060ee74eab5108dd0daa2ce71970821ed05367 SHA512 0e3acd8978f3a6f1585ad45c2d04c97282daa9173b6d67807d473d79bbc665be4a3471537139e9d710832afeff5e6aa4a3064c3cc36cfe3beba012f330530f31 WHIRLPOOL 3a60665b6e97896d5ac39c8f2019c857e35ab572ed42ffe631aefedbe078bff8064f538c7a32c601e58032efef4753b0d344f2bec01afb2a809f87dedd631faa +DIST gwp-0.4.0.tar.gz 2294453 SHA256 e2734e019e2c3ef28cb0abd524c193ec5beb35d2bc8ba3e10652fac45c8bbe99 SHA512 dcb23bb49929bc01129ab5f02b56edb7f775feb0c37bd7613277af8aa0f4b47667f95413725f74a2b83b60159555a50fcabdc8736094aad0684b03cd150b4957 WHIRLPOOL 4c3cc223799132bf2021e1cb2bc10c88ecd41f3ec7191aaf2c115b91985bfd0717ce70f476234bc64f52286c19ba6a9b9e3722f4d81cf2b91ce9c0b1579b9cd9 +EBUILD gwp-0.4.0-r3.ebuild 1310 SHA256 4ac3c314d4a3774a65504f0766b91409571e48e29f442267521f4b5a0afb207d SHA512 ccf43b97d60c7d3cc9cb6d67b99112664c0cf10147391e466857afdbd45ae2845556fb58e273516fe157408e5f9c4eee5088ca43662f79a40ef4334493e6f49f WHIRLPOOL a1ce910e4db37525d272c087851c3106b52552af19b689ca237cccec81bd5493269e44569df3611b9cfcc2f931e544cb4a031fb44b50a3363b5b7e344f7ff858 +MISC ChangeLog 2494 SHA256 85a42f950384176dd2534c82e18dd7ef8f5fb7c92dd78d7dd827a0c363ace82b SHA512 138b1ea2028f71f24bd2e205165d4a916380499f24e237a3534bf7dbd8dea2284e3457880f6764a3c91e6a5a054ca797f3cd52f7c1594edcdb9e0f23945b9780 WHIRLPOOL e6f83bac52ca6d01dea1a989db627adfca0d1ba3a11285f82e92ad6f22551fa8b7bd65e373acb68fe8b1436b56c111295c98ebd77c19f3d58d0527e9a77b4750 +MISC ChangeLog-2015 2326 SHA256 729ab2e93310f9571ef3c0466446a623e67a048df8438f1837036617cd96a7e7 SHA512 e37c6d645d09fd9becf976827b3d7b427b7983d4380c9a5fdd946badb68c3f8b939ff1134a7134ac918c7119c6f99c1edd4b268a675be7029fcd791ab833dd9d WHIRLPOOL ac0397c3968e10350bbf0e8e3e66480c381007f0905c3896cb9c44ea4334baf118716fcfc8697c2cb86fb8004106770c9fb1670d9d21c09aa27bc6341f222884 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/gwp/files/gwp-0.4.0-exec-stack.patch b/games-strategy/gwp/files/gwp-0.4.0-exec-stack.patch new file mode 100644 index 000000000000..1458b7ba1dfd --- /dev/null +++ b/games-strategy/gwp/files/gwp-0.4.0-exec-stack.patch @@ -0,0 +1,89 @@ +--- src/starchart.c ++++ src/starchart.c +@@ -3187,10 +3187,16 @@ + /** + * Initializes starchart constellations. + */ ++static GSList *planets; ++ ++static void add_item (gpointer key, gpointer value, gpointer user_data) { ++ /* GSList *p_list = (GSList *)user_data; */ ++ planets = g_slist_append (planets, value); ++} ++ + static void + init_starchart_constellations (void) + { +- GSList *planets = NULL; + GSList *ppq[TOTAL_QUADS]; + GSList *list_nearby = NULL; + GwpPlanet *planet_a, *planet_b; +@@ -3199,10 +3205,6 @@ + gdouble wx, wy; + gdouble ax, ay, bx, by, zoom; + +- static void add_item (gpointer key, gpointer value, gpointer user_data) { +- /* GSList *p_list = (GSList *)user_data; */ +- planets = g_slist_append (planets, value); +- } + + g_hash_table_foreach (planet_list, (GHFunc)add_item, NULL); + +--- src/vcr.c ++++ src/vcr.c +@@ -2687,12 +2687,29 @@ + return( retval ); + } + ++static gchar *name; ++ ++static void foreach_func( gpointer key, gpointer value, gpointer user_data ) ++{ ++ GwpShip *ship = GWP_SHIP( value ); ++ GtkComboBox *box = GTK_COMBO_BOX( lookup_widget( "vcr_comboboxentry_sel_ext_shp_a" ) ); ++ gint *idlist = (gint *)g_object_get_data(G_OBJECT(lookup_widget("vcr_comboboxentry_sel_ext_shp_a")), "shipidlist"); ++ gint curr = idlist[0]; ++ ++ if( gwp_ship_is_mine( ship ) ) ++ { ++ curr++; ++ idlist[curr] = gwp_object_get_id( GWP_OBJECT(ship) ); ++ idlist[0]++; ++ g_sprintf( name, "%03d: ", idlist[curr] ); ++ strncat( name, gwp_object_get_name (GWP_OBJECT(ship)), 50 ); ++ gtk_combo_box_append_text( box, name ); ++ } ++} + + void vcr_populate_ship_a_list( GtkWidget *widget, gpointer user_data ) + { +- gchar *name; + gint *idlist; +- static void foreach_func( gpointer key, gpointer value, gpointer user_data ); + + /* test if list is already populated */ + idlist = (gint *)g_object_get_data(G_OBJECT(lookup_widget("vcr_comboboxentry_sel_ext_shp_a")), "shipidlist"); +@@ -2708,23 +2725,7 @@ + GtkWidget *combox = lookup_widget("vcr_comboboxentry_sel_ext_shp_a"); + g_object_set_data(G_OBJECT(combox), "shipidlist", idlist ); + +- void foreach_func( gpointer key, gpointer value, gpointer user_data ) +- { +- GwpShip *ship = GWP_SHIP( value ); +- GtkComboBox *box = GTK_COMBO_BOX( lookup_widget( "vcr_comboboxentry_sel_ext_shp_a" ) ); +- gint *idlist = (gint *)g_object_get_data(G_OBJECT(lookup_widget("vcr_comboboxentry_sel_ext_shp_a")), "shipidlist"); +- gint curr = idlist[0]; + +- if( gwp_ship_is_mine( ship ) ) +- { +- curr++; +- idlist[curr] = gwp_object_get_id( GWP_OBJECT(ship) ); +- idlist[0]++; +- g_sprintf( name, "%03d: ", idlist[curr] ); +- strncat( name, gwp_object_get_name (GWP_OBJECT(ship)), 50 ); +- gtk_combo_box_append_text( box, name ); +- } +- } + + g_hash_table_foreach( ship_list, (GHFunc) foreach_func, user_data ); + diff --git a/games-strategy/gwp/files/gwp-0.4.0-gcc41.patch b/games-strategy/gwp/files/gwp-0.4.0-gcc41.patch new file mode 100644 index 000000000000..fa7ee5c5443c --- /dev/null +++ b/games-strategy/gwp/files/gwp-0.4.0-gcc41.patch @@ -0,0 +1,107 @@ +--- src/gwp-game-state.c.old 2006-03-05 00:56:48.000000000 +0900 ++++ src/gwp-game-state.c 2006-03-05 00:57:38.000000000 +0900 +@@ -749,7 +749,7 @@ + /* Connect to interesting signals */ + /**********************************/ + /* Selected planets */ +- static void planet_conn (gpointer key, gpointer value, gpointer self) { ++ void planet_conn (gpointer key, gpointer value, gpointer self) { + g_signal_connect (GWP_PLANET(value), + "selected", + G_CALLBACK(selected_planet_notification), +@@ -757,7 +757,7 @@ + } + g_hash_table_foreach (planet_list, (GHFunc) planet_conn, self); + /* Selected ships */ +- static void ship_conn (gpointer key, gpointer value, gpointer self) { ++ void ship_conn (gpointer key, gpointer value, gpointer self) { + g_signal_connect (GWP_SHIP(value), + "selected", + G_CALLBACK(selected_ship_notification), +--- src/starchart.c.old 2006-03-05 01:13:39.000000000 +0900 ++++ src/starchart.c 2006-03-05 01:18:04.000000000 +0900 +@@ -2111,7 +2111,7 @@ + /*******************/ + /* Planets signals */ + /*******************/ +- static void planet_conn (gpointer key, gpointer value, gpointer data) { ++ void planet_conn (gpointer key, gpointer value, gpointer data) { + g_signal_connect (GWP_PLANET(value), + "property-changed", + G_CALLBACK(update_planet_notification), +--- src/vp_utils.c.old 2006-03-05 01:18:14.000000000 +0900 ++++ src/vp_utils.c 2006-03-05 01:18:52.000000000 +0900 +@@ -2590,7 +2590,7 @@ + gwp_planet_set_colonists (planet, atoi(p_clans)); + + /* Compare func */ +- static gint compare_race (gconstpointer race, gconstpointer adj) { ++ gint compare_race (gconstpointer race, gconstpointer adj) { + gchar *race_str = gwp_race_get_adjective(GWP_RACE(race)); + if (strncmp(race_str, adj, strlen(adj)) == 0) + return 0; +@@ -2639,7 +2639,7 @@ + /* Assign known planet values */ + gwp_planet_set_is_known (planet, TRUE); + /* Compare func */ +- static gint compare_race (gconstpointer race, gconstpointer adj) { ++ gint compare_race (gconstpointer race, gconstpointer adj) { + gchar *race_str = gwp_race_get_adjective(GWP_RACE(race)); + if (strncmp(race_str, adj, strlen(adj)) == 0) + return 0; +--- src/gwp-py-mappings.c.old 2006-03-05 01:28:39.000000000 +0900 ++++ src/gwp-py-mappings.c 2006-03-05 01:29:30.000000000 +0900 +@@ -8657,7 +8657,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_ship (gpointer key, gpointer value, gpointer user_data) { ++ void add_ship (gpointer key, gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpShip *ship = GWP_SHIP(value); + +@@ -8679,7 +8679,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_planet (gpointer key, gpointer value, gpointer user_data) { ++ void add_planet (gpointer key, gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpPlanet *planet = GWP_PLANET(value); + +@@ -8701,7 +8701,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_hullspec (gpointer value, gpointer user_data) { ++ void add_hullspec (gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpHullSpec *hullspec = GWP_HULLSPEC(value); + +@@ -8723,7 +8723,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_engspec (gpointer value, gpointer user_data) { ++ void add_engspec (gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpEngSpec *engspec = GWP_ENGSPEC(value); + +@@ -8745,7 +8745,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_beamspec (gpointer value, gpointer user_data) { ++ void add_beamspec (gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpBeamSpec *beamspec = GWP_BEAMSPEC(value); + +@@ -8767,7 +8767,7 @@ + { + PyObject *ret = PyDict_New(); + +- static void add_torpspec (gpointer value, gpointer user_data) { ++ void add_torpspec (gpointer value, gpointer user_data) { + PyObject *dict = (PyObject *)user_data; + GwpTorpSpec *torpspec = GWP_TORPSPEC(value); + diff --git a/games-strategy/gwp/gwp-0.4.0-r3.ebuild b/games-strategy/gwp/gwp-0.4.0-r3.ebuild new file mode 100644 index 000000000000..b70ca42037df --- /dev/null +++ b/games-strategy/gwp/gwp-0.4.0-r3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +GCONF_DEBUG="yes" +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic gnome2 python-single-r1 + +DESCRIPTION="GNOME client for the classic PBEM strategy game VGA Planets 3" +HOMEPAGE="http://gwp.lunix.com.ar/" +SRC_URI="http://gwp.lunix.com.ar/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nls opengl python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="x11-libs/gtk+:2 + gnome-base/libgnomeui + gnome-base/libglade + app-text/rarian + dev-libs/libpcre + nls? ( virtual/libintl ) + opengl? ( x11-libs/gtkglext ) + python? ( ${PYTHON_DEPS} + dev-python/pygtk[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + append-libs -lm + epatch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-exec-stack.patch + sed -i \ + -e '/ -O1/d' \ + -e '/ -g$/d' \ + src/Makefile.in || die + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + $(use_enable nls) \ + $(use_enable opengl gtkglext) \ + $(use_enable python) +} + +src_install() { + DOCS="AUTHORS ChangeLog CHANGES README TODO" \ + gnome2_src_install + rm -rf "${D}"/usr/share/doc/gwp +} diff --git a/games-strategy/gwp/metadata.xml b/games-strategy/gwp/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/gwp/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/hedgewars/Manifest b/games-strategy/hedgewars/Manifest new file mode 100644 index 000000000000..d890c168fabb --- /dev/null +++ b/games-strategy/hedgewars/Manifest @@ -0,0 +1,6 @@ +DIST hedgewars-src-0.9.22.tar.bz2 160103313 SHA256 b699c8971ff420c3edd6533527ae2e99040f1e79207c9140826945bcf0e62192 SHA512 753cccef09b725048d9e66988b03859a12e577a601656cc2b3dbb2755c59ed9ae4d4c88c9247238408fc76d881c921593a694a58a500b3d5b8c9a4c0cfb053ac WHIRLPOOL c8003da8d1435f4bece344a593bda9b214a24b35ee662310245e13cabc5f35820a38f9ac0883ba5543db413189491f6c3da37b7452034bfa9fb04e8936f52e27 +DIST hedgewars_0.9.22-dfsg-7.debian.tar.xz 79016 SHA256 7c57376a4f85ff33bf9345b46a4df72d70fe9824b8fd7df68b62107dbb8bb5cb SHA512 011d44989b6fcad9ae7a20fcb11a4e2b9a75d1ace6c6e4c2139cd7e67f13ea21d90b6c8a7afb76fa9a06c32537b00b8b4b7689967b3019300e93a7a6fe3e0fbf WHIRLPOOL a8a769b5275b6adec26dce48c113c4a5eb1c69eee9a01e181ec41b611e999a33349bad2b52eaf72099b1dbfce14a1af6e559aaceb3e2ac98ab04065c61bffca7 +EBUILD hedgewars-0.9.22-r1.ebuild 2159 SHA256 e2310efe4ddc60bed33c2276128c07d8992a26d0d4786ca9af685da4f31e8081 SHA512 3f7c300052cfc01e53ea4f6af00f85040201c4737f4681292ae668b8051ba4f898ad19f118f769e5b62f5a5337c7f51b7526e7caa9f9c3715ab559453d86030c WHIRLPOOL ca01be4aa770252a16136d23e398dbbff252b01e0b4bf60cd888b7270de4555543259954dd4d73d3e80bf1bc0f13c75d14713bf1751d56db1d3956ea162b2df0 +MISC ChangeLog 4030 SHA256 1a323a5e882d4fde594c29abaebf23999407cc5cbb638745b888fc3b9e80d248 SHA512 c5dc8595523219594b1c2ee907243e744ceab152112c67c883aee62b2cb0994d86967e50d9054da1e82b631a285a9e3be89d30a97ba589bda7e0af18e6c27eac WHIRLPOOL 76749404a0a372c879a00e5375ae175c15bd4b5d3c3b91b5df42473e48d031d660d3e77bfb49cbd6c3181c587880b329dd976a2431506677efc0361190fff854 +MISC ChangeLog-2015 10076 SHA256 b39f6b35a33e0647e33a95d42b9ddea11ae4fbf65d4e01c75661d1028045ebb7 SHA512 3355d7730828a131b2374a39d0f790247d9dc5851f5ce1345f6dd933f73e95efff841d939f6abe35af5854b5ecfad65b9576721e33c259a1d580a3a138b08c71 WHIRLPOOL a547d1848d08f991184d9543fd4e41855be84a6a068bd3489be747cfa2fbe2bbc73f149ebd978cbd8a48fcb67fc2dfa6de1d30f908a997f46566cccc5991b1e7 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/hedgewars/hedgewars-0.9.22-r1.ebuild b/games-strategy/hedgewars/hedgewars-0.9.22-r1.ebuild new file mode 100644 index 000000000000..09cb7e297c09 --- /dev/null +++ b/games-strategy/hedgewars/hedgewars-0.9.22-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# TODO: when physfs-2.1.0 hits the tree, set +# -DPHYSFS_SYSTEM=ON + +EAPI=5 +CMAKE_BUILD_TYPE=Release +CMAKE_MAKEFILE_GENERATOR=emake +inherit cmake-utils eutils games + +MY_P=${PN}-src-${PV} +DEB_PATCH_VER=7 +DESCRIPTION="A turn-based strategy, artillery, action and comedy game" +HOMEPAGE="http://hedgewars.org/" +SRC_URI="http://www.hedgewars.org/download/releases/${MY_P}.tar.bz2 + mirror://debian/pool/main/h/${PN}/${PN}_${PV}-dfsg-${DEB_PATCH_VER}.debian.tar.xz" + +LICENSE="GPL-2 Apache-2.0 FDL-1.3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +QA_FLAGS_IGNORED=${GAMES_BINDIR}/hwengine # pascal sucks +QA_PRESTRIPPED=${GAMES_BINDIR}/hwengine # pascal sucks + +RDEPEND=" + dev-lang/lua:0= + dev-qt/qtcore:4 + dev-qt/qtgui:4 + media-libs/freeglut + media-libs/libpng:0 + media-libs/libsdl[sound,opengl,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-net + media-libs/sdl-ttf + sys-libs/zlib + virtual/ffmpeg" +DEPEND="${RDEPEND} + >=dev-lang/fpc-2.4" +RDEPEND="${RDEPEND} + app-arch/xz-utils + media-fonts/wqy-zenhei + >=media-fonts/dejavu-2.28" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + EPATCH_SOURCE="${WORKDIR}/debian/patches" \ + epatch $(cat "${WORKDIR}/debian/patches/series") +} + +src_configure() { + local mycmakeargs=( + -DMINIMAL_FLAGS=ON + -DCMAKE_INSTALL_PREFIX="/usr" + -DDATA_INSTALL_DIR="${GAMES_DATADIR}/${PN}" + -Dtarget_binary_install_dir="${GAMES_BINDIR}" + -Dtarget_library_install_dir="$(games_get_libdir)" + -DNOSERVER=TRUE + -DCMAKE_VERBOSE_MAKEFILE=TRUE + -DPHYSFS_SYSTEM=OFF + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + DOCS="ChangeLog.txt README" cmake-utils_src_install + rm -f "${D}"/usr/share/games/hedgewars/Data/Fonts/{DejaVuSans-Bold.ttf,wqy-zenhei.ttc} + dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf \ + "${GAMES_DATADIR}"/hedgewars/Data/Fonts/DejaVuSans-Bold.ttf + dosym /usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc \ + "${GAMES_DATADIR}"/hedgewars/Data/Fonts/wqy-zenhei.ttc + doicon misc/hedgewars.png + make_desktop_entry ${PN} Hedgewars + doman man/${PN}.6 + prepgamesdirs +} diff --git a/games-strategy/hedgewars/metadata.xml b/games-strategy/hedgewars/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/hedgewars/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/heroes3-demo/Manifest b/games-strategy/heroes3-demo/Manifest new file mode 100644 index 000000000000..021ddcd6ce2b --- /dev/null +++ b/games-strategy/heroes3-demo/Manifest @@ -0,0 +1,5 @@ +DIST heroes3-demo.run 99026773 SHA256 15de1efce09839013b5e85eddc57364167c46776b181b124299362a79e6ce735 SHA512 a3f60f12f7ce8ea0f160ec211e1f077693ff2f5e4b8b85ae0e31f1230a910b4df7c8c6a340762d4f09c9845d6141d235307f933305557a75fc63f409e077ac71 WHIRLPOOL 7afbd806f6e91dbbf2481723ae36b23c3ada9b7093bed815091ea76a8045623b4d52319b319a928537698e8cc89dce0cfedb8ad5b3cf75ce9ec6421631442a8a +EBUILD heroes3-demo-1.3.1a.ebuild 1438 SHA256 efcf8f81ad318fef2967ed5322a4d9decd739ff6865492f19978b90f6f5ff032 SHA512 a5dd6d09ba5d48b505bf610fdddcefd537c1263d33f5de8d7076529c841910711bbdfd5579c7bfa0574a9d8c23afd4bf2decf0d349ac9a33903f635ed11ee00c WHIRLPOOL 55eea6ee0bc4c7205e23e60b81118ab154059878757ab2d3f6ec965efd608d3b432fe84bc2a5703e2aee6ba11f4299efed3ee706ec4473459bf28e6f90f351f7 +MISC ChangeLog 2450 SHA256 71aac295690aebbd82d0534ba30e6fad83f5d6eb7132b0e0d5089788e06c2c99 SHA512 6f9195736dcecf24e4ae414e5dd2c8a10ef8fca9535be2913e9c5ca92db8ae11c22848f6952ea14600fc2900519c9c6ddf9b11b0922a1c2f6043da0d909e0a32 WHIRLPOOL 3e8924a11a5822af5f944a0a5a2255ce2a992df5a183e7ace65466557ba85aea4ded90e711d49a752f11aa0d48fc5410424cb0d69d68df51215220a55558487a +MISC ChangeLog-2015 1604 SHA256 a13475b26998b65404b796c057e6ef412e5910b5308d7fcaf8419343947e39c4 SHA512 7ef2723da8c83ca817c303495b937642a8d25afa6cde666f9e0d285c807dd8b8aff0d99a3ce50dccdceaf066d6cc7a20bda6709e2830a359823a8d104ea6012d WHIRLPOOL 750f279b32eaa673e0fea452a318927af42473c46c7a0afc335e759fe468f949d72222372e92c64e1f2c09ddc5bd8651b22763f78cde29833db6553c850db80f +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild b/games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild new file mode 100644 index 000000000000..d20f909b2cb3 --- /dev/null +++ b/games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils unpacker games + +MY_PN=${PN%-demo} + +DESCRIPTION="turn-based 2D medieval combat" +HOMEPAGE="http://www.lokigames.com/products/heroes3/" +SRC_URI="mirror://lokigames/loki_demos/${PN}.run" + +LICENSE="all-rights-reserved" +SLOT="0" +# Should also work on ppc +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="mirror bindist strip" + +DEPEND="games-util/loki_patch" +RDEPEND=">=sys-libs/lib-compat-loki-0.2 + || ( + ppc? ( + x11-libs/libX11 + ) + !ppc? ( + x11-libs/libX11[abi_x86_32(-)] + ) + )" + +dir=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${dir:1}/*" + +S=${WORKDIR} + +src_install() { + # Apply patch + loki_patch patch.dat data/ || die + + local demo="data/demos/${MY_PN}_demo" + + local exe_stub="${MY_PN}_demo" + if use ppc ; then + exe="${exe_stub}.ppc" + else + exe="${exe_stub}.x86" + fi + + insinto "${dir}" + exeinto "${dir}" + doins -r "${demo}"/* + rm "${D}/${dir}"/{${exe_stub}*,*.sh} || die + doexe "${demo}/${exe}" + + einfo "Linking libs provided by 'sys-libs/lib-compat-loki' to '${dir}'." + dosym /lib/loki_ld-linux.so.2 "${dir}"/ld-linux.so.2 + dosym /usr/lib/loki_libc.so.6 "${dir}"/libc.so.6 + dosym /usr/lib/loki_libnss_files.so.2 "${dir}"/libnss_files.so.2 + + games_make_wrapper ${PN} "./${exe}" "${dir}" + newicon "${demo}/icon.xpm" ${PN}.png + make_desktop_entry ${PN} "Heroes of Might and Magic III (Demo)" ${PN} + + prepgamesdirs +} diff --git a/games-strategy/heroes3-demo/metadata.xml b/games-strategy/heroes3-demo/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/heroes3-demo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/heroes3/Manifest b/games-strategy/heroes3/Manifest new file mode 100644 index 000000000000..0e0299688d8d --- /dev/null +++ b/games-strategy/heroes3/Manifest @@ -0,0 +1,7 @@ +AUX heroes3-wrapper.sh 195 SHA256 982b2c36a167dd99a6bddc14d13122cf73e306e2711147aa059b1dabb4ae1ae5 SHA512 ac1871676ffb0c818ddd9dcadad031d3e296982a989dcc91241b2630eb773e341058e1d4406374a21bcc0f6c8caba94398541ddbc540e7c140660838ef3ed0c8 WHIRLPOOL 990180cd2e28edf3b0118ab744964604b6743f42015cc5fe8cdface011a9a1cd83fa60a9977feac851af5fb8126de94dff94bf04f1bf0b958fbf30ad8445a901 +DIST heroes3-1.3.1a-cdrom-x86.run 3012188 SHA256 f87d78e09278e2f05cb15e2f79dfeaae2cef8fb147b83185dd4f818c0ab7759e SHA512 d0cb902386361b17009aece0d0508a0c19683c71acf3abe11a7f50ec2d4710a89cda3f5f9da326b58e9b945da5f62533dea54457e141ce71ebc3e9945dca814d WHIRLPOOL 3f58f6c6a06b2cf5b6e0b090bf4e481428854ee5263391ee85b9c7f1dcfe026a0f5b07f1f4d2c636024370e3c304a488f0fdfd6a6148ad89b40c1e7a42cc10d5 +DIST heroes3-1.3.1a-ppc.run 2643068 SHA256 b14eeb8eef705b20dbf54eb308b2232d6110f4ec568cb82d9ea9fb7f9cca3137 SHA512 3578dbed0ed9fd47f67e6abaec4b4d66628160509e68dc3bea7b5288230e344b5b8f9d380c6a35ffc9d084d0e2a54ce84df72b13bfb609fa4d7edd1456264276 WHIRLPOOL a073ddbb8f871219ea605946cc1ec16e07c888ed0ebb174c59df8e402439db61dbe2c4164e929e7e8b0becb09083078ebfb62e0ec30b88dc5007326cbf687509 +EBUILD heroes3-1.3.1a-r2.ebuild 5511 SHA256 fff1ce53659ca2366ebac0bd258e44caa179f1b52661c1cb9082e1eef4d54be8 SHA512 af0a878e7f93e8ff8cfd193496123fb5325782a59cbb77b841b9f0e03f6abe15420229d2e0e4bcb09d233979bbfe53810d52f46a2a47fa286e7d8549c3a70ccc WHIRLPOOL 6d29ecda4b8cfa89814b97bcb746181a84488f5c46f7d952123e7fdcdd0e9a1ac58d0604ac61dbe0906a77592d1ea073a42209e1528cf69cffc7de0e5c187f41 +MISC ChangeLog 2468 SHA256 e76661a35949c805455fb7025e85dfc86665a499e47c7fd286da181d571c2b0a SHA512 d8223defa86ca0e10e2fdc3983cb72ebc14f9d1b6dcfcdce2e78b59c23fd69faba233b2b8367a44c201cf78f6ef36a710dc7fdf01144273dfcc333f4ef635cf5 WHIRLPOOL 9652aad6f71753b89c1c4a38b88e8ddc123293c627ff85f4d453d0617d72bca72b9616c92e10ba274bd3c953b29185ae426090f3efa623b2b4deea3d24cdf38f +MISC ChangeLog-2015 4252 SHA256 8e998af35de559616d0861f813b65bf3400b61976536af077847906d0dae3ac4 SHA512 c9628e99918f3ab21c5a9b4ef1e62ae63ea6a7c5c1bd12a4ceb664eb193d829aa7b16b23cfecfa2f0a34d4f2bc171cb022f0f12fe69073b042d3b55f4a705ca2 WHIRLPOOL 5399720977f5e71216cd1e6e3d0915ef61e36df35e1c7a17b580d28b57a85fb5da59e7f5f031f53c0931fbace8e5da691d342a0ff81cd134ecb17f9ef14d72f7 +MISC metadata.xml 451 SHA256 c1226a80869984e289b993b0794a61075a9afaee837ddccccfc7a1567af7cacc SHA512 d4b4f5dd75aec49703e77221d3811c20f72405f45f5ac7990e46a8cf8d639f3c53c5bfae13e6615c0a0ac16ee57073c8e92de355f7e1ac934d9be6b90bce6990 WHIRLPOOL 5fb7da0d785aae163d4141d292f7fb3f1343716740cb4fe140c08cb9ee44f1fe1942d080aeb98c201a5de2a0cd95f1fe05f099f2d05d82c1352f2e6d5faa0426 diff --git a/games-strategy/heroes3/files/heroes3-wrapper.sh b/games-strategy/heroes3/files/heroes3-wrapper.sh new file mode 100644 index 000000000000..3847c539ed76 --- /dev/null +++ b/games-strategy/heroes3/files/heroes3-wrapper.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +DIR="${HOME}/.loki/heroes3" + +if [ ! -d "${DIR}" ]; then + echo "* Creating '${DIR}'" + mkdir -p ${DIR} +fi + +# fixes bug #93604 +cd ${DIR} + +exec GAMES_PREFIX_OPT/heroes3/heroes3 ${@} diff --git a/games-strategy/heroes3/heroes3-1.3.1a-r2.ebuild b/games-strategy/heroes3/heroes3-1.3.1a-r2.ebuild new file mode 100644 index 000000000000..2459ec99fb7b --- /dev/null +++ b/games-strategy/heroes3/heroes3-1.3.1a-r2.ebuild @@ -0,0 +1,208 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# [x] Base Install Required (+4 MB) +# [x] Scenarios (+7 MB) +# [x] Sounds and Graphics (+118 MB) +# [x] Music (+65 MB) +# [x] Videos (+147 MB) +# -------------------- +# Total 341 MB + +EAPI=5 +LANGS="de es pl" +LANGPACKPREFIX="${PN}-lang" +LANGPACKBASE="http://babelize.org/download/" +LANGPACKPATHPREFIX="${LANGPACKBASE}/${LANGPACKPREFIX}" +LANGPACKVERSION=1.0.4 + +inherit eutils unpacker cdrom games + +DESCRIPTION="Heroes of Might and Magic III : The Restoration of Erathia - turn-based 2-D medieval combat" +HOMEPAGE="http://www.lokigames.com/products/heroes3/" + +# Since I do not have a PPC machine to test with, I will leave the PPC stuff in +# here so someone else can stabilize loki_setupdb and loki_patch for PPC and +# then KEYWORD this appropriately. +SRC_URI="x86? ( mirror://lokigames/${PN}/${P}-cdrom-x86.run ) + amd64? ( mirror://lokigames/${PN}/${P}-cdrom-x86.run ) + ppc? ( mirror://lokigames/${PN}/${P}-ppc.run )" +# This is commented because the server is unreachable. +# linguas_es? ( ${LANGPACKPATHPREFIX}-es.tar.gz ) +# linguas_de? ( ${LANGPACKPATHPREFIX}-de.tar.gz ) +# linguas_pl? ( ${LANGPACKPATHPREFIX}-pl.tar.gz )" + +# ${LANGPACKBASE}/${PN}-localize-${LANGPACKVERSION}.run + +LICENSE="LOKI-EULA" +SLOT="0" +IUSE="nocd maps music sounds videos" +#linguas_en linguas_es linguas_pl linguas_de" +KEYWORDS="~amd64 x86" +RESTRICT="strip" + +DEPEND="=dev-util/xdelta-1* + games-util/loki_patch" +RDEPEND="!ppc? ( sys-libs/lib-compat-loki )" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +pkg_setup() { + games_pkg_setup +# strip-linguas en ${LANGS} + + use nocd && fullinstall=1 + use sounds && use videos && use maps && fullinstall=1 + + [[ ${fullinstall} -eq 1 ]] \ + && ewarn "The full installation takes about 341 MB of space!" + +# if [[ -n "${fullinstall}" ]] +# then +# langcount=0 +# for i in ${LINGUAS} +# do +# i="${i/_/-}" +# if [[ ${i} != "en" ]] +# then +# let $((++langcount)) +# if [[ $langcount = 2 ]] +# then +# eerror "Heroes3 only supports one localization at once!" +# die "Localization is only supported when Heroes3 is in a single language!" +# fi +# fi +# done +# else +# for i in ${LINGUAS} +# do +# i="${i/_/-}" +# if [[ ${i} != "en" ]] +# then +# eerror "Full installation (nocd flag or data + video + maps flags) is needed for ${i} language!" +# die "Localization is only supported when Heroes3 is fully locally installed!" +# fi +# done +# fi +} + +src_unpack() { + cdrom_get_cds hiscore.tar.gz + (use x86 || use amd64) && unpack_makeself ${P}-cdrom-x86.run + use ppc && unpack_makeself ${P}-ppc.run + +# for i in ${LINGUAS} +# do +# i="${i/_/-}" +# if [[ ${i} != "en" ]] +# then +# mkdir localize +# cd localize +## unpack_makeself ${PN}-localize-${LANGPACKVERSION}.run +# unpack ${LANGPACKPREFIX}-${i}.tar.gz +# break +# fi +# done +} + +src_install() { + exeinto "${dir}" + insinto "${dir}" + einfo "Copying files... this may take a while..." + doexe "${CDROM_ROOT}"/bin/x86/${PN} + doins "${CDROM_ROOT}"/{Heroes_III_Tutorial.pdf,README,icon.{bmp,xpm}} + + if use nocd + then + doins -r "${CDROM_ROOT}"/{data,maps,mp3} + else + if use maps + then + doins -r "${CDROM_ROOT}"/maps + fi + if use music + then + doins -r "${CDROM_ROOT}"/mp3 + fi + if use sounds + then + insinto "${dir}"/data + doins "${CDROM_ROOT}"/data/{*.lod,*.snd} + fi + if use videos + then + doins -r "${CDROM_ROOT}"/data/video + fi + fi + +# if [[ -n "${fullinstall}" ]] +# then +# for i in ${LINGUAS} +# do +# i="${i/_/-}" +# if [[ ${i} != "en" ]] +# then +# find "${S}/localize/${i}" -type f | while read xfile +# do +# local file=$(echo "${xfile}" | \ +# sed "s#^${S}/localize/${i}/##;s#\.xdelta\$##") +# ebegin "Localizing ${file}" +# xdelta patch "${xfile}" "${Ddir}/${file}" "${Ddir}/${file}.xdp" +# local retval=$? +# if [[ $retval = 0 ]] +# then +# mv -f "${Ddir}/${file}.xdp" "${Ddir}/${file}" +# else +# rm -f "${Ddir}/${file}.xdp" +# fi +# eend $retval "File $file could not be localized/patched! Original english version untouched..." +# done +# break +# fi +# done +# fi + + tar zxf "${CDROM_ROOT}"/hiscore.tar.gz -C "${Ddir}" || die + + cd "${S}" + loki_patch --verify patch.dat + loki_patch patch.dat "${Ddir}" >& /dev/null || die + + # now, since these files are coming off a cd, the times/sizes/md5sums wont + # be different ... that means portage will try to unmerge some files (!) + # we run touch on ${D} so as to make sure portage doesnt do any such thing + find "${Ddir}" -exec touch '{}' \; + + newicon "${CDROM_ROOT}"/icon.xpm heroes3.xpm + + prepgamesdirs + make_desktop_entry heroes3 "Heroes of Might and Magic III" "heroes3" + + if ! use ppc + then + einfo "Linking libs provided by 'sys-libs/lib-compat-loki' to '${dir}'." + dosym /lib/loki_ld-linux.so.2 "${dir}"/ld-linux.so.2 + dosym /usr/lib/loki_libc.so.6 "${dir}"/libc.so.6 + dosym /usr/lib/loki_libnss_files.so.2 "${dir}"/libnss_files.so.2 + fi + + elog "Changing 'hiscore.dat' to be writeable for group 'games'." + fperms g+w "${dir}/data/hiscore.dat" + + # in order to play campaign games, put this wrapper in place. + # it changes CWD to a user-writeable directory before executing heroes3. + # (fixes bug #93604) + einfo "Preparing wrapper." + cp "${FILESDIR}"/heroes3-wrapper.sh "${T}"/heroes3 || die + sed -i -e "s:GAMES_PREFIX_OPT:${GAMES_PREFIX_OPT}:" "${T}"/heroes3 || die + dogamesbin "${T}"/heroes3 +} + +pkg_postinst() { + games_pkg_postinst + elog "To play the game run:" + elog " heroes3" +} diff --git a/games-strategy/heroes3/metadata.xml b/games-strategy/heroes3/metadata.xml new file mode 100644 index 000000000000..5ae90d93661b --- /dev/null +++ b/games-strategy/heroes3/metadata.xml @@ -0,0 +1,13 @@ +<?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="maps">Installs optional map data</flag> + <flag name="music">Installs optional music data</flag> + <flag name="sounds">Installs optional sound data</flag> + </use> +</pkgmetadata> diff --git a/games-strategy/ja2-stracciatella-data/Manifest b/games-strategy/ja2-stracciatella-data/Manifest new file mode 100644 index 000000000000..1f064d204aea --- /dev/null +++ b/games-strategy/ja2-stracciatella-data/Manifest @@ -0,0 +1,4 @@ +EBUILD ja2-stracciatella-data-1.ebuild 1311 SHA256 8d8924e0e377a829870b4f42fad761a773c0a7125668f0d1896dda44f11bbdcb SHA512 f7802c8c2464f450a5ad231bece88dd8119b619991bf9aba6087f856f6811f4290a1df80997fcab9eb22ca78f825c3e90b42d5fffc0adab0f9132c5edd167dbb WHIRLPOOL 08f60b4746b05174abef8aa8b2867734acc18247ff0fb97e3b99460668f2ffa473666d06bc4daeca841282abd48f93902beb760b9972aa267a75fbded83ba07b +MISC ChangeLog 3020 SHA256 36a102a9ec86f0bf6d965ac3a7d8fc1a92df30a72b0c6184b2e0abd670bef9e1 SHA512 b40cbc8e105b6d2c229c1357a454d3cc65f9a50757e7a02534fbf201876d1d8775948617f54af1cf2bcf0356f5046901e012f5229ccea76a12f836d4a54fb6b5 WHIRLPOOL 69eec4a95166f2fc93e820e7d9f0c1018c3c0840de0ccc0eb0df5429093bab80520189da1803e1571d1d96a3c22c1c8bd54a2b8a3fe766d0c2ea2ab4824028df +MISC ChangeLog-2015 859 SHA256 a70082131e7aec5950441011f7750ee56b2fcc6499694c37f4996cc08447af71 SHA512 b3fb8c59fe62acadfb1d61978b15d230a94833a9dae9ea3de47e249ae32bc22c64637605bf7339a5b9a97c75e09c0ca603fee97e29711ae732454c5b10464ea1 WHIRLPOOL a53d0968c11d14b4dbe9bc40af8a2bf3f6780a1da0bc61e81f3011913e291358b6cf961b229eba12bdba2c35ed6f935145360d080497765a6b131a243c5c43e1 +MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854 diff --git a/games-strategy/ja2-stracciatella-data/ja2-stracciatella-data-1.ebuild b/games-strategy/ja2-stracciatella-data/ja2-stracciatella-data-1.ebuild new file mode 100644 index 000000000000..2be69ceaae8d --- /dev/null +++ b/games-strategy/ja2-stracciatella-data/ja2-stracciatella-data-1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit cdrom check-reqs games + +DESCRIPTION="A port of Jagged Alliance 2 to SDL (data files)" +HOMEPAGE="http://tron.homeunix.org/ja2/" +SRC_URI="" + +LICENSE="SIR-TECH" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="app-arch/unshield" + +S=${WORKDIR} + +CHECKREQS_DISK_BUILD="3G" +CHECKREQS_DISK_USR="1G" + +src_unpack() { + export CDROM_NAME="INSTALL_CD" + + cdrom_get_cds INSTALL/data1.cab + + # this makes some serious overhead + unshield x "${CDROM_ROOT}"/INSTALL/data1.cab || die "unpacking failed" +} + +src_prepare() { + cd "${S}"/Ja2_Files/Data || die + local lower i + + # convert to lowercase + find . \( -iname "*.jsd" -o -iname "*.wav" -o -iname "*.sti" -o -iname "*.slf" \) \ + -exec sh -c 'echo "${1}" + lower="`echo "${1}" | tr [:upper:] [:lower:]`" + [ -d `dirname "${lower}"` ] || mkdir `dirname ${lower}` + [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \; + + # remove possible leftover + rm -r ./TILECACHE ./STSOUNDS +} + +src_install() { + insinto "${GAMES_DATADIR}"/ja2/data + doins -r "${S}"/Ja2_Files/Data/* + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "This is just the data portion of the game. You will need to install" + elog "games-strategy/ja2-stracciatella to play the game." +} diff --git a/games-strategy/ja2-stracciatella-data/metadata.xml b/games-strategy/ja2-stracciatella-data/metadata.xml new file mode 100644 index 000000000000..26079e608bed --- /dev/null +++ b/games-strategy/ja2-stracciatella-data/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> +</pkgmetadata> diff --git a/games-strategy/ja2-stracciatella/Manifest b/games-strategy/ja2-stracciatella/Manifest new file mode 100644 index 000000000000..67adcf0708f5 --- /dev/null +++ b/games-strategy/ja2-stracciatella/Manifest @@ -0,0 +1,9 @@ +AUX ja2-convert.sh 411 SHA256 da4faae4eeee35c9bacb24733da911bd735bf4b6985ce0abfef24b3a2326ef91 SHA512 478a8e94c10d69c18812a42fdc6766b77ef743793df38665677e9a878743a770a5565fed1a487e992ce0609d0fa371fb027ee55a9e01c32c283ad75f8a62c09d WHIRLPOOL a42c00289582028cf49fc50300f5c0be069a6b11c77942d36fad774b1951fd296c905bae6bb44f9dde53315f6349c9be0dd5a667ef7d16dc24cec1dc7303223e +AUX ja2-stracciatella-0.12.1_p7072-gcc6.patch 526 SHA256 1f09c70e835942f33c3a944526efdd9d6b703373b0cda04e2800f6e35fd9bb9e SHA512 15aabca2fc0e9d7cab0b4c7ed471eda8029e073250959f038a714eccbddddc1a0dc0aab54e7f45dd988347b52346386e90e75c29025698c9d7814c3fb10a5b1f WHIRLPOOL e813b1bf4abf9459ff2067305912dcdd4035f0e0210d0f4ef729e69195d33f79e4b1ae1225059a2a6d1565dec6958804e4402fe7a7cfc5921d52a3e024d067ec +AUX ja2-stracciatella-0.12.1_p7072-makefile.patch 3666 SHA256 173bc8800034c1d776ea080d05364cde8579bdb15340d96f14bac4a8b8f01283 SHA512 07cd2f1367bd9dbad9bc6ec3d633fc77bf337dddf69d69da7c297722c1684c9c80e88b918b89dc2e02e83160b224cf7b22f6e21fce2de525ee480a513c64cd99 WHIRLPOOL f7412ad6ddab0f7824642188c3ae99c01a2b6565d3d887920e4aa235f99ad8a916269ad87eb364415509dd3878a1f0d93af98c0f9d779b84709a8e4c6fdc2069 +DIST editor.slf.gz 134265 SHA256 a1cb444f3b3dfc509dd9498fe391b258ebfc8954689ed864f633021e9f56cde6 SHA512 243e3bf5e7298c3a71b330985f5c4d4df3e4cb43df32c823d835353d6309a64f62679c3d0634ca162f6484f7cbf366627e57b1d967188c13940db8933a5f03f2 WHIRLPOOL c542911659d06f49fb9f39baedc148237d868bd55f306fe7c02fb45e113a1001d247ea60b81178278a34d3aed585fa8e1575aedb462d4a0644c386ddb2fc31c7 +DIST ja2-stracciatella-0.12.1_p7072.tar.xz 2118832 SHA256 41729ff2d283b291af2389bbd75942373cfa6f6bd8e80eed999ad6526adf036a SHA512 9269c9e2e179d705b6d83dfac56c604eaefbe5bffe5c16e3f26c1209d3842bbac22db19362e51acf0c6602d64a283d2ec4fa19b0f37d1cddfb013f686c936411 WHIRLPOOL 8e22fdcf23977a646ed7599ba61abfea715f67ec21aebf9f8087349459275023c138648d633e8d7b8fdc6d03b60414ca460b0a6eb8bcae3646cec761dba7b56a +EBUILD ja2-stracciatella-0.12.1_p7072.ebuild 2150 SHA256 1011d9260baaff66f574f25ce5ac9521216259462315028787be733f4b9aa1bc SHA512 16529d56281b7aa1946211ea5c56f142560cb48835f6e647ddbe3c395c928f46d2a74a7132156234646e0e8f9c339dc2bc89b07acca824e1be6aadc58ad7c124 WHIRLPOOL 8b607013944e44ad1f92965fa62008a549e1322be315523c90be5ee6ce573f41f511aa434c6aea9bdd0e0b569837d29aa212c8e0ff7192ee1747a9fc8a158993 +MISC ChangeLog 3279 SHA256 3132ddb416c4b4c8f2bee607c3265f4d47d0c6d91882c7cd07bc71c3529ee83c SHA512 9ed603cba6b281b7e22fb295d17b87e613b3adbac9a271c97b85f35b0faca8286c8deef8f727d35fdb99eba0732db6a45b905165c8f27c4da91caebf22eef395 WHIRLPOOL 2c0040e6d22d90cbb13d3f5339f55a3fb74bcfa0ae368862a765769a9ae6aac6f15ef703325846270bf8334698323d82ed5d72319c1b8efcc6c33fb0e569fc84 +MISC ChangeLog-2015 1280 SHA256 175d32fd99216f823ed6691e157ce521e12023d20f13c8e4e9b63b3d7a8a4966 SHA512 e4c1a643d721bd6b25ba194100db2e75368cbf5da196ba66ce287bcae12992008c24cf4782f4d12e4f62f9eca66bbf33313a5217a8d342de92220d05f2e48c98 WHIRLPOOL 0478e75b8e5614674d2ef1e9d3845c136ed98cf7e895746bfb6ab76a15a7aa656c0c9164023ac98794de1e8072f75e882d23c75bec2d81c1811fb2e1d3610b33 +MISC metadata.xml 410 SHA256 0524fb78bea8eee6e34c00dfb30f5ed53ec2da493a7d905bfde37ac2df963491 SHA512 0f201d58a748d5805f72631ce3b012769074ec54bbaf4165db510ad9be8aefed57cea5910b0144b90aacef3e44c3f77a6855eadb71880af6a657794e9911a2f7 WHIRLPOOL 91fcc4b6a407280c39744cd2e5a48110af5d4fb1b40b1a0c134cf361a5e7d0d3e55cdaff7893484b1fc9d5f543ce6515eb578ee2e1d8d68c13dc10cce58f646f diff --git a/games-strategy/ja2-stracciatella/files/ja2-convert.sh b/games-strategy/ja2-stracciatella/files/ja2-convert.sh new file mode 100644 index 000000000000..4f337ca75351 --- /dev/null +++ b/games-strategy/ja2-stracciatella/files/ja2-convert.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# Convert names of data-files to lower-case + +# location of the data-files +GAMES_DATADIR=@GAMES_DATADIR@ + +cd "${GAMES_DATADIR}" || exit 1 + +# convert to lowercase +find . -exec sh -c 'echo "${1}" +lower="`echo "${1}" | tr [:upper:] [:lower:]`" +[ -d `dirname "${lower}"` ] || mkdir `dirname ${lower}` +[ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \; + +# remove leftover +rm -r ./TILECACHE ./STSOUNDS diff --git a/games-strategy/ja2-stracciatella/files/ja2-stracciatella-0.12.1_p7072-gcc6.patch b/games-strategy/ja2-stracciatella/files/ja2-stracciatella-0.12.1_p7072-gcc6.patch new file mode 100644 index 000000000000..2661b19d6c77 --- /dev/null +++ b/games-strategy/ja2-stracciatella/files/ja2-stracciatella-0.12.1_p7072-gcc6.patch @@ -0,0 +1,13 @@ +Bug: https://bugs.gentoo.org/600082 + +--- a/Build/Laptop/BobbyRGuns.cc ++++ b/Build/Laptop/BobbyRGuns.cc +@@ -700,7 +700,7 @@ + //center picture in frame + ETRLEObject const& pTrav = uiImage->SubregionProperties(0); + UINT32 const usWidth = pTrav.usWidth; +- INT16 const sCenX = PosX + abs(BOBBYR_GRID_PIC_WIDTH - usWidth) / 2 - pTrav.sOffsetX; ++ INT16 const sCenX = PosX + (BOBBYR_GRID_PIC_WIDTH - usWidth) / 2 - pTrav.sOffsetX; + INT16 const sCenY = PosY + 8; + + //blt the shadow of the item diff --git a/games-strategy/ja2-stracciatella/files/ja2-stracciatella-0.12.1_p7072-makefile.patch b/games-strategy/ja2-stracciatella/files/ja2-stracciatella-0.12.1_p7072-makefile.patch new file mode 100644 index 000000000000..0475773bd361 --- /dev/null +++ b/games-strategy/ja2-stracciatella/files/ja2-stracciatella-0.12.1_p7072-makefile.patch @@ -0,0 +1,179 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Tue May 8 19:16:08 UTC 2012 +Subject: build system + +--- Makefile ++++ Makefile +@@ -16,106 +16,94 @@ + MANPREFIX ?= $(PREFIX) + + INSTALL ?= install +-INSTALL_PROGRAM ?= $(INSTALL) -m 555 -s +-INSTALL_MAN ?= $(INSTALL) -m 444 +-INSTALL_DATA ?= $(INSTALL) -m 444 ++INSTALL_PROGRAM ?= $(INSTALL) -m 755 ++INSTALL_MAN ?= $(INSTALL) -m 644 ++INSTALL_DATA ?= $(INSTALL) -m 644 + ++# compiler CFLAGS ++CFLAGS += -std=gnu99 + ++# sdl-flags + SDL_CONFIG ?= sdl-config + ifndef CFLAGS_SDL + CFLAGS_SDL := $(shell $(SDL_CONFIG) --cflags) + endif + ifndef LDFLAGS_SDL +-LDFLAGS_SDL := $(shell $(SDL_CONFIG) --libs) ++LIBS_SDL := $(shell $(SDL_CONFIG) --libs) + endif + ++# LIBS ++LIBS += $(LIBS_SDL) ++LIBS += -lm ++ ++ifdef WITH_ZLIB ++LIBS += -lz ++endif + +-CFLAGS += $(CFLAGS_SDL) +-CFLAGS += -I Build +-CFLAGS += -I Build/Tactical +-CFLAGS += -I Build/Strategic +-CFLAGS += -I Build/Editor +-CFLAGS += -I Build/Res +-CFLAGS += -I Build/Laptop +-CFLAGS += -I Build/Utils +-CFLAGS += -I Build/TileEngine +-CFLAGS += -I Build/TacticalAI +-CFLAGS += -I sgp +- +-#CFLAGS += -Wall +-#CFLAGS += -W +-CFLAGS += -Wpointer-arith +-CFLAGS += -Wreturn-type +-CFLAGS += -Wunused-label +-CFLAGS += -Wunused-variable +-CFLAGS += -Wwrite-strings + +-CFLAGS += -DJA2 ++# preprocessor flags ++CPPFLAGS += $(CFLAGS_SDL) ++CPPFLAGS += -I Build ++CPPFLAGS += -I Build/Tactical ++CPPFLAGS += -I Build/Strategic ++CPPFLAGS += -I Build/Editor ++CPPFLAGS += -I Build/Res ++CPPFLAGS += -I Build/Laptop ++CPPFLAGS += -I Build/Utils ++CPPFLAGS += -I Build/TileEngine ++CPPFLAGS += -I Build/TacticalAI ++CPPFLAGS += -I sgp + ++CPPFLAGS += -DJA2 + + ifdef WITH_DEMO +- CFLAGS += -DJA2DEMO ++ CPPFLAGS += -DJA2DEMO + endif + + ifdef WITH_DEMO_ADS + ifndef WITH_DEMO + $(error WITH_DEMO_ADS needs WITH_DEMO) + endif +- CFLAGS += -DJA2DEMOADS ++ CPPFLAGS += -DJA2DEMOADS + endif + + ifdef WITH_FIXMES +- CFLAGS += -DWITH_FIXMES ++ CPPFLAGS += -DWITH_FIXMES + endif + + ifdef WITH_MAEMO +- CFLAGS += -DWITH_MAEMO ++ CPPFLAGS += -DWITH_MAEMO + endif + + ifdef WITH_SOUND_DEBUG +- CFLAGS += -DWITH_SOUND_DEBUG ++ CPPFLAGS += -DWITH_SOUND_DEBUG + endif + + ifdef _DEBUG +- CFLAGS += -D_DEBUG ++ CPPFLAGS += -D_DEBUG + ifndef JA2TESTVERSION + JA2TESTVERSION := yes + endif + endif + + ifdef JA2TESTVERSION +- CFLAGS += -DJA2TESTVERSION ++ CPPFLAGS += -DJA2TESTVERSION + ifndef JA2BETAVERSION + JA2BETAVERSION := yes + endif + endif + + ifdef JA2BETAVERSION +-CFLAGS += -DJA2BETAVERSION -DSGP_DEBUG -DFORCE_ASSERTS_ON -DSGP_VIDEO_DEBUGGING ++CPPFLAGS += -DJA2BETAVERSION -DSGP_DEBUG -DFORCE_ASSERTS_ON -DSGP_VIDEO_DEBUGGING + endif + + ifdef JA2EDITOR +-CFLAGS += -DJA2EDITOR ++CPPFLAGS += -DJA2EDITOR + endif + +-CFLAGS += -D$(LNG) +- +-CFLAGS += -DSGPDATADIR=\"$(SGPDATADIR)\" +- +-CCFLAGS += $(CFLAGS) +-CCFLAGS += -std=gnu99 +-CCFLAGS += -Werror-implicit-function-declaration +-CCFLAGS += -Wimplicit-int +-CCFLAGS += -Wmissing-prototypes ++CPPFLAGS += -D$(LNG) ++CPPFLAGS += -DSGPDATADIR=\"$(SGPDATADIR)\" + +-CXXFLAGS += $(CFLAGS) +- +-LDFLAGS += $(LDFLAGS_SDL) +-LDFLAGS += -lm +- +-ifdef WITH_ZLIB +-LDFLAGS += -lz +-endif + + SRCS := + SRCS += Build/AniViewScreen.cc +@@ -468,7 +456,7 @@ + .SUFFIXES: + .SUFFIXES: .c .cc .d .o + +-Q ?= @ ++Q = + + all: $(BINARY) + +@@ -476,15 +464,15 @@ + + $(BINARY): $(OBJS) + @echo '===> LD $@' +- $(Q)$(CXX) $(CFLAGS) $(OBJS) $(LDFLAGS) -o $@ ++ $(Q)$(CXX) $(CXXFLAGS) $(OBJS) $(LDFLAGS) -o $@ $(LIBS) + + .c.o: + @echo '===> CC $<' +- $(Q)$(CC) $(CCFLAGS) -c -MMD -o $@ $< ++ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -c -MMD -o $@ $< + + .cc.o: + @echo '===> CXX $<' +- $(Q)$(CXX) $(CXXFLAGS) -c -MMD -o $@ $< ++ $(Q)$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -MMD -o $@ $< + + clean distclean: + @echo '===> CLEAN' diff --git a/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild new file mode 100644 index 000000000000..17c62c2450c1 --- /dev/null +++ b/games-strategy/ja2-stracciatella/ja2-stracciatella-0.12.1_p7072.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="A port of Jagged Alliance 2 to SDL" +HOMEPAGE="https://ja2-stracciatella.github.io/" +SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz + http://tron.homeunix.org/ja2/editor.slf.gz" + +LICENSE="SFI-SCLA" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="cdinstall editor zlib" + +DEPEND="media-libs/libsdl[X,sound,video] + zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND} + cdinstall? ( games-strategy/ja2-stracciatella-data )" + +LANGS="linguas_de +linguas_en linguas_fr linguas_it linguas_nl linguas_pl linguas_ru linguas_ru_gold" +IUSE="$IUSE $LANGS" +REQUIRED_USE="^^ ( ${LANGS//+/} )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.patch + epatch "${FILESDIR}"/${P}-gcc6.patch + + sed \ + -e "s:/some/place/where/the/data/is:${GAMES_DATADIR}/ja2:" \ + -i sgp/FileMan.cc || die + + sed \ + -e "s:@GAMES_DATADIR@:${GAMES_DATADIR}/ja2/data:" \ + "${FILESDIR}"/ja2-convert.sh > "${T}"/ja2-convert || die +} + +src_compile() { + local myconf + + case ${LINGUAS} in + de) myconf="LNG=GERMAN" ;; + nl) myconf="LNG=DUTCH" ;; + fr) myconf="LNG=FRENCH" ;; + it) myconf="LNG=ITALIAN" ;; + pl) myconf="LNG=POLISH" ;; + ru) myconf="LNG=RUSSIAN" ;; + ru_gold) myconf="LNG=RUSSIAN_GOLD" ;; + en) myconf="LNG=ENGLISH" ;; + *) die "wat" ;; + esac + elog "Chosen language is ${myconf#LNG=}" + + use editor && myconf+=" JA2EDITOR=yes JA2BETAVERSION=yes" + use zlib && myconf+=" WITH_ZLIB=yes" + + emake ${myconf} +} + +src_install() { + dogamesbin ja2 "${T}"/ja2-convert + + if use editor; then + insinto "${GAMES_DATADIR}"/ja2/data + doins "${WORKDIR}"/editor.slf + fi + + make_desktop_entry ja2 ${PN} + doman ja2.6 + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + + elog "You need ja2 in the chosen language, otherwise set it in package.use!" + + if ! use cdinstall ; then + elog "You need to copy all files from the Data directory of" + elog "Jagged Alliance 2 installation to" + elog "${GAMES_DATADIR}/ja2/data " + elog "Make sure the filenames are lowercase. You may want to run the" + elog "script": + elog "${GAMES_BINDIR}/ja2-convert" + fi +} diff --git a/games-strategy/ja2-stracciatella/metadata.xml b/games-strategy/ja2-stracciatella/metadata.xml new file mode 100644 index 000000000000..dd85b7c30ed4 --- /dev/null +++ b/games-strategy/ja2-stracciatella/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="editor">Adds necessary file to run the editor</flag> + <flag name="linguas_ru_gold">Support for russian gold ja2 version</flag> + </use> +</pkgmetadata> diff --git a/games-strategy/knights-demo/Manifest b/games-strategy/knights-demo/Manifest new file mode 100644 index 000000000000..605c052458a1 --- /dev/null +++ b/games-strategy/knights-demo/Manifest @@ -0,0 +1,5 @@ +DIST knights-demo-1.32.run 31667235 SHA256 bbdd7a49d710e76ef2de9bc5d9cdfbac3660f4ed2fa785ede08d7422eef995c8 SHA512 f53cf9524811b4a83ec2531f62ea251fc5a939cb09445ab850c7bbac85301e8b8275dda12a8dc991e4412eb4358d7597d0c007bd9263fd875289b039b941ed9c WHIRLPOOL 02acaecc6252411a96979af5320b9ad69c2566ac16cf4818e74cda96526f72d2c6c5a6b709e72aabd076a4c152dfd23af8b4468fb09436cf5a2cca28d6d3e81a +EBUILD knights-demo-1.32-r1.ebuild 1213 SHA256 b2ab827d161c31782cb888f18ae4956f8b29fd18ebfcd0cd50055dd600e2f746 SHA512 546751a831baed3c816b37b3ba92f07c395817315944fece6407b1a0d4b0e7e40813899b03e6ecc6503bf0ef8a944fec99defdce14244e921266b70043e09ad5 WHIRLPOOL 9245bcc543004d9c0ea30b473b17055bfbb413c39a0c7f40205d2ebf65ebed55504f43686fe2e4ea0817dfb713c2ea7e905752dbea90df7ac7d704deac70ab85 +MISC ChangeLog 2452 SHA256 e3b73c88188f3d0641eaefd8867db45dcdd3c9baad52366e35ec601299e05763 SHA512 6437ad98b3d46bca7531881a20e5a55fd4c902659a2aaa931f10b02fb098dc3e0eb616f185af67cb2a59aa305908d800158800dbdeb748d0227a0670836f753b WHIRLPOOL f964f096c3eef58b8d08b7cc987336799295fa9545836774085ad4c9cfc2b898377a20369428b55122c5b3da79d517e52267852a4753651c41b8be5130e8687a +MISC ChangeLog-2015 1340 SHA256 421a45e0ea98edc44c2a2e37d9aec4ac683c4146d7949ef1a9a1f1b386417f37 SHA512 7853af5af541d042de28a3e9d8bcda306e8054dc8a36879515a179803356b23c6b9b44a964a6bfc6ea4bc6d23545a4ecdcde948bd32d0e5c4e57bf3a009185bc WHIRLPOOL 3af0ddb3db8d57bd16c7f49207500bd382bbf89ac79db13da70f5e2a309af65ebf34207a3eae62a1d320fa957a1e0a276bd74ab3af41297b08910fddb51fd5c0 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/knights-demo/knights-demo-1.32-r1.ebuild b/games-strategy/knights-demo/knights-demo-1.32-r1.ebuild new file mode 100644 index 000000000000..c1e7ebafcd6f --- /dev/null +++ b/games-strategy/knights-demo/knights-demo-1.32-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils unpacker games + +DESCRIPTION="Anglo-Saxon medieval army battles and resource management" +HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=knights" +# Unversioned upstream filename +SRC_URI="mirror://gentoo/${P}.run" + +LICENSE="knights-demo" +SLOT="0" +KEYWORDS="x86" +IUSE="" +RESTRICT="strip" + +RDEPEND="sys-libs/glibc + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + >=x11-libs/libXau-1.0.7-r1[abi_x86_32(-)] + >=x11-libs/libXdmcp-1.1.1-r1[abi_x86_32(-)] + >=x11-libs/libXext-1.3.2[abi_x86_32(-)] + >=x11-libs/libXi-1.7.2[abi_x86_32(-)]" + +S=${WORKDIR} + +src_unpack() { + unpack_makeself ${P}.run + mv -f data{,-temp} + unpack ./data-temp/data.tar.gz + rm -rf data-temp lgp_* setup* +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + + exeinto "${dir}" + doexe bin/Linux/x86/${PN}{,.dynamic} + + insinto "${dir}" + doins -r data + doins EULA icon.xpm README{,.licenses} + + # We don't support the dynamic version, even though we install it. + games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}" + newicon icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Knights and Merchants (Demo)" ${PN} + prepgamesdirs +} diff --git a/games-strategy/knights-demo/metadata.xml b/games-strategy/knights-demo/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/knights-demo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/lgeneral/Manifest b/games-strategy/lgeneral/Manifest new file mode 100644 index 000000000000..0e0dc8dc4de1 --- /dev/null +++ b/games-strategy/lgeneral/Manifest @@ -0,0 +1,7 @@ +DIST lgeneral-1.3.1.tar.gz 1678892 SHA256 6e95a84d7772f0bd2d64edac8c2aa45c6f750ae47bfb9dc203fe53a089e5562c SHA512 4eb8fc6d1dc134792893f3f9b23833da75412fafefea66d699a27de1954d3c1338c7e5dedef842537303368387797ecea2158a477fe1d018e3af973dd5b755e5 WHIRLPOOL 9711bc8fc83a6806abc229c8de5ef669eb8335fb0aac59f5fbee9de7c3eb82865602569c83ba3246faa4be92ff5f2f8048b721bc605e299db5b76f88fe95e2d1 +DIST pg-data.tar.gz 410454 SHA256 f2f74022cf8c279451911dda0a57cffab26ebf11429d61a6596310340ed23f76 SHA512 b0df30dd9a9d0652acd8702d601c489e5d3a030854ceeb173d2daa656c00633a78a3f45814da9f4157b86544dec34eda02495742242653c7cdebba5ec9951516 WHIRLPOOL 69f22f28cf4639dab0e6cf90036c26178129d7f67decf8b95ca175bb224bb3b985cf80382e06e45db06ef21d9ab9819fc1821b3d633a67bbb06ba56a8b450022 +EBUILD lgeneral-1.3.1-r1.ebuild 2020 SHA256 cb05955f537412b48a94354f4f1f06ad20979b3060fff981266d6e3af778ff10 SHA512 120a426267284d8fbd677b6c1fd5712f45f294e984faac1796d56b8663bfe05a66ec6d5848a1e13b16a45eb9e51e4009ac29074f344185fd1a1da1c424149f17 WHIRLPOOL a7d40600128c81d60d12a16aa25385fbe282cb9a8792521fc3e5134b472d6285fd4ae633d349721cf57e597edf263f4dc2570c18d8ec7372b40bc1ddc4d729a3 +EBUILD lgeneral-1.3.1.ebuild 2001 SHA256 4b37befef608cac183811fd113277314c1049cf1b7dc95ce9e9e2a049cb6ad12 SHA512 b391b18428c700ff658e6c14cb71ba01f76b01a695d31a73ddced6895eb3b5412d5318a10848879ad4d1a83e524b97d478e317525d4ca903140d0fd3db58a5c8 WHIRLPOOL 0fc08c4fdf6f28242efbaa49373e645c66f1de8e57433f93099db2097008f81a78540def577b489df111d307b88ca8255181e3753d226e45fb271e66fa421f5c +MISC ChangeLog 4545 SHA256 8933d8435e2a4910eca06685144c50c81af9ed905b116d0fe522d4963cf7135d SHA512 3a5b719635897579d654635745fda844d500a6d4fdc7494c7d58f520b1e6a8a54bee2ffb88d9d29f0ac62398628c59f981c3e4784d7880bd158ae0372b39e4b7 WHIRLPOOL 8674c3e78997cd30f0c1569a129e6a189f396d5e7a3192988c9e817f5fbfeb8e891c92793e1b8f3cf5d93e57421f02e04df8c4e83558d7cd49a01a4e920d74f4 +MISC ChangeLog-2015 8939 SHA256 af7cb354dc504c3d035a8ece89d831ad0e8fcf3af97e16ae4cca47ccab24d7e8 SHA512 6d8c1468f4aa1c7114503707e132c9b973ec2f11892f7a31e6a64bc3e78b7ba5da42d80fa136f652f40213c17b20ab8a7d7529b24946c2376e9d4f626b3c6aca WHIRLPOOL fbc2618898e910d85d4abfc232500863217bc99739b4a8525b564316069dd137b218719cbd97ac8573ee7506131f7ed774936dac827763015447776d073ab5c5 +MISC metadata.xml 331 SHA256 6787bbfdb0734d7a2cefa6c8f1e157d40e46361983721fc0564a3c3433ea9b94 SHA512 eef1e23a9d81b81e39f84ba41d70d39bf11f52acad42dc312548239919b7ce359a671f9b76dcdee92be92bc11c798d9031f3a641c13ab6febfe5bd978a4bbeeb WHIRLPOOL a2a4995c1e296d2c4c91bd20bde6611b3946924f730616b8d402f1d834f4858a30174ce8e9cf8fb41a05f15318a5fe18cb3e6a0178f9f56de64e394523bdc541 diff --git a/games-strategy/lgeneral/lgeneral-1.3.1-r1.ebuild b/games-strategy/lgeneral/lgeneral-1.3.1-r1.ebuild new file mode 100644 index 000000000000..81a9c01d4a50 --- /dev/null +++ b/games-strategy/lgeneral/lgeneral-1.3.1-r1.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils autotools gnome2-utils games + +MY_P="${P/_/}" +MY_P="${MY_P/beta/beta-}" +DESCRIPTION="A Panzer General clone written in SDL" +HOMEPAGE="http://lgames.sourceforge.net/LGeneral/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz + mirror://sourceforge/${PN}/pg-data.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nls" + +RDEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + sys-devel/gettext" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i \ + -e '/desktop_DATA/d' \ + -e '/icon_DATA/d' \ + Makefile.am || die + + cp /usr/share/gettext/config.rpath . + rm -f missing + mv configure.in configure.ac + eautoreconf + + # Build a temporary lgc-pg that knows about ${WORKDIR}: + cp -pPR "${S}" "${WORKDIR}"/tmp-build || die + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \ + -e "s:@D@::" \ + {lgc-pg,src}/misc.c || die + + cd "${WORKDIR}"/tmp-build || die + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \ + -e "s:@D@:${D}:" \ + {lgc-pg,src}/misc.c || die +} + +src_configure() { + egamesconf \ + $(use_enable nls) + + # Build the temporary lgc-pg: + cd "${WORKDIR}"/tmp-build || die + egamesconf \ + --disable-nls \ + --datadir="${D}/${GAMES_DATADIR}" +} + +src_compile() { + emake + + # Build the temporary lgc-pg: + cd "${WORKDIR}"/tmp-build || die + emake +} + +src_install() { + default + keepdir "${GAMES_DATADIR}"/${PN}/{ai_modules,music,terrain} + + # Generate scenario data: + dodir "${GAMES_DATADIR}"/${PN}/gfx/{flags,units,terrain} #413901 + SDL_VIDEODRIVER=dummy "${WORKDIR}"/tmp-build/lgc-pg/lgc-pg --separate-bridges \ + -s "${WORKDIR}"/pg-data \ + -d "${D}/${GAMES_DATADIR}"/${PN} || die + + doicon -s 48 lgeneral.png + make_desktop_entry ${PN} LGeneral + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/lgeneral/lgeneral-1.3.1.ebuild b/games-strategy/lgeneral/lgeneral-1.3.1.ebuild new file mode 100644 index 000000000000..94d29b6e4309 --- /dev/null +++ b/games-strategy/lgeneral/lgeneral-1.3.1.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils autotools gnome2-utils games + +MY_P="${P/_/}" +MY_P="${MY_P/beta/beta-}" +DESCRIPTION="A Panzer General clone written in SDL" +HOMEPAGE="http://lgames.sourceforge.net/LGeneral/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz + mirror://sourceforge/${PN}/pg-data.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nls" + +RDEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + sys-devel/gettext" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i \ + -e '/desktop_DATA/d' \ + -e '/icon_DATA/d' \ + Makefile.am || die + + cp /usr/share/gettext/config.rpath . + rm -f missing + mv configure.in configure.ac + eautoreconf + + # Build a temporary lgc-pg that knows about ${WORKDIR}: + cp -pPR "${S}" "${WORKDIR}"/tmp-build || die + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \ + -e "s:@D@::" \ + {lgc-pg,src}/misc.c || die + + cd "${WORKDIR}"/tmp-build || die + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \ + -e "s:@D@:${D}:" \ + {lgc-pg,src}/misc.c || die +} + +src_configure() { + egamesconf \ + $(use_enable nls) + + # Build the temporary lgc-pg: + cd "${WORKDIR}"/tmp-build || die + egamesconf \ + --disable-nls \ + --datadir="${D}/${GAMES_DATADIR}" +} + +src_compile() { + emake + + # Build the temporary lgc-pg: + cd "${WORKDIR}"/tmp-build || die + emake +} + +src_install() { + default + keepdir "${GAMES_DATADIR}"/${PN}/{ai_modules,music,terrain} + + # Generate scenario data: + dodir "${GAMES_DATADIR}"/${PN}/gfx/{flags,units,terrain} #413901 + SDL_VIDEODRIVER=dummy "${WORKDIR}"/tmp-build/lgc-pg/lgc-pg \ + -s "${WORKDIR}"/pg-data \ + -d "${D}/${GAMES_DATADIR}"/${PN} || die + + doicon -s 48 lgeneral.png + make_desktop_entry ${PN} LGeneral + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/lgeneral/metadata.xml b/games-strategy/lgeneral/metadata.xml new file mode 100644 index 000000000000..a7f8ed3d65fa --- /dev/null +++ b/games-strategy/lgeneral/metadata.xml @@ -0,0 +1,11 @@ +<?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">lgeneral</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/lightyears/Manifest b/games-strategy/lightyears/Manifest new file mode 100644 index 000000000000..57b86bbb21cd --- /dev/null +++ b/games-strategy/lightyears/Manifest @@ -0,0 +1,6 @@ +AUX lightyears-1.4-gentoo.patch 1276 SHA256 7cf2e3be95ac2e7ff725dcc298d8d2fa5af835e46f80320d0b0a85a62f443898 SHA512 3388a5bbb384cbaaef29776f3f05c789df8955a86ead9ccb88dbcc48c623ae16a3cb2c498c48db49e87f57ae8a8bd174219ae14cb848903394331bb4635f0b61 WHIRLPOOL 30c9a37a35c99753ca569515ed32f8b732b66b252a4e3fcbba93b819e7aa4761d006fd6c6061236345e32c8de0710fa3d21999e36c0e55e0b567edff1e1e0d7b +DIST lightyears-1.4.tar.bz2 693877 SHA256 add4a8dea58af1e1ba69db3c0b1271312107c18e84b91a9dbb7162e92a1b078e SHA512 68f576d820d54b353adbc504f8aa3341547e2e56474717cc59aecc2368fc0eb533458e09876b3cd2a9062914a8a58d39a35ce944256372bb9e15830210924597 WHIRLPOOL d112a9b98ed5997fb2835d3b7b114ff735536a1b888d5d88911e57d55d7f35086a3e05f29e3ac1054e25b557cf52a4b07c0407989a646cc8f8be5fccc97c6788 +EBUILD lightyears-1.4-r1.ebuild 1108 SHA256 88c8494072900fbd74d766410479279307a33319f91c2da8c5e284531347f964 SHA512 1dc875d2de9f1688400d2a1115acc6d1b43b22ddd3db8223d908d828e782f96a792ea94a9134060e1c68dbdc7ccb34ceb2cbfe77e525fe55701e55597cdf0a6f WHIRLPOOL e7b30f25484d7b9eef31bd6512d19cf6a902037aa57eb46647d983445a4e29b35abf753ef6833804a702c0f8d80e632bf2eca51608c831af6ff259ce1767e269 +MISC ChangeLog 2482 SHA256 4ca0a81e7d4ce63a05ce855f73c395cd2a82e1ef03ff5caf3028f2a0d1ca7729 SHA512 390e28bec3402a4a24021c4a3aaece8f99f9cb832e3a993e23a3bd8b094f638d81c5b4c09168cc49cb332e3782ec3fc302ba16080040c27e7c2d0b15bff1e81a WHIRLPOOL 17812bce5fddeef3984ba39ed38698b88b8a342ee059e2a13f04c8f3dea2df592c1dae48c933ba617729c5aaa73624456b4f4537b5d15cbc0d856429c9939699 +MISC ChangeLog-2015 3131 SHA256 8ea98b9f514f88ca1bb8dd5b4b86f64328679ffebfd7e77b3e2dfacb70ce4872 SHA512 9fcabda54840ffdca45e41354849386768abff0ee98a14051e5e570be3220fa6403517504b57ba53fb215dc8a76f84b612c29b7a6fcaff10d9e28e83ebd3969e WHIRLPOOL 0d930c677464c8eda20b3d505593efffe5f638a9e94014e5c45f8d9c79fbdb5c3d44e916cd5574c7f8f4c1cb0a6d3455480c84153eb59fd880b647805fdc261a +MISC metadata.xml 457 SHA256 8807a85ec0bc4392214c5bcd3428169f106917a6c2c62aacc7a16b6e6bec021c SHA512 354fad5eed1305fc7e5ed69de92f7033b651371a1993ccd90d3d6fd9f49975e30e8b5b4c8cfcf8bb6f1284b5ef0df790adf863f76f580945ff3699ff275d5c13 WHIRLPOOL f600e626519b8227c0d9f4c1156ef718d547f69063b320f886ed00be3024cc5084be0b54ac7567859c4d45b2d37722b3a83de179002753158205c570070bcf8a diff --git a/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch b/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch new file mode 100644 index 000000000000..063dbab3c1e8 --- /dev/null +++ b/games-strategy/lightyears/files/lightyears-1.4-gentoo.patch @@ -0,0 +1,45 @@ +--- lightyears ++++ lightyears +@@ -1,7 +1,6 @@ + #!/usr/bin/python + + # Set the location of the LightYears files here: +-LIGHTYEARS_DIR = "." + # LIGHTYEARS_DIR = "/usr/share/games/lightyears" # (for Debian) + + # Save games and configuration files are stored in the user's +@@ -10,31 +9,6 @@ + import sys, os + + if __name__ == "__main__": +- # Path to data/code dir can be overridden by environment variable +- LIGHTYEARS_DIR = os.environ.get("LIGHTYEARS_DIR", LIGHTYEARS_DIR) +- +- # Path does not exist? Try current directory. +- if ((LIGHTYEARS_DIR == None) +- or (not os.path.isdir(LIGHTYEARS_DIR)) +- or (not os.path.isfile(os.path.join(LIGHTYEARS_DIR, +- 'code', 'startup.py')))): +- LIGHTYEARS_DIR = os.getcwd() +- +- # Paths obtained +- sys.path.insert(0, os.path.join(LIGHTYEARS_DIR, 'code')) +- data_dir = os.path.join(LIGHTYEARS_DIR, 'data') +- +- # Go +- try: +- import startup +- assert os.path.isdir(data_dir) +- except: +- print "Unable to find LightYears code & data in:" +- for p in sys.path: +- print ' ', p +- +- sys.exit(1) +- +- startup.Main(data_dir) +- +- ++ sys.path.insert(0, "@GENTOO_LIBDIR@") ++ import startup ++ startup.Main("@GENTOO_DATADIR@/data") diff --git a/games-strategy/lightyears/lightyears-1.4-r1.ebuild b/games-strategy/lightyears/lightyears-1.4-r1.ebuild new file mode 100644 index 000000000000..3cf4e047ec21 --- /dev/null +++ b/games-strategy/lightyears/lightyears-1.4-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 games + +DESCRIPTION="a single-player game with a science-fiction theme" +HOMEPAGE="http://www.jwhitham.org/20kly/" +SRC_URI="http://www.jwhitham.org/20kly/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-python/pygame[${PYTHON_USEDEP}] + ${PYTHON_DEPS}" +RDEPEND=${DEPEND} +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +src_prepare() { + epatch "${FILESDIR}/${P}"-gentoo.patch + sed -i \ + -e "s:@GENTOO_LIBDIR@:$(games_get_libdir)/${PN}:" \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + ${PN} || die + python_fix_shebang . +} + +src_install() { + dogamesbin ${PN} + + insinto "$(games_get_libdir)/${PN}" + doins code/*.py + + dodoc README.txt + + insinto "${GAMES_DATADIR}/${PN}" + doins -r audio data manual + + python_optimize "${D}$(games_get_libdir)/${PN}" + + newicon data/32.png ${PN}.png + make_desktop_entry ${PN} "Light Years Into Space" + prepgamesdirs +} + +pkg_setup() { + python-single-r1_pkg_setup + games_pkg_setup +} diff --git a/games-strategy/lightyears/metadata.xml b/games-strategy/lightyears/metadata.xml new file mode 100644 index 000000000000..c314eef5e089 --- /dev/null +++ b/games-strategy/lightyears/metadata.xml @@ -0,0 +1,13 @@ +<?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"> +"20,000 Light Years Into Space" was written for Pyweek (March 2006) by Jack +Whitham. It is a single-player real-time strategy game with a science-fiction +theme. +</longdescription> +</pkgmetadata> diff --git a/games-strategy/liquidwar/Manifest b/games-strategy/liquidwar/Manifest new file mode 100644 index 000000000000..ddae45b1e6bd --- /dev/null +++ b/games-strategy/liquidwar/Manifest @@ -0,0 +1,8 @@ +AUX liquidwar-5.6.4-exec-stack.patch 430 SHA256 d661dab2c07f2df8089c618d4ccf6e40032fe3af19704ff9b4273aec21043263 SHA512 e5f068a73bc8a13f85350823fb12264adaaa2e4ad7b19dcba6d3bb81c8ff70818a274adb9827665208bc5d63cde59a7ec5c2bc83fd3449b4e8fbffd4d8ef5ce7 WHIRLPOOL ab2d61d775790aa04a5a558c183a1fa8910d8afc2c830d5b7f39c6c0a0f6eafb07e568e82e2d214ffddceafe15477c2b3b68e7d5d37490e6296dceaf5a7e5eaa +AUX liquidwar-5.6.4-ovflfix.patch 696 SHA256 3e72162d8ff2a690b1f30736f16867bcab76f031040460d95ec0ef9c41df8452 SHA512 2d1b72ac481ef9c742e4b22e012805161e628fcdbebc8b55084c03fae63f0fd88da92ce1827ad08c27da2ca2c0ec3482726e4524887385cf4fc75f202c302102 WHIRLPOOL 14b4faea9ca85a1cec426a38f9b2eb43135dbba88dcdb59aaa32217aab3e5c18f4ac14f5c046a27bcfaf92b16307d2d7be2ec87678f4ce8b27078669ba0d936f +AUX liquidwar-5.6.4-underlink.patch 438 SHA256 4187d94156d5adfba1f7ddeace9d35baf6c7a28bfbcac503ca7e246d580285ad SHA512 c4795242e102566d208ca57d68fdb60d3c69d0aec5c8a2f196e4bcbfa91e64c07cb8b06d82e870c059405967f8563090a8910ace3bad17b9591047329ccbe3d5 WHIRLPOOL 057e63d15d7436c00b4aeba59fb9190f07772a22ab111eec9ded20667b13ea85e4fcd437cf23b2ed08412a9ae71cb5256d481d272c637beef48429117dc11328 +DIST liquidwar-5.6.4.tar.gz 3268432 SHA256 32c52e4588e8e723f907ef43703b4ddf009e8ff1f29555c09bcc1f70bf5b93a3 SHA512 7145a8362c46a0f39662327edf81b341659a3ce8216f9fb3bb32e483de618c0f46169ed916fe2c4c651ebc5925ecdc534b372c381e16c3ddae9a50fb48f98ed7 WHIRLPOOL b4480b250c45adf3b93761d0a7f167cb24e6a03c404b364f2bedd8203e8711f00d3a25b5d3fc86e9b19edb056ebece4f2a51d2be488d4b002104f4f34e7bf9b6 +EBUILD liquidwar-5.6.4-r1.ebuild 1533 SHA256 8a5e3aeb0265dc37c19225c4290410b228bd5a24855f2c6fc214900034842df0 SHA512 403043fc5a72f3e2664a49244ab2560f8fde641da5dd0ff15fc7fa796b25b98a25c4959b8a692c08d6c0719f7b4d6f01e2431b6f2779ffba793b445154c5de3b WHIRLPOOL 0868fd8bf2281ef3f8136df5e8ff69276c4a55e8ef2342b71a58a9a2ab57c4d439e37d944a7516cd6899cbea1fb5022752ab9fc5f47fde83586bfe9a74b52e01 +MISC ChangeLog 2681 SHA256 31c6f59b2fce9413b74bce499f6589b90f5b7e34c27fedd165f2a49fb1453b33 SHA512 c32981be0ff6fab9df6272811b7dff1c9f0f645c3b7938bb0f969de0be7678112fe4ed092f43b7a9b3fb9499ff7b4a9ea5102b0856e9485e0a46def27b89f2a6 WHIRLPOOL 13057f7c7669f5fa2b827a9d3eff6115f20b63e5527f185a09a510284dc7a2d7ab5d4e3d7af21c0b9c4fb6f128d5b2ce584683fb905d27615dbc2c7bdf0a9978 +MISC ChangeLog-2015 4889 SHA256 106abdf147f20d149839d1610459afc1b98740815411ad3147b6cb3e53829759 SHA512 778296dd8fe0e01771266cbe68ee3347a944fe9b8b855090124f2a9f3ff68e49a07431b57fef5848acd5e11734079d3b65e3395596fa1c99733208072a9607ef WHIRLPOOL c9fce811e653310e5247165acfe5e38c966f0b780b62d1955b3de91b5b30a347b4eda0761d60734d91b1f9967f445e601e0b4d928a5f557938cf9d17c429154f +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.4-exec-stack.patch b/games-strategy/liquidwar/files/liquidwar-5.6.4-exec-stack.patch new file mode 100644 index 000000000000..83e733b28a05 --- /dev/null +++ b/games-strategy/liquidwar/files/liquidwar-5.6.4-exec-stack.patch @@ -0,0 +1,27 @@ +--- src/glouglou.s ++++ src/glouglou.s +@@ -240,3 +240,6 @@ + + ret + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +--- src/monster.s ++++ src/monster.s +@@ -972,3 +972,6 @@ + ret # retour au c + + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +--- src/spread.s ++++ src/spread.s +@@ -957,3 +957,6 @@ + + + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.4-ovflfix.patch b/games-strategy/liquidwar/files/liquidwar-5.6.4-ovflfix.patch new file mode 100644 index 000000000000..446385624cfa --- /dev/null +++ b/games-strategy/liquidwar/files/liquidwar-5.6.4-ovflfix.patch @@ -0,0 +1,18 @@ +--- src/wwwsrv.c.old 2010-10-26 14:16:31.000000000 +0200 ++++ src/wwwsrv.c 2010-10-26 14:17:35.000000000 +0200 +@@ -100,12 +100,12 @@ + + data->privacy = privacy; + data->log = log; +- strncpy (data->metaserver, metaserver, URL_SIZE); ++ strncpy (data->metaserver, metaserver, sizeof(data->metaserver)); + data->port = port; + data->busy_players = busy_players; + data->max_players = max_players; +- strncpy (data->password, password, URL_SIZE); +- strncpy (data->comment, comment, URL_SIZE); ++ strncpy (data->password, password, sizeof(data->password)); ++ strncpy (data->comment, comment, sizeof(data->comment)); + } + + /*------------------------------------------------------------------*/ diff --git a/games-strategy/liquidwar/files/liquidwar-5.6.4-underlink.patch b/games-strategy/liquidwar/files/liquidwar-5.6.4-underlink.patch new file mode 100644 index 000000000000..2bc53e0caccb --- /dev/null +++ b/games-strategy/liquidwar/files/liquidwar-5.6.4-underlink.patch @@ -0,0 +1,11 @@ +--- src/Makefile.in.old 2011-06-22 07:45:05.756127862 +0200 ++++ src/Makefile.in 2011-06-22 07:46:00.681613957 +0200 +@@ -223,7 +223,7 @@ + EXTERN_LIBS = `allegro-config --static $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY) + else + LINK_OPTIONS = +- EXTERN_LIBS = `allegro-config --libs $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY) ++ EXTERN_LIBS = `allegro-config --libs $(ALLEGRO_LIBRARY)` $(EFENCE_LIBRARY) -lm + endif + + CONFIG_OPTIONS = \ diff --git a/games-strategy/liquidwar/liquidwar-5.6.4-r1.ebuild b/games-strategy/liquidwar/liquidwar-5.6.4-r1.ebuild new file mode 100644 index 000000000000..86976443a054 --- /dev/null +++ b/games-strategy/liquidwar/liquidwar-5.6.4-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="unique multiplayer wargame" +HOMEPAGE="http://www.ufoot.org/liquidwar/" +SRC_URI="https://savannah.nongnu.org/download/liquidwar/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc64 x86" +IUSE="nls" +RESTRICT="test" + +RDEPEND=">=media-libs/allegro-4.2:0[X]" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-exec-stack.patch \ + "${FILESDIR}"/${P}-ovflfix.patch + sed -i \ + -e 's:/games::' \ + -e '/^MANDIR/ s:=.*:= $(mandir)/man6:' \ + -e '/^PIXDIR/ s:=.*:= /usr/share/pixmaps:' \ + -e '/^DESKTOPDIR/ s:=.*:= /usr/share/applnk/Games/:' \ + -e '/^INFODIR/ s/=.*/= $(infodir)/' \ + -e '/^GAMEDIR/ s/exec_prefix/bindir/' \ + -e '/install/s:-s ::' \ + -e 's:$(DOCDIR)/txt:$(DOCDIR):g' \ + -e 's:$(GMAKE):$(MAKE):' \ + -e '/^DOCDIR/ s:=.*:= /usr/share/doc/$(PF):' Makefile.in \ + || die 'sed Makefile.in failed' + sed -i \ + -e '/^GAMEDIR/ s/$(exec_prefix)/@bindir@/' \ + -e 's:/games::' src/Makefile.in \ + || die "sed src/Makefile.in failed" + epatch "${FILESDIR}"/${P}-underlink.patch +} + +src_configure() { + egamesconf \ + --disable-doc-ps \ + --disable-doc-pdf \ + --disable-target-opt \ + $(use_enable x86 asm) +} + +src_compile() { + # skip build_doc target wrt bug 460344 + emake build_bin build_data +} + +src_install() { + emake DESTDIR="${D}" install_nolink + rm -f "${D}"/usr/share/doc/${PF}/COPYING + use nls || rm -f "${D}"/usr/share/doc/${PF}/README.* + prepgamesdirs +} diff --git a/games-strategy/liquidwar/metadata.xml b/games-strategy/liquidwar/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/liquidwar/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/liquidwar6/Manifest b/games-strategy/liquidwar6/Manifest new file mode 100644 index 000000000000..397c6d3f2a36 --- /dev/null +++ b/games-strategy/liquidwar6/Manifest @@ -0,0 +1,9 @@ +AUX liquidwar6-0.4.3681-check-headers.patch 3579 SHA256 fdbac895025ebdb044e0621fce892f92e0fb4de8ae122ec14b8a9efeb0870e3a SHA512 43429430fe1d447bd70a8b7a6b1da0023a9f17d6b96e2edd7079e199c25e8e28df9ffadbca6c94ee4fdb397022d89f0246cf4da3468255fd204ae4e51fe53e9f WHIRLPOOL caffdcf113616d4895fb560c2b0a8f816ca357136212dc7cc37dd22c1923e75bafa2c9107d27fa21f6b987cf444dfc04bb3b0e059f00b87774f50969044c803b +AUX liquidwar6-0.4.3681-ldconfig.patch 717 SHA256 4a3010fdc6a94e9704e3c648040f2660a23ccf939a963528ddbd742f5a703faf SHA512 8dfb058210de219c6f27564988ba92c4bcbae2e74b3c42636fccf3e8c039e1aae8df724bc59d40484dd40151eb46c168a2eba929af15f54ee029b5a600559c2b WHIRLPOOL 12aa0f626c3e8fcd1c0bba8940417dfd960e1b291cb632c35a282e43d7945dc3ca09c0094c9cc9d43fe1f5b14fd51060c4e8093ac9c59d619a4947f81f43ff7c +AUX liquidwar6-0.4.3681-paths.patch 788 SHA256 05056f313766dc505849047575dcff9fe77b6e995befca27eaaa42997cde75d7 SHA512 6e89453c4c5ff08f99d41c1ab92ed6552c41b4f08eb09b2e7c5ca10147eeb02b000eb68bc1eb4b4b29f27e15ed7e7d380999c13a16804665a937e5facb67f365 WHIRLPOOL 62caadc7745e27e03651c7d1f88f598676ef1003da59520e4d7fd09ff1008068cea48401547595382fcf0e7697d1a44009cbbe8ceed59adc78b67bb1c652c86c +DIST liquidwar6-0.4.3681.tar.gz 26531646 SHA256 942f5547199462fea521717b94517d6415d90573d948e94922f7b15271a4a8e0 SHA512 4154c8d3c2ceb128cf2d27a4682c89a30d3610f695b2e05f8d4e33c13fb54aaab3bb4a2b5c6dbcc43ff5d24991ea57a521716c94e15d8dd05dc384c22a37f52a WHIRLPOOL 4f502f572082c89469126eb97cfb181c28980783203f73b51a577c9a9e6cd28936f76c50892757320cb8dbee8b44319790a5ca7715d7cf096664043233fd5647 +DIST liquidwar6-extra-maps-0.4.3681.tar.gz 16191302 SHA256 32ffe94781aade93ca26919220b434a26dbde9260655bf6733f19d5df41abc65 SHA512 e767adc4402f803824145fd12f79eb2cbf9b34aea12065123a558dfb6704bd7ab1861b453e794f7a612d4fa75d0f6024ef410b2700eea08a279d6857b9dc2ba7 WHIRLPOOL d53b3e28b4a26aba780e35a825c1fa7f33ea00bf4884b44685a550cf6c04d0a2cf296dd29ecf5d7884ca91a8f560988dce7b4ae1c819a92bbaa5cc59900e154b +EBUILD liquidwar6-0.4.3681-r1.ebuild 2616 SHA256 1fbffb6db9a0fbfb7493a360cc3bae533c6932af54a71ad554bd5ab5806be585 SHA512 c8638919d98c1935877a3c6105ef6110842e0fb640dbd698ea183a65e065ed3690262c06556e883cac0c0ed71a8531621b5f18210e3f357e8afd6eb1347667a4 WHIRLPOOL 7ff5a1663ede2d768604f991c9b1d9678910f17694113fab21243973a82daceaac6d6b4f492d1514a2c67865e0199b9bab844b7202877bbcd35575e4294c62a2 +MISC ChangeLog 3937 SHA256 04654b774ed72b03147d3b0d1faa93201b614c10a600dce8c9fbc5ff41eb872c SHA512 142b40d07ebb1ea24176a93a028caad38b1e01afaa52aea03b2e9a922f48c429fb0b2140581ed9a007bc22c8af63436fc1da38b7c045f7fe8eebb57c296f0f0c WHIRLPOOL 936a0e5969520bcef785ab315edd34fea07d6e727a9f9f35ff45c49f111f83ad6a791a0e820972d987af0cae1aea738257f6f55e7169e3aab220fc85898e41d9 +MISC ChangeLog-2015 2431 SHA256 aba38e8ed310ae2933aa7a6450d9218a70c961bc8be12126ea6d20a6ef79fa93 SHA512 4fdfec89afab91d5fd133282931368ac6966b208c7048201f7cae046f090fd22219b4c7e592326ffa093aee1a32134e49b4c877dc05de74333be11e65b85d619 WHIRLPOOL 71be7df710179a4c9161d3dc4edf7fffc72b562bf73715fdfe0c6453a75317a45f6c2ff948d170033e9fcc7bec939f2fb7e59545623564508bd257b2217ec0e0 +MISC metadata.xml 1521 SHA256 86095f76f94f93cba774e24121295e232045e6a945a714cffd9df5724e69c39c SHA512 f0b8c24ca6d7cded3731c3a38092b6ec7163c9c2b5bac8638d9402d76c5e53a4a1a7440c6d2a11a12f457cf4a7d89a592b928b05a04158d93f15deea32e13c09 WHIRLPOOL 0685d14c4d9915d2f3e21ee6e35848a314ddbe1f5f4b75f67e6221131829e8813d9fc9601ee91601669a99681743b1d9cde5a55592d329877b2c9c9dc9a4c4c6 diff --git a/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-check-headers.patch b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-check-headers.patch new file mode 100644 index 000000000000..34dd76b48ea0 --- /dev/null +++ b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-check-headers.patch @@ -0,0 +1,70 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Wed Jun 4 16:01:18 UTC 2014 +Subject: fix header checks + + our multilib wrapped headers are broken shit + +--- a/configure.ac ++++ b/configure.ac +@@ -55,7 +55,7 @@ + AC_SUBST(LW6_VERSION_MINOR) + + dnl Headers, some are optional +-AC_CHECK_HEADERS(arpa/inet.h caca.h ctype.h CUnit/CUnit.h CUnit/Automated.h CUnit/CUCurses.h dirent.h errno.h execinfo.h expat.h fcntl.h gc/gc.h gmp.h GL/gl.h GL/glu.h GLES2/gl2.h iconv.h ifaddrs.h jpeglib.h langinfo.h libintl.h libpng12/png.h libpng13/png.h libpng14/png.h libpng15/png.h libpng16/png.h lmcons.h limits.h locale.h ltdl.h mach/vm_statistics.h mach/mach_types.h mach/mach_init.h mach/mach_host.h math.h netdb.h netinet/in.h omp.h pthread.h readline/history.h readline/readline.h SDL/SDL.h SDL/SDL_image.h SDL/SDL_mixer.h SDL/SDL_ttf.h signal.h stdarg.h stdio.h stdlib.h string.h syslog.h sys/select.h sys/signal.h sys/socket.h sys/stat.h sys/sysinfo.h sys/time.h sys/types.h sys/utsname.h time.h unistd.h winbase.h windows.h winsock2.h) ++AC_CHECK_HEADERS(arpa/inet.h caca.h ctype.h CUnit/CUnit.h CUnit/Automated.h CUnit/CUCurses.h dirent.h errno.h execinfo.h expat.h fcntl.h gc/gc.h gmp.h GL/gl.h GL/glu.h GLES2/gl2.h iconv.h ifaddrs.h jpeglib.h langinfo.h libintl.h libpng12/png.h libpng13/png.h libpng14/png.h libpng15/png.h libpng16/png.h lmcons.h limits.h locale.h ltdl.h mach/vm_statistics.h mach/mach_types.h mach/mach_init.h mach/mach_host.h math.h netdb.h netinet/in.h omp.h pthread.h readline/history.h readline/readline.h signal.h stdarg.h stdio.h stdlib.h string.h syslog.h sys/select.h sys/signal.h sys/socket.h sys/stat.h sys/sysinfo.h sys/time.h sys/types.h sys/utsname.h time.h unistd.h winbase.h windows.h winsock2.h) + + dnl GNULIB stuff, http://www.gnu.org/software/gnulib/ + gl_00GNULIB +@@ -477,40 +477,42 @@ + fi + SDL_EXTRA="${SDL_EXTRA_CFLAGS} ${SDL_EXTRA_LIBS}" + ++CFLAGS="$CFLAGS $SDL_EXTRA_CFLAGS" ++ + AC_CHECK_HEADER(SDL/SDL.h, HAVE_SDL_H=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL (http://www.libsdl.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + AC_CHECK_LIB(SDL, SDL_Init, HAVE_LIBSDL=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL (http://www.libsdl.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + + AC_CHECK_HEADER(GL/gl.h, HAVE_GL_GL_H=1,AC_MSG_WARN([ + *** Liquid War 6 needs Mesa (http://www.mesa3d.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + AC_CHECK_LIB(GL, glBegin, HAVE_LIBGL=1, AC_MSG_WARN([ + *** Liquid War 6 needs Mesa (http://www.mesa3d.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + + AC_CHECK_HEADER(GL/glu.h, HAVE_GL_GLU_H=1,AC_MSG_WARN([ + *** Liquid War 6 needs GLU (http://www.mesa3d.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + AC_CHECK_LIB(GLU, gluBeginCurve, HAVE_LIBGLU=1, AC_MSG_WARN([ + *** Liquid War 6 needs GLU (http://www.mesa3d.org/) +-]),[${SDL_EXTRA}]) ++]),[]) + + AC_CHECK_HEADER(SDL/SDL_image.h, HAVE_SDL_IMAGE_H=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL_image (http://www.libsdl.org/projects/SDL_image/) +-]),[${SDL_EXTRA}]) ++]),[]) + AC_CHECK_LIB(SDL_image, IMG_Load, HAVE_LIBSDL_IMAGE=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL_image (http://www.libsdl.org/projects/SDL_image/) +-]),[${SDL_EXTRA}]) ++]),[]) + + AC_CHECK_HEADER(SDL/SDL_ttf.h, HAVE_SDL_TTF_H=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL_ttf (http://www.libsdl.org/projects/SDL_ttf/) +-]),[${SDL_EXTRA}]) ++]),[]) + AC_CHECK_LIB(SDL_ttf, TTF_Init, HAVE_LIBSDL_TTF=1, AC_MSG_WARN([ + *** Liquid War 6 needs SDL_ttf (http://www.libsdl.org/projects/SDL_ttf/) +-]),[${SDL_EXTRA}]) ++]),[]) + + AC_ARG_ENABLE([mod-gl1], AS_HELP_STRING([--enable-mod-gl1],[compile mod-gl1 default=yes]), [enable_mod_gl1=$enableval], [enable_mod_gl1=yes]) + diff --git a/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-ldconfig.patch b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-ldconfig.patch new file mode 100644 index 000000000000..dd5e702b6144 --- /dev/null +++ b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-ldconfig.patch @@ -0,0 +1,16 @@ +commit 1bd3596545912f2e47b8848df3fb5d99195d299a +Author: hasufell <hasufell@gentoo.org> +Date: Wed Jan 8 17:21:09 2014 +0100 + + don't run ldconfig + +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -65,7 +65,6 @@ EXTRA_DIST = scriptpo.c indent.sh scriptpo-update.sh stamp.sh clean.sh dtou.sh u + SUBDIRS = lib + + install-exec-local: +- if which id && which ldconfig && test `id -u` -eq 0 && test "$(prefix)" != "/usr"; then ldconfig; fi # Run ldconfig automatically if we're root + if test -x $(DESTDIR)$(bindir)/liquidwar6; then mv $(DESTDIR)$(bindir)/liquidwar6 $(DESTDIR)$(bindir)/@PACKAGE_TARNAME@-@LW6_VERSION_BASE@; ln -s @PACKAGE_TARNAME@-@LW6_VERSION_BASE@ $(DESTDIR)$(bindir)/liquidwar6; fi + + uninstall-local: diff --git a/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-paths.patch b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-paths.patch new file mode 100644 index 000000000000..3ac69032471e --- /dev/null +++ b/games-strategy/liquidwar6/files/liquidwar6-0.4.3681-paths.patch @@ -0,0 +1,27 @@ +commit b121fe3d9fb7e5fc52f592482e02b6a28430435f +Author: hasufell <hasufell@gentoo.org> +Date: Wed Jan 8 17:23:56 2014 +0100 + + respect datarootdir + +--- a/data/icon/Makefile.am ++++ b/data/icon/Makefile.am +@@ -19,6 +19,6 @@ + # Contact author : ufoot@ufoot.org + + pkgdata_DATA = liquidwar6.png liquidwar6.xpm +-pkgdatadir = $(datadir)/pixmaps ++pkgdatadir = $(datarootdir)/pixmaps + EXTRA_DIST = $(pkgdata_DATA) liquidwar6.ico liquidwar6.icns + +--- a/pkg/Makefile.am ++++ b/pkg/Makefile.am +@@ -19,7 +19,7 @@ + # Contact author : ufoot@ufoot.org + + pkgdata_DATA = liquidwar6.desktop +-pkgdatadir = $(datadir)/applications ++pkgdatadir = $(datarootdir)/applications + EXTRA_DIST = $(pkgdata_DATA) liquidwar6.spec liquidwar6d 406FFCAB.gnupg.txt FD409E94.gnupg.txt + + distclean-local: diff --git a/games-strategy/liquidwar6/liquidwar6-0.4.3681-r1.ebuild b/games-strategy/liquidwar6/liquidwar6-0.4.3681-r1.ebuild new file mode 100644 index 000000000000..8caf4976f559 --- /dev/null +++ b/games-strategy/liquidwar6/liquidwar6-0.4.3681-r1.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils toolchain-funcs games + +MY_PV=${PV/_beta/beta} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Unique multiplayer wargame between liquids" +HOMEPAGE="https://www.gnu.org/software/liquidwar6/" +SRC_URI="http://www.ufoot.org/download/liquidwar/v6/${MY_PV}/${MY_P}.tar.gz + maps? ( http://www.ufoot.org/download/liquidwar/v6/${MY_PV}/${PN}-extra-maps-${MY_PV}.tar.gz )" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc gles2 gtk libcaca +maps nls +ogg openmp readline test" + +# yes, cunit is rdep +# Drop the libtool dep once libltdl goes stable. +RDEPEND="dev-db/sqlite:3 + dev-libs/expat + dev-scheme/guile:12 + dev-util/cunit + media-libs/freetype:2 + media-libs/libpng:0 + media-libs/libsdl[X,opengl,video] + media-libs/sdl-image[jpeg,png] + media-libs/sdl-ttf + net-misc/curl + || ( dev-libs/libltdl:0 <sys-devel/libtool-2.4.3-r2:2 ) + sys-libs/zlib + virtual/glu + virtual/jpeg:0 + virtual/opengl + libcaca? ( media-libs/libcaca ) + gles2? ( media-libs/mesa[gles2] ) + gtk? ( x11-libs/gtk+:2 ) + nls? ( virtual/libintl + virtual/libiconv ) + ogg? ( + media-libs/libsdl[X,sound,opengl,video] + media-libs/sdl-mixer[vorbis] + ) + readline? ( sys-libs/ncurses:0 + sys-libs/readline:0 )" +DEPEND="${RDEPEND} + dev-lang/perl + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${MY_P} +S_MAPS=${WORKDIR}/${PN}-extra-maps-${MY_PV} + +pkg_setup() { + if use openmp; then + if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp ; then + ewarn "OpenMP is not available in your current selected gcc" + die "need openmp capable gcc" + fi + fi + games_pkg_setup +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-{ldconfig,paths}.patch \ + "${FILESDIR}"/${P}-check-headers.patch + + sed -i \ + -e 's/-Werror//' \ + configure.ac || die + eautoreconf +} + +src_configure() { + # configure fails with cunit disabled + egamesconf \ + $(use_enable nls) \ + --enable-cunit \ + $(use_enable gtk) \ + --enable-mod-gl1 \ + $(use_enable gles2 mod-gles2) \ + $(use_enable libcaca mod-caca) \ + $(use_enable openmp) \ + $(use_enable ogg mod-ogg) \ + $(use_enable !ogg silent) \ + $(use_enable readline console) \ + --disable-static \ + --datarootdir=/usr/share \ + --mandir=/usr/share/man \ + --docdir=/usr/share/doc/${PF} \ + --htmldir=/usr/share/doc/${PF}/html + + if use maps; then + cd "${S_MAPS}" || die + egamesconf + fi +} + +src_compile() { + default + use doc && emake html + use maps && emake -C "${S_MAPS}" +} + +src_install() { + emake DESTDIR="${D}" install + use maps && emake -C "${S_MAPS}" DESTDIR="${D}" install + prune_libtool_files --all + prepgamesdirs +} diff --git a/games-strategy/liquidwar6/metadata.xml b/games-strategy/liquidwar6/metadata.xml new file mode 100644 index 000000000000..4f04e7250855 --- /dev/null +++ b/games-strategy/liquidwar6/metadata.xml @@ -0,0 +1,35 @@ +<?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="doc">Convert the info pages to html</flag> + <flag name="gles2">Enable OpenGL ES 2.0 support</flag> + <flag name="gtk">Used to display error/critical messages</flag> + <flag name="maps">Install extra maps</flag> + <flag name="ogg">Enable mod-ogg via <pkg>media-libs/sdl-mixer</pkg> + (currently the only sound provider)</flag> + <flag name="readline">Enable interactive script shell for + hacking</flag> + </use> + <longdescription lang="en"> + FEATURES: + * Fast-paced tactical action. Control the movement of all your forces + at the same time + * Simple yet original game mechanics, discovered by Thomas Colcombet + * 10 different teams, each with their own charactaristics and special + attacks + * 13 levels, each one twisting the gameplay in a new direction + * 100+ more levels if you download the bonus pack + * Levels can be created using simple image files + * Lots of level design options: walls, edge wraparound, bridges, + different speed, special areas such as glue or danger and varied + army size and fighter behavior + * Internationalization support, interface translated in French, + Norwegian and Russian + * Free Software, part of the GNU project (licence: GNU GPL v3+) + </longdescription> +</pkgmetadata> diff --git a/games-strategy/majesty-demo/Manifest b/games-strategy/majesty-demo/Manifest new file mode 100644 index 000000000000..028369923073 --- /dev/null +++ b/games-strategy/majesty-demo/Manifest @@ -0,0 +1,5 @@ +DIST majesty_demo.run 36582366 SHA256 453b2bfa0a2473810945c717563cc459fc2b2cdd713155272872b1d8ef695de9 SHA512 0573b29fa2635aeb0aa6ebaaa55c924322b3805e120f49fde51409cc6f101d7ae41d72ed0d086ffeac4d591ba75ee8bc190c46a3b71adb6b36d867df16be2c79 WHIRLPOOL 952027eb333098c156dd5e314a7694d40e6f9e57d0d3e97ad6edc9e2d2bdca31518e9354e074e3e27cebd607ce1b134df567926fde68679a6af083784e1896fb +EBUILD majesty-demo-1.0.0.ebuild 1087 SHA256 02e59e297f3ead94c65a51e93d2fa569d66e2a3eda19f0057d8e972d1847afcc SHA512 e836ccd6df5ff2131d83c5bab5598caeffacab3dbe3a25ac16b9244b79e0d7aaa48fc5c8e67463b3f04ec13fc6f7be5adda8332bfa5cb1231710c3f86f8aa004 WHIRLPOOL 991a07e2747d3536a5b92ce9670a8e4ec83df90343fbd9c3c2785a9f3f3a8633bc2237fd6540d82731f0b1edfbd2ab4426e8188d9efb2908fcbe324d18baf2d3 +MISC ChangeLog 2448 SHA256 b34069d827c5211287d7df0559211553657d41b8b423bfb3c4b5836079a34477 SHA512 f74d2159940ad675bf706d3df516691569e2d831f464de3100d4b720a5736c8ed6176442796b93d15654d1a60c771fcc4406272a6f932ecbc7432b1b17aea199 WHIRLPOOL 439d2b0bdafd751438ad89467bf29022c10fec90bf39e8e49fe00f9ff5ec7b82f8c03d2e62f1fb95f353cda923c0a48f5fa2cb5b968348180b62d1fdff15dc69 +MISC ChangeLog-2015 2377 SHA256 2339de94b532b21fe2286300b9571dc94aea643aa70e2f512f3f8ca8644efc7b SHA512 ccf73f8b826293140246609dd4b1285283ff1cc7e96f0ea62f0e5433b495bbed9022717323ffb3195313818a7a5da1f4cf34e83590434ff542cc5cac72b1d74a WHIRLPOOL 315e4ca0b4589f2bbf0c1f0a3946a958751506f1a0594393d9d21d349e00f4f963c0e43f59461235d3b92aed7da29e4eff4214fcfce449e5b10c4b21959b1441 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/majesty-demo/majesty-demo-1.0.0.ebuild b/games-strategy/majesty-demo/majesty-demo-1.0.0.ebuild new file mode 100644 index 000000000000..a42e63e97062 --- /dev/null +++ b/games-strategy/majesty-demo/majesty-demo-1.0.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils unpacker games + +DESCRIPTION="Control your own kingdom in this simulation" +HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=8&" +SRC_URI="http://ftp2.za.freebsd.org/pub/FreeBSD/ports/distfiles/majesty_demo.run" + +LICENSE="MAJESTY-DEMO" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="bindist strip" + +RDEPEND="sys-libs/glibc + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] + x11-libs/libXau[abi_x86_32(-)] + x11-libs/libXdmcp[abi_x86_32(-)]" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} +QA_PREBUILT="${dir:1}/maj_demo" + +src_install() { + dodoc README* + insinto "${dir}" + exeinto "${dir}" + doins -r data quests + doins majesty.{bmp,xpm} majestysite.url + newicon majesty.xpm majesty-demo.xpm + # only installing the static version for now + if use x86 || use amd64; then + doexe bin/Linux/x86/maj_demo + fi + games_make_wrapper maj_demo ./maj_demo "${dir}" "${dir}" + prepgamesdirs + make_desktop_entry maj_demo "Majesty (Demo)" +} diff --git a/games-strategy/majesty-demo/metadata.xml b/games-strategy/majesty-demo/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/majesty-demo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/maxr/Manifest b/games-strategy/maxr/Manifest new file mode 100644 index 000000000000..d7ed4929d9ee --- /dev/null +++ b/games-strategy/maxr/Manifest @@ -0,0 +1,5 @@ +DIST maxr-0.2.8.tar.gz 14738324 SHA256 d083fdc73d7ca12fa7bd21cee0ecada3612be62f4fed5c87f73e5cb654867e98 SHA512 22fec9ca773ea68f2639f3cb034ed271a926f99b9b17547bbbdf12a3b47ee445ab311b0766b0656c71b88a258165590431e189e695ef1a86e0fb3b799d1eaa80 WHIRLPOOL abe0b7ca61b625d3518437b605fccb8d3716a9d04dc75d3d98940c709f927447b7138be2ec0ebec36177bee72df9ae27b6f45db7827a37957ff9a2a19016ada1 +EBUILD maxr-0.2.8.ebuild 671 SHA256 4af9a66c82cd480d14f110dce11d2e5a90551dbbc806e9d098f507e27f293824 SHA512 fccb48552f18871174f79da7609bcbff2aea2ca787c4cf65e52a19c1991120dba794d0d44553952b9cd926885ae935b3b5efcf83eba56f0175ddffd60617588e WHIRLPOOL 0a365e584ddc4e2d0b845d3699dbe5cc5bc29081abbfd30a8c78f037a270f676212101aef9930d083b9f9b697d5bce9a365bf30f2e4c1a487043fed81e883078 +MISC ChangeLog 2424 SHA256 c4b1328cb38f4bad4611f7e76cf1efd49a3a50c488756ceaaef0a8b6e3b0c6ef SHA512 e152331206843ce06ee1704b905c06b7c2496840f306676174a892d10e9e77612fcef86062d0bd62cfe256e63ed7a0c59d3d26beae463db4314ff27d38054a9b WHIRLPOOL 882b39d8940214f60ae7f3ea40a92ed8238c83167f4faa71ca1b64b67dade6dadb11df89ba3bcbdb2bab419a4bd685b4d0108ddeee5c98907605fac1e08317d2 +MISC ChangeLog-2015 1227 SHA256 e97cf1c693ccf42fe136aa22052d131a4bc8909d8f697c40f067c54d831252ad SHA512 918af5030dc1d720ae663e90473a8fd289b23b70c2e59dd8ea00ae8876bbef259abccd47fc986e2f5b6c280909814ffdb095f2ba4d89c35132c930ee4aaf325b WHIRLPOOL 9d25e015a2a0eb039447bd6fe2981f74e0e78ab49262147d02128715be6612311217f49a28b7e609ff2c213d6db42ab1cecf555998e0289adc1d39ac7ec73e49 +MISC metadata.xml 259 SHA256 92bd7c6e50355d43cbf5dd2596bce32ae5e03ce2a4fd46b80751ac74c223fcf2 SHA512 8516e2364a64325b483a394a14c52e32b029beccd05586623e5dba0b861970722c3709070c8fd4b80a23f0a84b74a475485b0f2b05f44fae6f27f163714aef68 WHIRLPOOL 6198c7f0537590368b6bffa019d8c0c8cd03cd49bec4b1917d59b14e7922c4e4f1143ff2e4239f2f7601081c98af6f81f478ffabcc893d5e1ff7851ab990dbfa diff --git a/games-strategy/maxr/maxr-0.2.8.ebuild b/games-strategy/maxr/maxr-0.2.8.ebuild new file mode 100644 index 000000000000..df795ec20186 --- /dev/null +++ b/games-strategy/maxr/maxr-0.2.8.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="Mechanized Assault and Exploration Reloaded" +HOMEPAGE="http://www.maxr.org/" +SRC_URI="http://www.maxr.org/downloads/${P}.tar.gz" + +LICENSE="GPL-2 FDL-1.2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/libsdl[video] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-net" +RDEPEND="${DEPEND}" + +src_install() { + dogamesbin src/${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r data/* + dodoc ABOUT CHANGELOG + doicon data/maxr.png + make_desktop_entry maxr "Mechanized Assault and Exploration Reloaded" + prepgamesdirs +} diff --git a/games-strategy/maxr/metadata.xml b/games-strategy/maxr/metadata.xml new file mode 100644 index 000000000000..c040f7c7d3e0 --- /dev/null +++ b/games-strategy/maxr/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> +</pkgmetadata> diff --git a/games-strategy/megaglest-data/Manifest b/games-strategy/megaglest-data/Manifest new file mode 100644 index 000000000000..910bbc0f3ecd --- /dev/null +++ b/games-strategy/megaglest-data/Manifest @@ -0,0 +1,5 @@ +DIST megaglest-data-3.11.1.tar.xz 283383936 SHA256 5f1f6ad9f89a929122a26e1c1cabc887b75c09f4a84720d9ce5aa6aa0fc9cbe8 SHA512 a0ca22c2ba44992ce244c19f1bf3b19983a76520566286728ff4de4c14ef568aec3b166a2dde615b221d4cded8f2714b873a56fd58c1beebdc7120508ba0e357 WHIRLPOOL bec2417a1884d5f6ded736981714eaf3a79ebf015163958b55396373bbb0e6ae6548bf9e30b4615aa9fbca1b9a779e1f8afd6086a48204561ddb361d98588771 +EBUILD megaglest-data-3.11.1.ebuild 930 SHA256 7997df1d7cb8466a8793022ca3c0032d868b84a4c85d1589668a6fa3c4880d97 SHA512 32f7893ed356587bf32105296ce4cb4fcf08697803ae47738a033313dfb73fa9b8e71456ea2ecc7781209c597a309929adf4c6dbb5e2fbf18ea5364b20f901f9 WHIRLPOOL e94aec024a3e1dd208e5932e107d58e4b6f58ed4e9f0c2ea28768592f00f6e6bfea4b80ad726606649be7ba62334b29c8f869ee96b69d18253307dfbbd8dd338 +MISC ChangeLog 2737 SHA256 5e503d0de3ae8fe266ba6e428112faab735f6ad85b20258a4e82c9d455b906f8 SHA512 77a6934f092e026d81a256d985544e3409a9cf90007ccf0f2fceaa53c40d88ca54880a0c43e77d8adbd23e535c4cb865917d3b355be8ac3280f021dd89ea651d WHIRLPOOL 3a27c9c1248362f8800267507b03b5081b075e6ca0a48cb7d9dbc736ef03036bc35b0d0590c8dac44d120f625b0d088c16b2ed262a57f40c301823d3a1b9354d +MISC ChangeLog-2015 2714 SHA256 61ded1a4a58a27a5dbfa89e3321f07f8babfa1a8368322e21fd78aedf63a81bb SHA512 17629082899635d748a644921bd346148ccef2db425305b2faaae033d2705248c42374a7da85a7db47071a272e6e42b5ebee69d2395414888f7786808ee01400 WHIRLPOOL ce67440aa3327ca359d8f430ac448def3a470c16822e2b14313c339ad46e3a3652f85cde73d31d47c8dc85096d5d2de26af294271822648e84a8f63f8ce9077f +MISC metadata.xml 342 SHA256 f181f9cb5d926b3d8c8fe6487db7affe6d2f1b346049f3dddb090916663b73e4 SHA512 6ae571607c0fefd0ff846ea1f9946d1e5de8a208494b71474f2c46495beb4d306edc37d7ed754305c6e325e7b7306f13f3e78010235bef1c97873cf01de519fe WHIRLPOOL 3e7de83eba657bbeb1eeb28d2736b3505d11596f1449dfb6c82af35607756d79319912d619e1a68ba91aaba1f1c94eec85ae12ffed042dc57625b738624cb98a diff --git a/games-strategy/megaglest-data/megaglest-data-3.11.1.ebuild b/games-strategy/megaglest-data/megaglest-data-3.11.1.ebuild new file mode 100644 index 000000000000..78413a49228f --- /dev/null +++ b/games-strategy/megaglest-data/megaglest-data-3.11.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit cmake-utils games + +MY_PN="megaglest" +DESCRIPTION="Data files for the cross-platform 3D realtime strategy game MegaGlest" +HOMEPAGE="http://www.megaglest.org/" +SRC_URI="https://github.com/MegaGlest/megaglest-data/releases/download/${PV}/megaglest-data-${PV}.tar.xz" + +LICENSE="CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc" + +DOCS=( docs/AUTHORS.data.txt docs/CHANGELOG.txt docs/README.txt ) + +S=${WORKDIR}/${MY_PN}-${PV} + +src_configure() { + local mycmakeargs=( + -DMEGAGLEST_BIN_INSTALL_PATH="${GAMES_BINDIR}" + -DMEGAGLEST_DATA_INSTALL_PATH="${GAMES_DATADIR}/${MY_PN}" + -DMEGAGLEST_ICON_INSTALL_PATH="/usr/share/pixmaps" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + use doc && HTML_DOCS="docs/glest_factions/" + cmake-utils_src_install + prepgamesdirs +} diff --git a/games-strategy/megaglest-data/metadata.xml b/games-strategy/megaglest-data/metadata.xml new file mode 100644 index 000000000000..860fcccb60df --- /dev/null +++ b/games-strategy/megaglest-data/metadata.xml @@ -0,0 +1,11 @@ +<?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="github">MegaGlest/megaglest-data</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/megaglest/Manifest b/games-strategy/megaglest/Manifest new file mode 100644 index 000000000000..180a53561e02 --- /dev/null +++ b/games-strategy/megaglest/Manifest @@ -0,0 +1,8 @@ +AUX megaglest-3.11.1-cmake.patch 897 SHA256 9e1d077a849a0dc8edc7ce91f4b2519597f67859c7759b138ae5a4193748a8c2 SHA512 f49580a2b87fbc1e9aa3bec7313bdff36f78404aa97ac9f0cef790202c7d92439ad3fd8a9bdc991540048adb771e22f36c946f44a967cacae5157ef98b41c6cc WHIRLPOOL e2517d41f078cc869b4c060e7d86eefebfb3dd0281f7833c9ef69ce14124a41eca16e07f1240dc19cb55b8a7912ed3319a054450b9b9d26f4da225dcf337a487 +AUX megaglest-3.11.1-miniupnpc.patch 1299 SHA256 1daffdb26010bd2ad8d8cddb42dfd82d2126d64282aba2c75ea8add99f3171a9 SHA512 62bf0ff8fa167cecae9f7bf65e5295d609afcdb9fdcb3bf502366eb775fa8d3d39c12001d320a9dc42e12075004c86b7d118eb517d6a57473e03aa26944f8bd4 WHIRLPOOL 1a34b110b5c232b4f18128379beb417f7a7c0ffc33e4057f474c9a083edaef5c4ef37e1a501bb0bc52f09f02f52fe502981e124729f8ec6c94ec2dafebc7ba60 +AUX megaglest-3.11.1-static-build.patch 1939 SHA256 c34102f40497240a659540bbf4926e9b8ac02aec2e6202b94eb10e923a224e5f SHA512 c83c8ed2700cd951516d497ac2a2cadbbb9fe56634e368a252ea7186266ada0bb744edb05fc2d8f1483a5f968854e46606f54926b50677cf424503b6c496dee5 WHIRLPOOL f6df24ade01171ab5095b3b6b8034c92183fbc5df64154e393d20c2a2ebf87c5dd8736684402103d945c544c3c0009f7865d485ede205fcb0f2c439e868ca09c +DIST megaglest-source-3.11.1.tar.xz 2863180 SHA256 94e28a9628f3593ce337ce663f258a125176b11128f16afb8c947f2763930841 SHA512 9e1d8eccff1889199ff0e4b0f1cc3d0193306cd9271a2c98f12a49d61a09789d0813d5f3dadfe7701d2446976992834c63287f0227d660dc9cc9d2ecef65e225 WHIRLPOOL 7a6b0908da7c6164f3baa71ea10c1f09fca86581b9da4930c3a0aa70e2c25d582349772d45ec8edee91ded2cbe1e68ee66e8756d1d23205c5d751eae135758b0 +EBUILD megaglest-3.11.1-r1.ebuild 4503 SHA256 d44279a9450fd6ec2c40a49fb1e6be47fe8b90682a3b4515392b0f966903e49b SHA512 334e9c02fc1b9d067487d9f7156357f047711e645c9843cd0ce6b54dffabeb274cb37b6482d9603e9df677efef093f540ac5ea069594406ac9047c3181743741 WHIRLPOOL f22a70db20529cacdd65acf1886e468097c12ff34bf9ba72ea6365db3a32d77dc0e6bd0a1bbadbb2a9b79ab86cd35ba58ddf065e1b594da20a475b5d39173261 +MISC ChangeLog 3908 SHA256 d53c6779fcd44b18e979bd2c547346c42c3ff81d6811458b9437ce9e5070dc2e SHA512 cf1396e1169895945d011f2340bb88415074c257dad574742125704a3f6b74d5acfd13b2ae71b44256df39340cf83e9e9185b74987c30ef4b5e9736098867ced WHIRLPOOL 43d38d0d3960f084668e0584eccbf9bd074a51affc43f0de0fa849a279fc47429c9ecee150115b36a61c47c4d33d8f229fb87abad0cd4e4deb944aecd9f17de5 +MISC ChangeLog-2015 5745 SHA256 22205bb89d945a5b00ff2e35826a3f318a0dfbb9c44f16c5132c0d32be78ed91 SHA512 bd91fc58f61076439d12e9a8fe5ba758de083f9dc165877bbe99550e1ec8e943c36c14569721ba72e27a5b8e899e3b28633f9b7b612385601c900826790231c2 WHIRLPOOL e645256ac9c10f6d18ebbc3b08480eb3dfcdc0820f889e1e3ec5e365d9ee04b07e26f66501e8f53169c08f267e214b7edd4766821997bed095647b4e8e3de591 +MISC metadata.xml 1649 SHA256 a5e7a7541ad93f2f04cf111b431b16671ae782b19693b11cf3f06099e33d580f SHA512 65e705850828566bafc3b87638613574245039d91da5a39b7d79296c2eeb8701ef04c3bd520686c2dc73d65baa58f1ecb61ee2ce188204a5e704bf15261d34c3 WHIRLPOOL 111a8f8f00e69e3e8a477b458801e6ba167633f62b6dd288ec2d308c049161c70cbe487073fda0ff064b4a514a5e2f2199030313dbc2b878ecdb0cbfcb532f2d diff --git a/games-strategy/megaglest/files/megaglest-3.11.1-cmake.patch b/games-strategy/megaglest/files/megaglest-3.11.1-cmake.patch new file mode 100644 index 000000000000..527671246e98 --- /dev/null +++ b/games-strategy/megaglest/files/megaglest-3.11.1-cmake.patch @@ -0,0 +1,28 @@ +From e463986ba1f40210b40eff34c4aac727c7f2e571 Mon Sep 17 00:00:00 2001 +From: Michael Palimaka <kensington@gentoo.org> +Date: Wed, 13 May 2015 04:22:45 +1000 +Subject: [PATCH] Fix build with >=cmake-3.2. + +The FindOpenGL module no longer pulls in X11 libraries. +--- + source/shared_lib/CMakeLists.txt | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/source/shared_lib/CMakeLists.txt b/source/shared_lib/CMakeLists.txt +index 3da563e..e5a06fc 100644 +--- a/source/shared_lib/CMakeLists.txt ++++ b/source/shared_lib/CMakeLists.txt +@@ -95,6 +95,10 @@ IF(BUILD_MEGAGLEST_MODEL_VIEWER OR BUILD_MEGAGLEST_MAP_EDITOR OR BUILD_MEGAGLEST + SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${OPENGL_LIBRARY}) + ENDIF() + ++ IF(UNIX) ++ FIND_PACKAGE(X11 REQUIRED) ++ SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${X11_LIBRARIES}) ++ ENDIF() + + IF(WANT_XERCES) + FIND_PACKAGE(XercesC REQUIRED) +-- +2.3.6 + diff --git a/games-strategy/megaglest/files/megaglest-3.11.1-miniupnpc.patch b/games-strategy/megaglest/files/megaglest-3.11.1-miniupnpc.patch new file mode 100644 index 000000000000..112e734c6efb --- /dev/null +++ b/games-strategy/megaglest/files/megaglest-3.11.1-miniupnpc.patch @@ -0,0 +1,21 @@ +diff --git a/source/shared_lib/sources/platform/posix/socket.cpp b/source/shared_lib/sources/platform/posix/socket.cpp +index a5d4b92..cb8ceb4 100644 +--- a/source/shared_lib/sources/platform/posix/socket.cpp ++++ b/source/shared_lib/sources/platform/posix/socket.cpp +@@ -2563,9 +2563,15 @@ int UPNP_Tools::upnp_init(void *param) { + const char *upnp_minissdpdsock = NULL; + int upnp_sameport = 0; + int upnp_ipv6 = 0; ++ unsigned char upnp_ttl = 2; + int upnp_error = 0; + +-#ifndef MINIUPNPC_VERSION_PRE1_6 ++#if (MINIUPNPC_API_VERSION >= 14) ++ devlist = upnpDiscover(upnp_delay, upnp_multicastif, upnp_minissdpdsock, upnp_sameport, upnp_ipv6, upnp_ttl, &upnp_error); ++ ++ if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"UPnP discover returned upnp_error = %d.\n",upnp_error); ++ if(SystemFlags::VERBOSE_MODE_ENABLED) printf("UPnP discover returned upnp_error = %d.\n",upnp_error); ++#elif (MINIUPNPC_API_VERSION >= 8) + devlist = upnpDiscover(upnp_delay, upnp_multicastif, upnp_minissdpdsock, upnp_sameport, upnp_ipv6, &upnp_error); + + if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"UPnP discover returned upnp_error = %d.\n",upnp_error); diff --git a/games-strategy/megaglest/files/megaglest-3.11.1-static-build.patch b/games-strategy/megaglest/files/megaglest-3.11.1-static-build.patch new file mode 100644 index 000000000000..2586a561956b --- /dev/null +++ b/games-strategy/megaglest/files/megaglest-3.11.1-static-build.patch @@ -0,0 +1,63 @@ +commit 754a6eb9f81a4a40a2a0102ffe1bfdbba734b36a +Author: hasufell <hasufell@gentoo.org> +Date: Mon Nov 18 21:54:54 2013 +0100 + + fix static build + +diff --git a/mk/cmake/Modules/FindOGG.cmake b/mk/cmake/Modules/FindOGG.cmake +index 2a026cc..8ca8a23 100644 +--- a/mk/cmake/Modules/FindOGG.cmake ++++ b/mk/cmake/Modules/FindOGG.cmake +@@ -19,11 +19,11 @@ + + FIND_PATH(OGG_INCLUDE_DIR ogg/ogg.h) + +-#IF (OGG_STATIC AND NOT OGG_LIBRARY) +-# FIND_LIBRARY(OGG_LIBRARY NAMES libogg.a ogg) +-#ELSE() +- FIND_LIBRARY(OGG_LIBRARY NAMES ogg) +-#ENDIF() ++IF (OGG_STATIC AND NOT OGG_LIBRARY) ++ FIND_LIBRARY(OGG_LIBRARY NAMES libogg.a) ++ELSE() ++ FIND_LIBRARY(OGG_LIBRARY NAMES libogg.so) ++ENDIF() + + #IF (OGG_STATIC AND NOT VORBIS_LIBRARY) + # FIND_LIBRARY(VORBIS_LIBRARY NAMES libvorbis.a vorbis) +--- a/mk/cmake/Modules/FindXercesC.cmake ++++ b/mk/cmake/Modules/FindXercesC.cmake +@@ -83,6 +83,9 @@ + /usr/lib + /usr/local/lib + ) ++ ++ FIND_LIBRARY(ICUUC_LIBRARY NAMES libicuuc.a) ++ FIND_LIBRARY(ICUDATA_LIBRARY NAMES libicudata.a) + + IF (XERCESC_INCLUDE AND XERCESC_LIBRARY) + MESSAGE(STATUS "Found static Xerces-C lib [${XERCESC_LIBRARY}]") +@@ -90,7 +93,7 @@ + + IF(UNIX AND NOT APPLE) + #SET(XERCESC_LIBRARY "-Bstatic ${XERCESC_LIBRARY} -Bdynamic -licuuc -licudata") +- SET(XERCESC_LIBRARY "-Bstatic ${XERCESC_LIBRARY}") ++ SET(XERCESC_LIBRARY "-Bstatic ${XERCESC_LIBRARY} ${ICUUC_LIBRARY} ${ICUDATA_LIBRARY}") + ENDIF() + ENDIF() + ENDIF() +--- a/mk/cmake/Modules/FindFriBiDi.cmake ++++ b/mk/cmake/Modules/FindFriBiDi.cmake +@@ -28,9 +28,9 @@ + SET(FRIBIDI_NAMES ${FRIBIDI_NAMES} fribidi libfribidi) + + OPTION(WANT_STATIC_LIBS "builds as many static libs as possible" OFF) +-IF(WANT_STATIC_LIBS) +- SET(FRIBIDI_NAMES fribidi.a libfribidi.a ${FRIBIDI_NAMES}) +-ENDIF() ++#IF(WANT_STATIC_LIBS) ++# SET(FRIBIDI_NAMES fribidi.a libfribidi.a ${FRIBIDI_NAMES}) ++#ENDIF() + + MESSAGE(STATUS "** Searching for library names: [${FRIBIDI_NAMES}] ...") + diff --git a/games-strategy/megaglest/megaglest-3.11.1-r1.ebuild b/games-strategy/megaglest/megaglest-3.11.1-r1.ebuild new file mode 100644 index 000000000000..870c3e1b3566 --- /dev/null +++ b/games-strategy/megaglest/megaglest-3.11.1-r1.ebuild @@ -0,0 +1,164 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# google-breakpad +# TODO: fribidi, libvorbis static + +EAPI=5 +VIRTUALX_REQUIRED="manual" +inherit eutils flag-o-matic cmake-utils virtualx wxwidgets gnome2-utils games + +DESCRIPTION="Cross-platform 3D realtime strategy game" +HOMEPAGE="http://www.megaglest.org/" +SRC_URI="https://github.com/MegaGlest/megaglest-source/releases/download/${PV}/megaglest-source-${PV}.tar.xz" + +LICENSE="GPL-3 BitstreamVera" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug +editor fribidi cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 static +streflop +tools +unicode wxuniversal +model-viewer videos" + +RDEPEND=" + ~games-strategy/${PN}-data-${PV} + >=dev-lang/lua-5.1:0 + dev-libs/libxml2 + media-libs/fontconfig + media-libs/freetype + media-libs/libsdl[X,sound,joystick,opengl,video] + media-libs/libvorbis + media-libs/openal + net-libs/gnutls + sys-libs/zlib + virtual/opengl + virtual/glu + x11-libs/libX11 + x11-libs/libXext + editor? ( x11-libs/wxGTK:3.0[X,opengl] ) + fribidi? ( dev-libs/fribidi ) + model-viewer? ( x11-libs/wxGTK:3.0[X] ) + !static? ( + dev-libs/xerces-c[icu] + media-libs/ftgl + media-libs/glew + media-libs/libpng:0 + net-libs/libircclient + >=net-libs/miniupnpc-1.8 + net-misc/curl + virtual/jpeg:0 + ) + videos? ( media-video/vlc )" +DEPEND="${RDEPEND} + sys-apps/help2man + virtual/pkgconfig + editor? ( ${VIRTUALX_DEPEND} ) + model-viewer? ( ${VIRTUALX_DEPEND} ) + static? ( + dev-libs/icu[static-libs] + dev-libs/xerces-c[icu,static-libs] + media-libs/ftgl[static-libs] + media-libs/glew[static-libs] + media-libs/libpng:0[static-libs] + net-libs/libircclient[static-libs] + net-libs/miniupnpc[static-libs] + net-misc/curl[static-libs] + virtual/jpeg:0[static-libs] + )" + +src_prepare() { + if use editor || use model-viewer ; then + WX_GTK_VER="3.0" + need-wxwidgets unicode + fi + + epatch "${FILESDIR}"/${P}-static-build.patch \ + "${FILESDIR}"/${P}-cmake.patch \ + "${FILESDIR}"/${P}-miniupnpc.patch +} + +src_configure() { + if use cpu_flags_x86_sse3; then + SSE=3 + elif use cpu_flags_x86_sse2; then + SSE=2 + elif use cpu_flags_x86_sse; then + SSE=1 + else + SSE=0 + fi + + local mycmakeargs=( + $(cmake-utils_use_enable fribidi FRIBIDI) + $(cmake-utils_use_build editor MEGAGLEST_MAP_EDITOR) + $(cmake-utils_use_build tools MEGAGLEST_MODEL_IMPORT_EXPORT_TOOLS) + $(cmake-utils_use_build model-viewer MEGAGLEST_MODEL_VIEWER) + $(cmake-utils_use_with videos VLC) + -DMAX_SSE_LEVEL_DESIRED="${SSE}" + -DMEGAGLEST_BIN_INSTALL_PATH="${GAMES_BINDIR}" + -DMEGAGLEST_DATA_INSTALL_PATH="${GAMES_DATADIR}/${PN}" + # icons are used at runtime, wrong default location share/pixmaps + -DMEGAGLEST_ICON_INSTALL_PATH="${GAMES_DATADIR}/${PN}" + -DUSE_FTGL=ON + $(cmake-utils_use_want static STATIC_LIBS) + $(cmake-utils_use_want streflop STREFLOP) + -DWANT_SVN_STAMP=off + $(cmake-utils_use static wxWidgets_USE_STATIC) + $(cmake-utils_use unicode wxWidgets_USE_UNICODE) + $(cmake-utils_use wxuniversal wxWidgets_USE_UNIVERSAL) + + $(usex debug "-DBUILD_MEGAGLEST_UPNP_DEBUG=ON -DwxWidgets_USE_DEBUG=ON" "") + ) + + # support CMAKE_BUILD_TYPE=Gentoo + append-cppflags '-DCUSTOM_DATA_INSTALL_PATH=\\\"'${GAMES_DATADIR}/${PN}/'\\\"' + + cmake-utils_src_configure +} + +src_compile() { + if use editor || use model-viewer; then + # work around parallel make issues - bug #561380 + MAKEOPTS="-j1 ${MAKEOPTS}" \ + VIRTUALX_COMMAND="cmake-utils_src_compile" virtualmake + else + cmake-utils_src_compile + fi +} + +src_install() { + # rebuilds some targets randomly without fast option + emake -C "${CMAKE_BUILD_DIR}" DESTDIR="${D}" "$@" install/fast + + dodoc docs/{AUTHORS.source_code,CHANGELOG,README}.txt + doicon -s 48 ${PN}.png + + use editor && + make_desktop_entry ${PN}_editor "MegaGlest Map Editor" + use model-viewer && + make_desktop_entry ${PN}_g3dviewer "MegaGlest Model Viewer" + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + einfo + elog 'Note about Configuration:' + elog 'DO NOT directly edit glest.ini and glestkeys.ini but rather glestuser.ini' + elog 'and glestuserkeys.ini in ~/.megaglest/ and create your user over-ride' + elog 'values in these files.' + elog + elog 'If you have an older graphics card which only supports OpenGL 1.2, and the' + elog 'game crashes when you try to play, try starting with "megaglest --disable-vbo"' + elog 'Some graphics cards may require setting Max Lights to 1.' + einfo + + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/megaglest/metadata.xml b/games-strategy/megaglest/metadata.xml new file mode 100644 index 000000000000..192243d3ba3d --- /dev/null +++ b/games-strategy/megaglest/metadata.xml @@ -0,0 +1,34 @@ +<?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> + <changelog>http://megaglest.svn.sourceforge.net/viewvc/megaglest/trunk/docs/CHANGELOG.txt?revision=3397</changelog> + <doc lang="en">http://glest.wikia.com/wiki/MG</doc> + <bugs-to>https://sourceforge.net/tracker/?group_id=300350&atid=1266776</bugs-to> + <remote-id type="github">MegaGlest/megaglest-source</remote-id> + </upstream> + <use> + <flag name="editor">Build map editor</flag> + <flag name="fribidi">Enable FriBIDi support</flag> + <flag name="streflop">Use the library streflop. Out of synchs may + occur if not enabled.</flag> + <flag name="tools">Build model import/export tools</flag> + <flag name="unicode">Use unicode strings for wxwidgets</flag> + <flag name="wxuniversal">Use the wxUniversal port which implements + the various GUI controls by drawing them itself </flag> + <flag name="model-viewer">Build model viewer</flag> + </use> + <longdescription lang="en"> + MegaGlest is an entertaining free (freeware and free software) and + open source cross-platform 3D real-time strategy (RTS) game, where + you control the armies of one of seven different factions: Tech, + Magic, Egyptians, Indians, Norsemen, Persian or Romans. The game is + setup in one of 17 naturally looking settings, which -like the unit + models- are crafted with great appreciation for detail. Additional + game data can be downloaded from within the game at no cost. + </longdescription> +</pkgmetadata> diff --git a/games-strategy/metadata.xml b/games-strategy/metadata.xml new file mode 100644 index 000000000000..9cac05913c02 --- /dev/null +++ b/games-strategy/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-strategy category contains strategy games. + </longdescription> + <longdescription lang="de"> + Die Kategorie games-strategy enthält Strategiespiele. + </longdescription> + <longdescription lang="es"> + La categoría games-strategy contiene juegos de estrategia. + </longdescription> + <longdescription lang="ja"> + games-strategyカテゴリーにはストラテジー・ゲームが含まれています。 + </longdescription> + <longdescription lang="nl"> + De games-strategy categorie bevat strategiespellen. + </longdescription> + <longdescription lang="vi"> + Nhóm games-strategy chứa các trò chơi chiến thuật. + </longdescription> + <longdescription lang="it"> + La categoria games-strategy contiene giochi strategici. + </longdescription> + <longdescription lang="pt"> + A categoria games-strategy contém jogos de estratégia. + </longdescription> + <longdescription lang="pl"> + Kategoria games-strategy zawiera gry strategiczne. + </longdescription> +</catmetadata> + diff --git a/games-strategy/mindrover-demo/Manifest b/games-strategy/mindrover-demo/Manifest new file mode 100644 index 000000000000..c534235aacb0 --- /dev/null +++ b/games-strategy/mindrover-demo/Manifest @@ -0,0 +1,5 @@ +DIST mindrover_demo.run 25266633 SHA256 049a70cb220e6a2cc5fcd4b1175d7cfb1727e960c9d300b5dfedd3755603e44a SHA512 ddb78f6a40bd42dd3b3ce0a6793f5e217937d3be1dd294d7d8596f8409eee506522a64d9396db2d93fa3beca197d85c7a6507a8f2ae773d0b9b123e9be1e761c WHIRLPOOL b3f5c684fed28cbfc1d0b815c8e2051b792384d9fbd22428b206b20029d8bd5e903d25a4466ebc545df94a7bc25e770648819caab3c61f22360878d733e46c98 +EBUILD mindrover-demo-1.07b.ebuild 1101 SHA256 1f2d8abdd0a8a0717e5fdbf85e149471e86874a3e70e848be8d72adefbd66651 SHA512 b1295b78e6b83a213d4954dc5a1c2b771e1b3549086650d21e897b1a4f4ef6a8c684074f8fc9cc97ce7c6464f728939c624c838fe39e0b6e10fbc57a42a0c2f4 WHIRLPOOL b9cfc613fcc60ca2e5529dd16bb8f865fcd68a3fd8356a7858369c4f338bee54355c6d20c38da460f8bd9e302a4d8ce1ceda0895845e8dd0f1f663c8f47a535c +MISC ChangeLog 2454 SHA256 b117eff7aea2b92650cd3811b4c3fc77b7f7e5e17b7e0cc7ba142477545051d2 SHA512 652fefe5bf0261a76f0dd6a6c22e50a305d5c0f2bddabdc5b640d14f2020ac2d891651407a648f6f927fbc8a42d3dcf0295e914f2ed8762d68811df8527f3755 WHIRLPOOL 7c9f09c72432a115a54a1d727e9918c259868004b6ade7f12803c9f33422a604d87a04ac635c6a11110adb9c19149324b24ec494e8c961e3616b2c6d168ca116 +MISC ChangeLog-2015 1292 SHA256 284ad1d62fc76643037e1d5ed1ba7274f05dd3ff198d9568ac11e22f59ef36ed SHA512 03f39cd66fca0e7d82d591b4e2dfbe47f37dcfad08a00afa3ae445b79635a8c1b00aa6cef2dcf5f55a45c2141c4bfbbc38ec112e6dfa30964ef780a972871f03 WHIRLPOOL 9ddfc1f269f7166bf5de75d33eb8edd1f5fb16fa637d916b9ef219a61f0907819d9cdc2c7d20a2a490a45133287a4afdd4bd8a79ea213035581493aea0b73c1d +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/mindrover-demo/metadata.xml b/games-strategy/mindrover-demo/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/mindrover-demo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/mindrover-demo/mindrover-demo-1.07b.ebuild b/games-strategy/mindrover-demo/mindrover-demo-1.07b.ebuild new file mode 100644 index 000000000000..02d2a39403b0 --- /dev/null +++ b/games-strategy/mindrover-demo/mindrover-demo-1.07b.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils unpacker games + +MY_P="mindrover_demo.run" +DESCRIPTION="Control a robot as it races across Europa" +HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=9" +SRC_URI=" http://demos.linuxgamepublishing.com/mindrover/${MY_P}" + +LICENSE="all-rights-reserved GPL-2+" +SLOT="0" +KEYWORDS="x86" +IUSE="" +RESTRICT="mirror bindist strip" + +RDEPEND="virtual/opengl" + +S=${WORKDIR} +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +src_install() { + einfo "This will take a while ... go get a pizza or something" + + dodir "${dir}" + + tar -zxf data.tar.gz -C "${Ddir}"/ || die + tar -zxf music.tar.gz -C "${Ddir}"/ || die + + dodoc README + newicon icon.xpm ${PN}.xpm || die + exeinto "${dir}" + doexe bin/Linux/x86/glibc-2.1/mindrover_demo \ + bin/Linux/x86/glibc-2.1/lib/libopenal.so.0.0.6 || die + dosym "${dir}"/libopenal.so.0.0.6 "${dir}"/libopenal.so.0 + + games_make_wrapper ${PN} ./mindrover_demo "${dir}" "${dir}" + make_desktop_entry ${PN} "Mindrover: Europa Project (Demo)" + + prepgamesdirs +} diff --git a/games-strategy/naev/Manifest b/games-strategy/naev/Manifest new file mode 100644 index 000000000000..1c9ad705a2a9 --- /dev/null +++ b/games-strategy/naev/Manifest @@ -0,0 +1,9 @@ +DIST naev-0.6.0.tar.bz2 1054649 SHA256 0f0b498c7642e36dfaa15f284e13b9aa2d20e4aa01ed812fb7854583e7161cac SHA512 263c404a9ec4d4dafdf2ea9afc1ea58679792916b9143b7646918210b9f5f4656fe315e0b83c7983646206d03329b3314430acc8a5cbea3da830d183702cde4b WHIRLPOOL 53a425ddd13b791c1b3469e6ed16a897609391e821056dc55e8b7484d5c394fee6956fe5c6e8be503c8bd1c6f382ad103200a2acefbfe5c17035851b3d0e1778 +DIST naev-0.6.1.tar.bz2 1047908 SHA256 71d4cf06d2af1a1b84dfb9ed0fd5e4b9b2295f119fc65079d8d36f102ba00b4b SHA512 4766c80b49de5a7e748948f0404ac54edbc5afa80618150d1f993d66c7462ea73bfc5220d73073cb51cd76ff5dc6ecdf935d6f843051943136ceefaea9837203 WHIRLPOOL 655585f8dc6ccebda2195459d1e4a29aa7cf333c9fbbcf01b9748a68892cc60cb9524943db667c2edb1ab00fa4f24de46877554c85e8c637463da7a48df8d1f7 +DIST ndata-0.6.0.zip 302646395 SHA256 07ccb9f50652bceb8064fa1e48cd9df2b4ce0e3c52b60f27398cdfc3186ac52b SHA512 dc55a49132543477ad42d17224ceacc146b68ebc1f37e4325b1ffe61c64571ec47e012194103f59d664b64eb021c19741e184aca00d800d39efcdc3646146974 WHIRLPOOL 7a002a3de45bb121afad52e75c08e1a15a16ca5613ed3190f73335de93862389aa6376b0601744c756bfe76e77be048d877a9200c2046f4868e390ce5973e2b4 +DIST ndata-0.6.1.zip 303984255 SHA256 3d7c807637f3f4795db0aab29f02a76ee25398ecb53208f08a60be1197a86996 SHA512 71c3024e1713b094b63cb0de3c70239d61c54142b715e61d5206c5eb3cb8c7a851fc1b388ecf891110dd8bb5c2b3759af71d20f39cb6e629c71b27386a57d7fe WHIRLPOOL 7b065701263e5eee1d193801f06230be6cdb48417e1485913e5423f6b1af0cd8c6cce7f6c19903c86f22fb2c9854cb1f6959169c9f7cdc222c2b04585239167a +EBUILD naev-0.6.0.ebuild 1577 SHA256 971d20e0b1c98621d2aeccf9fab6629b705dcc7179c1b9a1c0388feb22b5e173 SHA512 2061d7e2da639c68fd5aec9df253cbd1bfb3014508d2968031606fa360aef6d9162101c063e60e1d1b03a03bc2f34f0efa0067170e29e96753dee2a2e4844446 WHIRLPOOL a1ddb536d25f1c511dbda157ede7ba29aef3b52cd0745693017806ca46fbd4049d2f00f8f5caa3213cfbf66cd675e80def7f5c57d53c176ec2e8a1966c5f7f8a +EBUILD naev-0.6.1.ebuild 1611 SHA256 a53c790a345ccbab0a0581a3f5dbe0a91c4abc2dbdab4f7793146ca13760c4e8 SHA512 b8126208862bc4f75be50ca7d818924d5dd6abe0139cc1b44707c373c1b49f6ad6f77133dee47b58872f4fc2770e75c108485a786b88c06dd661209225134b39 WHIRLPOOL 79fa86bccd7a92acd6aec2d52ea876313f3aadba939909e47df7e3ee40498abb0f8cef16db8774233a8a62f43940fb3f7e9f7c85462339982111e5e39eabff75 +MISC ChangeLog 3047 SHA256 08b9a4fd63a37ca5081ff424695a39961872b5ee789c84bb79c9dd0895587f4d SHA512 ece8649e57f083df3e42ae02bd5823421160dc48c2aa22a91f08e4426ad80333866cefae769ff9b7798d2ac65a8a23cf055c258822444b1618e3b9b743c16b31 WHIRLPOOL f6158d05b672392791312d90af54b1766bd322835ccc10c242d8fd2c41fbefeef7c4264a0f6665698dbdafaf0050d288dfbf2557b9cf365e5c8fe0260c68637d +MISC ChangeLog-2015 3186 SHA256 a96fb81e7af1897c63a8e6776ec35af5047b6d6a12e8949c11310b768c6f2f22 SHA512 e723e9992d68e581de729d6091070e2b6fbd445b78dc3f72f66e669be55cf37df24f68d61cca37a9f085c3e6f71b2bd07fdba08e1b99b90ee903aa7431ca900d WHIRLPOOL d8be0175ac81134081d96e33dea741524519ea2c5e519ec39a696ad09b452122aee78a08df7b470d78077ca7a66c1ae994e0241940d861bac87a6ee7e8d13807 +MISC metadata.xml 480 SHA256 b33daf3436fe528585a6c0dbd8087f630ec7f963d7a0d055e7003371af48a1bc SHA512 d42e9402581393d47976730560c1850d41e0bdd5d8bf842781222b4621db4c5c55ed5b3a886106d7bc43c3830e38bfef55182478fa7eae8bc6342cd1ec293f62 WHIRLPOOL c9ee71f2e5b7ca984235b6326652d354ad3b4ff0b666db0a705c46eee4a397efeffa3134bb1b165f59a39dad805720ad4daa2a9ceef619d6a2f52c3f83b68459 diff --git a/games-strategy/naev/metadata.xml b/games-strategy/naev/metadata.xml new file mode 100644 index 000000000000..fd273f3193a7 --- /dev/null +++ b/games-strategy/naev/metadata.xml @@ -0,0 +1,17 @@ +<?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="mixer"> + Enables <pkg>media-libs/sdl-mixer</pkg> sound backend in addition to + <pkg>media-libs/openal</pkg> one. + </flag> + </use> + <upstream> + <remote-id type="sourceforge">naev</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/naev/naev-0.6.0.ebuild b/games-strategy/naev/naev-0.6.0.ebuild new file mode 100644 index 000000000000..5e395ae9d539 --- /dev/null +++ b/games-strategy/naev/naev-0.6.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit flag-o-matic gnome2-utils games + +DESCRIPTION="A 2D space trading and combat game, in a similar vein to Escape Velocity" +HOMEPAGE="http://blog.naev.org/" +SRC_URI="mirror://sourceforge/naev/${P}.tar.bz2 + mirror://sourceforge/naev/ndata-${PV}.zip" + +LICENSE="GPL-2 GPL-3 public-domain CC-BY-3.0 CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug +mixer +openal" + +RDEPEND="media-libs/libsdl2[X,sound,video] + dev-libs/libzip + dev-libs/libxml2 + >=media-libs/freetype-2 + >=media-libs/libvorbis-1.2.1 + >=media-libs/libpng-1.2:0 + virtual/glu + virtual/opengl + dev-lang/lua:0 + mixer? ( media-libs/sdl2-mixer ) + openal? ( media-libs/openal )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_unpack() { + unpack ${P}.tar.bz2 +} + +src_configure() { + egamesconf \ + --docdir=/usr/share/doc/${PF} \ + --enable-lua=shared \ + $(use_enable debug) \ + $(use_with openal) \ + $(use_with mixer sdlmixer) +} + +src_compile() { + emake V=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + appicondir=/usr/share/pixmaps \ + Graphicsdir=/usr/share/applications \ + install + + insinto "${GAMES_DATADIR}"/${PN} + newins "${DISTDIR}"/ndata-${PV}.zip ndata + + local res + for res in 16 32 64 128; do + newicon -s ${res} extras/logos/logo${res}.png naev.png + done + + rm -f "${D}"/usr/share/doc/${PF}/LICENSE + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/naev/naev-0.6.1.ebuild b/games-strategy/naev/naev-0.6.1.ebuild new file mode 100644 index 000000000000..dd85200d36c6 --- /dev/null +++ b/games-strategy/naev/naev-0.6.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit flag-o-matic gnome2-utils games + +DESCRIPTION="A 2D space trading and combat game, in a similar vein to Escape Velocity" +HOMEPAGE="http://blog.naev.org/" +SRC_URI="mirror://sourceforge/naev/${P}.tar.bz2 + mirror://sourceforge/naev/ndata-${PV}.zip" + +LICENSE="GPL-2 GPL-3 public-domain CC-BY-3.0 CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug +mixer +openal" + +RDEPEND="media-libs/libsdl2[X,sound,video] + dev-libs/libzip + dev-libs/libxml2 + >=media-libs/freetype-2 + >=media-libs/libvorbis-1.2.1 + >=media-libs/libpng-1.2:0 + virtual/glu + virtual/opengl + dev-lang/lua:0 + mixer? ( media-libs/sdl2-mixer ) + openal? ( media-libs/openal )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_unpack() { + unpack ${P}.tar.bz2 +} + +src_configure() { + egamesconf \ + --docdir=/usr/share/doc/${PF} \ + --enable-lua=shared \ + $(use_enable debug) \ + $(use_with openal) \ + $(use_with mixer sdlmixer) +} + +src_compile() { + emake V=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + appicondir=/usr/share/pixmaps \ + appdatadir=/usr/share/appdata \ + Graphicsdir=/usr/share/applications \ + install + + insinto "${GAMES_DATADIR}"/${PN} + newins "${DISTDIR}"/ndata-${PV}.zip ndata + + local res + for res in 16 32 64 128; do + newicon -s ${res} extras/logos/logo${res}.png naev.png + done + + rm -f "${D}"/usr/share/doc/${PF}/LICENSE + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/netherearth/Manifest b/games-strategy/netherearth/Manifest new file mode 100644 index 000000000000..c2d5342958ee --- /dev/null +++ b/games-strategy/netherearth/Manifest @@ -0,0 +1,12 @@ +AUX Makefile 1003 SHA256 436792a5c1763fff48f7ec33175b323da36c3ceed89fcb3b4d30692a216ebbce SHA512 72cb6f6cb31beb79d91ac3b60eff1cb4046fcecd83621c42ff34a145eefbf484b8bc87ed3c2792bec7d1587d2578c95b4a4b925f9a032c8eefe9a9208a96fcdb WHIRLPOOL 6571c01c858f212fb1ca43ce4482d4f35a7df8f4c6f288a16000d8102cc78116880accf1bef3e950ce7602f0469e30f8d46eda90ffc511948b20e280ca057801 +AUX netherearth-0.52-freeglut.patch 367 SHA256 6a2a6bd3f11b326f8e5c5d4729fe72fb51d04f6cbd75136b4fe5178de5aa027e SHA512 c430a2e409c8b1be98a6d9147d429e98a8333541fdbf7e070c87230b85b43bdde9e6665338281d6a984f20a6af29127b9a165086d0c5a2a33ab392649f762c9d WHIRLPOOL 6c93e55bcaa7dcacf5e7ef6c6b70434f3556c7196cda842c1fcb3878b3fdadc423216f10895f4cfdf76e7b6126a83810eda41addc5b3dbb15d479124cd6b1c60 +AUX netherearth-0.52-gentoo-paths.patch 4356 SHA256 62a2243f3244f0d238383d61909cbd4ebc6c3f6a24e6093bac05657c48913a36 SHA512 55fe5ddc2e4d783eb3b930600168c1c106562c84e4532f84dbfe44afb44e9134bb32f0c5cc8dea520cc86d661cf984122d4e82da8d624d03bd6fb42e67ba45ca WHIRLPOOL e9de9e6391c741363ec61c8e2629560e601f9debab67649a8b2338b4ada76aa2723c9900c80a51065928200d6c4afa7c50669d9c251d548e76b799c6435849bd +AUX netherearth-0.52-glibc-212.patch 410 SHA256 450ecd26efa7fe0157b48d46b46ff7edf5ff00a2577934a0861498fc3164565e SHA512 fe33f1b9220a8538490316880bfbb671ad65c0a55a896aaa624791a9c094cbded0e5ac182f87750bd58300550a9dbcb10da6453b531c2d58582780a10838ecef WHIRLPOOL 3e4ddb9f107c172acdc75792f700d9689c34dbad245208de9c736bee9cb4818de7b81dbfb2ee8ff43e05a130f25fc13a31089179d09bcd3375952e3eb9b4469f +AUX netherearth-0.52-ldflags.patch 329 SHA256 ba5c6b752afabecda1cbb5955310c4b8ff6e4b3e957d15e96135bf61eb1fd044 SHA512 fef30a64dc693973d4e037fc57a47d3a8fb7cfa0f31f98165b1486d48433b4f21361d077e15eda3df26ffceda536c679786103c047be604878ebc92bddfb9209 WHIRLPOOL 2b1cbc4f7f7028d2769a702168413818903495eea64f263b30a780ac1c60c515f90ec77ed91dca56dcbb6ebd170cdc7dafcd2543dff2722c96dee2c2dca0b79f +AUX netherearth-0.52-linux.patch 1255 SHA256 3761a82cfb8aa70781a83a9af5d7a2eca5dd0dac98adb14aa232785cdf37a315 SHA512 fd5e4385798a3027bb6fe89b92939e0e9d7f463420cb1d47d1606bd2fabc12d1f755892cb1523062a07eb5d2138156aabfcb801daaff7b5f1fdbba8d079ef56f WHIRLPOOL 3d1895c815e1af8c55e103ad9be29975f9435f27b6e219b217398c6ab1521427c144e7f78842d7ae57951c50b7355fd21e7ba88801d44970d217fed9721f20a6 +DIST netherearth052.zip 872397 SHA256 79d533a56b4939a402edd7665f234e7f462e68b00ea36d9ae110f02a36357caf SHA512 1f2cb3e896ac076c5ed3d346f19d8328b879546c4dc58609251bdbc8fd96b201cbc5dcb400df2a0dd4c717c7be002f83b92acf33f607890fa736b572c72a8cf5 WHIRLPOOL ac0862bfe148b6fbd2f51e559d5b3488b4a4234008566bfecf2153ff82d7bd2decce510deeb0933bc5852da7bc506b624a32e551f7ae32987146644d3c12db85 +DIST sources.zip 75918 SHA256 0d4f80f5d3f73e957ccb7c292dcc830b88cb5624aa086ea3416522a8a66b766f SHA512 8daa9def65f4be8a541df15c69531da84344906e0f3eab2b7e84f8a94e2f3278d2033e37a9edd4b17fc19b1f7fbf3537286a2a2a9877950d19a51a1167487b75 WHIRLPOOL 755d398586edabe01c9fd299b14e6534b42aecf212332bf00fbca87c9a11a2710a5ad1cf750508d26c98aa34dc71cee5d99aaf7fe5952a89346fcf058553b679 +EBUILD netherearth-0.52.ebuild 1849 SHA256 6596a5520d41d4e0aa9a35954d2db0dac7d20d405896612927bda647eb4310f9 SHA512 dd15f00ab9b4177093d8ec92ac3256ae1d4ee8bd2e752fc9e53fb10e4e3d6f647cf405e915add57e711bad9e9a5d2de685c367f59a71746e04de560f8684e4c7 WHIRLPOOL 77f0e3e5bf963fc3369c46f3414c94f5bcdb2397b35c0dc949626ad3060e5c04738af6da3ebc4035e92653881ea72af63dd018290da91691feeba278bbd06f0a +MISC ChangeLog 2669 SHA256 3298966c6ef2fcacfea7886192cf9112706441a063d81a7a16b094823ab88a59 SHA512 da623608c79452841d93ba5e4b00ea23a32497f5de533ffbfbe5323afc846edbadfddc3900d2056447c66f0476c4ac86cf582c0f4fa72a191135c9f57eaea629 WHIRLPOOL 8a30577b8b95c0bc7fc24afddf3775bd5cbbbbca55d2bf241c0174ff4a4be98849edde5dfa113b898493505ae75514c74c2e3c93bbec113506574728edfae30b +MISC ChangeLog-2015 1921 SHA256 53e0b6e7b4df13013e7ba2b745de68c0cd39589ffb832f6b7d790721b3f7ed79 SHA512 bc431703fe588be834f0f21284252674c1c46411808a9903ef3959f3c32c20cacb9b9f05385ba209f624c42da376fbf9939b8c1fa26d4897931c931de38281d7 WHIRLPOOL 97a1d0ff311e3ed6ecb92a83b95d34c67de38fc99b7d3bbf491714cb4df1bf1f633f012f0e3a71fadab4dbfe76af01a465b5910e995af53ffa996ec8fe102e37 +MISC metadata.xml 530 SHA256 76872ae1f52694f58d3b97ec5fa7d94166678396acee8d2ef345d55a54a12433 SHA512 4ec339e99b397a71a0f5b6ffccf7f9cefafdee1ce0627c9c5e5f8b00c0158fd7e73e7d0d9612c8f653ea30113905ad6b4efbec694fcd4c05b3ab59439d558868 WHIRLPOOL 578bfb3cc0338c9039f414c8729676e49d0a0c2afa3c288393e19b619567c21a656b6e7e9f45db01cbcd0d1267fb7ad94baf77b4ebc82528eed916dafeb08582 diff --git a/games-strategy/netherearth/files/Makefile b/games-strategy/netherearth/files/Makefile new file mode 100644 index 000000000000..07c671a10e31 --- /dev/null +++ b/games-strategy/netherearth/files/Makefile @@ -0,0 +1,20 @@ +# ls *.cpp
+#
+#3dobject-ase.cpp construction.cpp maps.cpp netherdebug.cpp radar.cpp
+#3dobject.cpp enemy_ai.cpp menu.cpp nethersave.cpp robot_ai.cpp
+#bitmap.cpp glprintf.cpp myglutaux.cpp particles.cpp robots.cpp
+#bullet.cpp main.cpp nether.cpp piece3dobject.cpp shadow3dobject.cpp
+#cmc.cpp mainmenu.cpp nethercycle.cpp quaternion.cpp vector.cpp
+
+
+SOURCES = 3dobject-ase.cpp 3dobject.cpp cmc.cpp nether.cpp piece3dobject.cpp vector.cpp bitmap.cpp bullet.cpp glprintf.cpp main.cpp mainmenu.cpp maps.cpp menu.cpp myglutaux.cpp nethercycle.cpp netherdebug.cpp nethersave.cpp particles.cpp construction.cpp quaternion.cpp radar.cpp enemy_ai.cpp robot_ai.cpp robots.cpp shadow3dobject.cpp
+OBJECTS = $(SOURCES:.cpp=.o)
+TARGET = nether_earth
+
+.cpp.o:
+ g++ ${CXXFLAGS} -c $< -o $@
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS)
+ g++ $(OBJECTS) -o $(TARGET) -lGL -lGLU -lglut -lSDL -lSDL_mixer -lpthread
diff --git a/games-strategy/netherearth/files/netherearth-0.52-freeglut.patch b/games-strategy/netherearth/files/netherearth-0.52-freeglut.patch new file mode 100644 index 000000000000..0fc147f0b7aa --- /dev/null +++ b/games-strategy/netherearth/files/netherearth-0.52-freeglut.patch @@ -0,0 +1,18 @@ +--- main.cpp ++++ main.cpp +@@ -8,6 +8,7 @@ +
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <GL/glut.h>
+ #include "SDL/SDL.h"
+ #include "SDL/SDL_mixer.h"
+
+@@ -144,6 +145,7 @@ + bool quit = false;
+
+ load_configuration();
++ glutInit(&argc, argv);
+
+ screen_sfc = initialization((fullscreen ? SDL_FULLSCREEN : 0));
+ if (screen_sfc==0) return 0;
diff --git a/games-strategy/netherearth/files/netherearth-0.52-gentoo-paths.patch b/games-strategy/netherearth/files/netherearth-0.52-gentoo-paths.patch new file mode 100644 index 000000000000..25f99be50fab --- /dev/null +++ b/games-strategy/netherearth/files/netherearth-0.52-gentoo-paths.patch @@ -0,0 +1,139 @@ +diff -ud ../NetherEarth_v0.51-linsrc.orig/3dobject-ase.cpp ./3dobject-ase.cpp +--- ../NetherEarth_v0.51-linsrc.orig/3dobject-ase.cpp 2002-10-26 00:00:00.000000000 +0300 ++++ ./3dobject-ase.cpp 2004-04-16 21:42:55.000000000 +0300 +@@ -34,7 +34,7 @@ + char buffer[256];
+ FILE *fp;
+
+- fp=fopen(file,"r+");
++ fp=fopen(file,"r");
+ if (fp==NULL) return false;
+
+ /* Look for the materials: */
+diff -ud ../NetherEarth_v0.51-linsrc.orig/3dobject.cpp ./3dobject.cpp +--- ../NetherEarth_v0.51-linsrc.orig/3dobject.cpp 2004-01-06 20:49:00.000000000 +0200 ++++ ./3dobject.cpp 2004-04-16 21:43:44.000000000 +0300 +@@ -74,7 +74,7 @@ +
+ int *smooth;
+
+- fp=fopen(file,"r+");
++ fp=fopen(file,"r");
+ if (fp==NULL) return false;
+
+ /* Importar un fichero .ASC de 3DStudio */
+diff -ud ../NetherEarth_v0.51-linsrc.orig/bitmap.cpp ./bitmap.cpp +--- ../NetherEarth_v0.51-linsrc.orig/bitmap.cpp 2004-01-06 20:49:00.000000000 +0200 ++++ ./bitmap.cpp 2004-04-16 21:45:13.000000000 +0300 +@@ -14,7 +14,7 @@ + g=0;
+ b=0;
+
+- fp=fopen(file,"rb+");
++ fp=fopen(file,"rb");
+ if (fp==NULL) return;
+
+ /* Tag: */
+diff -ud ../NetherEarth_v0.51-linsrc.orig/mainmenu.cpp ./mainmenu.cpp +--- ../NetherEarth_v0.51-linsrc.orig/mainmenu.cpp 2004-01-06 20:50:00.000000000 +0200 ++++ ./mainmenu.cpp 2004-04-16 21:14:14.000000000 +0300 +@@ -6,6 +6,9 @@ + #include <dirent.h>
+ #endif
+
++#include <stdlib.h> ++#include <fcntl.h> ++#include <unistd.h> + #include "string.h"
+ #include "stdio.h"
+ #include "math.h"
+@@ -483,8 +486,10 @@ + {
+ int v;
+ FILE *fp;
++ char cfg_path[300]; +
+- fp=fopen("nether.cfg","r");
++ sprintf(cfg_path, "%s/.netherearth/nether.cfg", getenv("HOME")); ++ fp=fopen(cfg_path,"r");
+ if (fp==0) return;
+
+ if (2!=fscanf(fp,"%i %i",&SCREEN_X,&SCREEN_Y)) return;
+@@ -510,8 +515,12 @@ + void save_configuration(void)
+ {
+ FILE *fp;
++ char cfg_path[300]; +
+- fp=fopen("nether.cfg","w");
++ sprintf(cfg_path, "%s/.netherearth", getenv("HOME")); ++ mkdir(cfg_path, 0755); ++ sprintf(cfg_path, "%s/.netherearth/nether.cfg", getenv("HOME")); ++ fp=fopen(cfg_path,"w");
+ if (fp==0) return;
+
+ fprintf(fp,"%i %i\n",SCREEN_X,SCREEN_Y);
+diff -ud ../NetherEarth_v0.51-linsrc.orig/nether.cpp ./nether.cpp +--- ../NetherEarth_v0.51-linsrc.orig/nether.cpp 2004-01-06 21:03:00.000000000 +0200 ++++ ./nether.cpp 2004-04-16 20:54:54.000000000 +0300 +@@ -1203,7 +1203,7 @@ + if (option_menu==(i+1)) glColor3f(1.0,0.0,0.0);
+ else glColor3f(0.5,0.5,1.0);
+ glTranslatef(0,-2,0);
+- sprintf(filename,"savedgame%i.txt",i);
++ sprintf(filename,"%s/.netherearth/savedgame%i.txt", getenv("HOME"), i);
+ fp=fopen(filename,"r");
+ if (fp==0) {
+ scaledglprintf(0.01,0.01,"SLOT%i - EMPTY",i+1);
+@@ -1232,7 +1232,7 @@ + if (option_menu==(i+1)) glColor3f(1.0,0.0,0.0);
+ else glColor3f(0.5,0.5,1.0);
+ glTranslatef(0,-2,0);
+- sprintf(filename,"savedgame%i.txt",i);
++ sprintf(filename,"%s/.netherearth/savedgame%i.txt", getenv("HOME"), i);
+ fp=fopen(filename,"r");
+ if (fp==0) {
+ scaledglprintf(0.01,0.01,"SLOT%i - EMPTY",i+1);
+@@ -1291,7 +1291,7 @@ + case 4:
+ {
+ char filename[80];
+- sprintf(filename,"savedgame%i.txt",option_menu-1);
++ sprintf(filename,"%s/.netherearth/savedgame%i.txt", getenv("HOME"), option_menu-1);
+ save_game(filename);
+ //save_debug_report("debugreport.txt");
+ game_state=STATE_PAUSE;
+@@ -1326,7 +1326,7 @@ + case 4:
+ {
+ char filename[80];
+- sprintf(filename,"savedgame%i.txt",option_menu-1);
++ sprintf(filename,"%s/.netherearth/savedgame%i.txt", getenv("HOME"), option_menu-1);
+ killmenu(act_menu);
+ load_game(filename);
+ newmenu(act_menu);
+diff -ud ../NetherEarth_v0.51-linsrc.orig/nethersave.cpp ./nethersave.cpp +--- ../NetherEarth_v0.51-linsrc.orig/nethersave.cpp 2003-09-17 00:00:00.000000000 +0300 ++++ ./nethersave.cpp 2004-04-16 21:23:04.000000000 +0300 +@@ -2,6 +2,10 @@ + #include "windows.h"
+ #endif
+
++#include <stdlib.h> ++#include <sys/types.h> ++#include <fcntl.h> ++#include <unistd.h> + #include "string.h"
+ #include "stdio.h"
+ #include "math.h"
+@@ -40,7 +44,10 @@ + ROBOT *r;
+ BULLET *bul;
+ EXPLOSION *e;
++ char tmp_path[300]; +
++ sprintf(tmp_path, "%s/.netherearth", getenv("HOME")); ++ mkdir(tmp_path, 0755); + fp=fopen(filename,"w");
+ if (fp==0) return false;
+
diff --git a/games-strategy/netherearth/files/netherearth-0.52-glibc-212.patch b/games-strategy/netherearth/files/netherearth-0.52-glibc-212.patch new file mode 100644 index 000000000000..813f963db4c8 --- /dev/null +++ b/games-strategy/netherearth/files/netherearth-0.52-glibc-212.patch @@ -0,0 +1,23 @@ +http://bugs.gentoo.org/335137 + +--- sources/mainmenu.cpp ++++ sources/mainmenu.cpp +@@ -3,6 +3,7 @@ + #else
+ #include <stddef.h>
+ #include <sys/types.h>
++#include <sys/stat.h>
+ #include <dirent.h>
+ #endif
+
+--- sources/nethersave.cpp ++++ sources/nethersave.cpp +@@ -1,5 +1,8 @@ + #ifdef _WIN32
+ #include "windows.h"
++#else
++#include <sys/types.h>
++#include <sys/stat.h>
+ #endif
+
+ #include "string.h"
diff --git a/games-strategy/netherearth/files/netherearth-0.52-ldflags.patch b/games-strategy/netherearth/files/netherearth-0.52-ldflags.patch new file mode 100644 index 000000000000..6b7ed3a8989c --- /dev/null +++ b/games-strategy/netherearth/files/netherearth-0.52-ldflags.patch @@ -0,0 +1,8 @@ +--- Makefile.old 2010-10-12 09:30:19.000000000 +0200 ++++ Makefile 2010-10-12 09:30:38.000000000 +0200 +@@ -17,4 +17,4 @@ + all: $(TARGET)
+
+ $(TARGET): $(OBJECTS)
+- g++ $(OBJECTS) -o $(TARGET) -lGL -lGLU -lglut -lSDL -lSDL_mixer -lpthread
++ g++ $(LDFLAGS) $(OBJECTS) -o $(TARGET) -lGL -lGLU -lglut -lSDL -lSDL_mixer -lpthread
diff --git a/games-strategy/netherearth/files/netherearth-0.52-linux.patch b/games-strategy/netherearth/files/netherearth-0.52-linux.patch new file mode 100644 index 000000000000..6c4c0d1e9733 --- /dev/null +++ b/games-strategy/netherearth/files/netherearth-0.52-linux.patch @@ -0,0 +1,47 @@ +diff -burN sources/glprintf.cpp sources-linux/glprintf.cpp +--- sources/glprintf.cpp 2002-10-26 00:17:00.000000000 +0200 ++++ sources-linux/glprintf.cpp 2005-06-18 18:22:54.000000000 +0200 +@@ -3,6 +3,7 @@ + #endif
+ #include "GL/gl.h"
+
++#include "string.h" + #include "stdio.h"
+ #include "stdarg.h"
+ #include "GL/gl.h"
+diff -burN sources/list.h sources-linux/list.h +--- sources/list.h 2002-10-27 12:17:00.000000000 +0100 ++++ sources-linux/list.h 2005-06-18 18:21:34.000000000 +0200 +@@ -1,6 +1,9 @@ + #ifndef GENERIC_LIST
+ #define GENERIC_LIST
+
++ ++#include "stdlib.h" ++ + /*
+ Funciones para LISTAS:
+
+diff -burN sources/maps.cpp sources-linux/maps.cpp +--- sources/maps.cpp 2005-05-05 23:42:00.000000000 +0200 ++++ sources-linux/maps.cpp 2005-06-18 18:23:05.000000000 +0200 +@@ -3,6 +3,7 @@ + #endif
+
+ #include "stdio.h"
++#include "string.h" +
+ #include "GL/gl.h"
+ #include "GL/glu.h"
+diff -burN sources/myglutaux.cpp sources-linux/myglutaux.cpp +--- sources/myglutaux.cpp 2002-10-26 00:17:00.000000000 +0200 ++++ sources-linux/myglutaux.cpp 2005-06-18 18:23:29.000000000 +0200 +@@ -5,6 +5,8 @@ + #include <GL/gl.h>
+ #include "GL/glut.h"
+
++#include "string.h" ++#include "stdlib.h" + #include "stdio.h"
+ #include "math.h"
+ #include "vector.h"
diff --git a/games-strategy/netherearth/metadata.xml b/games-strategy/netherearth/metadata.xml new file mode 100644 index 000000000000..26fb6b6b6d5b --- /dev/null +++ b/games-strategy/netherearth/metadata.xml @@ -0,0 +1,14 @@ +<?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"> + Nether Earth was the very first real time strategy game. It worked on a + SPECTRUM machine, and only needed 48KB of RAM to work!! It has all the + typical elements of strategy games: resources, factories, combat units, + etc. + </longdescription> +</pkgmetadata> diff --git a/games-strategy/netherearth/netherearth-0.52.ebuild b/games-strategy/netherearth/netherearth-0.52.ebuild new file mode 100644 index 000000000000..7c054852615f --- /dev/null +++ b/games-strategy/netherearth/netherearth-0.52.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +MY_PV="${PV/./}" +DESCRIPTION="A remake of the SPECTRUM game Nether Earth" +HOMEPAGE="http://www.braingames.getput.com/nether/" +SRC_URI="http://www.braingames.getput.com/nether/sources.zip + http://www.braingames.getput.com/nether/${PN}${MY_PV}.zip" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="x86" +IUSE="" +RESTRICT="mirror bindist" + +RDEPEND=">=media-libs/libsdl-1.2.6-r3 + >=media-libs/sdl-mixer-1.2.5-r1 + media-libs/freeglut" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/sources + +data=../nether\ earth\ v${PV} + +src_unpack() { + unzip -LL "${DISTDIR}/${PN}${MY_PV}.zip" >/dev/null || die + unzip -LL "${DISTDIR}/sources.zip" >/dev/null || die +} + +src_prepare() { + DATA_DIR=${GAMES_DATADIR}/${PN} + + cp "${FILESDIR}/Makefile" . || die + + # Fix compilation errors/warnings + epatch "${FILESDIR}"/${P}-linux.patch + + epatch "${FILESDIR}"/${P}-freeglut.patch \ + "${FILESDIR}"/${P}-glibc-212.patch \ + "${FILESDIR}"/${P}-ldflags.patch + + # Modify dirs and some fopen() permissions + epatch "${FILESDIR}/${P}-gentoo-paths.patch" + sed -i \ + -e "s:models:${DATA_DIR}/models:" \ + -e "s:textures:${DATA_DIR}/textures:" \ + -e "s:maps/\*:${DATA_DIR}/maps/\*:" \ + -e "s:\./maps:${DATA_DIR}/maps:" \ + mainmenu.cpp || die + sed -i \ + -e "s:models:${DATA_DIR}/models:g" \ + -e "s:textures:${DATA_DIR}/textures:" \ + -e "s:sound/:${DATA_DIR}/sound/:" \ + nether.cpp || die + sed -i -e "s:maps:${DATA_DIR}/maps:" \ + main.cpp || die + sed -i -e "s:textures/:${DATA_DIR}/textures/:" \ + myglutaux.cpp || die + + cd "${data}" + rm textures/thumbs.db +} + +src_install() { + dogamesbin nether_earth + + cd "${data}" + + # Install all game data + insinto "${DATA_DIR}" + doins -r maps models sound textures + + dodoc readme.txt + + prepgamesdirs +} diff --git a/games-strategy/netpanzer/Manifest b/games-strategy/netpanzer/Manifest new file mode 100644 index 000000000000..44e7cba387a2 --- /dev/null +++ b/games-strategy/netpanzer/Manifest @@ -0,0 +1,11 @@ +AUX netpanzer-0.8.2-gcc43.patch 2241 SHA256 b2c150dee78272d317e57b019f491c5ab1a7a29f9708c9da5791f6b68a486b60 SHA512 aeddced38643a38d0bd86d02d4b4c8acb6a7c74f80d6fd0f9697b325b3bd1bd019a9145bfad91c9e658c8d4e267efb83ccb58424efff9a1c63d2e4c617a31fe2 WHIRLPOOL 83780a9bc02212e91c7a069d7ad8782f7fd65356ce61645cb1c9e8945cfb0f521bc5c959f867c82239567a775e7822f8998a10f1d296558c0d93ab256fc4eb99 +AUX netpanzer-0.8.2-gcc47.patch 399 SHA256 4e87a31e473a9273fc96e9362b001704fbcc73131798540564ce8af618af8821 SHA512 d4d62649e33de0f40ae159b07a59e95fa7928ad88d4bfbfc6677d6404c7abd22954e72902ef88d98275ede223c9866dcd361d9dc48969638742f50335e3a562c WHIRLPOOL ae6d92a61d2e3e57ae7633d4b50afcc29640c37246c69bdc2b71ed44680d8025a026aa4597a4c7f87e9a23b21658c44ed4f621df580373708d6f82e0b2c67add +AUX netpanzer-ded 359 SHA256 4b49ecaa63b76c35532d0eea2825d9d6fa9655772f47407497ce3fabce0e1760 SHA512 0d8c410711627664e41853dc31c73cefece2ed51696713969eae7bfbc6eefe9a4f878e95fbd6584db6ba46c8af76c300281939a3d663cc16bebd2c46040700d1 WHIRLPOOL 9e40138301eb15219e2d22f524ccbc325539d2abe17d5fcc563835f73de6aae27456cce44f5bb804ce2da023a163693dd4f15e2156799e5f21aeb9e2182ebd7b +AUX netpanzer-ded.ini 1261 SHA256 39ae0151857304a53d62cc6623f3943b492bd9543da4c072a561f9475c0f8f51 SHA512 3d9e8603d717a52b603c1da7b6b734f771b768b8d3f64c27d881af87947b3c816ec07420cd841c728a6a4e9e5d92798e78d910516d8c5fe33d192ac6a6bcabb6 WHIRLPOOL 211cca09183add8b9d6464160375910214a068e85ffbdf0cb33d38c72fc9059aa847b1ff9936d7ab0982c6f8fa912a485af310e96d41cfa1babfb7680cad7b5f +AUX netpanzer.rc 776 SHA256 0959824a447a4a13d0a76074d939c5008803f77a0d0b6a4a70523cc66cff0d26 SHA512 b82f11ec76e44d2adc7567ee95e564b05d613b96da6fa9218b0a1571f22577259a60748e0b4da486a00e6c65b26fba339ef78a1798d7c9aca89d9edcf4b33055 WHIRLPOOL 2d54b515d037b7ef9a9459a97429575d094b9e8476b52c1c300d80075bc41ec75fd6e98e6f359b5c84cb56ef4a11d8600027295258ad648830edb8415324a73e +DIST netpanzer-0.8.2.tar.bz2 10416147 SHA256 bc70badec3a846cca8090b6ecda388956c01053b7ea2596b44c730bcc29e3979 SHA512 7d7f5b485b20b2cefc71061412367edd963e59612767f6b69751915eda3f2939eebedfa29cb77ba0986cf4966b0fc12456b1bb6cfc2bd794c47fbce0b5f6f57a WHIRLPOOL cd7fd3ac6d07cc711d3f968e24f07016574aaa1d393e76ef851f439572cc31d1e402cc538e84e7ae80853ec3a5bd97d2d6ddbf6ad811a65227837ed01712e2b8 +DIST netpanzer-data-0.8.tar.bz2 10123751 SHA256 0ed4398f5e0a796422474fcc518934d74ceb056ca7ab624d8d239b749535277b SHA512 9120d8d3a190069206ed327f1d7d2b2d36f40feefa823956cf6db66e8d0622959449b9385d81b08fdfc59b3b44b7e4d6f6ca2c7362f1a857e1110d61e7c08ce6 WHIRLPOOL 8664957ff1bd22acb1efeb3bcfad2106c8c048853a8ab4f238c793f601d6ec9fa31574bcc1d819fcf8593a5b31138bda894fd24fde32e87ec399244d57718285 +EBUILD netpanzer-0.8.2.ebuild 1638 SHA256 331fc0d6e82d5bdd49d16077f90017b7944962be85b92b677a24cb99b430fe5f SHA512 103be15e702558faa1aac6b25b6955303a99fc8ce13dd4f399e330aa5e402b9158fd3e76179806701802ed4ecbcd14d1e4f43d911ee91860e22c88c54795ec7b WHIRLPOOL 37966db980f5e141964e7b3dc6550d2ed2327f4a0c4fbc92b836e163828cef864fdd409a178fc4e5107d121fca992d9437c00b6223397f4fe8f6e62d720fbc98 +MISC ChangeLog 2713 SHA256 5090264ae27989fa9efb4f155cd40deadbd38ba94cf0d19ab6937dc2ba388ad4 SHA512 7c1afef530d746827a43413a396bbe5793a82d6fa70affe06dc5e1d450af9256fcf5d30bf556153cd3ac97543ef276e04a8e9cd01aa7ca2be458927e1987a4a6 WHIRLPOOL 6f595d9a985450105c6e30ba081fd162ddca30c76c5112f06687defd8f4ee7646367a3309e73936a3f7365edd8131a726e1b3aae3a82f508d0bd1edcee6671af +MISC ChangeLog-2015 5659 SHA256 55a978b716cfdeda644ba2e0eb0ec9f6b269da8039179b6ddc738a0475b5a0e6 SHA512 107b85c342746ac5d27c138e900de06f2b27296ffd76b3719901b885562324a98c1fc881df25c6609852c5004800539d73e8617fc17bd0e8af6766fcbe08c2f8 WHIRLPOOL 4b55f8db6125c19352323d58d52d782cc53e6cd8910678fb63fb85bbd25b07d99c0285cd980823644044e2157f26f9bf43a2723f9c11f8c48fd3db8201e4351d +MISC metadata.xml 340 SHA256 3e7d60a75d966cc62351aad77fe59b1db9141af5cd9b18b0adbdf2ca2481e33a SHA512 b4d07a9224bcf6390184655df2a7826b3ecae25e21fa707851d389364366cc5f0e317d8ffc3d6f8abed33ebd4a886bbdbfecb11330e25ca1a2eb6e2045153e76 WHIRLPOOL 008cb9202acd2001ddfc8a7b1c9c43fee4c928205392961f5a33cb61be5b1ea1525d2f52952cc6cfefeebc99ed0c354194686fcff11af17f748fb4895aa52b4d diff --git a/games-strategy/netpanzer/files/netpanzer-0.8.2-gcc43.patch b/games-strategy/netpanzer/files/netpanzer-0.8.2-gcc43.patch new file mode 100644 index 000000000000..cf73ba4c2252 --- /dev/null +++ b/games-strategy/netpanzer/files/netpanzer-0.8.2-gcc43.patch @@ -0,0 +1,62 @@ +Index: netpanzer-0.8.2/src/Lib/2D/ColorTable.cpp +=================================================================== +--- netpanzer-0.8.2.orig/src/Lib/2D/ColorTable.cpp 2008-02-05 16:36:27.000000000 +0000 ++++ netpanzer-0.8.2/src/Lib/2D/ColorTable.cpp 2008-02-05 16:36:39.000000000 +0000 +@@ -17,6 +17,8 @@ + */ + #include <config.h> + ++#include <memory> ++ + #include "Util/FileSystem.hpp" + #include "Util/Log.hpp" + #include "Util/Exception.hpp" +Index: netpanzer-0.8.2/src/Lib/2D/Palette.cpp +=================================================================== +--- netpanzer-0.8.2.orig/src/Lib/2D/Palette.cpp 2008-02-05 16:36:27.000000000 +0000 ++++ netpanzer-0.8.2/src/Lib/2D/Palette.cpp 2008-02-05 16:36:39.000000000 +0000 +@@ -18,6 +18,7 @@ + #include <config.h> + + #include <math.h> ++#include <memory> + + #include "Palette.hpp" + #include "Util/FileSystem.hpp" +Index: netpanzer-0.8.2/src/NetPanzer/Network/ProxyServer.cpp +=================================================================== +--- netpanzer-0.8.2.orig/src/NetPanzer/Network/ProxyServer.cpp 2008-02-05 16:36:27.000000000 +0000 ++++ netpanzer-0.8.2/src/NetPanzer/Network/ProxyServer.cpp 2008-02-05 16:36:39.000000000 +0000 +@@ -17,6 +17,7 @@ + */ + #include <config.h> + ++#include <cstdlib> + #include <string> + #include <stdexcept> + #include <ctype.h> +Index: netpanzer-0.8.2/src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.cpp +=================================================================== +--- netpanzer-0.8.2.orig/src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.cpp 2008-02-05 16:36:27.000000000 +0000 ++++ netpanzer-0.8.2/src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.cpp 2008-02-05 16:36:39.000000000 +0000 +@@ -17,6 +17,7 @@ + */ + #include <config.h> + ++#include <memory> + #include <vector> + #include <string> + #include "MapSelectionView.hpp" +Index: netpanzer-0.8.2/src/Lib/Util/Log.cpp +=================================================================== +--- netpanzer-0.8.2.orig/src/Lib/Util/Log.cpp 2008-02-05 17:13:36.000000000 +0000 ++++ netpanzer-0.8.2/src/Lib/Util/Log.cpp 2008-02-05 17:13:43.000000000 +0000 +@@ -26,6 +26,7 @@ + #include <vector> + #include <exception> + #include <iomanip> ++#include <algorithm> + + #include "Exception.hpp" + #include "FileSystem.hpp" + diff --git a/games-strategy/netpanzer/files/netpanzer-0.8.2-gcc47.patch b/games-strategy/netpanzer/files/netpanzer-0.8.2-gcc47.patch new file mode 100644 index 000000000000..432f40a9f9aa --- /dev/null +++ b/games-strategy/netpanzer/files/netpanzer-0.8.2-gcc47.patch @@ -0,0 +1,11 @@ +--- src/Lib/ArrayUtil/QueueTemplate.hpp.old 2012-10-16 13:57:33.000000000 +0200 ++++ src/Lib/ArrayUtil/QueueTemplate.hpp 2012-10-16 13:58:16.000000000 +0200 +@@ -42,7 +42,7 @@ + + bool enqueue(const TYPE& object ) + { +- add( object, (rear + 1) % this->size ); ++ this->add( object, (rear + 1) % this->size ); + rear = (rear + 1) % this->size; + + if ( front == rear ) diff --git a/games-strategy/netpanzer/files/netpanzer-ded b/games-strategy/netpanzer/files/netpanzer-ded new file mode 100644 index 000000000000..d6dd85193641 --- /dev/null +++ b/games-strategy/netpanzer/files/netpanzer-ded @@ -0,0 +1,15 @@ +#!/bin/sh + +running=yes +while [[ $running = yes ]] ; do + /usr/games/bin/netpanzer --game_config=/etc/netpanzer-ded.ini -d $@ + if [[ $? -ge 128 ]] ; then + echo "`date`: Restarting server after crash" + # wait a bit to not blow cpu and logfiles on constant crashs + sleep 30 + else + #normal exit + running=no + fi +done + diff --git a/games-strategy/netpanzer/files/netpanzer-ded.ini b/games-strategy/netpanzer/files/netpanzer-ded.ini new file mode 100644 index 000000000000..903fb3b493b3 --- /dev/null +++ b/games-strategy/netpanzer/files/netpanzer-ded.ini @@ -0,0 +1,80 @@ +[game] + +[interface] +attacknotificationtime=5 +consoletextdelay=3 +consoletextusage=25 +drawunitdamage=yes +drawunitflags=yes +drawunitreload=no +gameinfoposition_x=0 +gameinfoposition_y=0 +minimapdrawtype=0 +minimapposition_x=0 +minimapposition_y=0 +minimapsize_x=194 +minimapsize_y=194 +playerflag=26 +rankposition_x=0 +rankposition_y=0 +scrollrate=1000 +toolbarposition_x=0 +toolbarposition_y=0 +unitcolor=0 +unitinfodrawlayer=0 +unitselectionmode=1 +vehicleselectioncolor=1 +viewdrawbackgroundmode=0 + +[player] +masterservers=81.169.185.36,81.173.119.122 +name=Gentoo NetPanzer Server +proxyserver= +proxyserverpass= +proxyserveruser= + +[radar] +alliedoutpostcolor=11 +alliedunitcolor=11 +displayclouds=no +enemyoutpostcolor=4 +objectivedrawmode=1 +playeroutpostcolor=1 +playerunitcolor=0 +resizerate=400 +unitsize=0 + +[server] +allowallies=yes +bindaddress= +cloudcoverage=0 +fraglimit=500 +gametype=0 +logging=yes +mapcycle=Cramped, Tight Quarters, Two Villages, Cramped +maxplayers=8 +maxunits=160 +objectivepercentage=75 +powerups=yes +public=yes +respawntype=1 +serverport=3030 +timelimit=50 +windspeed=30 + +[sound] +effects=yes +effectsvolume=100 +enable=yes +music=yes +musicvolume=80 + +[visuals] +blendsmoke=yes +displayshadows=yes +fullscreen=yes +gamma=50 +hardwareDoubleBuffer=yes +hardwareSurface=yes +resolution=0 + diff --git a/games-strategy/netpanzer/files/netpanzer.rc b/games-strategy/netpanzer/files/netpanzer.rc new file mode 100644 index 000000000000..b1d29df5be33 --- /dev/null +++ b/games-strategy/netpanzer/files/netpanzer.rc @@ -0,0 +1,33 @@ +#!/sbin/openrc-run +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting netpanzer dedicated server" + screen -A -m -d -S netpanzer-ded su - GAMES_USER_DED -c "GENTOO_DIR/netpanzer-ded" + eend $? +} + +stop() { + ebegin "Stopping netpanzer dedicated server" + local pid=`screen -list | grep netpanzer-ded | awk -F . '{print $1}' | sed -e s/.//` + if [[ -z "${pid}" ]] ; then + eend 1 "Lost screen session" + else + pid=`pstree -p ${pid} | sed -e 's:^.*netpanzer-ded(\([0-9]*\)).*:\1:'` + if [[ -z "${pid}" ]] ; then + eend 1 "Lost netpanzer-ded session" + else + kill ${pid} + eend $? "Could not kill netpanzer-ded" + fi + fi +} + +status() { + screen -list | grep netpanzer-ded +} diff --git a/games-strategy/netpanzer/metadata.xml b/games-strategy/netpanzer/metadata.xml new file mode 100644 index 000000000000..6bb77c4ca82c --- /dev/null +++ b/games-strategy/netpanzer/metadata.xml @@ -0,0 +1,11 @@ +<?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">netpanzer.berlios</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/netpanzer/netpanzer-0.8.2.ebuild b/games-strategy/netpanzer/netpanzer-0.8.2.ebuild new file mode 100644 index 000000000000..4667cc74d26e --- /dev/null +++ b/games-strategy/netpanzer/netpanzer-0.8.2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DATAVERSION="0.8" +DESCRIPTION="Fast-action multiplayer strategic network game" +HOMEPAGE="http://www.netpanzer.info/" +SRC_URI="mirror://sourceforge/netpanzer.berlios/${P}.tar.bz2 + mirror://sourceforge/netpanzer.berlios/${PN}-data-${DATAVERSION}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="dedicated" + +RDEPEND="dedicated? ( app-misc/screen ) + media-libs/libsdl[sound,video] + media-libs/sdl-mixer + media-libs/sdl-image + dev-games/physfs" +DEPEND="${RDEPEND} + dev-util/ftjam" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-gcc47.patch +} + +src_configure() { + egamesconf + cd "${WORKDIR}"/${PN}-data-${DATAVERSION} \ + && egamesconf +} + +src_compile() { + AR="${AR} cru" jam -q || die + + cd "${WORKDIR}"/${PN}-data-${DATAVERSION} + jam -q || die +} + +src_install() { + jam -sDESTDIR="${D}" -sappdocdir=/usr/share/doc/${PF} install || die + + cd "${WORKDIR}"/${PN}-data-${DATAVERSION} + jam -sDESTDIR="${D}" -sappdocdir=/usr/share/doc/${PF} install || die + + if use dedicated ; then + newinitd "${FILESDIR}"/${PN}.rc ${PN} + sed -i \ + -e "s:GAMES_USER_DED:${GAMES_USER_DED}:" \ + -e "s:GENTOO_DIR:${GAMES_BINDIR}:" \ + "${D}"/etc/init.d/${PN} || die + + insinto /etc + doins "${FILESDIR}"/${PN}-ded.ini + dogamesbin "${FILESDIR}"/${PN}-ded + sed -i \ + -e "s:GENTOO_DIR:${GAMES_BINDIR}:" \ + "${D}/${GAMES_BINDIR}"/${PN}-ded || die + fi + + rm -rf "${D}/${GAMES_DATADIR}"/{applications,pixmaps} + doicon "${S}"/${PN}.png + make_desktop_entry ${PN} NetPanzer + prepgamesdirs +} diff --git a/games-strategy/openra/Manifest b/games-strategy/openra/Manifest new file mode 100644 index 000000000000..e0bb747c0688 --- /dev/null +++ b/games-strategy/openra/Manifest @@ -0,0 +1,8 @@ +AUX README.gentoo 4754 SHA256 fe5d3a65472701fdfa44fe3e27aad694a13881932f75dbbba5c1fc3464ca006f SHA512 423c2682c3a9e69ccb078399ffec2ed2cb4bf1445c86db730756457e65f90d6f56c80e09b4f5e0b0eb0501a2a692d7d2add3847f77794aaf7555574a76c75392 WHIRLPOOL 1b3a698506170f86926548ee28cd9bccb3438f39baa961a47e26dad2c3f18c31df609c7dfbb46a89237c134c264c886417143fc5cfd1dccaaedf4b931f1d0b2e +DIST openra-20140722.tar.gz 13894070 SHA256 55dbfdd2ab11f22d9618c15d874f4ab381185dd99d830f03982fc284c71b9dd4 SHA512 d85345057da1b1dc02a47b5923b0bd28d57713d0e8b180aee113d956559850751f0b8c4a900d0802b2f1992039d3b6a55f51d4a64392b7ba554f5f1fe3ad1fda WHIRLPOOL 6ee575d74b2fdc83bd7ad3c5f75d3bde45490bc398fb22a7981794b3bce65c18200d3cd6252eb4a8f9af81bc9126fb5a99f260feaf5f23e4833147dfed3387dc +DIST openra-20141029.tar.gz 15340674 SHA256 4c3f8224a7ad9d3cb78c3ce2696850246ba0d9703cbd91bf5a42806b09c26a36 SHA512 44594ec3c3a590ae29b0291fdf2292c72ba920dff7892cc269e729a161505c4bc0c5c682bf3c6d3cabb0cdebfa3cac5975eeeeec3f5a673e948ed28132c4a313 WHIRLPOOL 39e4585500c9963b02e42d62829bbc258d83b0050e56f56a90da8292d0c31b0c2d5d68c8eefb8bba22ac1dc719671cee7b7ffe9909bbd9d4d146982108c6e530 +EBUILD openra-20140722-r1.ebuild 2049 SHA256 c923f015aa142cc7ec10a62dae2c02d9daa82f903a2ad5643db81d6ea2f115d2 SHA512 433f9204e02a9418981ab83dd81a956fa7fe9042d0286a48609815893dacd2d3bb7a1799faec51cf305796ca5eb7c482ad713b0e173a29ba72cfb29dc7d41298 WHIRLPOOL 6230afd4108af58e0b2e412f046b8b61af8ef30ebb2f5b58014c393b33b62cc5fc32bd25ccbd0e5dc52c50dbf8610a90d8e10806fa07c65e2983515ea5ff425e +EBUILD openra-20141029-r2.ebuild 1999 SHA256 2b53a2b1593c4ea8ab367b96209909878ca53fc59bb5b47588cfecfc127f472c SHA512 e7cf17ef05748bbc6509c3faac7d8fabbd0f23cf7c4c34f5880b990cf93b29748f03cdcc0b2b5181c28936091ef5394f5f77d912542fba380a6ec64301628e7a WHIRLPOOL c2e5d0f95cf7282438de4fc5b81265f7b31413e88e52dae49fb28847dcbab9cc41629a206bbeef82de099c5cc5f6353bd0abd035d8108f2a60baa64e765ecbb0 +MISC ChangeLog 5162 SHA256 9fc55fa4ac5577f3eb25e548bee242a401b89ee05b87097edb70c03a7331e25b SHA512 d1f51664290df510431ba86ed5e90ae1c8b627df2d013d26ca59709d851e7760bfad1393a062ee7007e1d79b16e5dc33b6dccad672fd7b4c4d7575ac23532d66 WHIRLPOOL bd07ba9ddef2032defc2f22277631cd61efb8731ff6a7171f87c1e8202d36b9d5b652da344476614a839fefe0890329b3b2e2b03dd9e44f0f6445a9599ab2bc8 +MISC ChangeLog-2015 4630 SHA256 8766912ac8ed085872e585ca282878875a5a027fb01c2f32af9e4ba9e2a8b582 SHA512 3d3f1f90a2d8d6e70b71fbeca3d024cec0c3940087ef77a6f493784ac804b42699ba835cdd2a5a12216126c215bca98518526d4c3cc4f02991f87618b8c60054 WHIRLPOOL cfa3932173422bf62e1184035edbb50d1a6ec632479ab83619c7e661c27b7d2a21e66c67c582a95cc43eac0483224c6265196fd51a5c64f1da3404b4fa0a9071 +MISC metadata.xml 601 SHA256 281815d2b2733edd255ce760dd3e405ae9a0f7b6c2153e74b49baf8f8411da82 SHA512 f07eef1847710581f8d5340b52eeb7b220fbf8c6891d7ab726c75ee18b0bf6f24f408a7a095c1d220671c155ec56f6710540d0dbfff431c20ce8a75516047e15 WHIRLPOOL 5e226a94b5d1037795c5fa4cae6d3e6c3c9aa182603effb187c0c3cfa9ef3121f2dca4a79c37d5ff150d5e6f2719be1b4836963d9edb0174654e4619f319ddbe diff --git a/games-strategy/openra/files/README.gentoo b/games-strategy/openra/files/README.gentoo new file mode 100644 index 000000000000..33502af0f9d2 --- /dev/null +++ b/games-strategy/openra/files/README.gentoo @@ -0,0 +1,111 @@ +OpenRA is a Libre/Free Real Time Strategy game engine supporting early +Westwood games like Command & Conquer and Command & Conquer: Red Alert. + +Distributed mods include a reimagining and updating of both the Red +Alert and Command & Conquer multiplayer games. + +You may run the game from desktop games menu or just manually +run the game with `mono OpenRA.Game.exe Game.Mods=ra` for Red Alert +or `mono OpenRA.Game.exe Game.Mods=cnc` for Command & Conquer. + +If you have problems starting the game consider switching to +alternative Cg Renderer. You may run the game with alternative +Cg Graphics Renderer from desktop games menu or by adding +`Graphics.Renderer=Cg` parameter explicitly to above console commands + (convenient for some integrated graphics cards). +To run explicitly with a default one use `Graphics.Renderer=Gl` +parameter. The default Graphics Renderer is a better one, so +don't forget to upgrade your graphics hardware drivers to the +latest version. For Cg renderer also try to upgrade nvidia-cg-toolkit +too. + +The RA packages will need to be extracted to ~/.openra/Content/ra/ +before the RA mod will actually work. The C&C packages will need +to be extracted to ~/.openra/Contet/cnc/ for C&C mod. You may +execute OpenRA and it will suggest to download content from original +CD or a minimal one from OpenRA site automatically. You may also try +to download minimal content pack from OpenRA site manually by using +OpenRA Utility: + +cd /usr/share/games/openra +mono OpenRA.Utility.exe --download-url=http://open-ra.org/get-dependency.php?file=ra-packages,/tmp/ra-packages.zip +mono OpenRA.Utility.exe --extract-zip=/tmp/ra-packages.zip,~/.openra/Content/ra/ + +The same commands for C&C mod: +mono OpenRA.Utility.exe --download-url=http://open-ra.org/get-dependency.php?file=cnc-packages,/tmp/cnc-packages.zip +mono OpenRA.Utility.exe --extract-zip=/tmp/cnc-packages.zip,~/.openra/Content/cnc/ + +But the better choice is to download a full pack from original game CD +(or iso). However, full CD pack usage result in slower game start from +OpenRA Lobby. It happens due to a lot of unnecessary things like video +clips were pre-packaged in it. If you want optimal game start and all +music themes (made by Frank Klepacki) from classic CD you should +download them from OpenRA Forum: +http://www.sleipnirstuff.com/forum/viewtopic.php?f=83&t=15063 + +The minimal required files for the Red Alert mod are: +EITHER: + * conquer.mix + * temperat.mix + * interior.mix + * snow.mix + * sounds.mix + * allies.mix + * russian.mix +OR: (Usually pretty long game start) + * main.mix +AND: + * redalert.mix + +The minimal required files for the Command and Conquer mod are: + * cclocal.mix + * speech.mix + * conquer.mix + * sounds.mix + * tempicnh.mix + * temperat.mix + * winter.mix + * desert.mix + +If you have a case-sensitive filesystem you must change the filenames to +lower case. + +Red Alert and C&C have been released by EA Games as freeware. They could be +downloaded from http://www.commandandconquer.com/classic +Unfortunately the installer is 16-bit and so won’t run on 64-bit operating +systems. This can be worked around by using the Red Alert Setup Manager + (http://ra.afraid.org/html/downloads/utilities-3.html). +Make sure you apply the no-CD protection fix so all the files needed +are installed to the hard drive. + +If your notebook doesn't show long battery life under OpenRA load you can +do several things: +1. Turn off "Show Shellmap" item under General tab of Settings menu. +2. Edit ~/.openra/settings.yaml in the "Graphics:" section to add +framelimiter. Add "CapFramerate: True" string there to enable framelimiter. +The default setting is 60 frames per second. You can change it's value by +adding "MaxFramerate: 70", for example, string in that section. Be careful +with special tab symbols at the beginning of the strings. Don't forget to +backup your settings file. + +Please note: OpenRA has 2 types of released versions: +1. Release Versions or just Versions. +2. Unstable Playtests Versions or just Playtests. +Release Versions are considered as more stable ones. Playtests are also +pretty stable in most cases but they have usually more features wich are +needed to be tested before inclusion into release. So, if you have any +problems, please report them to the IRC channel #openra on irc.freenode.net +(Use http://webchat.freenode.net/ if you don't have IRC client) +or to the bug-tracker (http://bugs.open-ra.org). + +You may also see servers list with +http://master.open-ra.org/list.php +or by using orabot on IRC channel: +]games (or !games) +to see the games wich are waiting to start or +]games --all +to see all games. + +Please read HACKING for an overview of the engine and read OpenRA Wiki +page for more info about the game and it's development: +https://github.com/OpenRA/OpenRA/wiki diff --git a/games-strategy/openra/metadata.xml b/games-strategy/openra/metadata.xml new file mode 100644 index 000000000000..e71960006011 --- /dev/null +++ b/games-strategy/openra/metadata.xml @@ -0,0 +1,18 @@ +<?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> + <changelog>http://openra.res0l.net/news/</changelog> + <doc lang="en">https://github.com/OpenRA/OpenRA/wiki</doc> + <bugs-to>https://github.com/OpenRA/OpenRA/issues</bugs-to> + <remote-id type="github">OpenRA/OpenRA</remote-id> + </upstream> + <use> + <flag name="tools">Install some development tools + such as editor.</flag> + </use> +</pkgmetadata> diff --git a/games-strategy/openra/openra-20140722-r1.ebuild b/games-strategy/openra/openra-20140722-r1.ebuild new file mode 100644 index 000000000000..108a2e057d85 --- /dev/null +++ b/games-strategy/openra/openra-20140722-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils mono-env gnome2-utils vcs-snapshot games + +DESCRIPTION="A free RTS engine supporting games like Command & Conquer and Red Alert" +HOMEPAGE="http://open-ra.org/" +SRC_URI="https://github.com/OpenRA/OpenRA/tarball/release-${PV} -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="tools" + +QA_PREBUILT="$(games_get_libdir)/openra/liblua*" + +DEPEND="dev-dotnet/libgdiplus + dev-lang/mono + media-libs/freetype:2[X] + media-libs/libsdl2[X,opengl,video] + media-libs/openal + virtual/jpeg:0 + virtual/opengl" +RDEPEND="${DEPEND}" + +pkg_setup() { + mono-env_pkg_setup + games_pkg_setup +} + +src_unpack() { + vcs-snapshot_src_unpack +} + +src_configure() { :; } + +src_prepare() { + # register game-version + sed \ + -e "/Version/s/{DEV_VERSION}/release-${PV}/" \ + -i mods/{ra,cnc,d2k}/mod.yaml || die +} + +src_compile() { + emake $(usex tools "all" "") + emake native-dependencies + emake docs +} + +src_install() { + emake \ + datadir="/usr/share" \ + bindir="${GAMES_BINDIR}" \ + libdir="$(games_get_libdir)" \ + DESTDIR="${D}" \ + $(usex tools "install-all" "install") install-linux-scripts + + exeinto "$(games_get_libdir)/openra" + doexe Eluant.dll.config liblua$(usex amd64 "64" "32")* + + # icons + insinto /usr/share/icons/ + doins -r packaging/linux/hicolor + + # desktop entries + make_desktop_entry "${PN} Game.Mods=cnc" "OpenRA CNC" ${PN} + make_desktop_entry "${PN} Game.Mods=ra" "OpenRA RA" ${PN} + make_desktop_entry "${PN} Game.Mods=d2k" "OpenRA Dune2k" ${PN} + make_desktop_entry "${PN}-editor" "OpenRA Map Editor" ${PN} + + dodoc "${FILESDIR}"/README.gentoo README.md CONTRIBUTING.md AUTHORS \ + DOCUMENTATION.md Lua-API.md + + # file permissions + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + + elog "optional dependencies:" + elog " media-gfx/nvidia-cg-toolkit (fallback renderer if OpenGL fails)" +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/openra/openra-20141029-r2.ebuild b/games-strategy/openra/openra-20141029-r2.ebuild new file mode 100644 index 000000000000..5a40946f6934 --- /dev/null +++ b/games-strategy/openra/openra-20141029-r2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils mono-env gnome2-utils vcs-snapshot games + +DESCRIPTION="A free RTS engine supporting games like Command & Conquer and Red Alert" +HOMEPAGE="http://open-ra.org/" +SRC_URI="https://github.com/OpenRA/OpenRA/tarball/release-${PV} -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +QA_PREBUILT="$(games_get_libdir)/openra/liblua*" + +DEPEND="dev-dotnet/libgdiplus + dev-lang/mono + media-libs/freetype:2[X] + media-libs/libsdl2[X,opengl,video] + media-libs/openal + virtual/jpeg:0 + virtual/opengl" +RDEPEND="${DEPEND}" + +pkg_setup() { + mono-env_pkg_setup + games_pkg_setup +} + +src_unpack() { + vcs-snapshot_src_unpack +} + +src_configure() { :; } + +src_prepare() { + # register game-version + sed \ + -e "/Version/s/{DEV_VERSION}/release-${PV}/" \ + -i mods/{ra,cnc,d2k}/mod.yaml || die +} + +src_compile() { + emake all + emake native-dependencies + emake docs +} + +src_install() { + emake \ + datadir="/usr/share" \ + bindir="${GAMES_BINDIR}" \ + libdir="$(games_get_libdir)" \ + DESTDIR="${D}" \ + install-all install-linux-scripts + + exeinto "$(games_get_libdir)/openra" + doexe Eluant.dll.config liblua$(usex amd64 "64" "32")* + + # icons + insinto /usr/share/icons/ + doins -r packaging/linux/hicolor + + # desktop entries + make_desktop_entry "${PN} Game.Mods=cnc" "OpenRA CNC" ${PN} + make_desktop_entry "${PN} Game.Mods=ra" "OpenRA RA" ${PN} + make_desktop_entry "${PN} Game.Mods=d2k" "OpenRA Dune2k" ${PN} + make_desktop_entry "${PN}-editor" "OpenRA Map Editor" ${PN} + + dodoc "${FILESDIR}"/README.gentoo README.md CONTRIBUTING.md AUTHORS \ + DOCUMENTATION.md Lua-API.md + + # file permissions + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + + elog "optional dependencies:" + elog " media-gfx/nvidia-cg-toolkit (fallback renderer if OpenGL fails)" +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/outerspace/Manifest b/games-strategy/outerspace/Manifest new file mode 100644 index 000000000000..e895e751089f --- /dev/null +++ b/games-strategy/outerspace/Manifest @@ -0,0 +1,8 @@ +AUX outerspace 169 SHA256 e6b6bad8a9ea3e85c13a282e8eb9ed1c71649d79a3309c5f7a053a2727028a7b SHA512 fd20d9de084fef162eec391d68dc973df566b62fd2254fe8ad92c91b073341ca17f96844e0cae28592a7a4d05cc6e3744d66cd37dce9b70319678b91db8d8a1b WHIRLPOOL 70e466dc0ea3f8cf75dbed11a6848f86b3ad0abd57cd9077f0b9b0e3cf00a1a1087bc5536036b877a5442460f3cd25e4198c6ec1b11ef6235f08aee204ccd1d0 +AUX outerspace-0.5.68-setup.patch 1644 SHA256 77ca068e9f9c658c9ede7ccfec008933c589e4be8026a071f4ddb51b7caacccc SHA512 3b583e3fbb0a2a26ee18edd6734d2adac07401376c5a96213f6fddaac18a0df6128007dc9947a77a0c9e12fafea368acff8cb5eef13d55206530bf55b28640c2 WHIRLPOOL 3a653464f2f273832aa36114a77e01e8cd2a116eec6d9447b5e883e3a4d4d6a88e4b96f3da8de55d47f7ab1985dd28a17b2774e792fdebc84476c2eb3612eebf +DIST outerspace-0.5.68.tar.gz 2249703 SHA256 6ca1ab9f9954821631d150ada07143f84f01eb9eb7773d1656121f657870be01 SHA512 dc2cbebf16fefabcc3356efb496766b90a5eabbf218f085fdc83cf956ca9503e99ef3154e0905c2432a3bf7caabd1f2af585a43397ba368581cd66546fcddc6b WHIRLPOOL cd72366bed75a5eb0a74dfaa8003b47cfa6b5f743b41c427135e965b44f9552bb88aa48203c987fe355824698019d0fe994983c2cfa751679315391fd90aa8f6 +DIST outerspace_0.5.68-0ubuntu1_all.deb 2634188 SHA256 c750f5ab5b124477f59e419f5146548231a48ee3a695a0b7a923628b836e1661 SHA512 9520cf1207a59497d6253b42bc34d580f9b805cf4ae55a5c921082e965892aa67921c4624ea94a5145c911dc2b24a1cca2806c06770ef8d1ded10855fb42666c WHIRLPOOL 137d44d414c3572a7dbbdf16556c499a7132739407407f3f71ee32af2f3671a9c7ec6ae853122cabc466d8963df090fe8b3bfb9881bd643bb498c992304e0e3b +EBUILD outerspace-0.5.68.ebuild 1716 SHA256 d06e58361bb7bb250d4a6f30576f85be622aace7f358e18fe0a60c6ff2d893a6 SHA512 6d1b22cd4aa57115b8eb9299193e51dced62a4c152b113f221a735c83073879817a61681fbbd4c9013a2db96207e5161b08134d09cbaddbf37f00cf00b9d7b2b WHIRLPOOL 4cdfd7a92f23b5b53d852a31e23437c250450be34c67bad1610eca3cca8422a5cfc77fa0f2cbc56bd18768365d58bd083d2d7fc90b34f9cc93a6b84dd2937304 +MISC ChangeLog 2503 SHA256 02e379a08ac442e2afd4f2c3f10ff70338adb0c3b70faf74081d868d4349f2e9 SHA512 81cf0feca6ff2996efee4deb638c5356bc0d3b1fc166def61963af433eaf123b44f3517a7bd72e007dbf20266100ce7822c3dfd19f9b5f9d86501e65aebb21d0 WHIRLPOOL dbd91d328762aa588fac6a1463f820def90de93f69059c61f3d6f9a8074ecfa325dfb2e5656f6885d93e3f52a7cefbf1ed77788591e53ef8c76fccb39ba1eb20 +MISC ChangeLog-2015 3227 SHA256 9a38e6fe121cfd8b9de40ca4fc4d864f4846cb6a7844804799b86ee2a3fbbb8d SHA512 4eaad39954ba1abc04aa8b6b38caf0fa7990b794876e229a48980db59cdc3cfa33e7e76a32d5e55050ef789de2ffee69d9c57110f85733bd18554f8a5791c028 WHIRLPOOL 02d0973f1ab9f349fe0498f8542f42d9fa57cbdf581b358fa0659f9f5c6a56ed291e52a7d243398d35cf57a8bb17887490c961a9a879bcbd163066909cee9c81 +MISC metadata.xml 831 SHA256 ffdcf418196f918e992c1c001a1923beb14c113691e70a7013f3be93231a8589 SHA512 d607343f2cc56162b694e28523cf256339a306b03bcca9c0148c59700491249a9acc6cfc193467cbdd04d8ea9bb564816747276143b3e4e1bf3dc7deab480d1e WHIRLPOOL 422bb0785e6801bc678b7db3923587911529378a5467729c7ec747c0f71f15740da8bbdf56d7ba620fbea299c167b5bc2112e3a1551cfbbe21064a7a3582fec1 diff --git a/games-strategy/outerspace/files/outerspace b/games-strategy/outerspace/files/outerspace new file mode 100644 index 000000000000..2a6bbe26dafb --- /dev/null +++ b/games-strategy/outerspace/files/outerspace @@ -0,0 +1,9 @@ +#!/bin/bash + +mkdir -p ~/.outerspace +cd ~/.outerspace || exit 1 + +ln -sf "@GENTOO_LIBDIR@"/{osc.py,lib,libsrvr} . +ln -sf "@GENTOO_DATADIR@"/res . + +exec python osc.py "$@" diff --git a/games-strategy/outerspace/files/outerspace-0.5.68-setup.patch b/games-strategy/outerspace/files/outerspace-0.5.68-setup.patch new file mode 100644 index 000000000000..202c53bc7ee1 --- /dev/null +++ b/games-strategy/outerspace/files/outerspace-0.5.68-setup.patch @@ -0,0 +1,83 @@ +--- setup.py ++++ setup.py +@@ -42,12 +42,7 @@ + + # collect data files + data_files = [] +-data_files.append( +- ( +- ".", +- ["../ChangeLog.txt", "../COPYING", "../README", "../README_CZ"] +- ) +-) ++ + + # resources + for root, dirs, files in os.walk('res'): +@@ -57,16 +52,6 @@ + pass + if files: + data_files.append((root, [os.path.join(root, file) for file in files])) +- +-data_files.append( +- ( +- "res/techspec", +- [ +- "../server/lib/ige/ospace/Rules/techs.spf", +- "../server/lib/ige/ospace/Rules/Tech.spf", +- ] +- ) +-) + + if havePy2Exe: + data_files.append((".", ["../updater/update.exe"])) +@@ -114,10 +99,3 @@ + **extraArgs + ) + +-# cleanup +-def onerror(func, path, err): +- if func is os.remove: +- os.chmod(path, stat.S_IWRITE) +- os.remove(path) +- +-shutil.rmtree("libsrvr", onerror = onerror) +--- osc.py ++++ osc.py +@@ -23,12 +23,36 @@ + # tweak PYTHONPATH + import sys + import os ++import errno + sys.path.insert(0, "lib") + + for item in ("libsrvr", "../server/lib"): + if os.path.exists(item): + sys.path.insert(0, item) + break ++ ++userdir=os.path.expanduser("~/.outerspace") ++resdir=os.path.join(userdir, "res") ++rootresdir="@GENTOO_DATADIR@/res" ++ ++if not (os.path.isdir(userdir)): ++ try: ++ os.makedirs(userdir) ++ except: ++ sys.exit("unable to create %s" % userdir) ++ ++try: ++ os.symlink(rootresdir, resdir) ++except OSError, e: ++ if e.errno == errno.EEXIST: ++ os.remove(resdir) ++ os.symlink(rootresdir, resdir) ++ ++try: ++ os.chdir(userdir) ++except: ++ sys.exit("unable to cd into %s" % userdir) ++ + + #configure gc + #import gc diff --git a/games-strategy/outerspace/metadata.xml b/games-strategy/outerspace/metadata.xml new file mode 100644 index 000000000000..8868ccd042b9 --- /dev/null +++ b/games-strategy/outerspace/metadata.xml @@ -0,0 +1,20 @@ +<?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"> +Outer Space is an on-line strategy game which takes place in the dangerous +universe. You will become powerful commander of many stars, planets, and great +fleets and will struggle for survival with other commanders. + +Outer Space communicates with the server in the same way as your browser, but +you will need a special client to play it. Using this client you can create an +account on the server and you can start to explore the world of the Outer Space. +</longdescription> + <upstream> + <remote-id type="sourceforge">ospace</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/outerspace/outerspace-0.5.68.ebuild b/games-strategy/outerspace/outerspace-0.5.68.ebuild new file mode 100644 index 000000000000..91e73afb61fc --- /dev/null +++ b/games-strategy/outerspace/outerspace-0.5.68.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit eutils gnome2-utils distutils-r1 games + +MY_PN=${PN/outerspace/Outer Space} +DESCRIPTION="on-line strategy game taking place in the dangerous universe" +HOMEPAGE="http://www.ospace.net/" +SRC_URI="mirror://sourceforge/ospace/Client/${PV}/Outer%20Space-${PV}.tar.gz -> ${P}.tar.gz + mirror://sourceforge/ospace/Client/${PV}/outerspace_${PV}-0ubuntu1_all.deb" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=dev-python/pygame-1.7" + +S=${WORKDIR}/${MY_PN}-${PV} + +src_unpack() { + default + unpack ./data.tar.gz +} + +python_install() { + distutils-r1_python_install \ + --install-scripts="${GAMES_BINDIR}" \ + --install-data="${GAMES_DATADIR}/${PN}" \ + --install-lib="$(python_get_sitedir)" + + # source tarball is missing files + # get them from ubuntu.deb + insinto "$(python_get_sitedir)"/ige/ospace/Rules + doins "${WORKDIR}"/usr/share/games/outerspace/libsrvr/ige/ospace/Rules/{Tech,techs}.spf +} + +src_prepare() { + # fix setup script + # rework python start script to avoid shell-wrapper script + epatch "${FILESDIR}"/${P}-setup.patch + + sed -i\ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + osc.py || die "sed failed" + + distutils-r1_src_prepare +} + +src_compile() { + distutils-r1_src_compile +} + +src_install() { + distutils-r1_src_install + newicon -s 48 res/icon48.png ${PN}.png + make_desktop_entry "osc.py" "${MY_PN}" + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + + einfo + einfo "start the game via 'osc.py'" + einfo +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/s25rttr/Manifest b/games-strategy/s25rttr/Manifest new file mode 100644 index 000000000000..17c1efd0f793 --- /dev/null +++ b/games-strategy/s25rttr/Manifest @@ -0,0 +1,12 @@ +AUX s25rttr-0.8.1-cmake-3.patch 851 SHA256 528b71f7600f2d1aa03c007bd82c77cf6a85b7f79d3f72d138579ea382ee541a SHA512 46f012e386854fbb7f21bbee98855849303501bf946b74a93c87ec9745cf5ec50b903ea3d35ecf9e84c1e4161c1876d43507c97d6bd9af8b5af2f6c9f4cb2805 WHIRLPOOL 1708d01f3a2b68cfff80bdf4fbedf30f0225b06275b5c725b45d7753a32853d1ea3ee1f4b495be96cf18904341fe2dc0ebd282f33317c4ae7454d01175281c56 +AUX s25rttr-0.8.1-cmake.patch 5682 SHA256 8cca5b44171838394bdf209af5b673e5148042550e33acd4a1d3f4d05bcfc679 SHA512 3da2e2837681a191ce3e08cc3338844ff325870b0b364a94b9b870ec36bcf3e7210e0cce15823a6b5bc0a95696cc41e133811773e5317f7e429fa882d0f049da WHIRLPOOL dd4016631daf02f1a825d7b12d2e6119a745ebf945c181d70862357efd620594caaa3df82ef63aa92470ec480343287faff5dc45e385261e80b9fa1d55c3e8fb +AUX s25rttr-0.8.1-format.patch 694 SHA256 7ad7376b5befcfe9779c038081d187bc06aca5da46d9c172d071302ef2d7e35d SHA512 66e159481ad4e240f0d3be46acb953caa78e00b35b5eaec76db577de2ee1d6fc7faba7ffc6814298165ff4128252cd9fa1a34a7f8086286105a519ec6276dcd9 WHIRLPOOL 9f1d9489cc92d98408d08cea304ee4693283432240f4eba7d63a1513224d725f448433258a20940b70bda63a6f64a808c0ef3642b84a98388ed13e79cee8a0f8 +AUX s25rttr-0.8.1-fpic.patch 1508 SHA256 3d92dc13472b510d39a7b5227248ab438706431ea95729b157973d0bf9128df2 SHA512 23c2f54864205c55bb7f18cb9b6e949640451b4b4de86b2c30a8721fd724c8ba00fd667bc8c07ea31ba8edfb92630afec08e1f52ab861d08887cf639f8cde7a9 WHIRLPOOL fdaa3db1e11bf1e0fc12617bc5f17b0299cf6d3fc52eebee6e53d00c7380eb3622ab9c13fea7968ec704aed30a3b05d379ade84fb0313dfb425bfc006f93a0de +AUX s25rttr-0.8.1-gcc6.patch 1504 SHA256 2f67486e324b733e32c60e3801456aabed9c7f526dd942ce2a0ee6c3e4e8ae68 SHA512 3a10ee4c6329c1dcc514e2b4d5edec41b56ac72c08955b24eeced94d1c9757703fe0732d833718dd99a4e5d70857a8e84347d8036c683b9b82d37916bd2cf951 WHIRLPOOL e1c1e0fa0ed5cfba621c4a86dec53c791cb5d37cc19a9c3e9744f10309887bd035ebb57ae0e661da94f97af101e1eb3e4be08b89a2c6e76e4b70a33a7269801b +AUX s25rttr-0.8.1-miniupnpc-api-14.patch 1385 SHA256 96caa43391a3661efdb4e05498a2c0d57244677d91b3dd3dec6d5e678c293d25 SHA512 163a83ac734ff2accca133c20c0e15f7f21140e41661add4229f2a878baebebf09eb82420b2d0b0a7a77042be35608bd00c30006265395e842ae28d64b8986f6 WHIRLPOOL 6fb83e5c8335509dd9fad3ad3545ecaa28c097552aeb3d3db3affef7790de46ac696a2ebedbd7ec008afa74e44be18455cd805267a9a067e37003f8790d2b9bb +AUX s25rttr-0.8.1-soundconverter.patch 763 SHA256 a3a490b4efb2182400fc9b07a67f66c939a2fe8a58983e85f4cd5125bfc2de37 SHA512 0f16e86057cb1574b8dd2303c49547ce855897683de3af52a437da9304c7bc821bcd3278dae6652fb8a0a358e64c1fa4c0eaec88323ab2dc5a0c56da3ce61afe WHIRLPOOL 3d427181fa8354f5b01e4ebfe8a3d445099163bd705094ee43a7d1b6dcb0f2a873d8262e1a23816ba089b4efa0189c0a3c8c8ad5e5b89595337de9d2aad98163 +DIST s25rttr-0.8.1.tar.xz 39644940 SHA256 683282a1d7d0549bb3a9db64c14aea111fcef79212461a099a2fe2e3960263bf SHA512 31a7d640e1ecd5488ef02d0ed3adcaeb9b5ae5f6af5e006deb4100fde3eb8ec567e34519e9c2b82f38c9972d62790a6f6978d5da6c6dfca7f1c153fa65f22df2 WHIRLPOOL 6558b6235b805489b8bc16b51175c7f46cc4d4887a088d79680826542b65f73f93bcd5801847b6284390a2f0ddbb112cfdb5decd1fb89a8c6ed585280f2f7de4 +EBUILD s25rttr-0.8.1-r2.ebuild 2640 SHA256 caa8835e971c85bada6581b0f52a6b04e6a63c11a0014ba058a9b7a7ddd76a0f SHA512 0fb9e0de437a729753ad25a5a49e077e83871cf523dd51ed69dba43ad0115f00f9eaf6f9d89a8410da19a448defcb2081d012966b3961bb21643753768d8a86d WHIRLPOOL ffeeae60c11496b639b75389842cc27f592a02e18fa9a982fc283cebeb6ebc5248ba875162d38de10eece7fad92c1ed79edabae20b6e0d6c6d9f7b5c7f1894a3 +MISC ChangeLog 5288 SHA256 a41af7e0777465168894f97cb0ca42511fcb36c8a5870b45f27ebc76d07805b6 SHA512 3ab79edef66bf3089897eb749084b947b5cbcec6d53f3cb1e9f64ccf476c0498e8835a5f34e09c9d56244bb2ca9680d68a9eb5279345bd52d70171dbc44fa0c2 WHIRLPOOL 9f3ab6354000945394f8839088b0e88ddc585747bb75c5f555fb9564b36a71d3e3b454befec0f67dc56198ae2fb5dba3a3a131a5a537b2e7e11cc0121353097f +MISC ChangeLog-2015 1639 SHA256 d9919e0bdd04b2db741f6d87b1313fa17c693d197c631d04cb1f10eb3ef96445 SHA512 e5b0c9e35dfb5660575433b314b0ac76afd57ace40c6e128e6843e24d9b6a19428510c8caa8e605bf3f73dbb9e8868432e61bd5f0ff9d35ed9ecc143b8771e6d WHIRLPOOL a77a840f2537613a6c12d1e46f22565010e444792c690896ddfd4e83c0981ea9e68cdc6320e9cfa398ed54b0369610833d25a2631006e2ab2d095e479bf21543 +MISC metadata.xml 487 SHA256 8d6d8239cb93b14a68c20740466170d923cc3b4b7504bb2fbc80757590ecf3b4 SHA512 2a637b479281ed9b3df211fd2090e9ea42bb7f7bc5cc7fa8b40e8a665e9dbb9206e9f142199d596676fdcc546e3df1550fa8f5a13d81818d484674c4643ab3af WHIRLPOOL c8e820efa3612c76f5eb6f520c41bbb005e0357aa063b6fae06b3ee8d0428ca436d555f2bc66ef295e1de80b34b5ee5841ec14b8847a3cea698e4ab9518ed97b diff --git a/games-strategy/s25rttr/files/s25rttr-0.8.1-cmake-3.patch b/games-strategy/s25rttr/files/s25rttr-0.8.1-cmake-3.patch new file mode 100644 index 000000000000..b7e9e424eb08 --- /dev/null +++ b/games-strategy/s25rttr/files/s25rttr-0.8.1-cmake-3.patch @@ -0,0 +1,23 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fcbfb02..ae1c5f0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -2,12 +2,12 @@ + ### $Id: CMakeLists.txt 8341 2012-09-30 12:09:04Z FloSoft $ + ################################################################################ + +-CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0) +-CMAKE_POLICY(SET CMP0003 OLD) +- +-IF(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7 AND ${CMAKE_PATCH_VERSION} GREATER 0) +- CMAKE_POLICY(SET CMP0015 OLD) +-ENDIF(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7 AND ${CMAKE_PATCH_VERSION} GREATER 0) ++CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7) ++CMAKE_POLICY(SET CMP0003 NEW) ++CMAKE_POLICY(SET CMP0015 NEW) ++IF(NOT CMAKE_VERSION VERSION_LESS 3.1) ++ CMAKE_POLICY(SET CMP0053 NEW) ++ENDIF() + + SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) + diff --git a/games-strategy/s25rttr/files/s25rttr-0.8.1-cmake.patch b/games-strategy/s25rttr/files/s25rttr-0.8.1-cmake.patch new file mode 100644 index 000000000000..d8cdfedbb9a0 --- /dev/null +++ b/games-strategy/s25rttr/files/s25rttr-0.8.1-cmake.patch @@ -0,0 +1,160 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Fri Oct 5 13:33:05 UTC 2012 + +make build system gentoo-compatible +provide options for SDL and GLFW video drivers + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -19,12 +19,19 @@ + + ################################################################################ + +-INCLUDE(cmake/crosscompile.cmake) +- + PROJECT(s25client) + + ################################################################################ + ++# options ++OPTION(BUILD_GLFW_DRIVER "Build the GLFW video driver" 0) ++OPTION(BUILD_SDL_DRIVER "Build the sdl video driver" 1) ++IF (UNIX) ++ IF (NOT BUILD_SDL_DRIVER AND NOT BUILD_GLFW_DRIVER) ++ MESSAGE(FATAL_ERROR "No video driver selected! Either use SDL or GLFW.") ++ ENDIF (NOT BUILD_SDL_DRIVER AND NOT BUILD_GLFW_DRIVER) ++ENDIF (UNIX) ++ + SET(PREFIX ${PREFIX} CACHE STRING "Path prefix") + SET(BINDIR ${BINDIR} CACHE STRING "Directory for the binaries") + SET(DATADIR ${DATADIR} CACHE STRING "Data directory") +@@ -106,38 +113,6 @@ + build_paths.h) + CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/build_version.h.cmake" + build_version.h) +-CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/build/preinstall.sh.cmake" +- preinstall.sh @ONLY) +-CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/build/postinstall.sh.cmake" +- postinstall.sh @ONLY) +- +-################################################################################ +- +-ADD_SUBDIRECTORY(version) +- +-ADD_CUSTOM_TARGET(updateversion ALL +- COMMAND "${CMAKE_BINARY_DIR}/version/src/version" "${CMAKE_SOURCE_DIR}" +- DEPENDS version +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" +-) +- +-ADD_CUSTOM_TARGET(mrproper +- COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/build/cleanup.sh" +- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" +-) +- +-ADD_CUSTOM_TARGET(create_nightly +- COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/release/create_release.sh" "nightly" "${CMAKE_SOURCE_DIR}" +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" +-) +- +-ADD_CUSTOM_TARGET(create_stable +- COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/release/create_release.sh" "stable" "${CMAKE_SOURCE_DIR}" +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" +-) +- +-# preinstall script +-INSTALL(SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/cmake/preinstall.cmake") + + ################################################################################ + +@@ -148,7 +123,6 @@ + ADD_SUBDIRECTORY(libutil) + ADD_SUBDIRECTORY(liblobby) + ADD_SUBDIRECTORY(s-c) +-ADD_SUBDIRECTORY(s25update) + ADD_SUBDIRECTORY(src) + + ################################################################################ +@@ -157,7 +131,6 @@ + INSTALL(CODE "INCLUDE(driver/cmake_install.cmake)") + INSTALL(CODE "INCLUDE(libsiedler2/cmake_install.cmake)") + INSTALL(CODE "INCLUDE(s-c/cmake_install.cmake)") +-INSTALL(CODE "INCLUDE(s25update/cmake_install.cmake)") + INSTALL(CODE "INCLUDE(src/cmake_install.cmake)") + + # and then dont let him install anything +--- driver/video/CMakeLists.txt ++++ driver/video/CMakeLists.txt +@@ -3,7 +3,11 @@ + ################################################################################# + + ADD_SUBDIRECTORY( WinAPI ) +-ADD_SUBDIRECTORY( GLFW ) +-ADD_SUBDIRECTORY( SDL ) ++IF(BUILD_GLFW_DRIVER) ++ ADD_SUBDIRECTORY( GLFW ) ++ENDIF(BUILD_GLFW_DRIVER) ++IF(BUILD_SDL_DRIVER) ++ ADD_SUBDIRECTORY( SDL ) ++ENDIF(BUILD_SDL_DRIVER) + + ################################################################################# +--- driver/video/SDL/src/CMakeLists.txt ++++ driver/video/SDL/src/CMakeLists.txt +@@ -30,9 +30,9 @@ + ADD_CUSTOM_COMMAND(TARGET videoSDL POST_BUILD COMMAND ln -fvs SDL/src/${SL_PREFIX}videoSDL${CMAKE_SHARED_LIBRARY_SUFFIX} ../../videoSDL${CMAKE_SHARED_LIBRARY_SUFFIX}) + + INSTALL(TARGETS videoSDL +- RUNTIME DESTINATION ${LIBDIR}/driver/video +- LIBRARY DESTINATION ${LIBDIR}/driver/video +- ARCHIVE DESTINATION ${LIBDIR}/driver/video ++ RUNTIME DESTINATION ${LIBDIR} ++ LIBRARY DESTINATION ${LIBDIR} ++ ARCHIVE DESTINATION ${LIBDIR} + ) + ELSE (SDL_FOUND) + MESSAGE(WARNING ": SDL library not found: Not building SDL videodriver") +--- driver/video/GLFW/src/CMakeLists.txt ++++ driver/video/GLFW/src/CMakeLists.txt +@@ -2,7 +2,7 @@ + ### $Id$ + ################################################################################# + +-IF ("${COMPILEFOR}/${COMPILEARCH}" STREQUAL "linux/i386" ) ++IF ("${COMPILEFOR}" STREQUAL "linux" ) + FIND_LIBRARY(GLFW_LIBRARY glfw) + + IF (GLFW_LIBRARY) +@@ -21,6 +21,6 @@ + ELSE (GLFW_LIBRARY) + MESSAGE(WARNING ": GLFW library not found: Not building GLFW videodriver") + ENDIF (GLFW_LIBRARY) +-ENDIF ("${COMPILEFOR}/${COMPILEARCH}" STREQUAL "linux/i386" ) ++ENDIF ("${COMPILEFOR}" STREQUAL "linux" ) + + ################################################################################# +--- driver/audio/SDL/src/CMakeLists.txt ++++ driver/audio/SDL/src/CMakeLists.txt +@@ -34,9 +34,9 @@ + ADD_CUSTOM_COMMAND(TARGET audioSDL POST_BUILD COMMAND ln -fvs SDL/src/${SL_PREFIX}audioSDL${CMAKE_SHARED_LIBRARY_SUFFIX} ../../audioSDL${CMAKE_SHARED_LIBRARY_SUFFIX}) + + INSTALL(TARGETS audioSDL +- RUNTIME DESTINATION ${LIBDIR}/driver/audio +- LIBRARY DESTINATION ${LIBDIR}/driver/audio +- ARCHIVE DESTINATION ${LIBDIR}/driver/audio ++ RUNTIME DESTINATION ${LIBDIR} ++ LIBRARY DESTINATION ${LIBDIR} ++ ARCHIVE DESTINATION ${LIBDIR} + ) + ELSE (SDLMIXER_FOUND) + MESSAGE(WARNING ": SDL_mixer library not found: Not building SDL audiodriver") +--- build_paths.h.cmake ++++ build_paths.h.cmake +@@ -41,6 +41,7 @@ + + // set game directory (normal $(datadir)/s25rttr/S2) + //#define GAMEDIR DATADIR"/S2" ++#cmakedefine GAMEDIR "${GAMEDIR}" + + // set driver directory (normal $(libdir)/driver) + //#define DRIVERDIR LIBDIR"/driver" diff --git a/games-strategy/s25rttr/files/s25rttr-0.8.1-format.patch b/games-strategy/s25rttr/files/s25rttr-0.8.1-format.patch new file mode 100644 index 000000000000..588a755e829c --- /dev/null +++ b/games-strategy/s25rttr/files/s25rttr-0.8.1-format.patch @@ -0,0 +1,11 @@ +--- src/dskGameInterface.cpp.old 2016-02-15 21:11:58.308899794 +0100 ++++ src/dskGameInterface.cpp 2016-02-15 21:12:24.564433584 +0100 +@@ -1349,7 +1349,7 @@ + snprintf(text, sizeof(text), _("Team victory! '%s' and '%s' and '%s' and '%s' are the winners!"), GameClient::inst().GetPlayer(winners[0])->name.c_str(),GameClient::inst().GetPlayer(winners[1])->name.c_str(),GameClient::inst().GetPlayer(winners[2])->name.c_str(),GameClient::inst().GetPlayer(winners[3])->name.c_str()); + break; + default: +- snprintf(text, sizeof(text), _("Team victory!")); ++ snprintf(text, sizeof(text), "%s", _("Team victory!")); + break; + } + messenger.AddMessage("", 0, CD_SYSTEM, text, COLOR_ORANGE); diff --git a/games-strategy/s25rttr/files/s25rttr-0.8.1-fpic.patch b/games-strategy/s25rttr/files/s25rttr-0.8.1-fpic.patch new file mode 100644 index 000000000000..4a1d11ef1704 --- /dev/null +++ b/games-strategy/s25rttr/files/s25rttr-0.8.1-fpic.patch @@ -0,0 +1,38 @@ +From 2b4f956263864cebb1b9c5ce120c7cd30f512bdb Mon Sep 17 00:00:00 2001 +From: nE0sIghT <ykonotopov@gmail.com> +Date: Sat, 18 Jul 2015 19:03:05 +0300 +Subject: [PATCH] Fixed build of sdl drivers + +--- + driver/audio/SDL/src/CMakeLists.txt | 1 + + driver/video/SDL/src/CMakeLists.txt | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/driver/audio/SDL/src/CMakeLists.txt b/driver/audio/SDL/src/CMakeLists.txt +index 5ad3f02..5a91cd5 100644 +--- a/driver/audio/SDL/src/CMakeLists.txt ++++ b/driver/audio/SDL/src/CMakeLists.txt +@@ -20,6 +20,7 @@ IF (SDL_FOUND) + + ADD_LIBRARY(audioSDL SHARED SDL.cpp SDL.h main.h SoundSDL_Music.cpp SoundSDL_Music.h SoundSDL_Effect.cpp SoundSDL_Effect.h ${PROJECT_SOURCE_DIR}/build_version.cpp ../../../src/DriverInterface.cpp ../../../src/tempname.cpp ../../../src/tempname.h) + ++ ADD_DEFINITIONS(-fPIC) + ADD_FLAGS(CMAKE_C_FLAGS -I${SDL_INCLUDE_DIR} -I${SDLMIXER_INCLUDE_DIR}) + ADD_FLAGS(CMAKE_CXX_FLAGS -I${SDL_INCLUDE_DIR} -I${SDLMIXER_INCLUDE_DIR}) + +diff --git a/driver/video/SDL/src/CMakeLists.txt b/driver/video/SDL/src/CMakeLists.txt +index 83d10cf..ca67573 100644 +--- a/driver/video/SDL/src/CMakeLists.txt ++++ b/driver/video/SDL/src/CMakeLists.txt +@@ -16,6 +16,7 @@ IF (SDL_FOUND) + + ADD_LIBRARY(videoSDL SHARED SDL.cpp SDL.h main.h ../../../../build_version.cpp ../../../src/DriverInterface.cpp) + ++ ADD_DEFINITIONS(-fPIC) + ADD_FLAGS(CMAKE_C_FLAGS -I${SDL_INCLUDE_DIR}) + ADD_FLAGS(CMAKE_CXX_FLAGS -I${SDL_INCLUDE_DIR}) + +-- +2.3.6 + + diff --git a/games-strategy/s25rttr/files/s25rttr-0.8.1-gcc6.patch b/games-strategy/s25rttr/files/s25rttr-0.8.1-gcc6.patch new file mode 100644 index 000000000000..957ecf4ddf50 --- /dev/null +++ b/games-strategy/s25rttr/files/s25rttr-0.8.1-gcc6.patch @@ -0,0 +1,84 @@ +Bug: https://bugs.gentoo.org/610972 +Commit: https://github.com/Return-To-The-Roots/mygettext/commit/3b902a46322b7e88e9d2cdf85ee0912c6565f9a2 + +--- a/driver/audio/SDL/src/SDL.cpp ++++ b/driver/audio/SDL/src/SDL.cpp +@@ -175,23 +175,23 @@ + + char file[512]; + if(!tempname(file, 512)) +- return false; ++ return NULL; + + strncat(file, ".wav", 512); + + FILE *dat = fopen(file, "wb"); + if(!dat) +- return false; ++ return NULL; + + if(fwrite(data, 1, size, dat) != size) +- return false; ++ return NULL; + + fclose(dat); + + switch(data_type) + { + default: +- return false; ++ return NULL; + + case AudioDriver::AD_WAVE: + { +@@ -233,12 +233,12 @@ + + char file[512]; + if(!tempname(file, 512)) +- return false; ++ return NULL; + + switch(data_type) + { + default: +- return false; ++ return NULL; + + case AudioDriver::AD_MIDI: + { +@@ -266,10 +266,10 @@ + + FILE *dat = fopen(file, "wb"); + if(!dat) +- return false; ++ return NULL; + + if(fwrite(data, 1, size, dat) != size) +- return false; ++ return NULL; + + fclose(dat); + +--- a/src/VideoDriverWrapper.cpp ++++ b/src/VideoDriverWrapper.cpp +@@ -481,7 +481,7 @@ + if(videodriver == NULL) + { + fatal_error("Kein Videotreiber ausgewaehlt!\n"); +- return false; ++ return NULL; + } + + return videodriver->GetFunction(extension); +--- a/mygettext/src/mygettext.h ++++ b/mygettext/src/mygettext.h +@@ -21,6 +21,9 @@ + + #pragma once + ++// necessarily here ++#include <locale> ++ + const char *mysetlocale(int category, const char *locale); + + #undef gettext diff --git a/games-strategy/s25rttr/files/s25rttr-0.8.1-miniupnpc-api-14.patch b/games-strategy/s25rttr/files/s25rttr-0.8.1-miniupnpc-api-14.patch new file mode 100644 index 000000000000..d2ff0ee1fe39 --- /dev/null +++ b/games-strategy/s25rttr/files/s25rttr-0.8.1-miniupnpc-api-14.patch @@ -0,0 +1,36 @@ +From 3b08b907235c09ab84e3bb23d1e05fe5a1d1c00e Mon Sep 17 00:00:00 2001 +From: Manuel Zeise <mail@manuel-zeise.de> +Date: Sun, 3 Jan 2016 16:54:05 +0100 +Subject: [PATCH] Switch for miniUPnPc API version 14 and above + +API version 14 of miniUPnPc has introduced a new TTL argument to +upnpDiscover() with a recommended default value of 2. A new preprocessor +statement evaluates the API version and selects the correct version of +upnpDiscover() based on the API version. + +--- s25rttr-0.8.1/libutil/src/UPnP.cpp ++++ s25rttr-0.8.1/libutil/src/UPnP.cpp +@@ -210,7 +210,11 @@ + UPNPDev* devicelist = NULL; + #ifdef UPNPDISCOVER_SUCCESS + int upnperror = 0; ++#if (MINIUPNPC_API_VERSION >= 14) /* miniUPnPc API version 14 adds TTL parameter */ ++ devicelist = upnpDiscover(2000, NULL, NULL, 0, 0 /* ipv6 */, 2, &upnperror); ++#else + devicelist = upnpDiscover(2000, NULL, NULL, 0, 0 /* ipv6 */, &upnperror); ++#endif + #else + devicelist = upnpDiscover(2000, NULL, NULL, 0); + #endif +@@ -276,7 +280,11 @@ + UPNPDev* devicelist = NULL; + #ifdef UPNPDISCOVER_SUCCESS + int upnperror = 0; ++#if (MINIUPNPC_API_VERSION >= 14) /* miniUPnPc API version 14 adds TTL parameter */ ++ devicelist = upnpDiscover(2000, NULL, NULL, 0, 0 /* ipv6 */, 2, &upnperror); ++#else + devicelist = upnpDiscover(2000, NULL, NULL, 0, 0 /* ipv6 */, &upnperror); ++#endif + #else + devicelist = upnpDiscover(2000, NULL, NULL, 0); + #endif diff --git a/games-strategy/s25rttr/files/s25rttr-0.8.1-soundconverter.patch b/games-strategy/s25rttr/files/s25rttr-0.8.1-soundconverter.patch new file mode 100644 index 000000000000..493d7cb404be --- /dev/null +++ b/games-strategy/s25rttr/files/s25rttr-0.8.1-soundconverter.patch @@ -0,0 +1,17 @@ +From: hasufell <julian.ospald@googlemail.com> +Date: Mon Apr 30 20:42:28 UTC 2012 + +relocate executables sound-convert and s-c_resample which get installed +into datadir by default + +--- libutil/src/files.h ++++ libutil/src/files.h +@@ -140,7 +140,7 @@ + /* 54 */RTTRDIR "", // unbenutzt + /* 55 */SETTINGSDIR "/LSTS/SOUND.LST", // Die konvertierte sound.lst + /* 56 */RTTRDIR "/sound.scs", // Das konvertier-script +- /* 57 */RTTRDIR "", // Basispfad fürn Soundconverter ++ /* 57 */DRIVERDIR "", // Basispfad fürn Soundconverter + /* 58 */GAMEDIR "/DATA/MIS0BOBS.LST", + /* 59 */GAMEDIR "/DATA/MIS1BOBS.LST", + /* 60 */GAMEDIR "/DATA/MIS2BOBS.LST", diff --git a/games-strategy/s25rttr/metadata.xml b/games-strategy/s25rttr/metadata.xml new file mode 100644 index 000000000000..e5e3b0f43654 --- /dev/null +++ b/games-strategy/s25rttr/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> + <changelog>http://www.siedler25.org/index.php?com=dynamic&mod=9&PHPSESSID=e5fa4f90c4db5df0cb1e417e128300b5</changelog> + <bugs-to>https://bugs.launchpad.net/s25rttr</bugs-to> + </upstream> +</pkgmetadata> diff --git a/games-strategy/s25rttr/s25rttr-0.8.1-r2.ebuild b/games-strategy/s25rttr/s25rttr-0.8.1-r2.ebuild new file mode 100644 index 000000000000..9ecfd153901b --- /dev/null +++ b/games-strategy/s25rttr/s25rttr-0.8.1-r2.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils cmake-utils gnome2-utils games + +DESCRIPTION="Open Source remake of The Settlers II game (needs original game files)" +HOMEPAGE="http://www.siedler25.org/" +# no upstream source tarball yet +# https://bugs.launchpad.net/s25rttr/+bug/1069546 +SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug" + +RDEPEND="app-arch/bzip2 + media-libs/libsamplerate + media-libs/libsdl[X,sound,opengl,video] + media-libs/libsndfile + media-libs/sdl-mixer[vorbis] + net-libs/miniupnpc + virtual/libiconv + virtual/opengl" +DEPEND="${RDEPEND} + sys-devel/gettext" + +src_prepare() { + epatch "${FILESDIR}"/${P}-cmake.patch \ + "${FILESDIR}"/${P}-soundconverter.patch \ + "${FILESDIR}"/${P}-fpic.patch \ + "${FILESDIR}"/${P}-format.patch \ + "${FILESDIR}"/${P}-miniupnpc-api-14.patch \ + "${FILESDIR}"/${P}-cmake-3.patch \ + "${FILESDIR}"/${P}-gcc6.patch +} + +src_configure() { + local arch + case ${ARCH} in + amd64) + arch="x86_64" ;; + x86) + arch="i386" ;; + *) die "Architecture ${ARCH} not yet supported" ;; + esac + + local mycmakeargs=( + -DCOMPILEFOR="linux" + -DCOMPILEARCH="${arch}" + -DCMAKE_SKIP_RPATH=YES + -DPREFIX="${GAMES_PREFIX}" + -DBINDIR="${GAMES_BINDIR}" + -DDATADIR="${GAMES_DATADIR}" + -DLIBDIR="$(games_get_libdir)/${PN}" + -DDRIVERDIR="$(games_get_libdir)/${PN}" + -DGAMEDIR="~/.${PN}/S2" + -DBUILD_GLFW_DRIVER=OFF + ) + + cmake-utils_src_configure +} + +src_compile() { + # work around some relative paths (CMAKE_IN_SOURCE_BUILD not supported) + ln -s "${CMAKE_USE_DIR}"/RTTR "${CMAKE_BUILD_DIR}"/RTTR || die + + cmake-utils_src_compile + + mv "${CMAKE_USE_DIR}"/RTTR/{sound-convert,s-c_resample} "${T}"/ || die +} + +src_install() { + cd "${CMAKE_BUILD_DIR}" || die + + exeinto "$(games_get_libdir)"/${PN} + doexe "${T}"/{sound-convert,s-c_resample} + exeinto "$(games_get_libdir)"/${PN}/video + doexe driver/video/SDL/src/libvideoSDL.so + exeinto "$(games_get_libdir)"/${PN}/audio + doexe driver/audio/SDL/src/libaudioSDL.so + + insinto "${GAMES_DATADIR}" + doins -r "${CMAKE_USE_DIR}"/RTTR + dosym ./LSTS/splash.bmp "${GAMES_DATADIR}"/RTTR/splash.bmp + + doicon -s 64 "${CMAKE_USE_DIR}"/debian/${PN}.png + dogamesbin src/s25client + make_desktop_entry "s25client" "Settlers RTTR" "${PN}" + dodoc RTTR/texte/{keyboardlayout.txt,readme.txt} + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + elog "Copy your Settlers2 game files into ~/.${PN}/S2" + + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/scorched3d/Manifest b/games-strategy/scorched3d/Manifest new file mode 100644 index 000000000000..8ff1c608ead2 --- /dev/null +++ b/games-strategy/scorched3d/Manifest @@ -0,0 +1,14 @@ +AUX scorched3d-44-fix-c++14.patch 566 SHA256 f678c4d64cd6f4457e87057d73ab59f6469704dcb6ada69926950bb6baac59b9 SHA512 f74db569f471e1ac24fe6dfa15c319ac6dce52a6b35d333efb314b59156b150e7a09c843e7046d804a4768eea294671546313043c46bc38ac5e951d1daa1c23d WHIRLPOOL b0d1fc6359441e75de12c2a82fc5a9d6f78234319e8f7b9435fa5a8598e5b42472984710ef1b8287bbd32f25a7de26a4cb537823ed84284ad8508115299b3fea +AUX scorched3d-44-fixups.patch 717 SHA256 5eb531b97c2520fb3dcd1bbec0ad684228c0d4183a9fd3641629846351f02875 SHA512 8045df51e6a09d9101d971056edc77e03694b2872819cd892d1239c04ad5c59afa8a60adc2ca04a63a5d501bbb113221408522a33159eee836e600bb2b8d40c7 WHIRLPOOL 50aa87c84e1a70fb59ef81da9c952d9b8abb05e9b9e7b5af528a560108d8c94e37aec35764302382b411e403e0402acf4c8efb096c8c39bcebaea0ad9516d258 +AUX scorched3d-44-freetype.patch 1372 SHA256 4ceb8b407575a41f2781716094a59cd1de260e69085726c9c63f78ea7be7aad4 SHA512 98688db48920b32aa87aeb9fbfb245f18ebc0f5b2a92a341ffd49ad94fc10e6bee4ee5864e15497e7617467759cc1fe809887e107d881b199965f5b22045bfc9 WHIRLPOOL bb87f40d54554297d3f1694536548ba14c1a35ecc8a58c573a60847e6aae937c3ada400a4c0f4d039056cc8bcda2bbd3d82b76f6742d6ee6ee3c2b5069b6972e +AUX scorched3d-44-gcc43.patch 561 SHA256 7ee76b89705292ecd2ef55e416dd58a64d3bc5310bc369a26b5eb0ce469ba59e SHA512 c00bfcf2feb7d740e4fc4337a5577962a198d56296bae68a96902046f78fd29856d83b57f309ea9c61d36d4a767e76ae101639a8ed786c5451b440b5a0d908c1 WHIRLPOOL 5a5b045001e21410e66b026896d990013f22507ebe15637f1139016f8d0d61de3fc08773706ab4eb942fb6e4b7ce6fa2baede0d4c2c688a05f338da6e7db614d +AUX scorched3d-44-jpeg9.patch 614 SHA256 7d585ef42e565c0f7aaaddd2d4b9ed4a920b2c2a001a65889df09e70c5111971 SHA512 8adb3bd124b11b006d8124e57fc506e8dc56415c89cca70440901cef7aa547f241d100c42281345fd489c95f9e8eb105d5e5de5ef18382087e203877cc8f6ca4 WHIRLPOOL 9ff421974aecf702af5c60366445b1a69a3bb4c3dfe29270f6a8f17dd27dfe0f0de32fbd456a3b575d25ca991c15e08c12599ab74cbe938ce9359e0392e3d23b +AUX scorched3d-44-odbc.patch 503 SHA256 56d5fa2e0b59e19b74248c3a0a081e7139476305dfbfc5c905abaa1de3681d15 SHA512 8bf3e3f9a91502a7c84be73a73e0909c09b050266fb2c6847be2cca13b1a368697dd70c373b6bbce4b12ba97241b2d577cce3604640b4182b2be223d009a4f6e WHIRLPOOL b4ee72c4b69f08f7342bac21382ef279ec54a2c06c6026889c0ba611d05e4ffbd4b4ebf601f1dbba7e72aef0bb8b0f5f48c133e18402e3b345b2b72338a441ef +AUX scorched3d-44-win32.patch 464 SHA256 325ec09315a102ebb2290007c28fe263771991a5c82908a0ef084f1f6f209b1f SHA512 992224f65f80527276c0b6e139ea44c6c29a2fbfa3a0af78e2f2366897dbd51e9988b065aa21ac95cf9b1a0efc8866e2e45646e1851f8afd195651b3c47a81dd WHIRLPOOL 888a17bba56ea17bf6961a79e6a8ad81a70baece753ff05be0549312bef712b1f743db249f3a287992586be215afe82522fdf3f757bf49c0ea6b6065767f3d57 +AUX scorched3d-44-wxgtk.patch 7001 SHA256 6e3e210addeae643f353496c47fa4cebd11e46d0bcf11c7848d51108cecaec6f SHA512 99e21ff6854bbea676c8ea0a5ef2b28a4d6020b34fbae134d9346d4febb7b6defbd39cb712f29b3dcff7ac829b2e76275a85d7d740e921835898f550c4471120 WHIRLPOOL 48fdb4f6636a6d19035236665c9256cd410adb50209ecaa2306e4084b8090ef5c3fdc9050cc6a50c7aa4828fc696ae70b2b232d74ba2aa226920843bc11af4b5 +DIST Scorched3D-44-src.tar.gz 41689613 SHA256 1c8320bb2210030be71dd713c214fbd32f7dd663ea82031383e6b3636f8a8dba SHA512 27341d12ef9db5b64c1051a8abe45cef8a957e26c2cd8928f64c071589052d2857fc6f8104772bb67d5d348aef14122a117d9e00d61e4d9f963f3b5bbe5859ca WHIRLPOOL 6b7c744702b86df856d8879454e7c9616e31dc3a9f539bd97c53cba4bea0e59f44e3c703f847f3cd505ba0e90386887f7134f9500421b3d58ba12a9cc1fdbc0e +EBUILD scorched3d-44-r1.ebuild 2221 SHA256 d9fff21262ba08c74da8f057e1ba379a46deeccfc6eb88b76c0bd6524576d4a6 SHA512 1cca46096ecf2cf87a913733a1e92777a44f91bdc721a0c78b046380adda16a25f229afb0a223c3c4e945adce85610f0b1772d9a0f9042d85908828bbb2705a4 WHIRLPOOL da7a5d351e4bf19cf7d32d378d73daf75b154fd73392d557bbefa9077bc328f041c0b82850c62eac1cd832a3bbe30ac28a86bd7ae09377a92fb864ae49500fc3 +EBUILD scorched3d-44-r2.ebuild 2310 SHA256 f2279ceacb4ad8c3a4ce76aa841c07d0157ef2a87d6bc0296cc5e18bdaef4b81 SHA512 6b145b4f8f71f338a3535cedff106a4dec6119a37b99ed59b035f51ffa48bf857e6a4dd72f162455fd50d99f7e195ab3418d4f378735c1a417ded077d034a42a WHIRLPOOL e40cc2f7adb6e41eb0d7fa2cb5aa8badb50b53f8851023077fcb29e0cff55e802b4a4f8281489687b1b0d88c64786ad7e1675b78f9d244ca8c9a090c069c4da8 +MISC ChangeLog 3881 SHA256 7d78ef5132c961a884ce8ea88129b5c1bd405697787209f7c881ecef2a0786b4 SHA512 3dca1cd6b028a18e5e048492e5ba30a9a0faa554b552962229e6b000e86caf571e66c0433fc04a00751e3cf69ad7793950ef58df4ba89bd5c81fea65d54ab66d WHIRLPOOL ba081308815ca61b8aa63eb1d176d9cd38c21531b77e8cbf46ccc97d98e013e82754239955b49d982efd72c24cea548dedb854bec0d7d8cabf20847d46a376a1 +MISC ChangeLog-2015 16385 SHA256 a4bbf80de049d02acd34341baac4e19aa020e88d37f73bca668ba963951ab87a SHA512 7bcf80ac0e1b26f825e829fbb8d748de5672067f0a83ed0518d9b8e4600c9a227cdad3acbc27d5c2efb4b61898d3b30a4c20933a5004727aefecd83a4a5f52ba WHIRLPOOL b6ae93961727860e049c475ce1c590aa7ea2662d688cc54d2558e0926bb8154d6070dda837c5e77225b345591639631f93897f174727404b40635edcba527822 +MISC metadata.xml 333 SHA256 1ad69c015c8f04f5608782f77b591dcfdbfb9566b76cc2ba63b85e846811c43a SHA512 91b1e0f50ec4635e81ee904179228d25b8168bf74d00eacb734365514e43e681879c121cc2f60302b446367b8b6fb388842e28890719f6785fb5bf389f638171 WHIRLPOOL e615857beedeb663193434eea5546d01dc37f9fe2ce47b5f07067089c958dc5a69d8da4d0f0d072aadbaa25dd7b32bd1696509290f283331682ea2e8176b9666 diff --git a/games-strategy/scorched3d/files/scorched3d-44-fix-c++14.patch b/games-strategy/scorched3d/files/scorched3d-44-fix-c++14.patch new file mode 100644 index 000000000000..e3cba2741405 --- /dev/null +++ b/games-strategy/scorched3d/files/scorched3d-44-fix-c++14.patch @@ -0,0 +1,14 @@ +In C++14, bool -> T* implicit conversions are not allowed anymore. +See also: https://bugs.gentoo.org/show_bug.cgi?id=601890 + +--- a/src/common/weapons/AccessoryStore.cpp ++++ b/src/common/weapons/AccessoryStore.cpp +@@ -156,7 +156,7 @@ + Accessory *parent, XMLNode *currentNode)
+ {
+ XMLNode *typeNode = 0;
+- if (!currentNode->getNamedParameter("type", typeNode)) return false;
++ if (!currentNode->getNamedParameter("type", typeNode)) return NULL;
+
+ AccessoryPart *accessoryPart =
+ AccessoryMetaRegistration::getNewAccessory(typeNode->getContent(), this);
diff --git a/games-strategy/scorched3d/files/scorched3d-44-fixups.patch b/games-strategy/scorched3d/files/scorched3d-44-fixups.patch new file mode 100644 index 000000000000..47499d4cf307 --- /dev/null +++ b/games-strategy/scorched3d/files/scorched3d-44-fixups.patch @@ -0,0 +1,25 @@ +--- scorched.orig/configure.ac ++++ scorched/configure.ac +@@ -13,22 +13,6 @@ + AC_PROG_INSTALL + AC_PROG_RANLIB + +-LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -L/usr/X11R6" +-CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include -I/usr/X11R6" +- +-if test `uname` == Darwin; then +-LDFLAGS="$LDFLAGS -lmx" +-CPPFLAGS="$CPPFLAGS -DFFTW_USE_DOUBLE -D__DARWIN__ -D__MACOSX__" +-else +-LDFLAGS="$LDFLAGS -L/usr/local/lib" +-CPPFLAGS="$CPPFLAGS -I/usr/local/include" +-fi +- +-AC_CHECK_LIB(fridge, beer, echo "Hmm?!",[ +- echo "Warning: No beer found in fridge!"; +- echo "We highly suggest that you rectify this situation immediately." +-]) +- + AC_ARG_ENABLE(serveronly, + [ --enable-serveronly Enable server only compilation], + , enable_serveronly=no, diff --git a/games-strategy/scorched3d/files/scorched3d-44-freetype.patch b/games-strategy/scorched3d/files/scorched3d-44-freetype.patch new file mode 100644 index 000000000000..e4717972d81a --- /dev/null +++ b/games-strategy/scorched3d/files/scorched3d-44-freetype.patch @@ -0,0 +1,45 @@ +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -437,7 +437,7 @@ + if test "$FT2_CONFIG" = "no" ; then + no_ft=yes + else +- FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags` ++ FT2_CFLAGS="`$FT2_CONFIG $ft_config_args --cflags` `$FT2_CONFIG $ft_config_args --cflags | sed -e 's:freetype2:freetype2/freetype:'`" + FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs` + ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` +--- a/src/client/GLEXT/GLFont2dFreeType.h ++++ b/src/client/GLEXT/GLFont2dFreeType.h +@@ -23,10 +23,10 @@ +
+ #include <GLEXT/GLFont2dStorage.h>
+ #include <ft2build.h>
+-#include <freetype/freetype.h>
+-#include <freetype/ftglyph.h>
+-#include <freetype/ftoutln.h>
+-#include <freetype/fttrigon.h>
++#include <freetype.h>
++#include <ftglyph.h>
++#include <ftoutln.h>
++#include <fttrigon.h>
+ #include <string>
+
+ class GLFont2dFreeType
+--- a/src/launcher/wxdialogs/TrueTypeFont.h ++++ b/src/launcher/wxdialogs/TrueTypeFont.h +@@ -25,10 +25,10 @@ + #include <wx/image.h>
+ #include <ft2build.h>
+ #include <string>
+-#include <freetype/freetype.h>
+-#include <freetype/ftglyph.h>
+-#include <freetype/ftoutln.h>
+-#include <freetype/fttrigon.h>
++#include <freetype.h>
++#include <ftglyph.h>
++#include <ftoutln.h>
++#include <fttrigon.h>
+
+ class TrueTypeFont
+ {
diff --git a/games-strategy/scorched3d/files/scorched3d-44-gcc43.patch b/games-strategy/scorched3d/files/scorched3d-44-gcc43.patch new file mode 100644 index 000000000000..79f40b70e652 --- /dev/null +++ b/games-strategy/scorched3d/files/scorched3d-44-gcc43.patch @@ -0,0 +1,22 @@ +--- scorched.old/src/common/common/main.h ++++ scorched/src/common/common/main.h +@@ -40,7 +40,7 @@ + void _no_storage()
+ {
+ printf("Failed to allocate memory!!");
+- std::exit(1);
++ exit(1);
+ }
+
+ void run_main(int argc, char *argv[], OptionsParameters ¶ms)
+--- scorched.old/src/common/porting/windows.h ++++ scorched/src/common/porting/windows.h +@@ -20,7 +20,7 @@ + typedef unsigned short WORD;
+ typedef unsigned char BYTE;
+
+-typedef int HWND;
++// typedef int HWND;
+ typedef void * HINSTANCE;
+ typedef int WPARAM;
+ typedef int LPARAM;
diff --git a/games-strategy/scorched3d/files/scorched3d-44-jpeg9.patch b/games-strategy/scorched3d/files/scorched3d-44-jpeg9.patch new file mode 100644 index 000000000000..1cebf3ebd7bc --- /dev/null +++ b/games-strategy/scorched3d/files/scorched3d-44-jpeg9.patch @@ -0,0 +1,20 @@ +--- a/src/common/image/ImageJpgFactory.cpp.old 2014-12-03 09:52:03.306552513 +0100 ++++ b/src/common/image/ImageJpgFactory.cpp 2014-12-03 09:53:22.117786304 +0100 +@@ -79,7 +79,7 @@ + src->next_input_byte = FakeEOI;
+ src->bytes_in_buffer = 2;
+
+- return TRUE;
++ return (boolean)TRUE;
+ }
+
+ METHODDEF(void)
+@@ -166,7 +166,7 @@ + src->bytes_in_buffer = buffer.getBufferUsed();
+ src->next_input_byte = (JOCTET *) buffer.getBuffer();
+
+- jpeg_read_header(&cinfo, TRUE);
++ jpeg_read_header(&cinfo, (boolean)TRUE);
+ jpeg_start_decompress(&cinfo);
+
+ if ((cinfo.output_components == 3 && !readalpha) ||
diff --git a/games-strategy/scorched3d/files/scorched3d-44-odbc.patch b/games-strategy/scorched3d/files/scorched3d-44-odbc.patch new file mode 100644 index 000000000000..e7f3833bf897 --- /dev/null +++ b/games-strategy/scorched3d/files/scorched3d-44-odbc.patch @@ -0,0 +1,16 @@ +When x11-libs/wxGTK is built with the odbc use flag, scorched3d fails to build. +bug #285384 - patch from Bob Johnson + +--- scorched/src/common/porting/windows.h ++++ fix_scorched/src/common/porting/windows.h +@@ -11,8 +11,8 @@ +
+ typedef char * LPSTR;
+ typedef const char * LPCTSTR;
+-typedef unsigned int DWORD;
+-typedef unsigned int * LPDWORD;
++typedef unsigned long DWORD;
++typedef DWORD * LPDWORD;
+ typedef unsigned char * LPBYTE;
+ typedef int INT;
+ typedef long LONG;
diff --git a/games-strategy/scorched3d/files/scorched3d-44-win32.patch b/games-strategy/scorched3d/files/scorched3d-44-win32.patch new file mode 100644 index 000000000000..05f9c806b1c7 --- /dev/null +++ b/games-strategy/scorched3d/files/scorched3d-44-win32.patch @@ -0,0 +1,18 @@ +--- scorched.old/src/common/porting/windows.h ++++ scorched/src/common/porting/windows.h +@@ -9,6 +9,7 @@ + #include <ctype.h>
+ #include <common/Defines.h>
+
++#ifdef _WIN32
+ typedef char * LPSTR;
+ typedef const char * LPCTSTR;
+ typedef unsigned int DWORD;
+@@ -27,6 +28,7 @@ + typedef int LRESULT;
+ typedef void * HDC;
+ typedef void * HGLRC;
++#endif /* _WIN32 */
+
+ #define _strnicmp(a,b,c) strncasecmp(a,b,c)
+ #define stricmp(a,b) strcasecmp(a,b)
diff --git a/games-strategy/scorched3d/files/scorched3d-44-wxgtk.patch b/games-strategy/scorched3d/files/scorched3d-44-wxgtk.patch new file mode 100644 index 000000000000..ee8b97554656 --- /dev/null +++ b/games-strategy/scorched3d/files/scorched3d-44-wxgtk.patch @@ -0,0 +1,161 @@ +Description: Fix to build with wxWidgets 3.0 +Author: Olly Betts <olly@survex.com> +Last-Update: 2014-05-01 + +--- a/src/launcher/wxdialogs/Display.cpp ++++ b/src/launcher/wxdialogs/Display.cpp +@@ -26,7 +26,7 @@ + // Display settings + wxStaticBox *displayBox = new wxStaticBox(parent, -1, wxT("&Display")); + wxStaticBoxSizer *displaySizer = new wxStaticBoxSizer(displayBox, wxVERTICAL); +- wxFlexGridSizer *displaySizer2 = new wxFlexGridSizer(2, 3, 5, 5); ++ wxFlexGridSizer *displaySizer2 = new wxFlexGridSizer(0, 3, 5, 5); + wxStaticText *resText = new wxStaticText(parent, -1, wxT("&Resolution :")); + IDC_DISPLAY_CTRL = + new wxComboBox(parent, -1, +@@ -88,7 +88,7 @@ + // Sound settings + wxStaticBox *soundBox = new wxStaticBox(parent, -1, wxT("&Sound")); + wxStaticBoxSizer *soundSizerMain = new wxStaticBoxSizer(soundBox, wxVERTICAL); +- wxFlexGridSizer *soundSizer1 = new wxFlexGridSizer(4, 2); ++ wxFlexGridSizer *soundSizer1 = new wxFlexGridSizer(0, 4, 2, 0); + wxStaticText *volumeText = new wxStaticText(parent, -1, wxT("Sound Volume :")); + wxStaticText *musicVolumeText = new wxStaticText(parent, -1, wxT("Music Volume :")); + wxStaticText *ambientVolumeText = new wxStaticText(parent, -1, wxT("Ambient Volume :")); +@@ -137,7 +137,7 @@ + wxT("Game Detail Options")); + wxStaticBoxSizer *speedSizer = new wxStaticBoxSizer(speedBox, wxHORIZONTAL); + +- wxGridSizer *loadSizer = new wxFlexGridSizer(2, 2); ++ wxGridSizer *loadSizer = new wxFlexGridSizer(0, 2, 2, 0); + IDC_LOADULTRA_CTRL = new wxButton(parent, ID_LOADULTRA, wxT("&Ultra Detail"), wxDefaultPosition, wxSize(120,-1)); + IDC_LOADDEFAULTS_CTRL = new wxButton(parent, ID_LOADDEFAULTS, wxT("&Normal Detail"), wxDefaultPosition, wxSize(120,-1)); + IDC_LOADMEDIUM_CTRL = new wxButton(parent, ID_LOADMEDIUM, wxT("Faster Detail"), wxDefaultPosition, wxSize(120,-1)); +@@ -256,7 +256,7 @@ + wxStaticBox *waterDetailBox = new wxStaticBox(parent, -1, + wxT("Graphics Detail")); + wxStaticBoxSizer *waterDetailSizer = new wxStaticBoxSizer(waterDetailBox, wxHORIZONTAL); +- wxGridSizer *waterDetailSizer2 = new wxGridSizer(3, 1, 10, 10); ++ wxGridSizer *waterDetailSizer2 = new wxGridSizer(0, 1, 10, 10); + + IDC_NOWATERREF_CTRL = + new wxCheckBox(parent, -1, wxT("Don't draw water reflections - Large Framerate Improvement")); +@@ -471,7 +471,7 @@ + { + wxScrolledWindow *scrolledWindow = new wxScrolledWindow(parent, -1, + wxDefaultPosition, wxSize(480, 250)); +- wxSizer *sizer = new wxFlexGridSizer(5, 1); ++ wxSizer *sizer = new wxFlexGridSizer(0, 5, 1, 0); + + keyboardKeyList.clear(); + if (!Keyboard::instance()->loadKeyFile()) +--- a/src/launcher/wxdialogs/SettingsDialog.cpp ++++ b/src/launcher/wxdialogs/SettingsDialog.cpp +@@ -105,7 +105,7 @@ + mainPanel_ = new wxPanel(book_, -1); + book_->AddPage(mainPanel_, wxT("Main")); + wxSizer *mainPanelSizer = new wxBoxSizer(wxVERTICAL); +- wxSizer *sizer = new wxFlexGridSizer(2, 2); ++ wxSizer *sizer = new wxFlexGridSizer(0, 2, 2, 0); + mainPanelSizer->Add(sizer, 0, wxALL | wxALIGN_CENTER, 10); + + setters_.push_back( +@@ -166,7 +166,7 @@ + { + moneyPanel_ = new wxPanel(book_, -1); + wxSizer *ecoPanelSizer = new wxBoxSizer(wxVERTICAL); +- wxSizer *sizer = new wxFlexGridSizer(2, 2); ++ wxSizer *sizer = new wxFlexGridSizer(0, 2, 2, 0); + ecoPanelSizer->Add(sizer, 0, wxALL | wxALIGN_CENTER, 10); + + setters_.push_back( +@@ -215,7 +215,7 @@ + { + scorePanel_ = new wxPanel(book_, -1); + wxSizer *ecoPanelSizer = new wxBoxSizer(wxVERTICAL); +- wxSizer *sizer = new wxFlexGridSizer(2, 2); ++ wxSizer *sizer = new wxFlexGridSizer(0, 2, 2, 0); + ecoPanelSizer->Add(sizer, 0, wxALL | wxALIGN_CENTER, 10); + + setters_.push_back( +@@ -249,7 +249,7 @@ + { + weaponsPanel_ = new wxPanel(book_, -1); + wxSizer *ecoPanelSizer = new wxBoxSizer(wxVERTICAL); +- wxSizer *sizer = new wxFlexGridSizer(2, 2); ++ wxSizer *sizer = new wxFlexGridSizer(0, 2, 2, 0); + ecoPanelSizer->Add(sizer, 0, wxALL | wxALIGN_CENTER, 10); + + setters_.push_back( +@@ -286,7 +286,7 @@ + { + envPanel_ = new wxPanel(book_, -1); + wxSizer *envPanelSizer = new wxBoxSizer(wxVERTICAL); +- wxSizer *sizer = new wxFlexGridSizer(2, 2); ++ wxSizer *sizer = new wxFlexGridSizer(0, 2, 2, 0); + envPanelSizer->Add(sizer, 0, wxALL | wxALIGN_CENTER, 10); + + setters_.push_back( +@@ -337,7 +337,7 @@ + wxScrolledWindow *scrolledWindow = new wxScrolledWindow(landPanel_, -1, + wxDefaultPosition, wxSize(225, 200)); + +- wxSizer *sizer = new wxFlexGridSizer(3, 3); ++ wxSizer *sizer = new wxFlexGridSizer(0, 3, 3, 0); + int i = 0; + std::list<LandscapeDefinitionsEntry> &defns = + landscapeDefinitions.getAllLandscapes(); +@@ -438,7 +438,7 @@ + wxT("Players are persistent for game")); + playersPanelSizer->Add(IDC_SERVER_RESIDUAL_CTRL, 0, wxALIGN_CENTER | wxTOP, 10); + +- wxSizer *sizer = new wxGridSizer(3, 3); ++ wxSizer *sizer = new wxGridSizer(0, 3, 3, 0); + playersPanelSizer->Add(sizer, 0, wxALL | wxALIGN_CENTER, 10); + + for (int i=0; i<24; i++) +--- a/src/launcher/wxdialogs/DisplayDialog.cpp ++++ b/src/launcher/wxdialogs/DisplayDialog.cpp +@@ -449,15 +449,15 @@ + IDC_SLIDER1_CTRL->SetValue(OptionsDisplay::instance()->getBrightness()); + IDC_SLIDER1_CTRL->SetToolTip(wxString(OptionsDisplay::instance()->getBrightnessEntry().getDescription(), wxConvUTF8)); + IDC_VOLUME_CTRL->SetRange(0, 128); +- IDC_VOLUME_CTRL->SetTickFreq(4, 0); ++ IDC_VOLUME_CTRL->SetTickFreq(4); + IDC_VOLUME_CTRL->SetValue(OptionsDisplay::instance()->getSoundVolume()); + IDC_VOLUME_CTRL->SetToolTip(wxString(OptionsDisplay::instance()->getSoundVolumeEntry().getDescription(), wxConvUTF8)); + IDC_MUSICVOLUME_CTRL->SetRange(0, 128); +- IDC_MUSICVOLUME_CTRL->SetTickFreq(4, 0); ++ IDC_MUSICVOLUME_CTRL->SetTickFreq(4); + IDC_MUSICVOLUME_CTRL->SetValue(OptionsDisplay::instance()->getMusicVolume()); + IDC_MUSICVOLUME_CTRL->SetToolTip(wxString(OptionsDisplay::instance()->getMusicVolumeEntry().getDescription(), wxConvUTF8)); + IDC_AMBIENTVOLUME_CTRL->SetRange(0, 128); +- IDC_AMBIENTVOLUME_CTRL->SetTickFreq(4, 0); ++ IDC_AMBIENTVOLUME_CTRL->SetTickFreq(4); + IDC_AMBIENTVOLUME_CTRL->SetValue(OptionsDisplay::instance()->getAmbientSoundVolume()); + IDC_AMBIENTVOLUME_CTRL->SetToolTip(wxString(OptionsDisplay::instance()->getAmbientSoundVolumeEntry().getDescription(), wxConvUTF8)); + IDC_USERNAME_CTRL->SetValue(wxString(OptionsDisplay::instance()->getOnlineUserName(), wxConvUTF8)); +@@ -733,11 +733,7 @@ + convertString(S3D::formatStringBuffer("%s.s3m", (const char *) (selection.mb_str(wxConvUTF8)))), // default filename + wxT(""), // default extension + wxT("*.s3m"), +-#if wxCHECK_VERSION(2, 8, 0) + wxFD_SAVE); +-#else +- wxSAVE); +-#endif + if (file.empty()) return; + ModFiles files; + if (!files.loadModFiles(std::string(selection.mb_str(wxConvUTF8)), false)) +@@ -761,11 +757,7 @@ + wxT(""), // default filename + wxT(""), // default extension + wxT("*.s3m"), +-#if wxCHECK_VERSION(2, 8, 0) + wxFD_OPEN | wxFD_FILE_MUST_EXIST); +-#else +- wxOPEN | wxFILE_MUST_EXIST); +-#endif + if (file.empty()) return; + ModFiles files; + std::string mod; diff --git a/games-strategy/scorched3d/metadata.xml b/games-strategy/scorched3d/metadata.xml new file mode 100644 index 000000000000..bad136330d96 --- /dev/null +++ b/games-strategy/scorched3d/metadata.xml @@ -0,0 +1,11 @@ +<?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">scorched3d</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/scorched3d/scorched3d-44-r1.ebuild b/games-strategy/scorched3d/scorched3d-44-r1.ebuild new file mode 100644 index 000000000000..eb5af707e189 --- /dev/null +++ b/games-strategy/scorched3d/scorched3d-44-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +WX_GTK_VER=3.0 +inherit autotools eutils wxwidgets games + +DESCRIPTION="Multi-player tank battle in 3D (OpenGL)" +HOMEPAGE="http://www.scorched3d.co.uk/" +SRC_URI="mirror://sourceforge/scorched3d/Scorched3D-${PV}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc64 x86" +IUSE="dedicated mysql" + +RDEPEND="media-libs/libsdl[video] + media-libs/sdl-net + media-libs/libpng:0 + sys-libs/zlib + virtual/jpeg:0 + dev-libs/expat + media-fonts/dejavu + !dedicated? ( + virtual/opengl + virtual/glu + media-libs/glew + media-libs/libogg + media-libs/libvorbis + media-libs/openal + media-libs/freealut + x11-libs/wxGTK:${WX_GTK_VER}[X] + media-libs/freetype:2 + sci-libs/fftw:3.0 + ) + mysql? ( virtual/mysql )" +DEPEND="${RDEPEND} + !dedicated? ( virtual/pkgconfig )" + +S=${WORKDIR}/scorched + +src_prepare() { + edos2unix \ + src/launcher/wxdialogs/SettingsDialog.cpp \ + src/launcher/wxdialogs/DisplayDialog.cpp \ + src/launcher/wxdialogs/Display.cpp \ + src/launcher/wxdialogs/KeyDialog.cpp + epatch \ + "${FILESDIR}"/${P}-fixups.patch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-odbc.patch \ + "${FILESDIR}"/${P}-win32.patch \ + "${FILESDIR}"/${P}-freetype.patch \ + "${FILESDIR}"/${P}-jpeg9.patch \ + "${FILESDIR}"/${P}-wxgtk.patch + eautoreconf +} + +src_configure() { + egamesconf \ + --with-fftw=/usr \ + --with-ogg=/usr \ + --with-vorbis=/usr \ + --datadir="${GAMES_DATADIR}/${PN}" \ + --with-docdir="/usr/share/doc/${PF}" \ + --with-wx-config="${WX_CONFIG}" \ + --without-pgsql \ + $(use_with mysql) \ + $(use_enable dedicated serveronly) +} + +src_install() { + default + rm "${ED}${GAMES_DATADIR}"/${PN}/data/fonts/* || die + dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}/${PN}/data/fonts/dejavusans.ttf" + dosym /usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf "${GAMES_DATADIR}/${PN}/data/fonts/dejavusconbd.ttf" + dosym /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf "${GAMES_DATADIR}/${PN}/data/fonts/dejavusmobd.ttf" + if ! use dedicated ; then + newicon data/images/tank-old.bmp ${PN}.bmp || die + make_desktop_entry ${PN} "Scorched 3D" /usr/share/pixmaps/${PN}.bmp + fi + prepgamesdirs +} diff --git a/games-strategy/scorched3d/scorched3d-44-r2.ebuild b/games-strategy/scorched3d/scorched3d-44-r2.ebuild new file mode 100644 index 000000000000..e156ff902fda --- /dev/null +++ b/games-strategy/scorched3d/scorched3d-44-r2.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +WX_GTK_VER=3.0 + +inherit autotools eutils wxwidgets + +DESCRIPTION="Multi-player tank battle in 3D (OpenGL)" +HOMEPAGE="http://www.scorched3d.co.uk/" +SRC_URI="mirror://sourceforge/scorched3d/Scorched3D-${PV}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="dedicated mysql" + +RDEPEND=" + dev-libs/expat + media-fonts/dejavu + media-libs/libpng:0= + media-libs/libsdl[video] + media-libs/sdl-net + sys-libs/zlib + virtual/jpeg:0 + !dedicated? ( + virtual/opengl + virtual/glu + media-libs/glew:0= + media-libs/libogg + media-libs/libvorbis + media-libs/openal + media-libs/freealut + x11-libs/wxGTK:${WX_GTK_VER}[X] + media-libs/freetype:2 + sci-libs/fftw:3.0= + ) + mysql? ( virtual/mysql )" +DEPEND="${RDEPEND} + !dedicated? ( virtual/pkgconfig )" + +S=${WORKDIR}/scorched + +PATCHES=( + "${FILESDIR}"/${P}-fixups.patch + "${FILESDIR}"/${P}-gcc43.patch + "${FILESDIR}"/${P}-odbc.patch + "${FILESDIR}"/${P}-win32.patch + "${FILESDIR}"/${P}-freetype.patch + "${FILESDIR}"/${P}-jpeg9.patch + "${FILESDIR}"/${P}-wxgtk.patch + "${FILESDIR}"/${P}-fix-c++14.patch +) + +pkg_setup() { + setup-wxwidgets +} + +src_prepare() { + edos2unix \ + src/launcher/wxdialogs/SettingsDialog.cpp \ + src/launcher/wxdialogs/DisplayDialog.cpp \ + src/launcher/wxdialogs/Display.cpp \ + src/launcher/wxdialogs/KeyDialog.cpp + default + eautoreconf +} + +src_configure() { + econf \ + --datadir="${EPREFIX}"/usr/share/${PN} \ + --with-fftw="${EPREFIX}"/usr \ + --with-ogg="${EPREFIX}"/usr \ + --with-vorbis="${EPREFIX}"/usr \ + --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --with-wx-config="${WX_CONFIG}" \ + --without-pgsql \ + $(use_with mysql) \ + $(use_enable dedicated serveronly) +} + +src_install() { + default + + # remove bundled fonts + rm "${ED%/}"/usr/share/${PN}/data/fonts/* || die + dosym /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/${PN}/data/fonts/dejavusans.ttf + dosym /usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf /usr/share/${PN}/data/fonts/dejavusconbd.ttf + dosym /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf /usr/share/${PN}/data/fonts/dejavusmobd.ttf + + if ! use dedicated; then + newicon data/images/tank-old.bmp ${PN}.bmp + make_desktop_entry ${PN} "Scorched 3D" /usr/share/pixmaps/${PN}.bmp + fi +} diff --git a/games-strategy/seven-kingdoms/Manifest b/games-strategy/seven-kingdoms/Manifest new file mode 100644 index 000000000000..14a2854ad89e --- /dev/null +++ b/games-strategy/seven-kingdoms/Manifest @@ -0,0 +1,10 @@ +DIST 7kaa-2.14.5.tar.xz 31223408 SHA256 c7f04fa640d324ed8f1523da49945acd0f1ee2a99e3ee82ee29b52d2f735e464 SHA512 cd797e63ba377d1f7b3e37cd775afd381ad015baf90bdfe00bc3f8741f745548b8abdd61e4b334e9fa54a5c04b48493ba8a90fbebef3f977517f12563d1efddd WHIRLPOOL 0a786e9657568349579fa7ce2fe907942ffbcec1e03eb07b22a3ede915005a57389957960971df9680f7f8cb1a0b281e9da289500b9bf1e5c3e414aa60769451 +DIST 7kaa-2.14.7.tar.xz 31342092 SHA256 9425cfb7f11a915e82d4696649db35a4d53969a9479a4705b403206df462e543 SHA512 5c2067a842af18f2eaa21267ee0c48064eecfc6b967eb2abf967f2bf782a9699186b038d87de03fad71b5d88ec9fc1cfddd7521cb90c255a3a8d2aa586d3f2c1 WHIRLPOOL 89feb88acfa19e93a1d2e3820f1fe0d20c8225acff22d444616bd55e6c8ad214f7f6b3e3b830803c3c9c3cafa778da8b9adcbc937ef4f7db9dc36577011aa9b1 +DIST 7kaa-source-2.14.4.tar.bz2 27366752 SHA256 60b61f321db6c295330fb3fb21894bc41cb6e0bd797aff9abe45cf2392b49fa1 SHA512 7ee39aba89993d9f0041ab991e053069e0c3ab4298f74c0ec95e3f30f49a71731ef37d8870b1ab9afd97b1c4618a879492976006b8a513bfc4bc44dfac591bf0 WHIRLPOOL 4568d36278d4a286e0395b79ec06c03905b5e69be827faa80f4808c8b8fa097a65ac69ee5c58020dfcf21aa00649eaab2a3ac87a636b680167b4c83b3d3e5f73 +DIST 7kaa.png 559 SHA256 354f64479b55df2021ca67366abb4724218ca3676fde9e735bfb2218bc1559f4 SHA512 0ec1ba67107a7823943704879efaf12297c5441c43b54f49684550927b10dc40c657fe93eb7c4cc85208d08194f179c9602fd8df6545776f3e1b4481803b16e6 WHIRLPOOL cb896939453d8ed6fc425931bb1f5b74c62aeea67e71e4645fe79fc69fb13fae89d4959651fd95dcbb416c378b4ef44873dc6ebdabc1f2bb1fed3753332209da +EBUILD seven-kingdoms-2.14.4.ebuild 1415 SHA256 10b67bd2faf334a3797b196563dbe51fc689f05fca45f5273f7f164a2cd425a5 SHA512 c5d8ed264a9e8e200fae0160f55f560e38e9b9f4118b1fb14a09dfa5c618f60b450568bf5d507c41542a6b4d9ad9123f14f961df19b0b300de573a19ef9caea0 WHIRLPOOL 6fcbbed8560e4f60f377625100c126280a9b107dae9a6f40d554509518cfa370ec9f0c64815bf7582c092c84589701e60860327b7c7c85b7ba6dbeaa1b1a4c96 +EBUILD seven-kingdoms-2.14.5.ebuild 1164 SHA256 b82845942a84a5b5aa175fcd3a899351d576aae6fc5cff02cacb1e0aa49d9203 SHA512 e3d8fd6b4c67a4d9f7b9e6ed01ca3d49bf810aaf96ed9034564380e0767cfc7738751b26dc7b962e9a0d5098e48d4d602367cd0eb7e31cc70c4a480e4ee29ed8 WHIRLPOOL a879d4e13efb54e03cb95f43e590932872af00cdbd00edf5250807bde4eff283074917567a72e53d6bbe9a40bf3359201460fbde7d4247f4bbbc40ecda7a4811 +EBUILD seven-kingdoms-2.14.7.ebuild 785 SHA256 976b7b37b786b65627658852601bd7ad19a772794d00b6d2c008e25593b7cb77 SHA512 ab225fa354d71af874605773b4a1eb0cccbbcf0f03169342eb202c7fb6ddaa51ffe29fa4618a888a60eaa75a8be4e33d46f32f880edc769d0ada40f4c3cdf073 WHIRLPOOL 6dc40baaff6f70bfadc59b7519939b27ab2d1e037bbd111c02fbc95127827abdf527d69980475e69332c2d3106065a50382245d4d5291d4aafdaf1429b20c57c +MISC ChangeLog 2335 SHA256 932baabc69b15864cf08348a1645f42cab4b21f5cdabbb558e019ddbab9c6c2c SHA512 532bced276f40ab4061912c4e3788c926382a35110b9b7d2f9dc0b3ed84bd57931bb21e7ccf20b19ad61f9b8eba27224389576b0b8adfddf4b4ce46b07e84ae0 WHIRLPOOL 2a7102d355c55fde0edbe30f99e060bcddd2fbb14e2110f37b87ae51defb284492b7d6b0e1c4f2699718bb065d51294d82bc3c9a923a65e35cbbb7600f8a35e2 +MISC ChangeLog-2015 1920 SHA256 67b2b2d55b77f7e6f04b79a8179372d6f40567097f998fa214dcb59aa785502a SHA512 977907104020f4eb401b5473a8f94e798653aafd561195015e84ac9e3e85955446168652262dba8a46bbb421473789c0996ca4547edf35faa2cccddcf0f2dff4 WHIRLPOOL 7bed9fcedc54f313de443204afa47bc92819f72a5879de4e4a6f8ef107a0e792234c0a90627d0388cdc9ae83c9fbdffdf779a63cca687633765f49c13796a391 +MISC metadata.xml 433 SHA256 b1bf176eefcd8435ab3ac9322c93af65c3417931f76439ab0b10bb2dc860e838 SHA512 5f83ff52f28bcd4ea5e54556ab408ef1a635ce20cec2b56a1424697309d97f4a6402f6c8d5c5b194017487c00ec2eeeb215a3e1e538914afb9a3ae94e390140b WHIRLPOOL 8ce37106a8fd1b2e17f1a61d29e13e464e018531e08a93659ba63f70b6408864e38a71b7301c8c55f1bc500ed77d519a874994a34c7d7442f6a6ecd60f0c29d4 diff --git a/games-strategy/seven-kingdoms/metadata.xml b/games-strategy/seven-kingdoms/metadata.xml new file mode 100644 index 000000000000..2010db746631 --- /dev/null +++ b/games-strategy/seven-kingdoms/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> + <use> + <flag name="network">Enable support for multiplayer via <pkg>media-libs/sdl-net</pkg></flag> + </use> + <upstream> + <remote-id type="sourceforge">skfans</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/seven-kingdoms/seven-kingdoms-2.14.4.ebuild b/games-strategy/seven-kingdoms/seven-kingdoms-2.14.4.ebuild new file mode 100644 index 000000000000..b82832b94681 --- /dev/null +++ b/games-strategy/seven-kingdoms/seven-kingdoms-2.14.4.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit autotools-utils games + +MY_PN="7kaa" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Seven Kingdoms: Ancient Adversaries" +HOMEPAGE="http://7kfans.com/" +SRC_URI="mirror://sourceforge/skfans/${MY_PN}-source-${PV}.tar.bz2 + https://dev.gentoo.org/~pinkbyte/distfiles/${MY_PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="network" + +DEPEND="media-libs/libsdl[X,video] + media-libs/openal + network? ( media-libs/sdl-net ) + !games-strategy/seven-kingdoms-data" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +DOCS=( README ) + +src_prepare() { + sed -i -e '/#include <player_desc.h>/a\#include <string.h>' src/multiplayer/common/player_desc.cpp || die 'sed failed' + + autotools-utils_src_prepare +} + +src_configure() { + # In current state debugging works only on Windows :-/ + egamesconf \ + $(use_enable network) \ + --disable-debug \ + --without-directx \ + --without-wine \ + --datadir="${GAMES_DATADIR}/${MY_PN}" +} + +src_install() { + autotools-utils_src_install + + newgamesbin "src/client/${MY_PN}" "${MY_PN}.bin" + doicon "${DISTDIR}/${MY_PN}.png" + games_make_wrapper "${MY_PN}" "${GAMES_BINDIR}/${MY_PN}.bin" "${GAMES_DATADIR}/${MY_PN}" + make_desktop_entry "${MY_PN}" "Seven Kingdoms: Ancient Adversaries" "${MY_PN}" "Game;StrategyGame" + + prepgamesdirs +} diff --git a/games-strategy/seven-kingdoms/seven-kingdoms-2.14.5.ebuild b/games-strategy/seven-kingdoms/seven-kingdoms-2.14.5.ebuild new file mode 100644 index 000000000000..1f8f9a54ed10 --- /dev/null +++ b/games-strategy/seven-kingdoms/seven-kingdoms-2.14.5.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils games + +MY_PN="7kaa" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Seven Kingdoms: Ancient Adversaries" +HOMEPAGE="http://7kfans.com/" +SRC_URI="mirror://sourceforge/skfans/${MY_PN}-${PV}.tar.xz + https://dev.gentoo.org/~pinkbyte/distfiles/${MY_PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="net-libs/enet:1.3= + media-libs/libsdl2[X,video] + media-libs/openal + !games-strategy/seven-kingdoms-data" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +DOCS=( README ) + +src_unpack() { + unpack ${MY_PN}-${PV}.tar.xz +} + +src_prepare() { + epatch_user +} + +src_configure() { + # In current state debugging works only on Windows :-/ + egamesconf \ + --disable-debug \ + --without-wine \ + --datadir="${GAMES_DATADIR}/${MY_PN}" +} + +src_install() { + default + + newgamesbin "src/client/${MY_PN}" "${MY_PN}.bin" + doicon "${DISTDIR}/${MY_PN}.png" + games_make_wrapper "${MY_PN}" "${GAMES_BINDIR}/${MY_PN}.bin" "${GAMES_DATADIR}/${MY_PN}" + make_desktop_entry "${MY_PN}" "Seven Kingdoms: Ancient Adversaries" "${MY_PN}" "Game;StrategyGame" + + prepgamesdirs +} diff --git a/games-strategy/seven-kingdoms/seven-kingdoms-2.14.7.ebuild b/games-strategy/seven-kingdoms/seven-kingdoms-2.14.7.ebuild new file mode 100644 index 000000000000..012fe8f1bc68 --- /dev/null +++ b/games-strategy/seven-kingdoms/seven-kingdoms-2.14.7.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +MY_PN="7kaa" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Seven Kingdoms: Ancient Adversaries" +HOMEPAGE="https://7kfans.com/" +SRC_URI="https://github.com/the3dfxdude/${MY_PN}/releases/download/v${PV}/${MY_P}.tar.xz + https://dev.gentoo.org/~pinkbyte/distfiles/${MY_PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="net-libs/enet:1.3= + media-libs/libsdl2[X,video] + media-libs/openal + net-misc/curl" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${MY_P}.tar.xz +} + +src_install() { + default + + doicon "${DISTDIR}/${MY_PN}.png" + make_desktop_entry "${MY_PN}" "Seven Kingdoms: Ancient Adversaries" "${MY_PN}" "Game;StrategyGame" +} diff --git a/games-strategy/smac/Manifest b/games-strategy/smac/Manifest new file mode 100644 index 000000000000..e719af1d0c50 --- /dev/null +++ b/games-strategy/smac/Manifest @@ -0,0 +1,6 @@ +DIST smac-6.0a-x86.run 6801730 SHA256 69b845728f55caef038c6392f148beae47156933f5bff0ce7d9c49162f1d0ee7 SHA512 b71dd1ee46d37d66131cf6fc15c6a406719989021c8dbb6e74cded18c5520ee9ba4bbdfc5bdfc0ddfa67fa2e846365636be41d87a6440473e8ae5ebf542b7744 WHIRLPOOL 24ac3d1f79a38407b0d21287055a0ab37888ce06f424e95a4be98a78ddd003301b6a00d8ba967da802a78ae025a4f4f00ad7565745fc679997b88bca9b46aa8f +DIST smac-install-ppc.run 18528928 SHA256 ad90f6fa4fa3bfe39f5474016ea6a0c738687fc038995bcd7675294c0438477c SHA512 99fc6edca2c9e64bfc0cab644cbd061c3842359c16e5e6537a2aa2df4cd2a1a6a39169a2b9540199b08f7aee28f4e2cfad814499fdd55b5edf7ab9b19c12d793 WHIRLPOOL df1068532845e5c7be68cf84122a7b90ba3fcd5e89442cff76143eccb35012861980a0cb4bc79948f73b0e2821aa3a8e0673cc2bde7065a2f4d4e895ba4a0ab1 +EBUILD smac-6.0a.ebuild 3069 SHA256 86d9cc0fa1ec28375f1e60f63c1f680f1c4cd588c3f99cb00b48eb02b17d5242 SHA512 031b661c3fc11be4c3474fc7c752ca15332b982e527f61560763c5a3592369262e5ce76157f61f00a635b22b0d0be489732183ae5ceb42a09fda004ecb5d315b WHIRLPOOL 01ae089f2dfd09980321cd3360e063bec4201f8d4cae5aceecf17034cacdf2173489239abb6839e02fae812bc6dea0416a44e9209c2381a3190db9ba649036a3 +MISC ChangeLog 2422 SHA256 4624d2dd1ad6762bb74511e57e9c230fdecd5401b41d45e437a396be90ebce7e SHA512 7fb9b488f3a667917682b11ea1a72d1614acd3ed8bd1395208f24ea0b4ed4ea718a86a4d9ffe35ebcc2753f36f4b24dc458fc72259c3d0f525b39b13f1896e5d WHIRLPOOL 08d5299e4dbe1a987a73984a7b1c4e49d6ca44d02a4c34c97c39b9e569c7745957269797199dfa56e6c05aa2eb211fbb99ea67156a2bb8543e0e7e816a1f7774 +MISC ChangeLog-2015 2892 SHA256 b0157985e2ff4e7fb2eafcdf11edffb4e2942bee03207296e89f42ae44b46a68 SHA512 af2a514660e105fcd6cf61b6647e3bdee13b81fcb91321d180832d826f20f8c17b3ef984d70815cdb2c85ee2f94b0174dd2aceda381536ef471821ea4f51b9de WHIRLPOOL 530e992a1ca7e55567da5a605a39e18936eb5add39c45ffcd3b6fd787d48843ab358101d392d2c5a77dffda8fe64a0cfe1ecdae2feae7fa8f684f96fce3ef463 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/smac/metadata.xml b/games-strategy/smac/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/smac/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/smac/smac-6.0a.ebuild b/games-strategy/smac/smac-6.0a.ebuild new file mode 100644 index 000000000000..e6aff2ef3a12 --- /dev/null +++ b/games-strategy/smac/smac-6.0a.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils unpacker cdrom games + +DESCRIPTION="Linux port of the popular strategy game from Firaxis" +HOMEPAGE="http://www.lokigames.com/products/smac/" +SRC_URI="x86? ( mirror://lokigames/${PN}/${P}-x86.run ) + amd64? ( mirror://lokigames/${PN}/${P}-x86.run ) + ppc? ( http://mirrors.dotsrc.org/lokigames/installers/${PN}/${PN}-install-ppc.run )" + +LICENSE="LOKI-EULA" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+videos" +RESTRICT="strip" + +DEPEND="games-util/loki_patch" +RDEPEND="sys-libs/glibc + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXau + x11-libs/libXdmcp + !ppc? ( sys-libs/lib-compat-loki ) + media-libs/libsdl[sound,video] + media-libs/sdl-ttf + media-libs/sdl-mixer + media-libs/smpeg + media-libs/freetype + sys-libs/zlib" + +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +src_unpack() { + cdrom_get_cds Alien_Crossfire_Manual.pdf + mkdir -p "${S}"/a + cd "${S}"/a + use x86 || use amd64 && unpack_makeself ${P}-x86.run + use ppc && unpack_makeself ${PN}-install-ppc.run +} + +src_install() { + einfo "Copying files... this may take a while..." + exeinto "${dir}" + doexe "${CDROM_ROOT}"/bin/x86/{smac,smacx,smacpack} + + insinto "${dir}" + doins ${CDROM_ROOT}/{{Alien_Crossfire,Alpha_Centauri}_Manual.pdf,QuickStart.txt,README,icon.{bmp,xpm}} + + cd "${Ddir}" + tar xzf "${CDROM_ROOT}"/data.tar.gz || die + insinto "${dir}"/data + doins "${CDROM_ROOT}"/data/*.{pcx,cvr,flc,gif} + doins -r "${CDROM_ROOT}"/data/{facs,fx,projs,techs,voices} + + if use videos ; then + doins -r "${CDROM_ROOT}"/data/movies + fi + + cd "${S}"/a + if use ppc ; then + cd ${P}-ppc + fi + loki_patch --verify patch.dat + loki_patch patch.dat "${Ddir}" >& /dev/null || die + + # now, since these files are coming off a cd, the times/sizes/md5sums wont + # be different ... that means portage will try to unmerge some files (!) + # we run touch on ${D} so as to make sure portage doesnt do any such thing + find "${Ddir}" -exec touch '{}' + + + newicon "${CDROM_ROOT}"/icon.xpm smac.xpm + + games_make_wrapper ${PN}pack ./${PN}pack "${dir}" "${dir}" + games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}" + games_make_wrapper ${PN}x ./${PN}x "${dir}" "${dir}" + make_desktop_entry smacpack "Sid Meier's SMAC Planetary Pack" smacpack + make_desktop_entry smac "Sid Meier's Alpha Centauri" smac + make_desktop_entry smacx "Sid Meier's Alpha Centauri - Alien Crossfire" smac + prepgamesdirs + + if use x86 || use amd64 ; then + einfo "Linking libs provided by 'sys-libs/lib-compat-loki' to '${dir}'." + dosym /lib/loki_ld-linux.so.2 "${dir}"/ld-linux.so.2 && \ + dosym /usr/lib/loki_libc.so.6 "${dir}"/libc.so.6 && \ + dosym /usr/lib/loki_libnss_files.so.2 "${dir}"/libnss_files.so.2 + fi +} + +pkg_postinst() { + games_pkg_postinst + elog "To start Sid Meyer's SMAC Planetary Pack run:" + elog " smac" + elog "To play Sid Meyer's Alpha Centauri run:" + elog " smac" + elog "To play Alien Crossfire run:" + elog " smacx" + elog "Be sure to enable CONFIG_UID16 in your kernel config or" + elog "the game will error." # bug 340303 +} diff --git a/games-strategy/spaz/Manifest b/games-strategy/spaz/Manifest new file mode 100644 index 000000000000..852a195ed29c --- /dev/null +++ b/games-strategy/spaz/Manifest @@ -0,0 +1,5 @@ +DIST spaz-linux-humblebundle-09182012-bin 157466422 SHA256 b143b8e0b09baec1f5c9f02daada9f1125bbd0109f0878e3b00b14657a4fb7cd SHA512 ba62be6a247dfb1ee04db8784b3e173140e7491f2bd68a528ad9c81cab4bc8f807bfeb4593fa37c76e43401420a6f788075cd2541fd16ed7443fe4301a76d50c WHIRLPOOL 508ec9ccfd2f75f52823628659d53568bc8e50da73866bad645a4910c4aee782b2d48488ec43b0a34bd7f7c829a18b2162052ae1293af661e09d50b193659665 +EBUILD spaz-1.605.ebuild 929 SHA256 eae0f5e7c9019760b5b1aee8ac27dff31ddb82d9b5f155d42ac8b991f3c40d42 SHA512 54c156847f3e387498b90db80e9330a6610824b5fce54895aafc41ab00f5e9d1a089f3c199d9f19f44012201484131f0c3da9113c5116c83af1ea49b2d19c27d WHIRLPOOL 071e954f8bd4c64ace3c317784cf68e70ad6a3f40587fea9aa9c6e7940e79bc96924cab67b75c8b7cc32db2194458c2ef94f2244ecdff18df1442112048d395a +MISC ChangeLog 2173 SHA256 d7a5226c3594f80ef3838557230424c649cf97558bf81727a8356c667df19811 SHA512 562c987bfb2ac64bf8da8adc0d2853d321f10c3e2bd15372abeeb91712ee7a5de042e95a34f72c871a778c52e1d1396db6a7c32d6c06b424b727fd39b474ecbe WHIRLPOOL f62482dfff3bf26713167ba544b02a131705a16439c7427c75d730fab6ec12596088c915de62cc0835a32404992b42edaf9d7af3b65358af479a91917efd0e56 +MISC ChangeLog-2015 865 SHA256 a7df7af8284925c120ae45797cba1cc096f50506021cf6e54308bad21fc88883 SHA512 d508f07b72ed4a6ca6023742a20d80f6d00347977ed19868d0d38c39842f973ee256b53b4edc72ce6efcaae682fc047c929401469b1d76e531a2febdad9bb0de WHIRLPOOL b3d7985af5de9f24983359e36d7aecddc84bc27e3d2355e8112ce994bbbfc2f37e567619900dd6af9a0c412fb8cffa1d0c1717eac75d05431519f67c0e9605bf +MISC metadata.xml 247 SHA256 fb925313d1ae70feaa6db91150f34a2157b48e884e8f47d773640af149e3744b SHA512 96c55c2979dd6a4c4761fce9b5a0be387b11fcf197ef903d8680ae82f01a2caea93b1238bed1ac96d3eb250744e2149a507e0424ac017b4324f0806a54e72c4a WHIRLPOOL 142b4295733faec48b0ca9eb6d3561799ff743481aabf2b74ecf6d717d972b4961979c7b6bf32b9840cb34e47d22fe2befb9b0ef8ec0d3f28f6416069128d3c7 diff --git a/games-strategy/spaz/metadata.xml b/games-strategy/spaz/metadata.xml new file mode 100644 index 000000000000..5b159fbcadd1 --- /dev/null +++ b/games-strategy/spaz/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> +</pkgmetadata> diff --git a/games-strategy/spaz/spaz-1.605.ebuild b/games-strategy/spaz/spaz-1.605.ebuild new file mode 100644 index 000000000000..80749b2c42ce --- /dev/null +++ b/games-strategy/spaz/spaz-1.605.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit unpacker games + +DESCRIPTION="Space Pirates and Zombies" +HOMEPAGE="http://spacepiratesandzombies.com" +SRC_URI="${PN}-linux-humblebundle-09182012-bin" +LICENSE="LOKI-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="alsa pulseaudio" +RESTRICT="fetch strip" + +DEPEND="app-arch/unzip" +RDEPEND=">=media-libs/openal-1.15.1[alsa?,pulseaudio?,abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r4[abi_x86_32(-)]" + +S="${WORKDIR}"/data + +QA_PREBUILT="opt/spaz/SPAZ" + +src_unpack() { + unpack_zip ${A} +} + +src_install() { + local dir="${GAMES_PREFIX_OPT}/${PN}" + + insinto "${dir}" + exeinto "${dir}" + doexe SPAZ + doins -r common game mods + doins audio.so + newicon SPAZ.png spaz.png + dodoc README-linux.txt + + games_make_wrapper ${PN} ./SPAZ "${dir}" "${dir}" + make_desktop_entry ${PN} "Space Pirates and Zombies" ${PN} + + prepgamesdirs +} diff --git a/games-strategy/tornado/Manifest b/games-strategy/tornado/Manifest new file mode 100644 index 000000000000..a3cf20ab1a08 --- /dev/null +++ b/games-strategy/tornado/Manifest @@ -0,0 +1,6 @@ +AUX tornado-1.4-gentoo.patch 955 SHA256 b9914479de51817ed0ade88cd11c791d9800af231b3ff04bb1680349c2e883f1 SHA512 16499538f588370026e05518d5f437599b9f1a291e47c681cb8f7c3c7a88ba4dd1aafb8b979bc8fc35640777be8b54bf209433c88ac9f1c667f97a39500973d9 WHIRLPOOL 7478a01f13b4f0304435f7caf3b5b8e1e9974c8ed943d99ca7d3d8802957f84c013f329778b0d0ecf0f39e6d9cf50ce7d67a71bc3922091b153f61a6d4ba8bd9 +DIST tornado-1.4.tar.gz 54591 SHA256 d0506377c9b80581a6167a9d97233638678943bbc0a32fb714e09cf0e918b791 SHA512 764c18b228a24cdcaf1456af79d1bdb997f200c09bc33d8f54df28f1f995db1b1a3a328550c5561bc8ebd38d4187f472aa1c892d91889e613b9ff42b86bee322 WHIRLPOOL adede7e43642f1c03200c4b903612ba01aaa761f5c74002322bcc98d3abc97680826f4b7aead6aabc6b0fc9f7b6264593cb9ee453e93cf42d5bdf6dd1e7bd17f +EBUILD tornado-1.4.ebuild 865 SHA256 8535b4d5468a18b57f10f94e12bbb0ad161717fa9ebef3081f3759459dcd17ba SHA512 61a40e199bd3b47571961b5f817f1c8743f043b61781a7aa90abf9a7d865cd41cb3eb69cdc495b8ea6984c4ad03376c2eee084655d7432edb1fe6749e90a179f WHIRLPOOL 578928bd480cd4cc8dd42abc0e265c12ce255c85adb01d3744719bb0640f4791b68ebe67363c59b2396b4a338ade9ce2a72b80296e2d2535986915327a1e02c5 +MISC ChangeLog 2462 SHA256 8f1eb87e45484bcb3328b3f5605852b453e21ad27fe2df4eb7ee4d8ea3046962 SHA512 dca19724cd37127c0e0bfebe50fb4c19efbbe91c31b57e69d025238c08ad5cfd1dce061c7f0a3861369d06497d1ef90efeb213b715e6942b06cb9e4c5f829f49 WHIRLPOOL b21262b561c1ed412b351dd220ebe6a6d9a9c34bd0d22a412bc36b5f38a7e00f958de82bbcf9ae4f693a7322d157c3423128e92d9dabbe4eacd72873e9f7a79d +MISC ChangeLog-2015 1866 SHA256 7002ed9967e4ffb653ac960066c69e25eeedb7e38b0de79a67be7fd50715e726 SHA512 fbe052df24dd222665ab0b98175c7eda6ab38ec0c14db3a1be0dba0dd1e95fa45d7b9e28415230cde184debeb62566e617d876c2fedcc55c6e52b8c9ef951b2a WHIRLPOOL a14a4e0b1c1c7fa6f0c2315147114a05918c67439b8c3d050f3a3867b6f40890c6261fab8a69084383722cb18ac92eea6f5cf5c6271996931fa75b5c0d680ad8 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/tornado/files/tornado-1.4-gentoo.patch b/games-strategy/tornado/files/tornado-1.4-gentoo.patch new file mode 100644 index 000000000000..fb8966841158 --- /dev/null +++ b/games-strategy/tornado/files/tornado-1.4-gentoo.patch @@ -0,0 +1,26 @@ +--- Makefile.old 2009-02-12 12:42:25.000000000 +0100 ++++ Makefile 2009-02-12 12:44:52.000000000 +0100 +@@ -1,10 +1,9 @@ +-CC = gcc + MAKE = make +-LDFLAGS = -lncurses ++LDLIBS = -lncurses + OBJFILES = main.o draw.o erwin.o network.o scores.o +-PREFIX = /usr/local +-LOCALEPATH = /usr/local/share/locale +-CFLAGS = -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\"" ++PREFIX = /usr ++LOCALEPATH = /usr/share/locale ++CFLAGS += -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\"" + VERSION = `grep " VERSION" version.h | sed s/\"//g | sed s/\#define\ VERSION\ //` + LOCALES = de + MAN = doc/man +@@ -25,7 +24,7 @@ + $(MAKE) -C $(MAN) all + + tornado: $(OBJFILES) +- $(CC) $(LDFLAGS) $(OBJFILES) -o tornado ++ $(CC) $(LDFLAGS) $(OBJFILES) $(LDLIBS) -o tornado + + debug: tornado.6 locales + gcc -g -ggdb -Wall -ansi -pedantic -o tornado draw.c main.c erwin.c network.c scores.c -lncurses -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\"" diff --git a/games-strategy/tornado/metadata.xml b/games-strategy/tornado/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/tornado/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/tornado/tornado-1.4.ebuild b/games-strategy/tornado/tornado-1.4.ebuild new file mode 100644 index 000000000000..7260172348eb --- /dev/null +++ b/games-strategy/tornado/tornado-1.4.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="Clone of a C64 game - destroy the opponent's house" +HOMEPAGE="http://kiza.kcore.de/software/tornado/" +SRC_URI="http://kiza.kcore.de/software/tornado/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" + +src_prepare() { + sed -i \ + -e "s:PREFIX/bin:${GAMES_BINDIR}:" \ + -e "s:PREFIX/man:/usr/man:" \ + -e "s:/var/games:${GAMES_STATEDIR}:" \ + -e "s:/usr/local:/usr:" \ + doc/man/tornado.6.in \ + || die "sed failed" + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_install() { + dogamesbin tornado + doman doc/man/tornado.6 + dodoc AUTHOR CREDITS Changelog README TODO + insinto "${GAMES_STATEDIR}" + doins tornado.scores + prepgamesdirs + fperms 664 "${GAMES_STATEDIR}/tornado.scores" +} diff --git a/games-strategy/triplea/Manifest b/games-strategy/triplea/Manifest new file mode 100644 index 000000000000..4ee912c5dfe8 --- /dev/null +++ b/games-strategy/triplea/Manifest @@ -0,0 +1,9 @@ +AUX mkdir.sh 28 SHA256 81f35b41877e323df3fd0d0ff33e86d3f5af51e80b44abd19139edc1f05236aa SHA512 f49b4476521ad392ab91550ce1ef150b4fe4243020f7a173a3fe0d11e31476c22c11773058d4da1a013b63cb3b7017ac8ed38d4793d921a691546481c280ad37 WHIRLPOOL a42c138dbe1695463168dd0bfbe70735c356fddf02eed9d2d54ca0cebec3eef05277515cf895d6a3fd64c2c25e831e5bcde72ab084940f9320ae60492f7c9a2e +AUX paths.patch 3867 SHA256 6d66a2fa30e4653bcd2517e1e4d79437ba20ae0fc74bab432ec70679e13f2c25 SHA512 bc411daa31e6d7a56a1c762eb785547d0be2f9dfc33dc1311f43e78c9d6337c0786860b52f63c817e61bf137fc71099a4019e6441fca1b469bc4f96a79b0300a WHIRLPOOL edf14793596d4369c799051980a67b20d5d5438dc3277f867de2efb8cdbe8a2f4413662f791028d1b9671b0e8dd3d322dee89a154094c8ea00c4d1997b0fdca1 +AUX upnplib.patch 999 SHA256 375fe6752ed54889cd6bd31056281022aa49540fc0020bb361ffe27085c3b2b3 SHA512 2195e3aec282935bce60017e99e8211bd153165b3359636517fbe518a4630f1e4464beef57015d92e522a399eb9ea79ad75ced36c4b87388905b16705e341283 WHIRLPOOL bae22ec52969e7b48cfab576c39542b9ad38e1e62d095c737b404ffe13f554e50e4da91b38ee80eb637ffd255a460abd1f85a2a5c90fb516bb9c8b9b648d8196 +DIST triplea_1_8_0_9_source_code_only.zip 378475905 SHA256 5f1d0811b96338e1d7200269e24f99cdfe801198922da2a951d14d3ab31c5187 SHA512 d117bb85d0136d85c76f091cf3b2a398ad1f8755df2cea02867be36d91c6cc98e0fc713a72a93dc74ec91c7b44959afdad5b136591a25a0080f4eabf3c8bff0d WHIRLPOOL 7d3bfc1eb344d77efb1cb20bb8dc33f89c93546e4c64bc04f128ad255ac5db31f0c2e0f7c47d85fb9e8bb200490046fd128e883c82d320e5c01a1712cb9b86f4 +EBUILD triplea-1.8.0.9-r1.ebuild 2328 SHA256 cf8ca508b999fe30e41a9d9928a7ac797e7ad45d7267a498e728b9fd3ef516bd SHA512 c5d9b751355b475429e1b96bd1dc1e45c1b60db0733c706dbf9a571fee566a3e90f1b78997672873779bb452866b70e8ea1eb67d2aa30f49aa302357c3edb2ef WHIRLPOOL 1fc2e774b3ed9b8de0bc26f6ed02df77465fb18cb6bb4b106c9517ae7eea177b9b51e352a9dc1706ba2cf2f73171bc1efaa9ce93c2b732f505e46c859b4038e4 +EBUILD triplea-1.8.0.9.ebuild 2695 SHA256 df9d560db38f77669284a7f774a03e39e1c7e81ae8420769225f2c173174eb55 SHA512 89267aed3735fe51a6748d53f376b1e6bc312c40b153a4309d6c8ba871237c265070c9d05c67d416d48b39ad81e0152055c5f06c5f7136bc3021b6d6e6acdbb6 WHIRLPOOL 1c49151a7c2edf9134b1da5fa0cc3d26fa4dbddd30daf403ce7f912378c242981dd703b58a30276daf93f3f50442897dc4cbeafb5d609eeaf763417ec733d9ff +MISC ChangeLog 4152 SHA256 736d0b98194acb8df87a9a25ea060248517a90c969721f6817d1a9a259ad16cf SHA512 d04be937b6337893483a00492e262f05ef28bddc0f12231a6f902e2bdb98c1ab4becc8263bd63214860cfe24171b3d5f6ec7935b1e91258156cd94820e030b4b WHIRLPOOL 7c05a496a628cf6194c9082c227d5b333caa0f5ad4ec2e0826671fc48f1c0ae2f73575b10abe268f19e8f2d13500cace891978dae3b0cf2f3a32ef0b20a0045c +MISC ChangeLog-2015 7922 SHA256 33ab578b9739bbc38fbb23e83106888346aea856b0b35a5fecd1d908e60d11b8 SHA512 79ab9122d1406143a52e53db15c10286ddc6de4bcf613ae4993c0200cbb30bfba499b4c39884cb9c00838973da61d9d451b8b91bed868081b2cd88602c480b6f WHIRLPOOL 8a9ac9c6ce62a68efdee6727d414d47c05b3d273014508a64f750970eadd96592fcff1187460b698b77eac7be13b5f706dadfe6b2a6ca19d2fcd88f30991505e +MISC metadata.xml 330 SHA256 0ca6e00f5c9937df611c0d3995f71651859cb7722ebebd109b09bd7c04e185a0 SHA512 25e53b4fda63cde7b2211a94b42804a0eb166fe5159eadcbaf5609645526064790a4b01483fe1e15b5b84fb90c73c55b66afe1c1039bb2dc8354e4c603588ea6 WHIRLPOOL 41e0aa154fc9b6dd9654df3e600291f2d44b46113b28ce6f41c94c63f2ca93ccd1b4eb8e09c0feedee67e6395558b3c0e6ac37a342302e04f63b47b13166d0fe diff --git a/games-strategy/triplea/files/mkdir.sh b/games-strategy/triplea/files/mkdir.sh new file mode 100644 index 000000000000..f1bd04d125c1 --- /dev/null +++ b/games-strategy/triplea/files/mkdir.sh @@ -0,0 +1 @@ +mkdir -v "${HOME}/.triplea" diff --git a/games-strategy/triplea/files/paths.patch b/games-strategy/triplea/files/paths.patch new file mode 100644 index 000000000000..f0cd91e3abe6 --- /dev/null +++ b/games-strategy/triplea/files/paths.patch @@ -0,0 +1,63 @@ +diff -Naur a/src/games/strategy/engine/framework/GameRunner2.java b/src/games/strategy/engine/framework/GameRunner2.java +--- a/src/games/strategy/engine/framework/GameRunner2.java 2015-09-02 20:30:04.000000000 +0100 ++++ b/src/games/strategy/engine/framework/GameRunner2.java 2016-10-11 23:08:50.296813567 +0100 +@@ -952,9 +952,9 @@ + // the default + File rootDir; + if (GameRunner.isMac()) { +- rootDir = new File(new File(userHome, "Documents"), "triplea"); ++ rootDir = new File(new File(userHome, "Documents"), ".triplea"); + } else { +- rootDir = new File(userHome, "triplea"); ++ rootDir = new File(userHome, ".triplea"); + } + return rootDir; + } +diff -Naur a/src/games/strategy/engine/lobby/server/userDB/Database.java b/src/games/strategy/engine/lobby/server/userDB/Database.java +--- a/src/games/strategy/engine/lobby/server/userDB/Database.java 2015-08-19 16:35:06.000000000 +0100 ++++ b/src/games/strategy/engine/lobby/server/userDB/Database.java 2016-10-11 23:08:50.296813567 +0100 +@@ -54,7 +54,7 @@ + if (System.getProperties().containsKey(ServerLauncher.SERVER_ROOT_DIR_PROPERTY)) { + root = new File(System.getProperties().getProperty(ServerLauncher.SERVER_ROOT_DIR_PROPERTY)); + } else { +- root = GameRunner2.getRootFolder(); ++ root = GameRunner2.getUserRootFolder(); + } + if (!root.exists()) { + throw new IllegalStateException("Root dir does not exist"); +diff -Naur a/src/games/strategy/util/AccessLogFileHandler.java b/src/games/strategy/util/AccessLogFileHandler.java +--- a/src/games/strategy/util/AccessLogFileHandler.java 2015-08-19 16:35:06.000000000 +0100 ++++ b/src/games/strategy/util/AccessLogFileHandler.java 2016-10-11 23:10:31.219309604 +0100 +@@ -12,7 +12,7 @@ + private static final String logFile; + + static { +- final File rootDir = new File(System.getProperty(ServerLauncher.SERVER_ROOT_DIR_PROPERTY, ".")); ++ final File rootDir = new File(System.getProperty(ServerLauncher.SERVER_ROOT_DIR_PROPERTY, games.strategy.engine.framework.GameRunner2.getUserRootFolder().getAbsolutePath())); + if (!rootDir.exists()) { + throw new IllegalStateException("no dir called:" + rootDir.getAbsolutePath()); + } +diff -Naur a/src/games/strategy/util/RotatingLogFileHandlerForHeadlessGameServer.java b/src/games/strategy/util/RotatingLogFileHandlerForHeadlessGameServer.java +--- a/src/games/strategy/util/RotatingLogFileHandlerForHeadlessGameServer.java 2015-08-19 16:35:06.000000000 +0100 ++++ b/src/games/strategy/util/RotatingLogFileHandlerForHeadlessGameServer.java 2016-10-11 23:10:40.227175356 +0100 +@@ -13,7 +13,7 @@ + private static final String logFile; + + static { +- final File rootDir = new File(System.getProperty(ServerLauncher.SERVER_ROOT_DIR_PROPERTY, ".")); ++ final File rootDir = new File(System.getProperty(ServerLauncher.SERVER_ROOT_DIR_PROPERTY, games.strategy.engine.framework.GameRunner2.getUserRootFolder().getAbsolutePath())); + if (!rootDir.exists()) { + throw new IllegalStateException("no dir called:" + rootDir.getAbsolutePath()); + } +diff -Naur a/src/games/strategy/util/RotatingLogFileHandler.java b/src/games/strategy/util/RotatingLogFileHandler.java +--- a/src/games/strategy/util/RotatingLogFileHandler.java 2015-08-19 16:35:06.000000000 +0100 ++++ b/src/games/strategy/util/RotatingLogFileHandler.java 2016-10-11 23:10:46.851076636 +0100 +@@ -12,7 +12,7 @@ + private static final String logFile; + + static { +- final File rootDir = new File(System.getProperty(ServerLauncher.SERVER_ROOT_DIR_PROPERTY, ".")); ++ final File rootDir = new File(System.getProperty(ServerLauncher.SERVER_ROOT_DIR_PROPERTY, games.strategy.engine.framework.GameRunner2.getUserRootFolder().getAbsolutePath())); + if (!rootDir.exists()) { + throw new IllegalStateException("no dir called:" + rootDir.getAbsolutePath()); + } diff --git a/games-strategy/triplea/files/upnplib.patch b/games-strategy/triplea/files/upnplib.patch new file mode 100644 index 000000000000..f17b7891302a --- /dev/null +++ b/games-strategy/triplea/files/upnplib.patch @@ -0,0 +1,14 @@ +diff -Naur a/src/games/strategy/net/UniversalPlugAndPlayHelper.java b/src/games/strategy/net/UniversalPlugAndPlayHelper.java +--- a/src/games/strategy/net/UniversalPlugAndPlayHelper.java 2015-08-19 16:35:06.000000000 +0100 ++++ b/src/games/strategy/net/UniversalPlugAndPlayHelper.java 2016-10-11 22:10:37.287834187 +0100 +@@ -166,8 +166,8 @@ + System.out.println("To " + m_local.getHostAddress() + ":" + internalPort); + boolean mapped = false; + try { +- mapped = m_device.addPortMapping("TripleA Game Hosting", "TCP", null, externalPort, m_local.getHostAddress(), +- internalPort, 0); ++ mapped = m_device.addPortMapping("TripleA Game Hosting", null, internalPort, externalPort, ++ m_local.getHostAddress(), 0, "TCP"); + } catch (final IOException e) { + System.out.println("Port Mapping Failed! Please try to Forward Ports manually! \r\n " + e.getMessage()); + return "Port Mapping Failed! Please try to Forward Ports manually! \r\n " + e.getMessage(); diff --git a/games-strategy/triplea/metadata.xml b/games-strategy/triplea/metadata.xml new file mode 100644 index 000000000000..6c83e2c3e451 --- /dev/null +++ b/games-strategy/triplea/metadata.xml @@ -0,0 +1,11 @@ +<?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">triplea</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/triplea/triplea-1.8.0.9-r1.ebuild b/games-strategy/triplea/triplea-1.8.0.9-r1.ebuild new file mode 100644 index 000000000000..ad0f13584c8a --- /dev/null +++ b/games-strategy/triplea/triplea-1.8.0.9-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils java-pkg-2 java-ant-2 versionator + +MY_PV=$(replace_all_version_separators _) +DESCRIPTION="An open source clone of the popular Axis and Allies boardgame" +HOMEPAGE="http://triplea.sourceforge.net/" +SRC_URI="mirror://sourceforge/triplea/${PN}_${MY_PV}_source_code_only.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="test" # Needs X11 maybe use virtualx.eclass + +RDEPEND="dev-java/apple-java-extensions-bin:0 + dev-java/commons-httpclient:3 + dev-java/oracle-javamail:0 + dev-java/osgi-core-api:0 + dev-java/upnplib:0" +DEPEND="${RDEPEND} + >=virtual/jdk-1.7 + app-arch/unzip + test? ( dev-java/ant-junit:0 )" +RDEPEND="${RDEPEND} + >=virtual/jre-1.7" + +S=${WORKDIR}/${PN}_${MY_PV} + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="apple-java-extensions-bin,commons-httpclient-3,oracle-javamail,osgi-core-api,upnplib" + +java_prepare() { + # Use ~/.triplea, not ~/triplea. + # Don't write server files under /usr/share or ${PWD}. + # Fix to build against our packaged upnplib. + epatch "${FILESDIR}"/{paths,upnplib}.patch + + # Remove packaged or unneeded libs. Unfortunately Apache Derby was + # last-rited due to packaging issues. See bug #561410. + find lib/* ! -name "derby-*.jar" -delete || die + rm -r old/ || die +} + +src_compile() { + eant + echo "triplea.saveGamesInHomeDir=true" > data/triplea.properties || die + # The only target creating this is zip which does unjar etc + jar cf ${PN}.jar -C classes . || die +} + +src_test() { + java-pkg-2_src_test +} + +src_install() { + insinto /usr/share/${PN} + doins -r assets data dice_servers maps + + java-pkg_dojar ${PN}.jar + java-pkg_newjar lib/derby-*.jar derby.jar + + java-pkg_dolauncher ${PN} \ + --main games.strategy.engine.framework.GameRunner \ + --java_args "-Xmx256m" + java-pkg_dolauncher ${PN}-server -pre "${FILESDIR}"/mkdir.sh \ + --main games.strategy.engine.lobby.server.LobbyServer \ + --java_args "-server -Xmx64m -Dtriplea.lobby.port=3303 -Dtriplea.lobby.console=true" + + newicon icons/triplea_icon.png ${PN}.png + newicon icons/triplea_icon.png ${PN}-server.png + make_desktop_entry ${PN} TripleA + make_desktop_entry ${PN}-server TripleA-server + + dodoc changelog.txt TripleA_RuleBook.pdf + docinto html + dodoc -r doc/* readme.html +} diff --git a/games-strategy/triplea/triplea-1.8.0.9.ebuild b/games-strategy/triplea/triplea-1.8.0.9.ebuild new file mode 100644 index 000000000000..fd2f2c4b4b6e --- /dev/null +++ b/games-strategy/triplea/triplea-1.8.0.9.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils java-pkg-2 java-ant-2 versionator games + +MY_PV=$(replace_all_version_separators _) +DESCRIPTION="An open source clone of the popular Axis and Allies boardgame" +HOMEPAGE="http://triplea.sourceforge.net/" +SRC_URI="mirror://sourceforge/triplea/${PN}_${MY_PV}_source_code_only.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="test" # Needs X11 maybe use virtualx.eclass + +RDEPEND="dev-java/commons-httpclient:3 + dev-java/commons-logging + dev-java/junit:4" +DEPEND="${RDEPEND} + >=virtual/jdk-1.6 + app-arch/unzip" +RDEPEND="${RDEPEND} + >=virtual/jre-1.6" + +S=${WORKDIR}/${PN}_${MY_PV} + +pkg_setup() { + games_pkg_setup + java-pkg-2_pkg_setup +} + +src_prepare() { + sed -i \ + -e '/userHome.*triplea/s:"triplea":".triplea":g' \ + src/games/strategy/engine/framework/GameRunner2.java || die + + rm -r old/ lib/derby*.jar || die + # dev-java/commons-logging is lagging behind in portage... + # java-pkg_jar-from apple-java-extensions-bin AppleJavaExtensions.jar \ + # lib/AppleJavaExtensions.jar + java-pkg_jar-from commons-httpclient-3 commons-httpclient.jar \ + lib/commons-httpclient-3.1.jar + java-pkg_jar-from commons-logging commons-logging.jar \ + lib/commons-logging-1.1.3.jar + # dev-java/commons-codec is lagging behind in portage... + # java-pkg_jar-from commons-codec commons-codec.jar \ + # lib/commons-codec-1.3.jar + # installs the test files + java-pkg_jar-from --into lib junit + + # lots of other jars from some other java packages... + # either missing from portage or none stable is ages. + #java-pkg_ensure-no-bundled-jars +} + +src_compile() { + eant || die + echo "triplea.saveGamesInHomeDir=true" > data/triplea.properties + # The only target creating this is zip which does unjar etc + cd classes || die + jar cf ../bin/triplea.jar * || die + rm -r * || die +} + +src_test() { + ANT_TASKS="ant-junit" eant test +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r assets bin data dice_servers maps + + java-pkg_regjar "${D}/${GAMES_DATADIR}"/${PN}/bin/*.jar + java-pkg_dolauncher ${PN} -into "${GAMES_PREFIX}" \ + --java_args "-Xmx256m" --main \ + games.strategy.engine.framework.GameRunner + java-pkg_dolauncher ${PN}-server -into "${GAMES_PREFIX}" \ + --java_args "-server -Xmx64m -Dtriplea.lobby.port=3303 -Dtriplea.lobby.console=true" \ + --main games.strategy.engine.lobby.server.LobbyServer + + newicon icons/triplea_icon.png ${PN}.png + newicon icons/triplea_icon.png ${PN}-server.png + make_desktop_entry ${PN} TripleA + make_desktop_entry ${PN}-server TripleA-server + + dodoc changelog.txt TripleA_RuleBook.pdf + dohtml -r doc/* readme.html + prepgamesdirs +} diff --git a/games-strategy/ufo-ai/Manifest b/games-strategy/ufo-ai/Manifest new file mode 100644 index 000000000000..22bb951b1b4a --- /dev/null +++ b/games-strategy/ufo-ai/Manifest @@ -0,0 +1,10 @@ +AUX ufo-ai-2.4-anon.patch 731 SHA256 45564b6d8b6638d230ee92e2f971b43ee2d276decb0950946f8b7d650dd1d568 SHA512 252d3cfe1ad2dc947433e316505b5cbdacd663d3465aa5ffaaeb1ba2a641b2a8a01ef91f503fa335c2642f0fc0342abf159fbc13640802d02d7aabdbbb40883c WHIRLPOOL 0cf699a23058ea5fcf27f6ebcea55b74ff4631c81d59d92131b611536af1b9e23070829c91986f6fbf9eb4111fc8f271ecc6e19ce4721cbbc38489e95f1ed433 +AUX ufo-ai-2.4-locale.patch 744 SHA256 edf333eea46aaea2a43529d4d323d2b317a9376c39e5952a2b92d7bf25fe110b SHA512 94ae4710bfed572abe7dd4b6238ddb4e240c55250e608d63fc1c8ccf67567927721a0f09234ae7a018fe38e4f5a0bc47745b483e5073d5a4da3816d99853746d WHIRLPOOL 13b655d127c34353c1cd73e5b4e62dc9267892f0288b39aef4c28b1c0d8bbe163b60a1d232c4a1912fe8e52404799d47cb1f1a9dd82d95754140db31583129da +AUX ufo-ai-2.4-mathlib.patch 1852 SHA256 4de46ec51a00b3e68a270dc18a67605663b0de372164f9e08fc182e87f8f45e3 SHA512 3b086458e94ea9a7f1efd4ecb7d96a5b44e326f0d59916476595bf328c1e66250241124a74921302a9e139eeb61fd7b2a860fd972bbbc5664157bf60a2196b02 WHIRLPOOL 1821dff2538794997a22109258a949d8a7ca1589ee52c1efdefa8581f1582a64d938a37154f454496bfc9a1f86c684031b78ff61678f5d8c0885e647fc401dd9 +DIST 1maps.pk3 242016 SHA256 8cdb8c231c0ba98900d97012b62c5cef72ab5710fe3f087e534496a66f7b0e4e SHA512 9615b365e590dceb82362e7cd683980e15401a3b5a2b359a33c7ed2a4c51e5328efb352618cc48f46971a2ced1717276b5270ca6bf6d2bc7fc2b2238030eb3ae WHIRLPOOL 8e798ffeaa83609114fd239ea8f379ee54fa6038735a09bd3abe3076073e92b44e7fa867c893d597577da462b4e583fb0a2bba7cd2014a9f4b4bb8ef04b377e6 +DIST ufoai-2.4-data.tar 937062400 SHA256 6bb322fc0362781d07439799de32c677884cef7c96fcf17dd87c62cc108030b7 SHA512 471eab2f62cad144fe9966317d48c408fba19de0c33cf7414918b502c723b722af38a025f808848698d9a06ffc10fb0faac145dd01dcd3d321547c87da1c6246 WHIRLPOOL 139251bdbd76f86cb38175eb9c14149ea0cab6bbcb04e2dba7351cdb5b0e21bdfd231e350c0af4f52379d0c5bee91f0512422a7eb9f6339eb6a07170d64fec0c +DIST ufoai-2.4-source.tar.bz2 16875353 SHA256 254a61b770f141374d57e5c2589048be9298d0a920e914c6e72c2b98255bb94f SHA512 3f9d0df7392f50c201464c81e42435f860df97d5d7a2ef53bb9a05d2b2fc645a1130baaf16fc34818b88bb07b8cf83283f7479d685cbd3caf80ea7522e13c56f WHIRLPOOL 0e68149ab2b3eeffb7134e65cc29de9cecf60dc89c965958a0d669c2d22462d05b89b0a81a3225ebbd7e47015fc63697cbad365136706f4853f9c1e690b0667d +EBUILD ufo-ai-2.4.ebuild 2731 SHA256 6350df5c12be4d90e112a4bfbbaaeb040ae3adde9d6bd56cf7845f389915035c SHA512 e134db85d033b70c0e4c5482a776dc82e0d6b9e30e589047e02e21a2286f9f3e51685e2828ccec4ab39a14a21c24dc5a29c7835b5cc9bb4d2dd27e1699469806 WHIRLPOOL 200091aa0b3ba52864798cbb60258501173cd067d54a577bfb74d00470773878547824f6ada5109e2d6b5acf8bb1ab1b05a0d0d19b26b10ab202fa45fefbe4b8 +MISC ChangeLog 3152 SHA256 e205495456859a389b266eab7e89c232065f62b91d41203e779ec8ab0a460a65 SHA512 0db097d950bb6b37f76565e458ea9b5ceba1f3382ef6ff1d3d728ca736a89fed29427ca181417e90e52b85225176a16d81553898061ff23dfd972bdea1a90fb6 WHIRLPOOL e6a936c44c75ea1c15041eafb6696a78436820c8e114ba5c15d2cc83edbc900e281e47164727679bac8b6e94ccb2f6d52e947f4c0f1479286564e5e23430187e +MISC ChangeLog-2015 6563 SHA256 98a10359e09a5830defbfb35ba923e90e0a4cfe8a114ef28c92fe6ff8eeb8f6e SHA512 35060c8333d4287fa3aa682c42b53ec8632d82eaa7bb9ba82f90a4dbb1a0d1f7e9a0bd18be25dd2bcebfdaebbad883091fdf16922bb3b520c5cb40f5c27f791e WHIRLPOOL 3504606169d41e4fcf9216babd332a60a4441bc3a59a2099eb614d80efcb4a1210e816a8935efd57a42fba9d1125a8f356cda7664e870c27e1641f90039996bd +MISC metadata.xml 403 SHA256 7e653f5b0c3d642d66afecab051470b0cf91edc471b0bd43c84669b86ff4a9dc SHA512 959ff148dd3c58fdc06929f0ec98e1aecdced859cd0ce4549582dde6913d7061bc7ad39522f88fd6e18cf8731c04d3c8198d5f731b1839df16a53fc554c4adf0 WHIRLPOOL 49f314c4f420b01d58a600401fc8b05207bf3291b897554f75e2bd5900217267c7e5f7993741b7c3c65213899cc8482671b127d179ce95ef76cdfb1dafa18932 diff --git a/games-strategy/ufo-ai/files/ufo-ai-2.4-anon.patch b/games-strategy/ufo-ai/files/ufo-ai-2.4-anon.patch new file mode 100644 index 000000000000..53f07261bb7e --- /dev/null +++ b/games-strategy/ufo-ai/files/ufo-ai-2.4-anon.patch @@ -0,0 +1,17 @@ +--- src/tools/radiant/radiant/camera/CameraSettings.h.old 2014-10-22 08:30:35.690248415 +0200 ++++ src/tools/radiant/radiant/camera/CameraSettings.h 2014-10-22 08:31:12.329900302 +0200 +@@ -16,13 +16,13 @@ + const std::string RKEY_ENABLE_FARCLIP = "user/ui/camera/enableCubicClipping"; + const std::string RKEY_DRAWMODE = "user/ui/camera/drawMode"; + const std::string RKEY_SOLID_SELECTION_BOXES = "user/ui/xyview/solidSelectionBoxes"; ++} + + enum CameraDrawMode + { + drawWire, drawSolid, drawTexture + }; + +-} + /* greebo: This is the home of all the camera settings. As this class derives + * from a RegistryKeyObserver, it can be connected to the according registry keys + * and gets notified if any of the observed keys are changed.*/ diff --git a/games-strategy/ufo-ai/files/ufo-ai-2.4-locale.patch b/games-strategy/ufo-ai/files/ufo-ai-2.4-locale.patch new file mode 100644 index 000000000000..632e0d4fdc0d --- /dev/null +++ b/games-strategy/ufo-ai/files/ufo-ai-2.4-locale.patch @@ -0,0 +1,15 @@ +diff -urN ufoai-2.4-source.old//src/client/cl_main.c ufoai-2.4-source/src/client/cl_main.c +--- ufoai-2.4-source.old//src/client/cl_main.c 2012-05-01 10:59:51.720868619 +0200 ++++ ufoai-2.4-source/src/client/cl_main.c 2012-05-01 11:00:57.235869759 +0200 +@@ -1180,7 +1180,11 @@ + if (fs_i18ndir->string[0] != '\0') + Q_strncpyz(languagePath, fs_i18ndir->string, sizeof(languagePath)); + else ++#ifdef LOCALEDIR ++ Q_strncpyz(languagePath, LOCALEDIR, sizeof(languagePath)); ++#else + Com_sprintf(languagePath, sizeof(languagePath), "%s/"BASEDIRNAME"/i18n/", FS_GetCwd()); ++#endif + Com_DPrintf(DEBUG_CLIENT, "...using mo files from %s\n", languagePath); + bindtextdomain(TEXT_DOMAIN, languagePath); + bind_textdomain_codeset(TEXT_DOMAIN, "UTF-8"); diff --git a/games-strategy/ufo-ai/files/ufo-ai-2.4-mathlib.patch b/games-strategy/ufo-ai/files/ufo-ai-2.4-mathlib.patch new file mode 100644 index 000000000000..72fd81038fb6 --- /dev/null +++ b/games-strategy/ufo-ai/files/ufo-ai-2.4-mathlib.patch @@ -0,0 +1,29 @@ +http://bugs.gentoo.org/509928 + +src/common/common.c:261: error: undefined reference to 'sincos' +src/shared/mathlib.c:476: error: undefined reference to '__acosf_finite' +[ ... snip ... ] +collect2: error: ld returned 1 exit status + +--- build/modules/ufo.mk ++++ build/modules/ufo.mk +@@ -9,7 +9,7 @@ + $(TARGET)_LINKER := $(CC) + $(TARGET)_FILE := $(TARGET)$(EXE_EXT) + $(TARGET)_CFLAGS += -DCOMPILE_UFO $(BFD_CFLAGS) $(SDL_CFLAGS) $(SDL_TTF_CFLAGS) $(SDL_MIXER_CFLAGS) $(CURL_CFLAGS) $(THEORA_CFLAGS) $(XVID_CFLAGS) $(VORBIS_CFLAGS) $(OGG_CFLAGS) $(MXML_CFLAGS) +-$(TARGET)_LDFLAGS += -lpng -ljpeg $(BFD_LIBS) $(INTL_LIBS) $(SDL_TTF_LIBS) $(SDL_MIXER_LIBS) $(OPENGL_LIBS) $(SDL_LIBS) $(CURL_LIBS) $(THEORA_LIBS) $(XVID_LIBS) $(VORBIS_LIBS) $(OGG_LIBS) $(MXML_LIBS) $(SO_LIBS) -lz ++$(TARGET)_LDFLAGS += -lpng -ljpeg $(BFD_LIBS) $(INTL_LIBS) $(SDL_TTF_LIBS) $(SDL_MIXER_LIBS) $(OPENGL_LIBS) $(SDL_LIBS) $(CURL_LIBS) $(THEORA_LIBS) $(XVID_LIBS) $(VORBIS_LIBS) $(OGG_LIBS) $(MXML_LIBS) $(SO_LIBS) -lz -lm + + $(TARGET)_SRCS = \ + client/cl_console.c \ +--- build/modules/testall.mk ++++ build/modules/testall.mk +@@ -9,7 +9,7 @@ + $(TARGET)_LINKER := $(CC) + $(TARGET)_FILE := $(TARGET)$(EXE_EXT) + $(TARGET)_CFLAGS += -DCOMPILE_UFO -DHARD_LINKED_GAME -DCOMPILE_UNITTESTS $(BFD_CFLAGS) $(SDL_CFLAGS) $(CURL_CFLAGS) $(OGG_CFLAGS) $(MXML_CFLAGS) +-$(TARGET)_LDFLAGS += -lcunit -lpng -ljpeg $(BFD_LIBS) $(INTL_LIBS) $(SDL_TTF_LIBS) $(SDL_MIXER_LIBS) $(OPENGL_LIBS) $(SDL_LIBS) $(CURL_LIBS) $(THEORA_LIBS) $(XVID_LIBS) $(VORBIS_LIBS) $(OGG_LIBS) $(MXML_LIBS) $(SO_LIBS) -lz ++$(TARGET)_LDFLAGS += -lcunit -lpng -ljpeg $(BFD_LIBS) $(INTL_LIBS) $(SDL_TTF_LIBS) $(SDL_MIXER_LIBS) $(OPENGL_LIBS) $(SDL_LIBS) $(CURL_LIBS) $(THEORA_LIBS) $(XVID_LIBS) $(VORBIS_LIBS) $(OGG_LIBS) $(MXML_LIBS) $(SO_LIBS) -lz -lm + + $(TARGET)_SRCS = \ + tests/test_all.c \ diff --git a/games-strategy/ufo-ai/metadata.xml b/games-strategy/ufo-ai/metadata.xml new file mode 100644 index 000000000000..21d773f531ac --- /dev/null +++ b/games-strategy/ufo-ai/metadata.xml @@ -0,0 +1,14 @@ +<?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="editor">Build map editor</flag> + </use> + <upstream> + <remote-id type="sourceforge">ufoai</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/ufo-ai/ufo-ai-2.4.ebuild b/games-strategy/ufo-ai/ufo-ai-2.4.ebuild new file mode 100644 index 000000000000..47d4e1fa6df9 --- /dev/null +++ b/games-strategy/ufo-ai/ufo-ai-2.4.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic games + +MY_P=${P/o-a/oa} + +DESCRIPTION="UFO: Alien Invasion - X-COM inspired strategy game" +HOMEPAGE="http://ufoai.sourceforge.net/" +SRC_URI="mirror://sourceforge/ufoai/${MY_P}-source.tar.bz2 + mirror://sourceforge/ufoai/${MY_P}-data.tar + http://mattn.ninex.info/1maps.pk3" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug dedicated editor" + +# Dependencies and more instructions can be found here: +# http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux +DEPEND="!dedicated? ( + virtual/opengl + virtual/glu + media-libs/libsdl + media-libs/sdl-image[jpeg,png] + media-libs/sdl-ttf + media-libs/sdl-mixer + virtual/jpeg + media-libs/libpng:0 + media-libs/libogg + media-libs/libvorbis + x11-proto/xf86vidmodeproto + ) + net-misc/curl + sys-devel/gettext + sys-libs/zlib + editor? ( + dev-libs/libxml2 + virtual/jpeg + media-libs/openal + x11-libs/gtkglext + x11-libs/gtksourceview:2.0 + )" + +S=${WORKDIR}/${MY_P}-source + +src_prepare() { + if has_version '>=sys-libs/zlib-1.2.5.1-r1' ; then + sed -i -e '1i#define OF(x) x' src/common/ioapi.h || die + fi + + # don't try to use the system mini-xml + sed -i -e '/mxml/d' configure || die + + epatch \ + "${FILESDIR}"/${P}-mathlib.patch \ + "${FILESDIR}"/${P}-anon.patch \ + "${FILESDIR}"/${P}-locale.patch + + cp "${DISTDIR}"/1maps.pk3 "${WORKDIR}"/base/ || die + mv "${WORKDIR}"/base/ "${S}"/ || die +} + +src_configure() { + # they are special and provide hand batched configure file + local myconf=" + --disable-dependency-tracking + $(use_enable !debug release) + $(use_enable editor ufo2map) + $(use_enable editor uforadiant) + --enable-ufoded + --bindir="${GAMES_BINDIR}" + --libdir="$(games_get_libdir)" + --datadir="${GAMES_DATADIR}/${PN/-}" + --localedir="${EPREFIX}/usr/share/locale/" + --prefix="${GAMES_PREFIX}" + " + echo "./configure ${myconf}" + ./configure ${myconf} || die +} + +src_compile() { + emake + emake lang + + if use editor; then + emake uforadiant + fi +} + +src_install() { + newicon src/ports/linux/ufo.png ${PN}.png + dobin ufoded + make_desktop_entry ufoded "UFO: Alien Invasion Server" ${PN} + if ! use dedicated; then + dobin ufo + make_desktop_entry ufo "UFO: Alien Invasion" ${PN} + fi + + if use editor; then + dobin ufo2map ufomodel + fi + + # install data + insinto "${GAMES_DATADIR}"/${PN/-} + doins -r base + rm -rf "${ED}/${GAMES_DATADIR}/${PN/-}/base/game.so" + dogameslib base/game.so + + # move translations where they belong + dodir "${GAMES_DATADIR_BASE}/locale" + mv "${ED}/${GAMES_DATADIR}/${PN/-}/base/i18n/"* \ + "${ED}/${GAMES_DATADIR_BASE}/locale/" || die + rm -rf "${ED}/${GAMES_DATADIR}/${PN/-}/base/i18n/" || die + + prepgamesdirs +} diff --git a/games-strategy/uqm/Manifest b/games-strategy/uqm/Manifest new file mode 100644 index 000000000000..fd46b603b24e --- /dev/null +++ b/games-strategy/uqm/Manifest @@ -0,0 +1,14 @@ +AUX uqm-0.7.0-tempdir.patch 510 SHA256 60f6aa3830e776738d760dd0aaa5df6c67e28a3bb1a9c30b480067b0546aa902 SHA512 07dc48c646e6e3642a1c917aa763996eaef8bae21e72470159b445e20e3e3315663009b4fd30c93a7f5b04ec78bf12de254434094f3c62ca523466148a2a9594 WHIRLPOOL 4b80d56389322b7d6cc0fc39cff62864f7dcc6cd6b1369ad5e9324bf680b5b4924d0f15190792e60ab85207314e5d94078338ab41b9d2efe0e520def05a7c7a7 +AUX uqm-0.7.0-warning.patch 862 SHA256 ca75bdc9f5bb1ae26971a89301c67aa66ea4449391863495baeaf6ca01d7c577 SHA512 d15b09a13b82a888a5c50c5e561213e755f104cb1f7b42bf3fdc7c39350bb517111c8d212218126c89136a2a4a7c47bcc4354e7c53a9df72795ce123a619a256 WHIRLPOOL f18514ca98486b61a89645a883db97a914bac96bfb84a65d22993aaeecd7414f27efe9f16208cb4fadeb9f87a238b418e890bfb097af7fd7e5b693d503f6596c +DIST uqm-0.7.0-3domusic.uqm 18980671 SHA256 c57085e64dad4bddf8a679a9aa2adf63f2156d5f6cbabe63af80519033dbcb82 SHA512 e7d723194685388813d72e1add9a710ecd3de9b33381dfe66acee6c31a31634ee9031ecc83c2003a5222b9381efe150a2f2a9289f8505d842182ca03b012183b WHIRLPOOL c975e37f7ade37891e9009c84b1219d57b17c354efec6d7d777623385c8e1ea8c82ac11a05d14391052a262645205d5f9f9c04f41e5b7590e6103c77a85f59cb +DIST uqm-0.7.0-content.uqm 11538533 SHA256 b8f6db8ba29f0628fb1d5c233830896b19f441aee3744bda671ea264b44da3bf SHA512 c80aa9f1158d07534abc1ef625662dfcd5021cb5e8091d46b3e9a2d96a0fffbe7e9e6cc88680b43d810c8e68a580f7a0d4b62c08e9f7b948ae7f017e4ad20dd2 WHIRLPOOL 328bbbd68701d560eb1bb3f838166afa0f958bb8bd7e6dcc5f7c223a1a5d79c57f08a48cda33612e99d7904d55a0e23b78eabe419f5c5a35ba009cd0b45d8104 +DIST uqm-0.7.0-source.tgz 1562003 SHA256 a3695c5f7f0be7ec9c0f80ec569907b382023a1fee6e635532bd53b7b53bb221 SHA512 443ac13da401d45743f913755647b3309834c57f371fb673c3ea2cacb81184bf30430db10af9001de854363520d1f792f47faffd690c8c2b2f3d12d63b217815 WHIRLPOOL 2e35a334ed575d13c3b48dd819298442cbe30554b00c34dd3cf687a30793c9b4d403339cf807331307d51dd609f253d063930b4dc9f2ce68ce9aff86480cce99 +DIST uqm-0.7.0-voice.uqm 115143439 SHA256 bcccf801b4ba37594ff6217b292744ea586ee2d447e927804842ccae8b73c979 SHA512 693a4869f8567637b112138f8a074b65919776175addbd353e3601085ee4e4bb4758daca64921c902463f5dc38baa6f7fda4ad32f3cf1786646ef48f15cdeb80 WHIRLPOOL 6c447e5d6e09e195390346e93b8052ce6a7b2f9a4ccad7e15b30fd1473029fdec41cb2bc743129de36fe6c136e4fface6f3cbedfcb9360b19a219e47207401ce +DIST uqm-remix-disc1.uqm 50188876 SHA256 b697694745d939311e8ebffdd5edf692e010c25d7966e1481074940a4d0487e8 SHA512 fed2a6e260ee96802898ad9b6c968acaac3613187fe38370fb557d6d220b499b922447ea04edd15763d0161f5c156ce03bc9d55a86ed3b4e2e0140a4fb17e99b WHIRLPOOL fee79171e43fb203dcc2b8cbca7d3e2edfa4c6334a1f0996fa8951dc67ef94e67f06edbe250810e1385f5887834a7a0755e1e40a9aa3cdae0cdfb937e238fe46 +DIST uqm-remix-disc2.uqm 60282662 SHA256 7fbb4744102e31273e4459b01a156da052ec537c128fe91793643e348bc1bade SHA512 3053693417facef6d01cdb366a15c1bd2a6272961df5870c4151a928845dd76e4ac5fc59f232da5034d56fd9476d3074840a2e9f16d63dba341aeffd92827c4e WHIRLPOOL e52f1eb1c8cd0007eb77d80719f8feeb044c61bb2d72c14fae92ba62ea8ad1225ffa427db39dadd864304818839c4df0e1e0fe9c0d8a2b265ceead14f70df56e +DIST uqm-remix-disc3.uqm 39924875 SHA256 e6d89f8f66cf1df1cb278fca1e92261b1776ee670dff26132e33f14dbd31e91d SHA512 2337752e3a2447ab048cc6782153bbb120d2d6b890c5bfae9cbef60a46d12abf716917863286b0196bf6f5e8ef301b5f84338237520880b10cbf75e450076951 WHIRLPOOL ba1ed49bb6761d9955fe9beced1987dd4458cd0203a9c8e712bb55034fd8d278f489c995969866cb7096bea75e88b330031f070b7aeb7e09f48fda0ece862e36 +DIST uqm-remix-disc4.uqm 86545760 SHA256 a4c8197712a5b72a81c7ef7a2a33ea7d3ac90ab063c929dd68e7328a559a86d0 SHA512 07f0fbe0b9889602eab43f376577c8e0a19c6db50bbb3f01f57836c7caab1eb18813e94d8d9f2d3098a6b6c9dc336290b7f5262c586f2fb41ffab0e2b0ba7f65 WHIRLPOOL 011859d9c7566c369c086925548fd4340e34d4f3657c6d4ff242451e7665acbac8c18ec2d6818856011e930a01406d947164ec0b8ed454b422424ec3fa78972c +EBUILD uqm-0.7.0-r3.ebuild 2945 SHA256 0e1c47e49dddce3d0a93cd1e4e1ba6b1c358dc970235557e488b657fb555f9df SHA512 84a3a2fce90051d8ed031169809efacd2cf3d8c7d463bbfecce5f18805637b6b2a942d41f68b2cb1576c7e5a3cb4758b4903dfd34e5efc4c357cf4a803607745 WHIRLPOOL c201ba15399c4ce2af9118d660e9e22ae84134eec87418703cfd333ae1eb1820fdce6e23ecc98f4bdafeab23470c4ae697edc935311dd0c1aa805d3ca70bad4e +MISC ChangeLog 3621 SHA256 9582199fbe80a60a85a9a827e08c334a6664b5117369d749c7a16a678d5f3d79 SHA512 1653eba6bcc7a8973575e58b52a28c1574664fc6f44e2fb21302d0b5b8e2d49afb5c2e72f6e36a4dc60dd7264a9b212fd9b0840b25d4bdf7b1037310e1ce8ebc WHIRLPOOL b11bd5e1c7c73440a4767edfb3c52fb7e6904599ab862911b7d58c5b7db684482873a3056245a65094820ea249fd1b9da7cf7acc84aba4484eabcd24ed95f54c +MISC ChangeLog-2015 5592 SHA256 0564f46cb79702e57bd5a030c5c5d09d8b9d0efbb2e0460be5c138468061c7e1 SHA512 ccd04c64fea498ef925e2d59b7c59161d47811202cc11b6e1e9d1c6b552a7b6a0d8aa56aaa80331bb4c3133bcf772a3bce753133ff358877a043d22388c835fd WHIRLPOOL 330760097fd0a9202e2f438e770187128d7c0557daafd0efb41fc9733d7d3d9861fa5c9295ab9fc9b335ca5477cbd60e3a3f79f586836706032ce2b644889b52 +MISC metadata.xml 572 SHA256 0ada807c4bc965c1568af1172560fd9fa19da0761c840ccdf654ad35df9f9aca SHA512 cd21d5260e39857374bcd1795f2cb2c158104ce865cd9c091202bab404f8133b547d0ba8e7a2580a0177ee1b97de31bdf1b0658f0b20860d70585ecb85bd49b1 WHIRLPOOL 8e9eacfb611178853c08966113d7874809cb1e89bc44b58e290db549ced46c6be0eba5ba9a1dcfb8b1d1482659e42d32db631006e365a8d73c6444d8e84e4a1b diff --git a/games-strategy/uqm/files/uqm-0.7.0-tempdir.patch b/games-strategy/uqm/files/uqm-0.7.0-tempdir.patch new file mode 100644 index 000000000000..dbb693c660a8 --- /dev/null +++ b/games-strategy/uqm/files/uqm-0.7.0-tempdir.patch @@ -0,0 +1,14 @@ +# leaves files lying around bug #576098 + +diff -ru uqm-0.7.0.orig/build/unix/config_functions uqm-0.7.0/build/unix/config_functions +--- uqm-0.7.0.orig/build/unix/config_functions 2011-05-20 15:25:22.000000000 -0400 ++++ uqm-0.7.0/build/unix/config_functions 2016-03-09 02:46:41.512465876 -0500 +@@ -16,7 +16,7 @@ + # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + BUILDLOG=/dev/null +-TEMPFILE="/tmp/build.$$.tmp" ++TEMPFILE="${T:-/tmp}/build.$$.tmp" + #KEEPTEMPFILES=keeptempfiles + + diff --git a/games-strategy/uqm/files/uqm-0.7.0-warning.patch b/games-strategy/uqm/files/uqm-0.7.0-warning.patch new file mode 100644 index 000000000000..7f05ee5bd1eb --- /dev/null +++ b/games-strategy/uqm/files/uqm-0.7.0-warning.patch @@ -0,0 +1,29 @@ +--- ./src/libs/sound/decoders/aiffaud.c.orig 2011-05-20 15:24:44.000000000 -0400 ++++ ./src/libs/sound/decoders/aiffaud.c 2016-03-10 00:53:37.336198208 -0500 +@@ -307,7 +307,7 @@ + { + int bytes; + +- memset(fmt, sizeof(*fmt), 0); ++ memset(fmt, 0, sizeof(*fmt)); + if (size < AIFF_COMM_SIZE) + { + aifa->last_error = aifae_BadFile; +@@ -369,7 +369,7 @@ + aifa->max_pcm = 0; + aifa->data_ofs = 0; + memset(&aifa->fmtHdr, 0, sizeof(aifa->fmtHdr)); +- memset(aifa->prev_val, sizeof(aifa->prev_val), 0); ++ memset(aifa->prev_val, 0, sizeof(aifa->prev_val)); + + // read wave header + if (!aifa_readFileHeader (aifa, &fileHdr)) +@@ -635,7 +635,7 @@ + + // reset previous values for SDX2 on seek ops + // the delta will recover faster with reset +- memset(aifa->prev_val, sizeof(aifa->prev_val), 0); ++ memset(aifa->prev_val, 0, sizeof(aifa->prev_val)); + + return pcm_pos; + } diff --git a/games-strategy/uqm/metadata.xml b/games-strategy/uqm/metadata.xml new file mode 100644 index 000000000000..0a1a6fc92acb --- /dev/null +++ b/games-strategy/uqm/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="music">download and install music files (large)</flag> + <flag name="remix">download and install music remix files (large)</flag> + <flag name="voice">download and install voice files (large)</flag> + </use> + <upstream> + <remote-id type="sourceforge">sc2</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/uqm/uqm-0.7.0-r3.ebuild b/games-strategy/uqm/uqm-0.7.0-r3.ebuild new file mode 100644 index 000000000000..eabe7f64c52a --- /dev/null +++ b/games-strategy/uqm/uqm-0.7.0-r3.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils multilib toolchain-funcs games + +DESCRIPTION="The Ur-Quan Masters: Port of Star Control 2" +HOMEPAGE="http://sc2.sourceforge.net/" +SRC_URI="mirror://sourceforge/sc2/${P}-source.tgz + mirror://sourceforge/sc2/${P}-content.uqm + music? ( mirror://sourceforge/sc2/${P}-3domusic.uqm ) + voice? ( mirror://sourceforge/sc2/${P}-voice.uqm ) + remix? ( mirror://sourceforge/sc2/${PN}-remix-disc1.uqm \ + mirror://sourceforge/sc2/${PN}-remix-disc2.uqm \ + mirror://sourceforge/sc2/${PN}-remix-disc3.uqm \ + mirror://sourceforge/sc2/${PN}-remix-disc4.uqm )" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ppc64 x86" +IUSE="music opengl remix voice" + +RDEPEND="media-libs/libmikmod + media-libs/libogg + >=media-libs/libpng-1.4:0 + media-libs/libsdl[X,sound,joystick,video] + media-libs/libvorbis + media-libs/sdl-image[png] + sys-libs/zlib + opengl? ( virtual/opengl )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + local myopengl + + use opengl \ + && myopengl=opengl \ + || myopengl=pure + + epatch \ + "${FILESDIR}"/${P}-tempdir.patch \ + "${FILESDIR}"/${P}-warning.patch + + cat <<-EOF > config.state + CHOICE_debug_VALUE='nodebug' + CHOICE_graphics_VALUE='${myopengl}' + CHOICE_sound_VALUE='mixsdl' + CHOICE_accel_VALUE='plainc' + INPUT_install_prefix_VALUE='${GAMES_PREFIX}' + INPUT_install_bindir_VALUE='\$prefix/bin' + INPUT_install_libdir_VALUE='\$prefix/lib' + INPUT_install_sharedir_VALUE='${GAMES_DATADIR}/' + EOF + + # Take out the read so we can be non-interactive. + sed -i \ + -e '/read CHOICE/d' build/unix/menu_functions || die + + # respect CFLAGS + sed -i \ + -e "s/-O3//" build/unix/build.config || die + + sed -i \ + -e "s:@INSTALL_LIBDIR@:$(games_get_libdir)/:g" \ + build/unix/uqm-wrapper.in || die + + # respect CC + sed -i \ + -e "s/PROG_gcc_FILE=\"gcc\"/PROG_gcc_FILE=\"$(tc-getCC)\"/" \ + build/unix/config_proginfo_build || die +} + +src_compile() { + MAKE_VERBOSE=1 ./build.sh uqm || die +} + +src_install() { + # Using the included install scripts seems quite painful. + # This manual install is totally fragile but maybe they'll + # use a sane build system for the next release. + newgamesbin uqm-wrapper uqm + exeinto "$(games_get_libdir)"/${PN} + doexe uqm + + insinto "${GAMES_DATADIR}"/${PN}/content/packages + doins "${DISTDIR}"/${P}-content.uqm + echo ${P} > "${D}${GAMES_DATADIR}"/${PN}/content/version || die + + insinto "${GAMES_DATADIR}"/${PN}/content/addons + if use music; then + doins "${DISTDIR}"/${P}-3domusic.uqm + fi + + if use voice; then + doins "${DISTDIR}"/${P}-voice.uqm + fi + + if use remix; then + insinto "${GAMES_DATADIR}"/${PN}/content/addons + doins "${DISTDIR}"/${PN}-remix-disc{1,2,3,4}.uqm + fi + + dodoc AUTHORS ChangeLog Contributing README WhatsNew doc/users/manual.txt + docinto devel + dodoc doc/devel/[!n]* + docinto devel/netplay + dodoc doc/devel/netplay/* + make_desktop_entry uqm "The Ur-Quan Masters" + prepgamesdirs +} diff --git a/games-strategy/wargus-data/Manifest b/games-strategy/wargus-data/Manifest new file mode 100644 index 000000000000..83ef9eab6936 --- /dev/null +++ b/games-strategy/wargus-data/Manifest @@ -0,0 +1,4 @@ +EBUILD wargus-data-0.ebuild 985 SHA256 a7963099a1c6c4f26ad3d7f85f526490bfa7a52a076c2d18522e126ae3925862 SHA512 beeb942c5eebdbce51b38e65ed0a5bd0bec23f6bc6117318ecdf05bde3bcac7a760caf00c648489f65343100da77909c03d9628cc6cffe44f8cfac6de5f372aa WHIRLPOOL 4a7c2ab612aeaeb374abb54ec6cebab8d6a5bbe2f3f90578d12b3a1bfd9e95af95763eda6ead504bd2815532563eb787fbe275eaa13ff23977e900f6a5a29bad +MISC ChangeLog 3263 SHA256 6954a2596cdaa16963b661203a0e5aa651abbc2509744d34175f4077225863f7 SHA512 dd5860666128c1128f0a451eee36ca25b3e086886341e34b51d83380a112c9244f03a817d71d0ec639b295ec336368f154fa67bb0c392d973a80aa289c109a28 WHIRLPOOL 5b8153f96ba97d68c1196ce5c23a518b2e969e0d4fac2ec8af18581a9fbb2d12d1567367720007a97b2370a79d90087c37d764523feaf84a38e8186d617bfde2 +MISC ChangeLog-2015 1128 SHA256 5e199ce19c214d94c4e8ae0677c9a56bebaec657780ec8aa6b2c23ffe065d74f SHA512 33c8c2659ca9c144c5fbe206b4ed0d8fa679c152f635cd6dd3832bae24eccaac6a3306fb114ff42140b2c02f609abb28b23c1539bcb18f39b1149331f34b7fd4 WHIRLPOOL 18a1ff90aed05b5bae4c858a51cf99207071273a31e08c6d1c418db160dc280373befcf1989ffa04599601c6f72a10188a897060a84a2042fc24d788cf9ca862 +MISC metadata.xml 329 SHA256 aa6a0a67646462677717f1d229c4b98bb68064ac5aa5e275a6ead395dec4c86c SHA512 fedeb73a5c2116db0073c51166b5c3fcf1c5667f5bb0db1b21f7643a6a8f247624738c883af3e457d6a6a7c2b5d39da6c26ffb2cecc847e64501bd659f1f119e WHIRLPOOL 6566e9b72f7f1fec5152b6813c7ab63580a628ad8a5da285037fc2384fc89e142ef82a2b632051ede48af99c1d4b26b971ed84aaf0cdce4ac4c9bee5f44140dd diff --git a/games-strategy/wargus-data/metadata.xml b/games-strategy/wargus-data/metadata.xml new file mode 100644 index 000000000000..ee6903c19afc --- /dev/null +++ b/games-strategy/wargus-data/metadata.xml @@ -0,0 +1,11 @@ +<?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">wargus</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/wargus-data/wargus-data-0.ebuild b/games-strategy/wargus-data/wargus-data-0.ebuild new file mode 100644 index 000000000000..1a3b4866fca9 --- /dev/null +++ b/games-strategy/wargus-data/wargus-data-0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit cdrom games + +DESCRIPTION="Warcraft II data for wargus (needs DOS CD)" +HOMEPAGE="http://wargus.sourceforge.net/" +SRC_URI="" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +# wargus is needed for wartool (bug #578340) +DEPEND="${RDEPEND} + games-strategy/wargus + media-sound/cdparanoia + media-sound/timidity++ + media-video/ffmpeg2theora" +# wrt bug #419331 +RESTRICT="userpriv" + +S=${WORKDIR} + +src_prepare() { + export CDROM_NAME="WARCRAFT2" + cdrom_get_cds data/rezdat.war +} + +src_compile() { + # cdparanoia needs write acces to the cdrom device + # this fixes sandbox violation wrt #418051 + local save_sandbox_write=${SANDBOX_WRITE} + addwrite /dev + "${GAMES_BINDIR}"/wartool -m -v -r "${CDROM_ROOT}"/data "${S}"/ || die + SANDBOX_WRITE=${save_sandbox_write} +} + +src_install() { + insinto "${GAMES_DATADIR}"/stratagus/wargus + doins -r * + prepgamesdirs +} diff --git a/games-strategy/wargus/Manifest b/games-strategy/wargus/Manifest new file mode 100644 index 000000000000..ee745fe314d9 --- /dev/null +++ b/games-strategy/wargus/Manifest @@ -0,0 +1,5 @@ +DIST wargus_2.3.0.orig.tar.gz 45006918 SHA256 9b8def814a8c7135653ae95bb1ff836627d39d5f8242a436f486c59701eaeee7 SHA512 79dbef5f86fafe7357c2911a16655c29bccef71dad39bfe6e02866c1734ee1598bb29a9005c8fa7c73d6f64e13fb7cdd3962214921b0b18c3868cb5abb2a0a87 WHIRLPOOL 8c34fcd6b84f26183c5a0ad1f8d14cae1eed601d2b4e38aa22a8fa8a1bd068b93fb2f1ae5fb223a41524ef467269b585c446e8476a4736507b91cb6bd23b8006 +EBUILD wargus-2.3.0.ebuild 1187 SHA256 cc2debc4654e106bdb00b66d610635bb1250c24ca7e1eb3d675f5fa6c0859d15 SHA512 52704000dad77ef8c006d0f1861861cd843324c17baadac96da8aaf52bfbc03eae9795a243f8ce3d8151c71d218113fcc89e8c0bb127c39e4b408dca0fef719f WHIRLPOOL 0038d7f5e53a88b1302f511ec92b927bab5001d1435c336f529cfdfd3d712feca7ccc6e8c2c9196716fa292af0794e4b91bcf1b6ffe5c42437cfe0614a0ec030 +MISC ChangeLog 3907 SHA256 94cc71b8f5d7a385f4134395762c7efdd020ae66474a7629b9724b35de2a523f SHA512 96d075e255c4d6aa914390a403481edff70a431200cfadee3c5defd22473823dde41fb99597023bad279b1d1a0d29918598dcbf2c1695b47fa031a90c1c55edd WHIRLPOOL 45e7ad5f114b011f516b855a187e54ac8e5e1c88184610e13bb97daa66421cda13bf04060e3c400afbdfcb29224b121a33063630f5ec3f771c6d915c065cfc3b +MISC ChangeLog-2015 4950 SHA256 486c0e3e63b9f6d6490362eb424eb1db5101601fa87574ac63cea81f11083ce5 SHA512 279082f20f822617735a482b7139b0e0f947de29b960357f5d2e496e9291b65e553b842ac5fae939a8cb90d4335516e757607d5ae97cd2d62706eea5e0718af5 WHIRLPOOL 13c1a7cbf762867af46d47aeeb1cb0a2e88f8ab053e612e6a893e31ba64fa5ddc682ba106a8678686bc2e3ee0dca09008550df43232854f6372f6e80c300b646 +MISC metadata.xml 378 SHA256 aa87a5efb478a52b239a09214e77fd00cf96ab9b50f3fa6ad9bee99c451df46a SHA512 ccc5c5ce04783ccd03e482797fd8941fae5c1ba32936641b762595a03606996157637f5155a80eb7284fa2f290b8883b12a1b9b9ba83cf2693876f3cd269617f WHIRLPOOL dd4e159c7a16261ad7a27b73f53d2597cff0e3760c0c49111473cd9f5f65e3eca1efec02f9460a05b731ad6a2e1d17da272d9c2560a8b62886d64510137dc660 diff --git a/games-strategy/wargus/metadata.xml b/games-strategy/wargus/metadata.xml new file mode 100644 index 000000000000..734f09c524c3 --- /dev/null +++ b/games-strategy/wargus/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="launchpad">wargus</remote-id> + <remote-id type="sourceforge">wargus</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/wargus/wargus-2.3.0.ebuild b/games-strategy/wargus/wargus-2.3.0.ebuild new file mode 100644 index 000000000000..284be824d4f7 --- /dev/null +++ b/games-strategy/wargus/wargus-2.3.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils cmake-utils gnome2-utils games + +DESCRIPTION="Warcraft II for the Stratagus game engine" +HOMEPAGE="http://wargus.sourceforge.net/" +SRC_URI="https://launchpad.net/${PN}/trunk/2.3/+download/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="=games-engines/stratagus-${PV}*[theora] + media-libs/libpng:0 + sys-libs/zlib + x11-libs/gtk+:2 + x11-libs/libX11" +DEPEND="${RDEPEND} + virtual/pkgconfig" +PDEPEND="games-strategy/wargus-data" + +S=${WORKDIR}/${PN}_${PV}.orig + +src_configure() { + local mycmakeargs=( + -DGAMEDIR="${GAMES_BINDIR}" + -DBINDIR="${GAMES_BINDIR}" + -DSTRATAGUS="${GAMES_BINDIR}"/stratagus + -DICONDIR=/usr/share/icons/hicolor/64x64/apps + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + elog "Enabling OpenGL in-game seems to cause segfaults/crashes." + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/warmux/Manifest b/games-strategy/warmux/Manifest new file mode 100644 index 000000000000..24cfa516d88b --- /dev/null +++ b/games-strategy/warmux/Manifest @@ -0,0 +1,11 @@ +AUX warmux-11.04.1-action.patch 549 SHA256 a2b7bc4bfd84bc49dea5ef76a3386b414568c5b889f7ecad7d551e1f8f0cdc2e SHA512 c31ac142b43e593f4c7b9fff36a8dd0bb34b371a63935cf55627660d96eda8fe68af721254bd72a2168045a27b32a407df494eb6b216115a0bb0516478187ec9 WHIRLPOOL 91f7ff962204a22b09fb2f10a1b024cdd0ec0cd4739ef826643ca4692decf8808675772a123718993677dc175ed1844cd637e37d2f44428db40999c41be4e2f2 +AUX warmux-11.04.1-fix-c++14.patch 488 SHA256 3cd6bc564e8b5c30b3df742a72ef4f8d799dfed0a213f169aa4044586833a402 SHA512 c8c6d5d070e926f7ffd03766c95481c0db8b43a8a0f3fad301e7e7210013098696ad5af0c5ab8c70f0081711b6b50847d8873af0ea79315c4c45c760e915eb88 WHIRLPOOL 449871ce038cac93b2c1570fbfe068e6e0c797de207e65725e540ddb9e8f5428bc9150c6fb4a8068a75007aadc703a83a6495ff48c58ffa80fb29afcaeeb44a8 +AUX warmux-11.04.1-gcc47.patch 335 SHA256 e4445d745994ced951a1811d9298d6f864846b8dec04453955362530cbc963db SHA512 33e403ce0dd69ae782ca3696838bfaf8126520b92b3b813ac491559dafd429ae3379131965a49e2c7ca2955a384ce41989f89db611696f999edf41c4abdd1270 WHIRLPOOL 158139353e7efe8517de2bd82183a02395c044870d4bd922d672ba22f4ffaa18f1eb306dd92faea2e3002e4b37d9b52f2c68dd892a0948dd278ef01e9a967844 +AUX warmux-11.04.1-gentoo.patch 1543 SHA256 ddaf2c688f58cf8fb9d0baddd4016ebbf04c974ab533ebc0c3532ee87799d643 SHA512 30e565a3b212a3b54c29267b29a43343d21a3fbadf2bc70552fb074b0f174f08cf66a6565f19de4f0187dbfe68e9124fda42a0cd85d592f1d596f217f5c3c4f9 WHIRLPOOL 29e82ad7e85914a9115b16cbd7a7337e01da5bf2da3eefc38124af56d76627eaccfcfc2684a397d9ab35f6467634db00b6ea35f4aa5fa5ed73a0d3d77feb6e56 +AUX warmux-11.04.1-stat.patch 1746 SHA256 6c19ec72214bf44649a8ed3183aa35da1d45871d4ad6d41eabc16f355818dcdc SHA512 f0af67d2109585e6cc02621a9ff249cfe5154783216d46d2c7641ec825a8e30d34767122d12ced8bfd916c3c966cadad49eeb43b44aa1954905950272c0c9902 WHIRLPOOL 7d2ef4c199a8fdfdad4f7d6718c1283d112622285f08d8bbcf7b954213208c15af4e7975ad44ae321c743ff6431b5cb4616a06b2ad3c457a0df04248045e2974 +AUX warmux-11.04.1-zlib.patch 416 SHA256 665c4a64e54478491284f6cb6251bd58f96ba81671a7c439cffe175b86462852 SHA512 09ccc426514cf96d07fc3b05b7f248b0b77d2e61991afe530cb61b9c5ebf5c9222d2d4716861beed95607653ca4c617c03f244a957c4c6369925bd531ab73d3c WHIRLPOOL 352c569b75679cbcd881236541d2564fb6487850be2eb0e01a8a6796bec1f52b4156cc5c6f937b29b700aa97632588a5ed1d0debe4c0c7a2deb73061811af0ff +DIST warmux-11.04.1.tar.bz2 110083622 SHA256 789c4f353e4c5ce0a2aba2e82861d3fd0e5218bc76d8da1a332f2c7b1b27e4ee SHA512 99501ea186e091b55a6e45935de83440be02ae4fc12ee6def5ec24e213c829230b4f6017043be6afbc7188e442b0e1128cfd27c290fbe0e49b6597f927fd1e2d WHIRLPOOL 2cce871fe330452c2f807ec4a9d99ff39de81a9f52c040e48f68a3478ce0a7407003159f9687c4d321c09fbdff7503e92cf47c64a5970666777e8b5d5536b220 +EBUILD warmux-11.04.1-r1.ebuild 1463 SHA256 d0090b7fd29ebba5c7973da294cf3cf76a4836db226c104c1fac24a96ea243fd SHA512 1d8735f742a7066d0f05b5a1e993d26b1f4a1e3e5fc231126e1b473e0182a0c3a299adb788a03207a441e68d7f90b4b2e5ea25aeb607cea9763316b32af976ea WHIRLPOOL 957b2ad9c93ed0e15c6b9fdf91c91e750d34d41ad1957e5c2851553ea7c941c632a438fa7803235a719bc4d25fd694aef449e704285482521ae2585d76a87d23 +MISC ChangeLog 3235 SHA256 dbec4da08ae9fa91fde75385749fa02ce4475093b82b7c926b13bb33015e0e77 SHA512 79f7142d62b08cdba1954ecaa0916037cc2e090594cba5715ac393f8a18132d0bbbf58ea317e7587386e506537936627fc61331b71c5e3083cb81f27361fc57d WHIRLPOOL 0763d2e3c880f8c1d283207d1edcfa03e71d277464eb8978842d907f623282c502c20fd3363f8c3ad46b9b864111ad113321b9bfd69e59054c8507194b054371 +MISC ChangeLog-2015 9038 SHA256 1bd7e17eaaac94cdecf6dbaa14b9495c4e3c44c388780cdc14e237bbd1e52fc6 SHA512 16f1c56164905a411eeb4c39b791e570622ff4ddcf1893b5b104f13071f90b871708805d41e6f8532ec4789cbb645ec8b909afc1bbf4eab8fb9a52b6f422ccf5 WHIRLPOOL 18daac8274e5aef23b1b997274eb1c126f5d99ba7e4da5c2d5fa2d8fd964966e20555e227d6a36ce2f5c8ef024013c207e5cfbf6d0b66fa89ab6b22ef07c65af +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-strategy/warmux/files/warmux-11.04.1-action.patch b/games-strategy/warmux/files/warmux-11.04.1-action.patch new file mode 100644 index 000000000000..e1530337a259 --- /dev/null +++ b/games-strategy/warmux/files/warmux-11.04.1-action.patch @@ -0,0 +1,12 @@ +diff -uNr warmux-11.04.orig/lib/warmux/action/action.cpp warmux-11.04/lib/warmux/action/action.cpp
+--- warmux-11.04.orig/lib/warmux/action/action.cpp 2012-03-27 15:18:08.440709875 +0200
++++ warmux-11.04/lib/warmux/action/action.cpp 2012-03-27 15:17:44.871711354 +0200
+@@ -85,7 +85,7 @@
+ {
+ m_creator = _creator;
+
+- m_header.len = SDLNet_Read32(buffer);
++ m_header.len = SDLNet_Read32((void *)buffer);
+ ASSERT(m_header.len >= sizeof(Header));
+ buffer += 4;
+ // All of the following could be skipped for the actions we now,
\ No newline at end of file diff --git a/games-strategy/warmux/files/warmux-11.04.1-fix-c++14.patch b/games-strategy/warmux/files/warmux-11.04.1-fix-c++14.patch new file mode 100644 index 000000000000..223ee47ab5a2 --- /dev/null +++ b/games-strategy/warmux/files/warmux-11.04.1-fix-c++14.patch @@ -0,0 +1,14 @@ +In C++14, bool -> T* implicit conversions are not allowed anymore. +See also: https://bugs.gentoo.org/show_bug.cgi?id=598639 + +--- a/src/interface/weapon_menu.cpp ++++ b/src/interface/weapon_menu.cpp +@@ -391,7 +391,7 @@ + Weapon * WeaponsMenu::UpdateCurrentOverflyItem(const Polygon * poly) + { + if (!show) +- return false; ++ return NULL; + const std::vector<PolygonItem *>& items = poly->GetItem(); + WeaponMenuItem * tmp; + Interface::GetInstance()->SetCurrentOverflyWeapon(NULL); diff --git a/games-strategy/warmux/files/warmux-11.04.1-gcc47.patch b/games-strategy/warmux/files/warmux-11.04.1-gcc47.patch new file mode 100644 index 000000000000..8460bcbd0b1c --- /dev/null +++ b/games-strategy/warmux/files/warmux-11.04.1-gcc47.patch @@ -0,0 +1,11 @@ +Description: Fix FTBFS with gcc 4.7. +Author: Felix Geyer <debfx-pkg@fobos.de> + +--- warmux-11.04.1+repack.orig/tools/list_games/main.cpp ++++ warmux-11.04.1+repack/tools/list_games/main.cpp +@@ -1,4 +1,5 @@ + #include <stdio.h> ++#include <unistd.h> + #include <WARMUX_types.h> + #include <WARMUX_network.h> + #include <WARMUX_index_server.h> diff --git a/games-strategy/warmux/files/warmux-11.04.1-gentoo.patch b/games-strategy/warmux/files/warmux-11.04.1-gentoo.patch new file mode 100644 index 000000000000..62d22f84c82d --- /dev/null +++ b/games-strategy/warmux/files/warmux-11.04.1-gentoo.patch @@ -0,0 +1,40 @@ +diff -ru warmux-11.04.orig/configure.ac warmux-11.04/configure.ac +--- warmux-11.04.orig/configure.ac 2011-04-18 16:46:12.000000000 -0400 ++++ warmux-11.04/configure.ac 2011-04-19 11:17:27.380256500 -0400 +@@ -43,8 +43,6 @@ + AC_MSG_ERROR([*** No C++ compiler can be found!]) + fi + +-AX_CFLAGS_WARN_ALL([CXXFLAGS]) +- + # ========================================================================== + # == Set flags for various environments = + # ========================================================================== +@@ -348,14 +346,9 @@ + exit 1 + fi + +-dnl === Add Werror flag for gcc/g++ if debug mode is enabled, ============== +-dnl === but allow RTTI (ie dynamic_cast, typeid/typeinfo unavailable) ====== +-if test "x${debug}" = "xyes"; then ++if test "x${debug}" != "xyes"; then +- CFLAGS="$CFLAGS -Werror" +- CXXFLAGS="$CXXFLAGS -Werror" +-else + CXXFLAGS="$CXXFLAGS -fno-rtti" + fi + + dnl === Forbid exceptions (Android platform requirement) =================== + CXXFLAGS="$CXXFLAGS -fno-exceptions" +diff -ru warmux-11.04.orig/data/Makefile.am warmux-11.04/data/Makefile.am +--- warmux-11.04.orig/data/Makefile.am 2011-04-18 16:46:11.000000000 -0400 ++++ warmux-11.04/data/Makefile.am 2011-04-19 11:17:45.134724536 -0400 +@@ -1,8 +1,2 @@ +-xdg_appsdir = $(prefix)/share/applications +-xdg_apps_DATA = warmux.desktop warmux_files.desktop +-pixmapsdir = $(prefix)/share/pixmaps +-pixmaps_DATA = icon/warmux_128x128.png +- + nobase_dist_pkgdata_DATA = @DATA_FILES@ + pkgdatadir = @DATADIR@ +-EXTRA_DIST = $(pixmaps_DATA) diff --git a/games-strategy/warmux/files/warmux-11.04.1-stat.patch b/games-strategy/warmux/files/warmux-11.04.1-stat.patch new file mode 100644 index 000000000000..487b3805ba6f --- /dev/null +++ b/games-strategy/warmux/files/warmux-11.04.1-stat.patch @@ -0,0 +1,61 @@ +diff -ur warmux-11.04.orig/lib/warmux/tools/file_tools.cpp warmux-11.04/lib/warmux/tools/file_tools.cpp +--- warmux-11.04.orig/lib/warmux/tools/file_tools.cpp 2011-04-28 21:03:13.000000000 +0200 ++++ warmux-11.04/lib/warmux/tools/file_tools.cpp 2013-03-05 16:58:42.040443845 +0100 +@@ -33,6 +33,8 @@ + # include <direct.h> + # undef DeleteFile // windows.h defines it I think + #else ++# include <sys/types.h> ++# include <sys/stat.h> + # include <stdlib.h> // getenv + # include <unistd.h> // not needed by mingw + #endif +@@ -275,18 +277,14 @@ + { + DIR *dir; + struct dirent *file; +-#ifdef __SYMBIAN32__ + std::string dname; +-#endif + }; + + FolderSearch* OpenFolder(const std::string& dirname) + { + FolderSearch *f = new FolderSearch; + f->dir = opendir(dirname.c_str()); +-#ifdef __SYMBIAN32__ + f->dname = dirname; +-#endif + + if (!f->dir) { + delete f; +@@ -300,11 +298,11 @@ + { + while ((f->file = readdir(f->dir)) != NULL) { + ++ if ( + #ifdef __SYMBIAN32__ +- if (f->file->d_namlen && DoesFolderExist(f->dname+"/"+std::string(f->file->d_name))) { +-#else +- if (f->file->d_type == DT_DIR) { ++ f->file->d_namlen && + #endif ++ DoesFolderExist(f->dname+"/"+std::string(f->file->d_name))) { + // If we are also looking for files, report it isn't one + if (file) + file = false; +@@ -316,11 +314,11 @@ + continue; + + // This is a file and we do search for file ++ if ( + #ifdef __SYMBIAN32__ +- if (f->file->d_namlen && DoesFileExist(f->dname+"/"+std::string(f->file->d_name))) { +-#else +- if (f->file->d_type == DT_REG) { ++ f->file->d_namlen && + #endif ++ DoesFileExist(f->dname+"/"+std::string(f->file->d_name))) { + file = true; + return f->file->d_name; + } diff --git a/games-strategy/warmux/files/warmux-11.04.1-zlib.patch b/games-strategy/warmux/files/warmux-11.04.1-zlib.patch new file mode 100644 index 000000000000..c7e77aba11c8 --- /dev/null +++ b/games-strategy/warmux/files/warmux-11.04.1-zlib.patch @@ -0,0 +1,11 @@ +diff -uNr warmux-11.04.orig/src/graphic/surface.cpp warmux-11.04/src/graphic/surface.cpp +--- warmux-11.04.orig/src/graphic/surface.cpp 2011-09-19 09:26:52.392650465 +0200 ++++ warmux-11.04/src/graphic/surface.cpp 2011-09-19 09:26:19.417648189 +0200 +@@ -25,6 +25,7 @@ + #include <SDL_image.h> + #include <SDL_rotozoom.h> + #include <png.h> ++#include <zlib.h> + + #include "graphic/surface.h" + #include "tool/math_tools.h" diff --git a/games-strategy/warmux/metadata.xml b/games-strategy/warmux/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-strategy/warmux/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-strategy/warmux/warmux-11.04.1-r1.ebuild b/games-strategy/warmux/warmux-11.04.1-r1.ebuild new file mode 100644 index 000000000000..aa4a05d49b72 --- /dev/null +++ b/games-strategy/warmux/warmux-11.04.1-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils + +DESCRIPTION="A free Worms clone" +HOMEPAGE="http://gna.org/projects/warmux/" +SRC_URI="http://download.gna.org/warmux/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x86-solaris" +IUSE="debug nls unicode" + +RDEPEND=" + dev-libs/libxml2 + media-libs/libsdl[joystick,video,X] + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-ttf + media-libs/sdl-net + media-libs/sdl-gfx + media-fonts/dejavu + net-misc/curl + x11-libs/libX11 + nls? ( virtual/libintl ) + unicode? ( dev-libs/fribidi )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${PN}-11.04 + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-zlib.patch + "${FILESDIR}"/${P}-action.patch + "${FILESDIR}"/${P}-gcc47.patch + "${FILESDIR}"/${P}-stat.patch + "${FILESDIR}"/${P}-fix-c++14.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --with-localedir-name="${EPREFIX}"/usr/share/locale \ + --with-datadir-name="${EPREFIX}"/usr/share/${PN} \ + --with-font-path="${EPREFIX}"/usr/share/fonts/dejavu/DejaVuSans.ttf \ + $(use_enable debug) \ + $(use_enable nls) \ + $(use_enable unicode fribidi) +} + +src_install() { + default + + rm -f "${ED%/}"/usr/share/${PN}/font/DejaVuSans.ttf || die + doicon data/icon/warmux.svg + make_desktop_entry warmux Warmux +} diff --git a/games-strategy/warzone2100/Manifest b/games-strategy/warzone2100/Manifest new file mode 100644 index 000000000000..5b88ce47cd0c --- /dev/null +++ b/games-strategy/warzone2100/Manifest @@ -0,0 +1,7 @@ +DIST warzone2100-3.2.3-qt_compile_fix.patch 680 SHA256 59529cb62e5985ed9934fdf3621a98ecf2b3b54d4bd7d0793b5317156934712f SHA512 766698c25c02b4254424efdafb8aa7b37360c3c05d3cd2d6c7f9127cbdd6a25840f98e8e3aadd5d6af494b4632584e564214c1f20c0bd74eb637da305552e067 WHIRLPOOL 6a556afbb9151b9ede55d00e92ab168539ff5f1f7f87f88f69817f46ba4cfb59e961f39504c21abae90009c39c3398b26c0e9fb5c2cb2c082d9254bb7bae04d7 +DIST warzone2100-3.2.3.tar.xz 81314060 SHA256 fcab9e860203e7dacda6ee60384da490a9d44aeafc07aa31ff25f9c548be7582 SHA512 4b1bc0a0bb50a8b4726a2762a922ee233b92f9835e38bbab80c159a9cb301df7434a73ba5acfb17404031467c02a9b3480d6a0d44906d70896311b3468141746 WHIRLPOOL 65d49d855c9efb35113ac181101849f3ba5dacb0ed9ed8e187fdf79a9f01ac41802377ae941232555fdfbd2f4ed9ff29e77a4d61019595e0cee1d36f04c37bf5 +DIST warzone2100-videos-2.2.wz 571937134 SHA256 142ae905be288cca33357a49f42b884c190e828fc0b1b1773ded5dff774f41a3 SHA512 ca1a1af51296afdaca137114821508c5783f077090e665eae0f6df895855f57c43f84434706309e819417f5f35d1c649bd14e96dc9fbbb1252d30a4f9a223cf6 WHIRLPOOL 167e39a896081d75415810cdaa9c00ce3fa4062db1ef2b4f6f164beb9c1a1d3fd34cd474880521b75e4580f4496b246586d9270219e1cfe8e7740d1f7af35ebe +EBUILD warzone2100-3.2.3.ebuild 2720 SHA256 0ddbae01d56b22be1309fa2732378e4fd74179af98a3e54f1dca34f2027e5dcc SHA512 19f72b532bf0f146a258c0dfc22b7a2ed982ed937904bab4121e9be55d9d0f22483d45ad4df51fc82e060f0f1639b5f20c3032c4248a2517cc557b933e930854 WHIRLPOOL c2a857dd4871cdae661ccb7a0cb3a8867c2b89b3eb79d672d893041ee8f5df6341f2d644f360380d543dd9fc62dfc2449724ee412e927f0d8a0b8518ea3436b9 +MISC ChangeLog 5778 SHA256 7b4ee79f79e7ef996c1c2c716f3fde6f72d0a6363de646e933af51c3706f8489 SHA512 b95b77eb3126540d21c5d92c6895d0832bb83e8e182c0d26e29c156d0eed26d0f46e92e9904650f7c2ef2f011e12fbed66fa3b71272cd990f83a2e315c60b00d WHIRLPOOL 34dd763954ad78288c83d7a02488c5f879f40e45669b9c370b8d6719d7422d9d0b7edf2174af2e0ccf48addbd510ee6c3f69fd45e9f6a20c7ef995f2de36f84a +MISC ChangeLog-2015 12865 SHA256 3db32b47c7a237205ed258c82d8dc761a43ee2b563b7f20f2ca6c1ba6be76cb1 SHA512 341312b23c05b72249a2052e7ae5a39a1c924afe395dec2b9a8841e816fc1db78426de36a5c9373a7600a15ee2f4ad458c0bbf4805b1f2eee35be3af8e975479 WHIRLPOOL 07fbde5eed693fa53f7bb5640f4c704fb5a3d6a98c0a6b9527b7eca0acc99282f7f63b0179271cc174d9751e8f18a2e0719edca7be21238e80385b3d0a1543a2 +MISC metadata.xml 674 SHA256 6b49b02e09f470a229a603b87b98f73e38c56e8b3ee7af6b62a76628cfdb41d8 SHA512 00aa4a109f41a0469e2b0e5daadcd33f9f3b255fdd2a724b7d116912ecb0b5fa4eb5e0dd7e4ae3e45f00c062c1034aa7d40143e48da0e66bab48da3d4e047dcc WHIRLPOOL bb83a7e2508ebd2efb00181994942f5c8f39216b574e0bf435defcade190560e846f9f318cf0701ed8f226435435896a6a74743e7afef4ebda92ffaf618797f9 diff --git a/games-strategy/warzone2100/metadata.xml b/games-strategy/warzone2100/metadata.xml new file mode 100644 index 000000000000..ce7f3bcd92b0 --- /dev/null +++ b/games-strategy/warzone2100/metadata.xml @@ -0,0 +1,18 @@ +<?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> + Warzone 2100 offers campaign, multi-player, and single-player + skirmish modes. An extensive tech tree with over 400 different + technologies, combined with the unit design system, allows for + a wide variety of possible units and tactics. + </longdescription> + <upstream> + <remote-id type="sourceforge">warzone2100</remote-id> + <remote-id type="github">Warzone2100/warzone2100</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/warzone2100/warzone2100-3.2.3.ebuild b/games-strategy/warzone2100/warzone2100-3.2.3.ebuild new file mode 100644 index 000000000000..67f3e717b5df --- /dev/null +++ b/games-strategy/warzone2100/warzone2100-3.2.3.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools toolchain-funcs eutils versionator gnome2-utils + +MY_PV=$(get_version_component_range -2) +VIDEOS_PV=2.2 +VIDEOS_P=${PN}-videos-${VIDEOS_PV}.wz +DESCRIPTION="3D real-time strategy game" +HOMEPAGE="http://wz2100.net/" +SRC_URI="mirror://sourceforge/warzone2100/${P}.tar.xz + videos? ( mirror://sourceforge/warzone2100/warzone2100/Videos/${VIDEOS_PV}/high-quality-en/sequences.wz -> ${VIDEOS_P} )" + +SRC_URI+=" https://github.com/Warzone2100/warzone2100/commit/ef37bca38289f4f79c6533acd93ed326858a3f68.patch -> ${PN}-3.2.3-qt_compile_fix.patch" + +LICENSE="GPL-2+ CC-BY-SA-3.0 public-domain" +SLOT="0" +KEYWORDS="amd64 x86" +# upstream requested debug support +IUSE="debug nls sdl videos" + +# TODO: unbundle miniupnpc and quesoglc +# quesoglc-0.7.2 is buggy: http://developer.wz2100.net/ticket/2828 +CDEPEND=" + >=dev-games/physfs-2[zip] + dev-libs/openssl:0= + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtscript:5 + dev-qt/qtwidgets:5 + media-libs/freetype:2 + media-libs/glew:= + media-libs/harfbuzz + media-libs/libogg + media-libs/libpng:0 + media-libs/libtheora + media-libs/libvorbis + media-libs/openal + sys-libs/zlib + virtual/glu + virtual/opengl + x11-libs/libX11 + x11-libs/libXrandr + nls? ( virtual/libintl ) + !sdl? ( + dev-qt/qtopengl:5 + dev-qt/qtx11extras:5 + ) + sdl? ( media-libs/libsdl2[opengl,video,X] ) +" +DEPEND=" + ${CDEPEND} + app-arch/zip + dev-libs/fribidi + media-libs/fontconfig + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" +RDEPEND=" + ${CDEPEND} + media-fonts/dejavu +" + +src_prepare() { + default + + # https://developer.wz2100.net/ticket/4580 + eapply "${DISTDIR}/${P}-qt_compile_fix.patch" + + sed -i -e 's/#top_builddir/top_builddir/' po/Makevars || die + sed '/appdata\.xml/d' -i icons/Makefile.am || die + eautoreconf +} + +src_configure() { + local myeconfargs=( + --docdir=/usr/share/doc/${PF} + --localedir=/usr/share/locale + --with-distributor="Gentoo ${PF}" + --with-icondir=/usr/share/icons/hicolor/128x128/apps + --with-applicationdir=/usr/share/applications + $(use_enable debug debug relaxed) + $(use_enable nls) + --with-backend=$(usex sdl "sdl" "qt") + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + default + rm -f "${D}"/usr/share/doc/${PF}/COPYING* + if use videos ; then + insinto /usr/share/${PN} + newins "${DISTDIR}"/${VIDEOS_P} sequences.wz + fi + doman doc/warzone2100.6 + dodoc doc/quickstartguide.pdf + + elog "If you are using opensource drivers you should consider installing: " + elog " media-libs/libtxc_dxtn" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/wesnoth/Manifest b/games-strategy/wesnoth/Manifest new file mode 100644 index 000000000000..c11fde84c3b5 --- /dev/null +++ b/games-strategy/wesnoth/Manifest @@ -0,0 +1,8 @@ +AUX wesnothd.rc 502 SHA256 ffade973497785e468df98a7192277779ad33f0b7c588a10d36af490525549a2 SHA512 5e0a4680a35f81e749b8e0d56e3cf372c4a13b19578deda072560d0c63460426d7bde3e0e955287c8fbc939c700dc487283373ff9bc72bbcd9cf633ddaeafc96 WHIRLPOOL af8039bd4b82667b0dc3916092fa76ca87385f2cbac86665bd23e05d60e7ef01fae0c13db0850a12aa59570d9228055b7e350f217e4195df277d3e10998b85bb +DIST wesnoth-1.12.5.tar.bz2 387726941 SHA256 599aad40da4b271c5138ac5a4391d9ff9c367ee51f5c30ca138f6baf92aea81d SHA512 1a785c02389cd4bdc79b61f62c5bb98f01fde61c3923527195a5a8e8f8986349fcda3d40a4fb14248626ea8e79eba12b8232e39cce08bfea7fbdf3d9627d53b4 WHIRLPOOL 7afbbf28de36ce3a55a177bc5b6de7f635c4e18de5934378fce6ea6a1da7ab95c55ff6c35b4a3166927efc17138fb18ef600e08969b29001455e21a260c8f6b6 +DIST wesnoth-1.12.6.tar.bz2 387869758 SHA256 a50f384cead15f68f31cfa1a311e76a12098428702cb674d3521eb169eb92e4e SHA512 12ca3b5de8fd385b05cc8e76604f7aed68127a7542599d6e97cce793e10636e00bd65dcb088701e20ccc7191f41b1d67a00b291f885df880fac00d13d6fbde7a WHIRLPOOL a1ca73e86ab66cb263e288f12d005210b1b9275012a9de470f1d60a1fa8b80d81d834c9bb9002920b8a6c94b13a413f451a5703d377bd8fbadfe455a41967221 +EBUILD wesnoth-1.12.5.ebuild 3078 SHA256 b309f01cc090438a614892bc804409ccceafcb35636b7701adb4e34de3da1e22 SHA512 04d3172270981dd9d8503dfe06074a6a88e2517e0e853938f4884c47ab2dc0999c364117afcafd6896370197983edf7022f779e3441497f9e9cd829146923521 WHIRLPOOL 69bf961a3f36d4c07f999d574307b697ce5f04080192545f32d8b579641dbca57d67c1b82eb4893505c2b7326f2087290eb920718dd33e313c3dc91b12536438 +EBUILD wesnoth-1.12.6.ebuild 3078 SHA256 93b803834298e7c72908516952d5a772282bd30ccab389e48f710d4b83e3dfb7 SHA512 166de42e868fbb1275facccd8517cf7a5014fe11d651d3366422e42a07dd035bc195edf9a871a4b3d8862d150d39fc18673ab4b60669a94ab14d280fc335ee9b WHIRLPOOL f195c8c66feea79778df261f6636c2fee9fccfb197bc9c520462183137d488099f480e1f2a1dab2338367e4f55ef5ac7a95341e9cfd5c52a7fa6461342cbf193 +MISC ChangeLog 4277 SHA256 e3a2ed52fac81ae2dfa278a8629a727b33b9cb6da2bb3a2dd9a3fcfc98fea035 SHA512 611406c1488e1760862c47e1a92530bfec0f88d5a4630dbebd34f95dc658c7bd5a8dd6a18a38c3ea3a03bc9a86fc93bc1b70e2cf319401f7e0691592c211935e WHIRLPOOL d74f80c45a729bb3836643a80030b8e5438fed123fd588a3fa9f885b1c88b9c263428b95428293c7e0235cdf50c50d663a3e9a2246c4ca880630c627dc63e7e2 +MISC ChangeLog-2015 31794 SHA256 26a500203cf457a4197ba23b36e86f53138b4be8f9f37538bef5ec3b07705325 SHA512 9193b4c8b5fe6e74a7884470971c8b1a8ae8c04d99484e5eb7f3d6de2f97845eac79b69636ab3fc783e42e3e9cdb835e409e492e5c94e25de00d169f88d0e34a WHIRLPOOL 9fffddbef4e6d3029262601f57a47bb47c138a70a7f80c5c42739c599b5c58ecd417bdad4c4ee5b72f84361d53e06628384461fbd9e219df0ad8a1101678534a +MISC metadata.xml 485 SHA256 4868865e101fbd1879d376e95f2fb90d6b332a22c660b7386698b56920cc7039 SHA512 ccc12cec7aa66b59d11f65d4b8b6127c86eab2e998c31587f4323020231b55c6460d0c1fad04d7298ccdb2fe1bd9abc43e3b93716a379cbbc46f60f6bcd68ef3 WHIRLPOOL 2ffebb7acf423fa06fe21fffded41161ceef5d170acb80c7314da43fc083d1c454b72714e2d91bb1cef43fa8c969547f357a38072ec7dedd6e29093639172097 diff --git a/games-strategy/wesnoth/files/wesnothd.rc b/games-strategy/wesnoth/files/wesnothd.rc new file mode 100644 index 000000000000..f8662b0981fc --- /dev/null +++ b/games-strategy/wesnoth/files/wesnothd.rc @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net +} + +start() { + ebegin "Starting wesnothd" + start-stop-daemon --start --quiet -b -m \ + --pidfile "GAMES_STATEDIR"/run/wesnothd/wesnothd.pid \ + -c GAMES_USER_DED:GAMES_GROUP \ + --exec "GAMES_BINDIR"/wesnothd + eend $? +} + +stop() { + ebegin "Stopping wesnothd" + start-stop-daemon --stop --quiet --pidfile "GAMES_STATEDIR"/run/wesnothd/wesnothd.pid + eend $? +} diff --git a/games-strategy/wesnoth/metadata.xml b/games-strategy/wesnoth/metadata.xml new file mode 100644 index 000000000000..cb9b89b8b017 --- /dev/null +++ b/games-strategy/wesnoth/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> + <use> + <flag name="server">Enable compilation of server</flag> + <flag name="fribidi">Support for right-to-left languages</flag> + </use> + <upstream> + <remote-id type="sourceforge">wesnoth</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/wesnoth/wesnoth-1.12.5.ebuild b/games-strategy/wesnoth/wesnoth-1.12.5.ebuild new file mode 100644 index 000000000000..5fdf8efcd60f --- /dev/null +++ b/games-strategy/wesnoth/wesnoth-1.12.5.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit cmake-utils eutils multilib toolchain-funcs flag-o-matic games + +DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game" +HOMEPAGE="http://www.wesnoth.org/" +SRC_URI="mirror://sourceforge/wesnoth/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc64 x86 ~x86-fbsd" +IUSE="dbus dedicated doc fribidi nls server" + +RDEPEND=">=media-libs/libsdl-1.2.7:0[joystick,video,X] + media-libs/sdl-net + !dedicated? ( + >=media-libs/sdl-ttf-2.0.8 + >=media-libs/sdl-mixer-1.2[vorbis] + >=media-libs/sdl-image-1.2[jpeg,png] + fribidi? ( dev-libs/fribidi ) + dbus? ( sys-apps/dbus ) + sys-libs/zlib + x11-libs/pango + dev-lang/lua:0 + media-libs/fontconfig + ) + >=dev-libs/boost-1.48:=[nls,threads] + virtual/libintl" +DEPEND="${RDEPEND} + virtual/pkgconfig + sys-devel/gettext" + +src_prepare() { + if use dedicated || use server ; then + sed \ + -e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \ + -e "s:GAMES_STATEDIR:${GAMES_STATEDIR}:" \ + -e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \ + -e "s/GAMES_GROUP/${GAMES_GROUP}/" "${FILESDIR}"/wesnothd.rc \ + > "${T}"/wesnothd || die + fi + if ! use doc ; then + sed -i \ + -e '/manual/d' \ + doc/CMakeLists.txt || die + fi + # bug #472994 + mv icons/wesnoth-icon-Mac.png icons/wesnoth-icon.png || die + mv icons/map-editor-icon-Mac.png icons/wesnoth_editor-icon.png || die + + # respect LINGUAS (bug #483316) + if [[ ${LINGUAS+set} ]] ; then + local langs + for lang in $(cat po/LINGUAS) + do + has $lang $LINGUAS && langs+="$lang " + done + echo "$langs" > po/LINGUAS || die + fi +} + +src_configure() { + filter-flags -ftracer -fomit-frame-pointer + if [[ $(gcc-major-version) -eq 3 ]] ; then + filter-flags -fstack-protector + append-flags -fno-stack-protector + fi + # Work around eclass + append-flags -UNDEBUG + if use dedicated || use server ; then + mycmakeargs=( + "-DENABLE_CAMPAIGN_SERVER=TRUE" + "-DENABLE_SERVER=TRUE" + "-DSERVER_UID=${GAMES_USER_DED}" + "-DSERVER_GID=${GAMES_GROUP}" + "-DFIFO_DIR=${GAMES_STATEDIR}/run/wesnothd" + ) + else + mycmakeargs=( + $(cmake-utils_use_enable fribidi FRIBIDI) + "-DENABLE_CAMPAIGN_SERVER=FALSE" + "-DENABLE_SERVER=FALSE" + ) + fi + mycmakeargs+=( + $(cmake-utils_use_enable !dedicated GAME) + $(cmake-utils_use_enable !dedicated ENABLE_DESKTOP_ENTRY) + $(cmake-utils_use_enable nls NLS) + $(cmake-utils_use_enable dbus NOTIFICATIONS) + "-DCMAKE_VERBOSE_MAKEFILE=TRUE" + "-DENABLE_STRICT_COMPILATION=FALSE" + "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}" + "-DDATAROOTDIR=${GAMES_DATADIR}" + "-DBINDIR=${GAMES_BINDIR}" + "-DICONDIR=/usr/share/pixmaps" + "-DDESKTOPDIR=/usr/share/applications" + "-DLOCALEDIR=/usr/share/locale" + "-DMANDIR=/usr/share/man" + "-DDOCDIR=/usr/share/doc/${PF}" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + DOCS="README.md changelog players_changelog" cmake-utils_src_install + if use dedicated || use server; then + keepdir "${GAMES_STATEDIR}/run/wesnothd" + doinitd "${T}"/wesnothd + fi + prepgamesdirs +} diff --git a/games-strategy/wesnoth/wesnoth-1.12.6.ebuild b/games-strategy/wesnoth/wesnoth-1.12.6.ebuild new file mode 100644 index 000000000000..140ffac1776e --- /dev/null +++ b/games-strategy/wesnoth/wesnoth-1.12.6.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit cmake-utils eutils multilib toolchain-funcs flag-o-matic games + +DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game" +HOMEPAGE="http://www.wesnoth.org/" +SRC_URI="mirror://sourceforge/wesnoth/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc64 x86 ~x86-fbsd" +IUSE="dbus dedicated doc fribidi nls server" + +RDEPEND=">=media-libs/libsdl-1.2.7:0[joystick,video,X] + media-libs/sdl-net + !dedicated? ( + >=media-libs/sdl-ttf-2.0.8 + >=media-libs/sdl-mixer-1.2[vorbis] + >=media-libs/sdl-image-1.2[jpeg,png] + fribidi? ( dev-libs/fribidi ) + dbus? ( sys-apps/dbus ) + sys-libs/zlib + x11-libs/pango + dev-lang/lua:0 + media-libs/fontconfig + ) + >=dev-libs/boost-1.48:=[nls,threads] + virtual/libintl" +DEPEND="${RDEPEND} + virtual/pkgconfig + sys-devel/gettext" + +src_prepare() { + if use dedicated || use server ; then + sed \ + -e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \ + -e "s:GAMES_STATEDIR:${GAMES_STATEDIR}:" \ + -e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \ + -e "s/GAMES_GROUP/${GAMES_GROUP}/" "${FILESDIR}"/wesnothd.rc \ + > "${T}"/wesnothd || die + fi + if ! use doc ; then + sed -i \ + -e '/manual/d' \ + doc/CMakeLists.txt || die + fi + # bug #472994 + mv icons/wesnoth-icon-Mac.png icons/wesnoth-icon.png || die + mv icons/map-editor-icon-Mac.png icons/wesnoth_editor-icon.png || die + + # respect LINGUAS (bug #483316) + if [[ ${LINGUAS+set} ]] ; then + local langs + for lang in $(cat po/LINGUAS) + do + has $lang $LINGUAS && langs+="$lang " + done + echo "$langs" > po/LINGUAS || die + fi +} + +src_configure() { + filter-flags -ftracer -fomit-frame-pointer + if [[ $(gcc-major-version) -eq 3 ]] ; then + filter-flags -fstack-protector + append-flags -fno-stack-protector + fi + # Work around eclass + append-flags -UNDEBUG + if use dedicated || use server ; then + mycmakeargs=( + "-DENABLE_CAMPAIGN_SERVER=TRUE" + "-DENABLE_SERVER=TRUE" + "-DSERVER_UID=${GAMES_USER_DED}" + "-DSERVER_GID=${GAMES_GROUP}" + "-DFIFO_DIR=${GAMES_STATEDIR}/run/wesnothd" + ) + else + mycmakeargs=( + $(cmake-utils_use_enable fribidi FRIBIDI) + "-DENABLE_CAMPAIGN_SERVER=FALSE" + "-DENABLE_SERVER=FALSE" + ) + fi + mycmakeargs+=( + $(cmake-utils_use_enable !dedicated GAME) + $(cmake-utils_use_enable !dedicated ENABLE_DESKTOP_ENTRY) + $(cmake-utils_use_enable nls NLS) + $(cmake-utils_use_enable dbus NOTIFICATIONS) + "-DCMAKE_VERBOSE_MAKEFILE=TRUE" + "-DENABLE_STRICT_COMPILATION=FALSE" + "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}" + "-DDATAROOTDIR=${GAMES_DATADIR}" + "-DBINDIR=${GAMES_BINDIR}" + "-DICONDIR=/usr/share/pixmaps" + "-DDESKTOPDIR=/usr/share/applications" + "-DLOCALEDIR=/usr/share/locale" + "-DMANDIR=/usr/share/man" + "-DDOCDIR=/usr/share/doc/${PF}" + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + DOCS="README.md changelog players_changelog" cmake-utils_src_install + if use dedicated || use server; then + keepdir "${GAMES_STATEDIR}/run/wesnothd" + doinitd "${T}"/wesnothd + fi + prepgamesdirs +} diff --git a/games-strategy/widelands/Manifest b/games-strategy/widelands/Manifest new file mode 100644 index 000000000000..309fd5ab0e34 --- /dev/null +++ b/games-strategy/widelands/Manifest @@ -0,0 +1,6 @@ +AUX widelands-0.18-cxxflags.patch 1061 SHA256 7e59b10e134519b56232e20e37af2aa9d99fd76236215a2a0318d43100b59bb8 SHA512 ad911122384af9c07f3fc35446ed6f7e7bda86768983ee17668dbedcea2bc20eb88d4c43b051860553b6f455bc8655b226223b45b4d4f421ee5032cc380ad591 WHIRLPOOL 8277e379413760610c6a59c7ecd9e1d7a0940c76885f40e99ee1e6f58e8af40031e54b85c7b9438e8b5a7bcbf40975ec11e8bcbedbf864b4df31e1ff245e4edf +DIST widelands-build18-src.tar.bz2 183443325 SHA256 6dffd9178f93ff7a9c3c0c9b31b7d3b8eb060c79fbd98901e6311837390b7de3 SHA512 9b01c0a7e197360ddd7e21292fc8ba5d1102e24f3a9ec35cfbbf67413a0e9d69abeccd2bc3f6aad05b42cabff32112466803738b41f61562d843779e0c974e72 WHIRLPOOL ca46c70d951f83c00c37465bc0da9eb94d8d66be50e00c015ee6264ebc99669eca08aeb4117fbcd97fcb7c0e689af4947ad96c231746fc4a2626bb6ac4005be1 +EBUILD widelands-0.18-r1.ebuild 1568 SHA256 5e0aae80000ee9fcb96bce462c2dcfe952aa641280e1d9f029c88f98915cf023 SHA512 e814dba0925eb9dd09d05fa2e570531eab9ffd95179c343298fab32123c9ba87ad9691c3e0a8b0f3b9802120a687e9e8c1a81f53d87337f5e970dc5d2b9f7314 WHIRLPOOL 30733bc6efcc152e45dbbf86077da8dd385774b21c5202cfc10a8eab0c4a52bf8d13bcbc2c28582b23035b553f5d0493fc1d4cb3ba2fca948d031cf23201709b +MISC ChangeLog 4353 SHA256 095521a376f81203679c46d7219b7fcdbe853359fc0147bf0c19381a95752804 SHA512 f1089e6749ec4e63fa700f04b22726941f29301a964b4ab4ca5e07ca24701f1bc1cb11ff01a29f47c199b1a97ef671b1ace405ad0f333e709abc9d59aa4c61e5 WHIRLPOOL fab1a4ff89dceaa3a88c51f478d815438d77a60ce83b9865a9d425f45356ba502104083ae37cecff19147d2a75bb8cf7304806d50c1d663ca44b0bfd65d10330 +MISC ChangeLog-2015 8274 SHA256 598e11e1409b8a463ad4c7dcdedaba3a8d928c474f37affccc59ff3b33e36e70 SHA512 0eb75bbbe9bb4cf125677f4638e0849d32115aaecc97f877b6c32df484e3affb682dcae936477d7b07a44adc0f8b2ff74383accaead481aaa715e7a313e19581 WHIRLPOOL 3ad51d7686eb9e65538d940a491a37139cdbdeae970acc7badf401a081bc4291daa5a4d92e1cfda4c835420578102ce3e266bd06a4481393b8abfda762b63e58 +MISC metadata.xml 330 SHA256 29c6f49786fdd3fcc8f2bdd3a0d1fc2b489645c57aa53e8379de23386e876ca4 SHA512 a56671f43b3ce3e6274b9101b7c5ea1a4b2ff261fb94366e80d2655519a07c52fa0629b762d3ca76f82693075a1c717795bff2a69122938c9749ea249dc1e75d WHIRLPOOL 699952b8f7a357f670b3c7e34270cd6f2f3dd0473c96843d4d8ba7a693dbf96211af1d77ca65b6e796e7592ec9cc5337b19fb50224d65f682282a077baf3677e diff --git a/games-strategy/widelands/files/widelands-0.18-cxxflags.patch b/games-strategy/widelands/files/widelands-0.18-cxxflags.patch new file mode 100644 index 000000000000..f6b65400bf82 --- /dev/null +++ b/games-strategy/widelands/files/widelands-0.18-cxxflags.patch @@ -0,0 +1,12 @@ +diff -ru widelands-build18-src.orig/CMakeLists.txt widelands-build18-src/CMakeLists.txt +--- widelands-build18-src.orig/CMakeLists.txt 2014-02-22 04:06:51.000000000 -0500 ++++ widelands-build18-src/CMakeLists.txt 2016-03-23 23:04:50.536259815 -0400 +@@ -271,7 +271,7 @@ + ENDIF (WLBUILD_COMPILERVERSION_REP STREQUAL "4.5.1" OR WLBUILD_COMPILERVERSION_REP STREQUAL "4.5.2") + ENDIF (CMAKE_COMPILER_IS_GNUCXX) + +-set (CMAKE_CXX_FLAGS_RELEASE "${WL_COMPILERFLAG_CXXSTD} ${WL_COMPILERFLAG_OPTIMIZATIONS} -DNDEBUG${WL_COMPILERFLAG_OLDSTYLECAST}${WL_COMPILERFLAG_GENERICWARNINGS}${WL_COMPILERFLAG_EXTRAWARNINGS}${WL_COMPILERFLAG_GCCWARNINGS}${WL_COMPILERFLAG_STRICT}" CACHE STRING "Set by widelands CMakeLists.txt" FORCE) ++set (CMAKE_CXX_FLAGS_RELEASE "${WL_COMPILERFLAG_CXXSTD} -DNDEBUG${WL_COMPILERFLAG_OLDSTYLECAST}${WL_COMPILERFLAG_GENERICWARNINGS}${WL_COMPILERFLAG_EXTRAWARNINGS}${WL_COMPILERFLAG_GCCWARNINGS}${WL_COMPILERFLAG_STRICT}" CACHE STRING "Set by widelands CMakeLists.txt" FORCE) + + #If building with MSVC, then check for 3rdparty libs + if (DEFINED MSVC) diff --git a/games-strategy/widelands/metadata.xml b/games-strategy/widelands/metadata.xml new file mode 100644 index 000000000000..8910ce0417b5 --- /dev/null +++ b/games-strategy/widelands/metadata.xml @@ -0,0 +1,11 @@ +<?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="launchpad">widelands</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-strategy/widelands/widelands-0.18-r1.ebuild b/games-strategy/widelands/widelands-0.18-r1.ebuild new file mode 100644 index 000000000000..4f8154f9a1da --- /dev/null +++ b/games-strategy/widelands/widelands-0.18-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils versionator cmake-utils + +MY_PV=build$(get_version_component_range 2) +MY_P=${PN}-${MY_PV}-src + +DESCRIPTION="A game similar to Settlers 2" +HOMEPAGE="http://www.widelands.org/" +SRC_URI="https://launchpad.net/widelands/${MY_PV}/build-$(get_version_component_range 2)/+download/${MY_P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + dev-lang/lua:0 + >=dev-libs/boost-1.48:= + media-libs/glew:0= + media-libs/libpng:0= + media-libs/libsdl[video] + media-libs/sdl-gfx + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-net + media-libs/sdl-ttf + sys-libs/zlib[minizip]" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +CMAKE_BUILD_TYPE=Release + +PATCHES=( + "${FILESDIR}"/${P}-cxxflags.patch +) + +src_prepare() { + cmake-utils_src_prepare + + sed -i -e 's:__ppc__:__PPC__:' src/s2map.cc || die + sed -i -e '/WL_VERSION_MINOR/s/17/18/' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DWL_VERSION_STANDARD=true + + # Game is NOT happy being moved from /usr/share/games + -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr/share/games/${PN} + + -DWL_INSTALL_PREFIX="${EPREFIX}"/usr/games + -DWL_INSTALL_DATADIR="${EPREFIX}"/usr/share/games/${PN} + -DWL_INSTALL_LOCALEDIR="${EPREFIX}"/usr/share/games/${PN}/locale + -DWL_INSTALL_BINDIR="${EPREFIX}"/usr/bin + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + newicon pics/wl-ico-128.png ${PN}.png + make_desktop_entry ${PN} ${PN^} +} diff --git a/games-strategy/xbattleai/Manifest b/games-strategy/xbattleai/Manifest new file mode 100644 index 000000000000..d2ee83b7ef34 --- /dev/null +++ b/games-strategy/xbattleai/Manifest @@ -0,0 +1,7 @@ +AUX xbattleai-1.2.2-sandbox.patch 4167 SHA256 abb84d1bf97067d628b415155c3b2131c907aa8d59f2b3fc81a2ee3665094ad3 SHA512 013bd282c53f9a99b530b5a75907f7cc7b6829a0b20b7f77668325e1e12f2d8257019f68d1ccd147ac69d14d217412a31a3dcb3feaf2b55c39ae80545f956076 WHIRLPOOL 871c4ad0e91bbf30f26035496063876b4dbd43c46639be03d1cb20b6ada88506c63875821a438909edaa711b4e20cc76521dfd51496cd4aeef8b5a534124d329 +DIST xbattleai-1.2.2.tgz 1511991 SHA256 5dc137e33cbb8afb1a2333df1a8bec9c069d83254265826ac33568ae1f502d70 SHA512 41ac0f558b3adc697897903f5c9ed0d411867c405f0452282958083db7637c97a19f0ac9727e5123648a12dd2dcc5a304031efaab6089068b9f542e5db185e18 WHIRLPOOL 3f2679df504e3f2bbb9549cc7a95eaed7fa247162d88729e49cf47436050932efa806b32089c8f0f84e8e997c83c33e3d7d949bf2f5cfd0b2e36b82fcb61c341 +EBUILD xbattleai-1.2.2-r1.ebuild 984 SHA256 29031960b17a0883a587a16f3dd40bf2572c102f76dddbe4908f0c9b3e0bd3cd SHA512 68417284ba5f0732fc680107e6fd41032af51b6a77784a3bbc5e39944189206fe573f4cd80026febb052d1b28fcdd2062291acd9e6860a6fdfcfe5d5e65aaf14 WHIRLPOOL c9734748e989e5ca9228fa42cee6ce614b11a9af1c38141d130730de6f162e7c527fd56c552ad925fee64e67603475920e58088661f7e61ee0c26da5467d33b4 +EBUILD xbattleai-1.2.2-r2.ebuild 986 SHA256 cbf31d16f309968414cfa49152e941fc648b9b55262be3e439d40dcc89bd2824 SHA512 550ac98cf83017990f98e77b6784c64df01a798cfe9460f6a0a2be6bceb410dfd38a08efd614f956a6b517924da9ffd2e71ae2db20533bb3f9b1c9a87d75bfc6 WHIRLPOOL a319d4875c52b98ca4d20207e577820a8ce86e77ece3e04b0a7f9b6f1607db022dbc58aa3aabaf4c34e42b803dfcc4e800b753af637a93aaf3ddbf2a38ebe272 +MISC ChangeLog 2780 SHA256 97920bf0c6b009bd411258ffcc1b2cc3c55dba6d0c0b5d635d7d84408bf8865b SHA512 6402f889cc5fc2fd26635f0f9b698d9cd15155bf6fa1c174fa613afa02de6be9cac58aa4aa8b6f964a22b7d5d8d1bf00e7a5cd24fa137cc24c62722612aaeffd WHIRLPOOL 348876b64496cd9dd349891c3aaa8c0530c8693c04feb5d7353e8de42df3ed7ff6086c8e4bebb8a14890943809db4e5d6a02d5d4f7c0557dc567a15b79c1daf1 +MISC ChangeLog-2015 1105 SHA256 ed6b0ffb854388611112caa274bcfaae7ff435d6e0c4a53e8732e7dbbdde88af SHA512 54e3f942d3a0d51dfc63dd1c60a1a309c8b41de5a4bb54f1da7e518ae8d8d487bc5263dd98ebcb52a80df41756268bb3ec6c37cc16d3a6d1208ac0cee9413e1a WHIRLPOOL 473b8246420498651ddb0da8ddee44be2ede7b50c602740f2f6641ec5f4daf65c3de1285df8e12a6fe7589fbe25aa898cb7879fd26db117d103771295c12c9f9 +MISC metadata.xml 1463 SHA256 66e1da91a1c25d365d5cc7ea42f289aa6d7fd8c54a76ba875314374d854b69c8 SHA512 57aad0c8072474906986ea0d4e73e61b7d94325bd5206a1d1f6f6ef3e4ef9908c76b9e229167f487bbde42c84398462fdb1161b16e47ea9fef76172847131ec8 WHIRLPOOL 43c5e6ba89f4cefd85bfb51247057411964e6518ddf7669dd0288cf59e00a643c039fb257d103370cab5f8a7b39ebab2868687f778aa2fa1a36219178c0b1f1b diff --git a/games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch b/games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch new file mode 100644 index 000000000000..56d63ac694e4 --- /dev/null +++ b/games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch @@ -0,0 +1,114 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -200,87 +200,87 @@ + .PHONY: install-bin + + install-bin: ${TARGET} ${SCRIPTS} +- ${INSTALL_DIRS} ${bindir} ++ ${INSTALL_DIRS} ${DESTDIR}/${bindir} + @list='${TARGET} ${SCRIPTS}'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_PROGRAM} $$p ${bindir}"; \ +- ${INSTALL_PROGRAM} $$p ${bindir}; \ ++ ${INSTALL_PROGRAM} $$p ${DESTDIR}/${bindir}; \ + else :; fi; \ + done + + .PHONY: install-man + + install-man: +- ${INSTALL_DIRS} ${mandir} ++ ${INSTALL_DIRS} ${DESTDIR}/${mandir} + @list='${MAN1}'; for p in $$list; do \ + ${INSTALL_DIRS} ${mandir}/man1; \ + if test -f ${SRC_DIR}/$${p}.man; then \ + ${ECHO} "${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${mandir}/man1/$${p}.1"; \ +- ${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${mandir}/man1/$${p}.1; \ ++ ${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${DESTDIR}/${mandir}/man1/$${p}.1; \ + else :; fi; \ + done + @list='${MAN6}'; for p in $$list; do \ +- ${INSTALL_DIRS} ${mandir}/man6; \ ++ ${INSTALL_DIRS} ${DESTDIR}/${mandir}/man6; \ + if test -f ${SRC_DIR}/$${p}.man; then \ + ${ECHO} "${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${mandir}/man6/$${p}.6"; \ +- ${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${mandir}/man6/$${p}.6; \ ++ ${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${DESTDIR}/${mandir}/man6/$${p}.6; \ + else :; fi; \ + done + + .PHONY: install-share + + install-share: +- ${INSTALL_DIRS} ${XBO_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${XBO_DIR} + @list='${SRC_DIR}/xbos/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${XBO_DIR}"; \ +- ${INSTALL_DATA} $$p ${XBO_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${XBO_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${XBT_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${XBT_DIR} + @list='${SRC_DIR}/xbts/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${XBT_DIR}"; \ +- ${INSTALL_DATA} $$p ${XBT_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${XBT_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${XBA_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${XBA_DIR} + @list='${SRC_DIR}/xbas/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${XBA_DIR}"; \ +- ${INSTALL_DATA} $$p ${XBA_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${XBA_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${IMG_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${IMG_DIR} + @list='${SRC_DIR}/images/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${IMG_DIR}"; \ +- ${INSTALL_DATA} $$p ${IMG_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${IMG_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${SND_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${SND_DIR} + @list='${SRC_DIR}/snd/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${SND_DIR}"; \ +- ${INSTALL_DATA} $$p ${SND_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${SND_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${XBC_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${XBC_DIR} + @list='${SRC_DIR}/xbcs/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${XBC_DIR}"; \ +- ${INSTALL_DATA} $$p ${XBC_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${XBC_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${GC_DIR} +- ${INSTALL_DATA} ${SRC_DIR}/gauntlet/gauntlet.dat ${GC_DIR}; +- ${INSTALL_DATA} ${SRC_DIR}/gauntlet/gauntlet.xbo ${GC_DIR}; +- ${INSTALL_PROGRAM} ${SRC_DIR}/gauntlet/gauntlet_interp.awk ${GC_DIR}; +- ${INSTALL_DIRS} ${GC_DIR}/gauntlet_levels ++ ${INSTALL_DIRS} ${DESTDIR}/${GC_DIR} ++ ${INSTALL_DATA} ${SRC_DIR}/gauntlet/gauntlet.dat ${DESTDIR}/${GC_DIR}; ++ ${INSTALL_DATA} ${SRC_DIR}/gauntlet/gauntlet.xbo ${DESTDIR}/${GC_DIR}; ++ ${INSTALL_PROGRAM} ${SRC_DIR}/gauntlet/gauntlet_interp.awk ${DESTDIR}/${GC_DIR}; ++ ${INSTALL_DIRS} ${DESTDIR}/${GC_DIR}/gauntlet_levels + @list='${SRC_DIR}/gauntlet/gauntlet_levels/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${GC_DIR}/gauntlet_levels"; \ +- ${INSTALL_DATA} $$p ${GC_DIR}/gauntlet_levels; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${GC_DIR}/gauntlet_levels; \ + else :; fi; \ + done + diff --git a/games-strategy/xbattleai/metadata.xml b/games-strategy/xbattleai/metadata.xml new file mode 100644 index 000000000000..287233f1698d --- /dev/null +++ b/games-strategy/xbattleai/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="person"> +<email>mr_bones_@gentoo.org</email> +<name>Michael Sterrett</name> +</maintainer> +<maintainer type="project"> +<email>games@gentoo.org</email> +<name>Gentoo Games Project</name> +</maintainer> +<longdescription> +From the HOMEPAGE: +XBattle is a concurrent multi-player arcade/strategy game that captures +the dynamics of a wide range of military situations through numerous +options. The game board is a matrix of game cells which can be occupied +by troops of various colors, with troop strength indicated by the size of +colored markers within a cell. Troops are commanded by clicking the mouse +near the edge of an occupied cell in the direction that movement is to take +place. XBattle is concurrent, so that commands are given continuously by +all players without waiting for turns. A command will be acknowledged by +the appearance of a command vector, and thereafter, in each update cycle, +a certain proportion of the troops will move from the source cell to the +destination cell. In this way, troops can be slowly redistributed via +supply lines which steadily deliver troops to their endpoints. Troops +of different colors engage in battle whenever they come to occupy the +same cell. A wide variety of options are available for configuring troop +movement, distribution, and production. +</longdescription> +</pkgmetadata> diff --git a/games-strategy/xbattleai/xbattleai-1.2.2-r1.ebuild b/games-strategy/xbattleai/xbattleai-1.2.2-r1.ebuild new file mode 100644 index 000000000000..536c92a0439d --- /dev/null +++ b/games-strategy/xbattleai/xbattleai-1.2.2-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="A multi-player game of strategy and coordination" +HOMEPAGE="https://inf.ug.edu.pl/~piotao/xbattle/mirror/www.lysator.liu.se/XBattleAI/" +SRC_URI="https://inf.ug.edu.pl/~piotao/xbattle/mirror/www.lysator.liu.se/XBattleAI/${P}.tgz" + +LICENSE="xbattle" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +# Since this uses similar code and the same binary name as the original XBattle, +# we want to make sure you can't install both at the same time +RDEPEND=" + x11-libs/libXext + x11-libs/libX11 + dev-lang/tcl:0 + dev-lang/tk:0 + !games-strategy/xbattle" +DEPEND="${RDEPEND} + x11-proto/xproto + app-text/rman + x11-misc/imake" + +src_prepare() { + rm -f xbcs/foo.xbc~ + epatch "${FILESDIR}"/${P}-sandbox.patch +} + +src_install() { + DOCS="CONTRIBUTORS README README.AI TODO xbattle.dot" \ + default + mv "${D}/${GAMES_BINDIR}"/{,xb_}gauntletCampaign + prepgamesdirs +} diff --git a/games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild b/games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild new file mode 100644 index 000000000000..119e643d3faf --- /dev/null +++ b/games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +DESCRIPTION="A multi-player game of strategy and coordination" +HOMEPAGE="https://inf.ug.edu.pl/~piotao/xbattle/mirror/www.lysator.liu.se/XBattleAI/" +SRC_URI="https://inf.ug.edu.pl/~piotao/xbattle/mirror/www.lysator.liu.se/XBattleAI/${P}.tgz" + +LICENSE="xbattle" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# Since this uses similar code and the same binary name as the original XBattle, +# we want to make sure you can't install both at the same time +RDEPEND=" + dev-lang/tcl:0 + dev-lang/tk:0 + x11-libs/libX11 + x11-libs/libXext + !games-strategy/xbattle" +DEPEND="${RDEPEND} + app-text/rman + x11-misc/imake + x11-proto/xproto" + +PATCHES=( + "${FILESDIR}"/${P}-sandbox.patch +) + +src_prepare() { + default + rm -f xbcs/foo.xbc~ || die +} + +src_install() { + DOCS="CONTRIBUTORS README README.AI TODO xbattle.dot" \ + default + mv "${D}/usr/bin/"{,xb_}gauntletCampaign || die +} |