Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/stratagus/
Date: Fri, 25 Dec 2020 11:25:28
Message-Id: 1608895522.38e57dab26351744aa79ba499b5f04fe1a580431.mgorny@gentoo
1 commit: 38e57dab26351744aa79ba499b5f04fe1a580431
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 25 11:24:25 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 25 11:25:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38e57dab
7
8 games-engines/stratagus: Bump the lua-single version to 3.0.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../stratagus/stratagus-3.0.0-r100.ebuild | 74 ++++++++++++++++++++++
13 1 file changed, 74 insertions(+)
14
15 diff --git a/games-engines/stratagus/stratagus-3.0.0-r100.ebuild b/games-engines/stratagus/stratagus-3.0.0-r100.ebuild
16 new file mode 100644
17 index 00000000000..5af50ed3083
18 --- /dev/null
19 +++ b/games-engines/stratagus/stratagus-3.0.0-r100.ebuild
20 @@ -0,0 +1,74 @@
21 +# Copyright 1999-2020 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +LUA_COMPAT=( lua5-1 )
27 +
28 +inherit cmake lua-single optfeature
29 +
30 +DESCRIPTION="A realtime strategy game engine"
31 +HOMEPAGE="https://wargus.github.io/stratagus.html
32 + https://github.com/Wargus/stratagus"
33 +SRC_URI="https://github.com/Wargus/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="GPL-2"
36 +SLOT="0/3"
37 +KEYWORDS="~amd64 ~x86"
38 +IUSE="bzip2 debug doc mng theora vorbis"
39 +REQUIRED_USE="
40 + ${LUA_REQUIRED_USE}
41 + theora? ( vorbis )"
42 +
43 +RDEPEND="
44 + ${LUA_DEPS}
45 + dev-db/sqlite:3
46 + dev-lua/toluapp[${LUA_SINGLE_USEDEP}]
47 + media-libs/libpng:0
48 + x11-libs/libX11
49 + media-libs/libsdl2[sound,opengl,video]
50 + media-libs/sdl2-mixer[vorbis]
51 + media-libs/sdl2-image[png]
52 + sys-libs/zlib
53 + bzip2? ( app-arch/bzip2 )
54 + mng? ( media-libs/libmng )
55 + vorbis? (
56 + media-libs/libogg
57 + media-libs/libvorbis
58 + theora? ( media-libs/libtheora )
59 + )"
60 +DEPEND="${RDEPEND}"
61 +BDEPEND="
62 + virtual/pkgconfig
63 + doc? ( app-doc/doxygen )"
64 +
65 +PATCHES=(
66 + "${FILESDIR}/${PN}"-2.3.0-doc.patch
67 +)
68 +
69 +src_prepare() {
70 + sed -i -e 's:-Werror::' CMakeLists.txt || die
71 + cmake_src_prepare
72 +}
73 +
74 +src_configure() {
75 + # there are in-source switches
76 + use debug && CMAKE_BUILD_TYPE=Debug
77 +
78 + local mycmakeargs=(
79 + -DGAMEDIR="/usr/bin"
80 + -DDOCDIR="/usr/share/doc/${PF}"
81 + -DWITH_BZIP2=$(usex bzip2)
82 + -DWITH_MNG=$(usex mng)
83 + -DWITH_OGGVORBIS=$(usex vorbis)
84 + -DWITH_THEORA=$(usex theora)
85 + -DENABLE_DOC=$(usex doc)
86 + -DENABLE_DEV=ON
87 + )
88 +
89 + cmake_src_configure
90 +}
91 +
92 +pkg_postinst() {
93 + optfeature "MIDI music support" "media-libs/sdl2-mixer[midi]"
94 +}