From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-simulation/corsix-th/
Date: Sat, 1 Sep 2018 14:25:45 +0000 (UTC) [thread overview]
Message-ID: <1535811902.da2d7e252b8ccb3806c94fa7eddf7c4497cc08aa.chewi@gentoo> (raw)
commit: da2d7e252b8ccb3806c94fa7eddf7c4497cc08aa
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 1 14:25:02 2018 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Sep 1 14:25:02 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da2d7e25
games-simulation/corsix-th: Revive package following last-rites
This was dropped due to lack of ffmpeg 3 support. This has since been
fixed and it supports ffmpeg 4 too. Last-riting could have been
avoided if the videos USE flag had been added and masked.
I'd like to add a theme-hospital-data package but not today.
Bug: https://bugs.gentoo.org/592700
Package-Manager: Portage-2.3.48, Repoman-2.3.10
games-simulation/corsix-th/Manifest | 1 +
games-simulation/corsix-th/corsix-th-0.62.ebuild | 56 ++++++++++++++++++++++++
games-simulation/corsix-th/metadata.xml | 20 +++++++++
3 files changed, 77 insertions(+)
diff --git a/games-simulation/corsix-th/Manifest b/games-simulation/corsix-th/Manifest
new file mode 100644
index 00000000000..eb924872465
--- /dev/null
+++ b/games-simulation/corsix-th/Manifest
@@ -0,0 +1 @@
+DIST corsix-th-0.62.tar.gz 3461932 BLAKE2B 5497cc944e51d80216f2b159249268a056193ef48837aa887d9ab8e7fd2e3134ae6f9517a6b2bd9293a97543dcc91dd76d5ce22e212f13dd7c02a79318c7ede6 SHA512 64fe4a6124cbf2e76934f2c081641119ded7292ce89124dee26c99c1d99f1979f9c520e73a403f0de751072bfd049a809773d6a919b7240b8a6e6b7aa1361bf0
diff --git a/games-simulation/corsix-th/corsix-th-0.62.ebuild b/games-simulation/corsix-th/corsix-th-0.62.ebuild
new file mode 100644
index 00000000000..dd775153d21
--- /dev/null
+++ b/games-simulation/corsix-th/corsix-th-0.62.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils desktop eapi7-ver gnome2-utils
+
+MY_PN="CorsixTH"
+MY_PV="$(ver_rs 2 -)"
+
+DESCRIPTION="Open source clone of Theme Hospital"
+HOMEPAGE="http://corsixth.com"
+SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="libav +midi +sound +truetype +videos"
+
+RDEPEND=">=dev-lang/lua-5.1:0
+ >=dev-lua/luafilesystem-1.5
+ >=dev-lua/lpeg-0.9
+ >=dev-lua/luasocket-3.0_rc1-r4
+ media-libs/libsdl2[opengl,video]
+ sound? ( media-libs/sdl2-mixer[midi?] )
+ truetype? ( >=media-libs/freetype-2.5.3:2 )
+ videos? (
+ !libav? ( >=media-video/ffmpeg-2.2.3:0= )
+ libav? ( >=media-video/libav-11.1:0= )
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_AUDIO="$(usex sound)"
+ -DWITH_FREETYPE2="$(usex truetype)"
+ -DWITH_LIBAV="$(usex libav)"
+ -DWITH_MOVIES="$(usex videos)"
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc {changelog,CONTRIBUTING}.txt
+
+ newicon -s scalable CorsixTH/Original_Logo.svg ${PN}.svg
+ make_desktop_entry ${PN} "${MY_PN}"
+}
+
+pkg_postinst() { gnome2_icon_cache_update; }
+pkg_postrm() { gnome2_icon_cache_update; }
diff --git a/games-simulation/corsix-th/metadata.xml b/games-simulation/corsix-th/metadata.xml
new file mode 100644
index 00000000000..0f951195238
--- /dev/null
+++ b/games-simulation/corsix-th/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ A reimplementation of the 1997 Bullfrog business sim Theme
+ Hospital. As well as faithfully recreating the original,
+ CorsixTH adds support for modern operating systems (Windows,
+ Mac OSX and Linux), high resolutions and much more.
+ </longdescription>
+ <use>
+ <flag name="midi">Adds support for background MIDI music via SDL_mixer</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">CorsixTH/CorsixTH</remote-id>
+ </upstream>
+</pkgmetadata>
next reply other threads:[~2018-09-01 14:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-01 14:25 James Le Cuirot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-28 6:23 [gentoo-commits] repo/gentoo:master commit in: games-simulation/corsix-th/ Sam James
2025-01-26 8:56 Sam James
2025-01-26 8:56 Sam James
2024-12-27 7:02 Sam James
2024-12-27 7:02 Sam James
2023-10-16 22:51 James Le Cuirot
2023-08-20 15:35 James Le Cuirot
2023-08-01 7:09 Sam James
2022-11-22 13:47 Arthur Zamarin
2022-08-11 7:37 Ionen Wolkens
2021-12-28 17:10 Ionen Wolkens
2021-10-19 0:17 Sam James
2021-08-06 12:58 Sam James
2021-03-26 0:41 Conrad Kostecki
2020-08-23 20:53 Sam James
2020-05-24 8:24 Sergei Trofimovich
2020-04-25 20:18 Mikle Kolyada
2020-03-27 21:48 James Le Cuirot
2020-03-27 21:48 James Le Cuirot
2016-07-07 19:48 Austin English
2016-05-22 12:01 Patrick Lauer
2016-05-21 15:35 Pacho Ramos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1535811902.da2d7e252b8ccb3806c94fa7eddf7c4497cc08aa.chewi@gentoo \
--to=chewi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox