diff options
Diffstat (limited to 'games-engines/stratagus')
-rw-r--r-- | games-engines/stratagus/Manifest | 2 | ||||
-rw-r--r-- | games-engines/stratagus/stratagus-3.2.0.ebuild | 74 |
2 files changed, 76 insertions, 0 deletions
diff --git a/games-engines/stratagus/Manifest b/games-engines/stratagus/Manifest index 2545f419e73a..3f9866b9be97 100644 --- a/games-engines/stratagus/Manifest +++ b/games-engines/stratagus/Manifest @@ -4,9 +4,11 @@ DIST stratagus-3.0.0.tar.gz 1149659 BLAKE2B 62a14bdc84462f22867b836b9a83f58ba31c DIST stratagus-3.1.0.tar.gz 1188722 BLAKE2B 7eefd0d1c2ab35e657d8dc3c90c279deab073588c7a5830e317b99d72518b3d9b1260b56952e1deeadccc79334442441896c0d9520891a5eeea75da52871a4b2 SHA512 41f4dc6e6232cdd31258b7c402c64d3604c77b07bd46f29474a4b4979cd30dec809faeb5f0034521e26442c4afefba3076154a632bd445f57e04801b4199573b DIST stratagus-3.1.1.tar.gz 1189631 BLAKE2B dd81b354d90cd3483674d0b9728abf9a7c6b8e2c2ab49683d8da37a80dca26eafe3bfed022b3917ab7f6f1d09c68724def5a8d107dd735dbab58cc72b224fbd3 SHA512 b5c5e3d767cd96be0fcc13476452e76ea106ddf870117f0e0b97113455c8a54a6547065b242d9a255d87c59ee755e604489e68a5ecc2e5275b32b7b5b5cfae6b DIST stratagus-3.1.2.tar.gz 1190124 BLAKE2B 35e9b8d33a0b6926ba7a450b893679d323dca9507b9fe2cd27ec8ee5c80deeecf8e35fd8b92eed86f308b5a8abd017d6306a08b4268c06de3c3d0fac7b74eba1 SHA512 c12012b08b04a419b0d3d35860b22fa426e06181d6ecd2998b11419227f3c226a6d584a5c3443939dfe63e0cc657eaad914f04810431bc72b7697cf8f4465b18 +DIST stratagus-3.2.0.tar.gz 1537172 BLAKE2B cd0ce92a1532cdf57245f6ef234ee1f55418f28f06bb34f358bd623b1e83d21b9a04cfa86e8129931043e480de5a9de0ef6458b75dcb2f8c40c3457d4ef31eef SHA512 7a1b4f99fa3a080905b976439435c62fa885c0895f3f9f7692404a207822520d6b71189f24627c31bec192503d6504bf98485cce393036950f6bac0a49cb17dc EBUILD stratagus-2.4.3-r100.ebuild 1585 BLAKE2B 207b0a52a39c7704491a8e64181336401e5594f1103e6d14933df721f08f34755e066199033c9a13eba77237de8892e6964790b974622fa31c6a8c130f7a0c75 SHA512 873a5079b9783abf710df210876048f6928f06e1963cb75ed13bc7cf549b9d97fb10a0f04bbf3afde13209777013efef35225a3349e69437f8f3eeb14b8cd3ee EBUILD stratagus-3.0.0-r100.ebuild 1567 BLAKE2B f7cfe263858a99bb53a45cf07a57f50fe892dfb2a6aa91f88bf869fe7ff4ee10d83570470acea132f568af8de54bb2168c81de36136522c8e3e605f3972dd54d SHA512 44d075c38ebd05c4f80bc817307645e3d46477742ba3f0142a4fd48558b50fec7fa7eb9a7a17eaf4199317949f5c98f3509496569865fcae0f61a89782383dbb EBUILD stratagus-3.1.0.ebuild 1565 BLAKE2B 8e3342dd6cd442acb685693f7baf2dfa21b5d499fcef264c37ee753e2c8da6a1d3481fc3d5f229b9498b7545408ceffd62d2aac8b043b902b73700f21e77d304 SHA512 28bff87b1b29f291a7d29e16382acdc49b7b1a12102c363e8ae79a3125d5c7db459602f3ccbde6f690db5e3ae14373798840ceafa5291ddc165c0fa4482ebee8 EBUILD stratagus-3.1.1.ebuild 1565 BLAKE2B 8e3342dd6cd442acb685693f7baf2dfa21b5d499fcef264c37ee753e2c8da6a1d3481fc3d5f229b9498b7545408ceffd62d2aac8b043b902b73700f21e77d304 SHA512 28bff87b1b29f291a7d29e16382acdc49b7b1a12102c363e8ae79a3125d5c7db459602f3ccbde6f690db5e3ae14373798840ceafa5291ddc165c0fa4482ebee8 EBUILD stratagus-3.1.2.ebuild 1565 BLAKE2B 8e3342dd6cd442acb685693f7baf2dfa21b5d499fcef264c37ee753e2c8da6a1d3481fc3d5f229b9498b7545408ceffd62d2aac8b043b902b73700f21e77d304 SHA512 28bff87b1b29f291a7d29e16382acdc49b7b1a12102c363e8ae79a3125d5c7db459602f3ccbde6f690db5e3ae14373798840ceafa5291ddc165c0fa4482ebee8 +EBUILD stratagus-3.2.0.ebuild 1565 BLAKE2B 8e3342dd6cd442acb685693f7baf2dfa21b5d499fcef264c37ee753e2c8da6a1d3481fc3d5f229b9498b7545408ceffd62d2aac8b043b902b73700f21e77d304 SHA512 28bff87b1b29f291a7d29e16382acdc49b7b1a12102c363e8ae79a3125d5c7db459602f3ccbde6f690db5e3ae14373798840ceafa5291ddc165c0fa4482ebee8 MISC metadata.xml 527 BLAKE2B a2e74273557846343071cfb7473316ccdc157da182c2986786c62739f7d9bf55ebcfbcee10e65560de3d8c68d5aa8f9ecc449a55c925a38a5769251875b7c6ce SHA512 2b02996631c65b7416a8e8a1abf307c236f065187d6d4d7a81bbad7e2226315feb4de5329201520bc24f770cd4c6193f687b9211554965126e0be9763c70ae66 diff --git a/games-engines/stratagus/stratagus-3.2.0.ebuild b/games-engines/stratagus/stratagus-3.2.0.ebuild new file mode 100644 index 000000000000..b457463d8b3d --- /dev/null +++ b/games-engines/stratagus/stratagus-3.2.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-1 ) +inherit cmake lua-single optfeature + +DESCRIPTION="A realtime strategy game engine" +HOMEPAGE=" + https://stratagus.com/stratagus.html + https://github.com/Wargus/stratagus" +SRC_URI="https://github.com/Wargus/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/3" +KEYWORDS="~amd64 ~x86" +IUSE="bzip2 debug doc mng theora vorbis" +REQUIRED_USE=" + ${LUA_REQUIRED_USE} + theora? ( vorbis )" + +RDEPEND=" + ${LUA_DEPS} + dev-db/sqlite:3 + dev-lua/toluapp[${LUA_SINGLE_USEDEP}] + media-libs/libpng:0 + x11-libs/libX11 + media-libs/libsdl2[sound,opengl,video] + media-libs/sdl2-mixer[vorbis] + media-libs/sdl2-image[png] + sys-libs/zlib + bzip2? ( app-arch/bzip2 ) + mng? ( media-libs/libmng ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + theora? ( media-libs/libtheora ) + )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +PATCHES=( + "${FILESDIR}/${PN}"-2.3.0-doc.patch +) + +src_prepare() { + sed -i -e 's:-Werror::' CMakeLists.txt || die + cmake_src_prepare +} + +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) + -DWITH_MNG=$(usex mng) + -DWITH_OGGVORBIS=$(usex vorbis) + -DWITH_THEORA=$(usex theora) + -DENABLE_DOC=$(usex doc) + -DENABLE_DEV=ON + ) + + cmake_src_configure +} + +pkg_postinst() { + optfeature "MIDI music support" "media-libs/sdl2-mixer[midi]" +} |