Skip to content

Commit eedf648

Browse files
committed
games-simulation/corsix-th: Version bump to 0.63, EAPI 7
Closes: https://bugs.gentoo.org/714878 Package-Manager: Portage-2.3.96, Repoman-2.3.20 Signed-off-by: James Le Cuirot <[email protected]>
1 parent cfaa664 commit eedf648

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

games-simulation/corsix-th/Manifest

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST corsix-th-0.62.tar.gz 3461932 BLAKE2B 5497cc944e51d80216f2b159249268a056193ef48837aa887d9ab8e7fd2e3134ae6f9517a6b2bd9293a97543dcc91dd76d5ce22e212f13dd7c02a79318c7ede6 SHA512 64fe4a6124cbf2e76934f2c081641119ded7292ce89124dee26c99c1d99f1979f9c520e73a403f0de751072bfd049a809773d6a919b7240b8a6e6b7aa1361bf0
2+
DIST corsix-th-0.63.tar.gz 4040119 BLAKE2B a700264c21377d53fb031c57428e5a50bbef426f32a3cd8bc4f83174a7f12b76d72050885ae257a6017a03f2f9611106cf9226c606ef726c1220b997eacbc5f1 SHA512 73a170bbf3da0e11ffe30fcbafb80f9e3852ce992dd6ecae2a2da332b9d4927a98efb0208e2056918a4100db54d1bdc564454cadae370cfab87625ca3f9889fd
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Copyright 1999-2020 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=7
5+
6+
inherit cmake xdg
7+
8+
MY_PN="CorsixTH"
9+
MY_PV="$(ver_rs 2 -)"
10+
11+
DESCRIPTION="Open source clone of Theme Hospital"
12+
HOMEPAGE="http://corsixth.com"
13+
SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
14+
15+
LICENSE="MIT"
16+
SLOT="0"
17+
KEYWORDS="~amd64 ~arm ~x86"
18+
IUSE="doc libav +midi +sound +truetype +videos"
19+
20+
RDEPEND="
21+
>=dev-lang/lua-5.1:0
22+
>=dev-lua/luafilesystem-1.5
23+
>=dev-lua/lpeg-0.9
24+
>=dev-lua/luasocket-3.0_rc1-r4
25+
media-libs/libsdl2[opengl,video]
26+
sound? ( media-libs/sdl2-mixer[midi?] )
27+
truetype? ( >=media-libs/freetype-2.5.3:2 )
28+
videos? (
29+
!libav? ( >=media-video/ffmpeg-2.2.3:0= )
30+
libav? ( >=media-video/libav-11.1:0= )
31+
)
32+
"
33+
34+
DEPEND="${RDEPEND}"
35+
36+
BDEPEND="
37+
virtual/pkgconfig
38+
doc? (
39+
app-doc/doxygen[dot]
40+
>=dev-lang/lua-5.1:0
41+
)
42+
"
43+
44+
S="${WORKDIR}/${MY_PN}-${MY_PV}"
45+
46+
PATCHES=(
47+
"${FILESDIR}"/${PN}-0.62-gcc-10.patch
48+
)
49+
50+
src_prepare() {
51+
cmake_src_prepare
52+
}
53+
54+
src_configure() {
55+
local mycmakeargs=(
56+
-DWITH_AUDIO=$(usex sound)
57+
-DWITH_FREETYPE2=$(usex truetype)
58+
-DWITH_LIBAV=$(usex libav)
59+
-DWITH_MOVIES=$(usex videos)
60+
)
61+
cmake_src_configure
62+
}
63+
64+
src_compile() {
65+
cmake_src_compile
66+
use doc && cmake_src_compile doc
67+
}
68+
69+
src_install() {
70+
cmake_src_install
71+
dodoc {changelog,CONTRIBUTING}.txt
72+
73+
docinto html
74+
use doc && dodoc -r "${BUILD_DIR}"/doc/*
75+
}

0 commit comments

Comments
 (0)