diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-engines/stratagus | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-engines/stratagus')
-rw-r--r-- | games-engines/stratagus/Manifest | 5 | ||||
-rw-r--r-- | games-engines/stratagus/files/stratagus-2.3.0-debug.patch | 19 | ||||
-rw-r--r-- | games-engines/stratagus/files/stratagus-2.3.0-doc.patch | 11 | ||||
-rw-r--r-- | games-engines/stratagus/metadata.xml | 15 | ||||
-rw-r--r-- | games-engines/stratagus/stratagus-2.4.1.ebuild | 69 |
5 files changed, 119 insertions, 0 deletions
diff --git a/games-engines/stratagus/Manifest b/games-engines/stratagus/Manifest new file mode 100644 index 000000000000..cd253adbded4 --- /dev/null +++ b/games-engines/stratagus/Manifest @@ -0,0 +1,5 @@ +AUX stratagus-2.3.0-debug.patch 667 BLAKE2B 6f81f640dc5773a29f5c97732c1ace1de8969a27029637551cf0aee2edadd3afeaeedf7ced5e03cf344af4f726a045a9fbeecc71074603d023837da7ca7a2218 SHA512 751efd651b7beeeca702ad0fd6743c47041607ab0a127f4da1c219c10a55c44abf611aa7215c08f75a899d61cc8e499801d6d003f79520bff022df46ef98949f +AUX stratagus-2.3.0-doc.patch 378 BLAKE2B 673afcbcf6131a49d03b683db2b430795b30226a97d4355ba88780bc4543f08c51b49c3726a79bc93620cd23595e2dcef62452d6afc989aa2ea06f616ce86fa6 SHA512 185b4a82d4960369bdff7c5522418553838d0d2c0947d8f75a55bf7a22741b9be20a20b60ae086ee04bd31ecf963c5c58167ef6b57b777659832a82d79726483 +DIST stratagus-2.4.1.tar.gz 1087678 BLAKE2B be7fc8322aee2a28c80833d44c3180e26b961ce9dfd1bc5e0a8e3fa0caac74bf713224de4c38b2ebf6d5aeabbe778a5664346c6a444b066f07f719bba5317bac SHA512 1f0420677df72e3e2d2f31e60030fa2eba4c3d1ab80cfc79c045724fe39ac237846bc38e8762ee9aa51768a443cdbbaa1fe91bf80fb2164261288a1bb17e27cd +EBUILD stratagus-2.4.1.ebuild 1523 BLAKE2B 3b165318ba374101a436297ef4e8bdfefe977fa60ef850001f1de415135babc0d6692a4321c3a56a7249ccbc5cf903b1322e4c51e202c590636125ab43d41251 SHA512 0751342ca95b1384e116732401481c341c0c79555eecda4ab6dda0318d0823c6130ea4a4e988ec97c77a315bc5f70db8be4b36c6cd9e705a7fe0885d86bab269 +MISC metadata.xml 468 BLAKE2B 8c8195ecd200944aa9923b2556768b47b66689424d9e0039970f60a9faf94477830490aec5c886c5e2425fa36dd9d4e18a2c9042657187e78ce022afdf5e928e SHA512 80c9342fa0155fd762f9585fcd3aaf2f472e4d6d75439926ed6fd9711c25821fee9193c011bbc6efdca644d0a41ad57966ff19effa5b36b277295b15b25cd642 diff --git a/games-engines/stratagus/files/stratagus-2.3.0-debug.patch b/games-engines/stratagus/files/stratagus-2.3.0-debug.patch new file mode 100644 index 000000000000..41817865c577 --- /dev/null +++ b/games-engines/stratagus/files/stratagus-2.3.0-debug.patch @@ -0,0 +1,19 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Thu Oct 18 14:31:37 UTC 2012 +Subject: build-system + +do not rename the target if debug is enabled + +--- stratagus_2.2.7.orig/CMakeLists.txt ++++ stratagus_2.2.7.orig/CMakeLists.txt +@@ -911,10 +911,6 @@ + add_executable(stratagus WIN32 ${stratagus_SRCS} ${stratagus_HDRS}) + target_link_libraries(stratagus ${stratagus_LIBS}) + +-if(CMAKE_BUILD_TYPE STREQUAL "Debug") +- set_target_properties(stratagus PROPERTIES OUTPUT_NAME stratagus-dbg) +-endif() +- + if(WIN32 AND MINGW AND ENABLE_STATIC) + set_target_properties(stratagus PROPERTIES LINK_FLAGS "${LINK_FLAGS} -static-libgcc -static-libstdc++ -Wl,--stack,10485760") + endif() diff --git a/games-engines/stratagus/files/stratagus-2.3.0-doc.patch b/games-engines/stratagus/files/stratagus-2.3.0-doc.patch new file mode 100644 index 000000000000..1605b81411fa --- /dev/null +++ b/games-engines/stratagus/files/stratagus-2.3.0-doc.patch @@ -0,0 +1,11 @@ +--- stratagus_2.2.7.orig/CMakeLists.txt ++++ stratagus_2.2.7.orig/CMakeLists.txt +@@ -1050,7 +1050,7 @@ + doc/media.html + doc/metaserver_protocol.txt + doc/README-SDL.txt +- DESTINATION share/doc/stratagus ++ DESTINATION ${DOCDIR} + ) + install(DIRECTORY doc/graphics doc/scripts ${CMAKE_CURRENT_BINARY_DIR}/doxygen DESTINATION ${DOCDIR}) + endif(ENABLE_DOC AND DOXYGEN_FOUND) diff --git a/games-engines/stratagus/metadata.xml b/games-engines/stratagus/metadata.xml new file mode 100644 index 000000000000..3914695ecbc2 --- /dev/null +++ b/games-engines/stratagus/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="fluidsynth">compile with support for fluidsynth</flag> + </use> + <upstream> + <remote-id type="launchpad">stratagus</remote-id> + <remote-id type="sourceforge">stratagus</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-engines/stratagus/stratagus-2.4.1.ebuild b/games-engines/stratagus/stratagus-2.4.1.ebuild new file mode 100644 index 000000000000..a692d77f9475 --- /dev/null +++ b/games-engines/stratagus/stratagus-2.4.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils eutils + +DESCRIPTION="A realtime strategy game engine" +HOMEPAGE="https://launchpad.net/stratagus/" +SRC_URI="https://github.com/Wargus/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bzip2 debug doc fluidsynth mikmod mng theora vorbis" + +RDEPEND="dev-db/sqlite:3 + >=dev-lang/lua-5:0 + dev-lua/toluapp + media-libs/libpng:0 + virtual/opengl + x11-libs/libX11 + media-libs/libsdl[sound,opengl,video] + sys-libs/zlib + bzip2? ( app-arch/bzip2 ) + fluidsynth? ( media-sound/fluidsynth ) + mikmod? ( media-libs/libmikmod ) + mng? ( media-libs/libmng ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + theora? ( media-libs/libtheora ) + )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + virtual/pkgconfig" + +REQUIRED_USE="theora? ( vorbis )" +PATCHES=( + "${FILESDIR}/${PN}"-2.3.0-debug.patch + "${FILESDIR}/${PN}"-2.3.0-doc.patch +) + +src_configure() { + # there are in-source switches + use debug && CMAKE_BUILD_TYPE=Debug + + local mycmakeargs=( + -DGAMEDIR="/usr/bin" + -DDOCDIR="/usr/share/doc/${PF}" + -DWITH_BZIP2=$(usex bzip2) + -DENABLE_DOC=$(usex doc) + -DWITH_FLUIDSYNTH=$(usex fluidsynth) + -DWITH_MIKMOD=$(usex mikmod) + -DWITH_MNG=$(usex mng) + -DWITH_OGGVORBIS=$(usex vorbis) + -DWITH_THEORA=$(usex theora) + -DENABLE_DEV=ON + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install +} |