- coan: bitrotten, maintainer is dead
[booboo.git] / games-simulation / corsix-th / corsix-th-9999.ebuild
blob8a0b45b181f3dec95905c97b17c4379cd4c9c5ef
1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=5
6 CMAKE_IN_SOURCE_BUILD=1
7 inherit eutils cmake-utils gnome2-utils versionator multilib git-r3
9 DESCRIPTION="Open source clone of Theme Hospital"
10 HOMEPAGE="https://github.com/CorsixTH/CorsixTH"
11 EGIT_REPO_URI="https://github.com/CorsixTH/CorsixTH"
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS=""
16 IUSE="-libav midi +sound truetype"
18 RDEPEND=">=dev-lang/lua-5.1:0
19 media-libs/libsdl2[X,opengl]
20 dev-lua/luafilesystem
21 dev-lua/lpeg
22 dev-lua/luasocket
23 virtual/opengl
24 midi? ( media-sound/timidity++ )
25 !libav? ( media-video/ffmpeg:0= )
26 libav? ( media-video/libav:0= )
27 sound? ( media-libs/sdl2-mixer )
28 truetype? ( media-libs/freetype:2 )"
29 DEPEND="${RDEPEND}
30 virtual/pkgconfig"
32 src_configure() {
33 local mycmakeargs=(
34 $(cmake-utils_use_with sound AUDIO)
35 $(cmake-utils_use_with truetype FREETYPE2)
36 $(cmake-utils_use_with libav LIBAV)
37 -DCMAKE_INSTALL_PREFIX=/usr/share/games
38 -DWITH_MOVIES="ON"
40 cmake-utils_src_configure
43 src_compile() {
44 cmake-utils_src_compile
47 src_install() {
48 DOCS="CorsixTH/changelog.txt" cmake-utils_src_install
49 newicon -s scalable CorsixTH/Original_Logo.svg "${PN}.svg"
50 make_wrapper "${PN}" /usr/share/games/CorsixTH/CorsixTH
51 make_desktop_entry "${PN}"
54 pkg_preinst() {
55 gnome2_icon_savelist
58 pkg_postinst() {
59 gnome2_icon_cache_update
62 pkg_postrm() {
63 gnome2_icon_cache_update