1 |
commit: da2d7e252b8ccb3806c94fa7eddf7c4497cc08aa |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 1 14:25:02 2018 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 1 14:25:02 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da2d7e25 |
7 |
|
8 |
games-simulation/corsix-th: Revive package following last-rites |
9 |
|
10 |
This was dropped due to lack of ffmpeg 3 support. This has since been |
11 |
fixed and it supports ffmpeg 4 too. Last-riting could have been |
12 |
avoided if the videos USE flag had been added and masked. |
13 |
|
14 |
I'd like to add a theme-hospital-data package but not today. |
15 |
|
16 |
Bug: https://bugs.gentoo.org/592700 |
17 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
18 |
|
19 |
games-simulation/corsix-th/Manifest | 1 + |
20 |
games-simulation/corsix-th/corsix-th-0.62.ebuild | 56 ++++++++++++++++++++++++ |
21 |
games-simulation/corsix-th/metadata.xml | 20 +++++++++ |
22 |
3 files changed, 77 insertions(+) |
23 |
|
24 |
diff --git a/games-simulation/corsix-th/Manifest b/games-simulation/corsix-th/Manifest |
25 |
new file mode 100644 |
26 |
index 00000000000..eb924872465 |
27 |
--- /dev/null |
28 |
+++ b/games-simulation/corsix-th/Manifest |
29 |
@@ -0,0 +1 @@ |
30 |
+DIST corsix-th-0.62.tar.gz 3461932 BLAKE2B 5497cc944e51d80216f2b159249268a056193ef48837aa887d9ab8e7fd2e3134ae6f9517a6b2bd9293a97543dcc91dd76d5ce22e212f13dd7c02a79318c7ede6 SHA512 64fe4a6124cbf2e76934f2c081641119ded7292ce89124dee26c99c1d99f1979f9c520e73a403f0de751072bfd049a809773d6a919b7240b8a6e6b7aa1361bf0 |
31 |
|
32 |
diff --git a/games-simulation/corsix-th/corsix-th-0.62.ebuild b/games-simulation/corsix-th/corsix-th-0.62.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..dd775153d21 |
35 |
--- /dev/null |
36 |
+++ b/games-simulation/corsix-th/corsix-th-0.62.ebuild |
37 |
@@ -0,0 +1,56 @@ |
38 |
+# Copyright 1999-2018 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=6 |
42 |
+ |
43 |
+inherit cmake-utils desktop eapi7-ver gnome2-utils |
44 |
+ |
45 |
+MY_PN="CorsixTH" |
46 |
+MY_PV="$(ver_rs 2 -)" |
47 |
+ |
48 |
+DESCRIPTION="Open source clone of Theme Hospital" |
49 |
+HOMEPAGE="http://corsixth.com" |
50 |
+SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="MIT" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~arm ~x86" |
55 |
+IUSE="libav +midi +sound +truetype +videos" |
56 |
+ |
57 |
+RDEPEND=">=dev-lang/lua-5.1:0 |
58 |
+ >=dev-lua/luafilesystem-1.5 |
59 |
+ >=dev-lua/lpeg-0.9 |
60 |
+ >=dev-lua/luasocket-3.0_rc1-r4 |
61 |
+ media-libs/libsdl2[opengl,video] |
62 |
+ sound? ( media-libs/sdl2-mixer[midi?] ) |
63 |
+ truetype? ( >=media-libs/freetype-2.5.3:2 ) |
64 |
+ videos? ( |
65 |
+ !libav? ( >=media-video/ffmpeg-2.2.3:0= ) |
66 |
+ libav? ( >=media-video/libav-11.1:0= ) |
67 |
+ )" |
68 |
+ |
69 |
+DEPEND="${RDEPEND} |
70 |
+ virtual/pkgconfig" |
71 |
+ |
72 |
+S="${WORKDIR}/${MY_PN}-${MY_PV}" |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local mycmakeargs=( |
76 |
+ -DWITH_AUDIO="$(usex sound)" |
77 |
+ -DWITH_FREETYPE2="$(usex truetype)" |
78 |
+ -DWITH_LIBAV="$(usex libav)" |
79 |
+ -DWITH_MOVIES="$(usex videos)" |
80 |
+ ) |
81 |
+ cmake-utils_src_configure |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ cmake-utils_src_install |
86 |
+ dodoc {changelog,CONTRIBUTING}.txt |
87 |
+ |
88 |
+ newicon -s scalable CorsixTH/Original_Logo.svg ${PN}.svg |
89 |
+ make_desktop_entry ${PN} "${MY_PN}" |
90 |
+} |
91 |
+ |
92 |
+pkg_postinst() { gnome2_icon_cache_update; } |
93 |
+pkg_postrm() { gnome2_icon_cache_update; } |
94 |
|
95 |
diff --git a/games-simulation/corsix-th/metadata.xml b/games-simulation/corsix-th/metadata.xml |
96 |
new file mode 100644 |
97 |
index 00000000000..0f951195238 |
98 |
--- /dev/null |
99 |
+++ b/games-simulation/corsix-th/metadata.xml |
100 |
@@ -0,0 +1,20 @@ |
101 |
+<?xml version="1.0" encoding="UTF-8"?> |
102 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
103 |
+<pkgmetadata> |
104 |
+ <maintainer type="project"> |
105 |
+ <email>games@g.o</email> |
106 |
+ <name>Gentoo Games Project</name> |
107 |
+ </maintainer> |
108 |
+ <longdescription lang="en"> |
109 |
+ A reimplementation of the 1997 Bullfrog business sim Theme |
110 |
+ Hospital. As well as faithfully recreating the original, |
111 |
+ CorsixTH adds support for modern operating systems (Windows, |
112 |
+ Mac OSX and Linux), high resolutions and much more. |
113 |
+ </longdescription> |
114 |
+ <use> |
115 |
+ <flag name="midi">Adds support for background MIDI music via SDL_mixer</flag> |
116 |
+ </use> |
117 |
+ <upstream> |
118 |
+ <remote-id type="github">CorsixTH/CorsixTH</remote-id> |
119 |
+ </upstream> |
120 |
+</pkgmetadata> |