diff options
-rw-r--r-- | games-simulation/corsix-th/Manifest | 14 | ||||
-rw-r--r-- | games-simulation/corsix-th/corsix-th-0.21-r1.ebuild | 54 | ||||
-rw-r--r-- | games-simulation/corsix-th/files/corsix-th-0.21-naming.patch | 17 | ||||
-rw-r--r-- | games-simulation/corsix-th/files/corsix-th-nodoc.patch | 11 | ||||
-rw-r--r-- | games-simulation/corsix-th/metadata.xml | 18 |
5 files changed, 112 insertions, 2 deletions
diff --git a/games-simulation/corsix-th/Manifest b/games-simulation/corsix-th/Manifest index 5b30eb267ab9..e4d7c462ad83 100644 --- a/games-simulation/corsix-th/Manifest +++ b/games-simulation/corsix-th/Manifest @@ -1,6 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX corsix-th-0.21-naming.patch 796 SHA256 abb543ab7dd58b212198227c95855d29e10d179434d6043fca856c3576ffe39a SHA512 20fd934258fc13bed37b9b4816fb2bbcaf54e610bdb2e4ac759a8bca7f87e628b82e86933644081aaad65b7a7e767adcbea06c8563a0f3c96b189afb49ce4aa7 WHIRLPOOL 78638e2254b79856cfab5b56a47f0496d4bfd5f2f57dba3c30ad18c8dd9632806897bc21681611c239d3ade6e3ec9e59d48ca4843b920e3694d6ad8aec206a8a AUX corsix-th-nodoc.patch 478 SHA256 361f21bc204ccb157199eff6b4c88ea64b243fe5940b9272903561803058c7b1 SHA512 708813e00a0f09ccd8c6546b3cad91f8008ee1facf7b5f68a50ab99c5c8b76b7063958b85737c7ee9008aaab9f2d5a8544b793571e07be970549be0025b22211 WHIRLPOOL a3a289486833a9b8fd890b01bd226249ca4cee76c8741478e29decf7e0167b81b5a297b19a2d65ad83012ee195fffeeb1ea582f02bb9c399e198f7387a2aaa4e DIST CorsixTH-0.21-Source.tar.gz 3908197 SHA256 9a8b54644e614dc13d4b5d97bf023b8e023e0186f931695b8f4ec7e4577a4ead SHA512 6f75772a7af0a09d216f042eda437e4159061637b404c0282472dab4751b7d515e25c6a922bb51051cfe7c351396491ac68d7969e3f37dafb1862fb6c85b6b52 WHIRLPOOL 69e3a57581e0a7446fda839284d2200ed8be559403504a42cfa187c8180689b175a96fb7b15b2b124ac3605dd936190f8ee882f4ea464acdc81157f598b0b20a -EBUILD corsix-th-0.21-r1.ebuild 1396 SHA256 459377a89c2a4592130104520b7c7700f1f539a18cf173f8822b2ed3176e6853 SHA512 86fb65cf5cfdf59f441ad8d5b1cbada1177979e1169acf7998622e8a6e09825e9406129e72d3844039ced9fb75b2e3a811be9f20440235799d62cf6dd343f38a WHIRLPOOL 024f00d4c169a95ff847f99a9ff12efd3f9b0ceef1557f5c9e02e6d158d21e0a7349d9caecd97d932d09e545471655589da93ac3e335027257be551333b4b747 -MISC ChangeLog 345 SHA256 e34c62217fd8716e8dbe994a33f6fee0aa902faefbbaa023d5ae3111170af715 SHA512 6e56f403163c46e60b7a149c335391d2383f7c59278758ea7e0338bce271f6baef0e58777c87dac232df821131ace413a978445dc0a06ae27bc7950d18bf0406 WHIRLPOOL 2942fda29f9fa407153e57b58f1ea6b8633097d706abb95d6e126bc8558456b239ffce787b31e0dc4c481e6f7fbf141e4df39e782990722ae28898dc3fecaa5b +EBUILD corsix-th-0.21-r1.ebuild 1509 SHA256 13988615373870d8a801ab4f73563f4a25d72ff04bb8d3ad748b8c6dd67d5959 SHA512 0d18260c59e606d2186f43dbcf1ba215bbb0bf5aae9c0e22e5c5fe5cd3d4561e79e4ba39baaf3e10beb1927504bd9bce75bd5e1d487aae74b72e5212e1f1ee72 WHIRLPOOL 7d4789ea69d86e9fa2d116f43b02dcd5d328436e5042da0cb9c0328cb320922b84bcf038c959fd3c3d61e302aa8fde7b680baf6ba13019e019feb25843fde83d +MISC ChangeLog 443 SHA256 a2d6a148d5acafb4a9600898e7d9de52b212650ce1a8ba8096d27033ec9efeda SHA512 f543ea066a638da796d7f5ad3b06cd33c456a6d90e5a8508c2ce727daa59e7b5f0e8f37640f9fa04f704e32319261d9b502195d4b4b92d17a07f6a1808b59eb2 WHIRLPOOL d724b257af05ef9ff694ef616502f32dddb68d164f442a8f1c1b0dbb24061e8fcb1104409360bc2ef0637ec9593f110768326fdbd8126e24068c334ebf68d7a8 MISC metadata.xml 848 SHA256 b22330ed1bd0457aa6c3860b76a10619a6fd5079681a55805d30ebba8bdef564 SHA512 c1bda026af3439bce60150e1019cd4604d78a4ea4b7201d9655f42578452ed58073844ed5baf5c02368495e07cb1e3034ea5f6446025141e886694a39fc6579a WHIRLPOOL 1e9af821c2f9d834b2c94be69a0d9cee3a88c46ee594ab9973cb7545bf116f9e0f2d528ede6ef68de840c2ead04a3e076ddb24e77c94994eaa8f85f471b767ee +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.20 (GNU/Linux) + +iEYEAREIAAYFAlHzsd8ACgkQbkqODQcg/HTt+wCeNbbGTLmEEaGnfNj3nYG8S6J5 +asgAnjpYvWsxxTzDu0uk8p3268Mn+KbF +=uSeg +-----END PGP SIGNATURE----- diff --git a/games-simulation/corsix-th/corsix-th-0.21-r1.ebuild b/games-simulation/corsix-th/corsix-th-0.21-r1.ebuild new file mode 100644 index 000000000000..7a744f39990f --- /dev/null +++ b/games-simulation/corsix-th/corsix-th-0.21-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-simulation/corsix-th/corsix-th-0.21-r1.ebuild,v 1.1 2013/07/27 11:41:13 miknix Exp $ + +EAPI=3 + +inherit games cmake-utils + +MY_P="CorsixTH-${PV}-Source" + +DESCRIPTION="Open source clone of Theme Hospital" +HOMEPAGE="http://code.google.com/p/corsix-th/" +SRC_URI="http://corsix-th.googlecode.com/files/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+ffmpeg truetype opengl +sdl +sound" + +RDEPEND=">=dev-lang/lua-5.1 + media-libs/libsdl + ffmpeg? ( virtual/ffmpeg ) + truetype? ( media-libs/freetype:2 ) + opengl? ( virtual/opengl ) + sound? ( media-libs/sdl-mixer[timidity] )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-nodoc.patch" + + # Use a coherent naming for installation dir + epatch "${FILESDIR}/${P}-naming.patch" +} + +src_configure() { + local mycmakeargs="$(cmake-utils_use_with opengl OPENGL) \ + $(cmake-utils_use_with sdl SDL) \ + $(cmake-utils_use_with sound AUDIO) \ + $(cmake-utils_use_with truetype FREETYPE2) \ + $(cmake-utils_use_with ffmpeg MOVIES) \ + -DCMAKE_INSTALL_PREFIX=${GAMES_DATADIR}" + cmake-utils_src_configure +} + +src_install() { + DOCS="CorsixTH/README.txt CorsixTH/changelog.txt" cmake-utils_src_install + games_make_wrapper ${PN} "${GAMES_DATADIR}/${PN}/CorsixTH" || die + make_desktop_entry ${PN} ${PN} \ + "${GAMES_DATADIR}/${PN}/CorsixTH.ico" + prepgamesdirs +} diff --git a/games-simulation/corsix-th/files/corsix-th-0.21-naming.patch b/games-simulation/corsix-th/files/corsix-th-0.21-naming.patch new file mode 100644 index 000000000000..b82b5fa91297 --- /dev/null +++ b/games-simulation/corsix-th/files/corsix-th-0.21-naming.patch @@ -0,0 +1,17 @@ +--- CorsixTH/CMakeLists.txt 2013-07-26 19:35:30.463506153 +0200 ++++ CorsixTH/CMakeLists.txt.new 2013-07-26 19:38:07.944473631 +0200 +@@ -222,10 +222,10 @@ + ENDIF()
+
+ ELSE()
+- install(TARGETS CorsixTH RUNTIME DESTINATION CorsixTH)
+- install(DIRECTORY Lua Levels DESTINATION CorsixTH PATTERN "*.svn" EXCLUDE)
+- install(DIRECTORY Bitmap DESTINATION CorsixTH
++ install(TARGETS CorsixTH RUNTIME DESTINATION corsix-th)
++ install(DIRECTORY Lua Levels DESTINATION corsix-th PATTERN "*.svn" EXCLUDE)
++ install(DIRECTORY Bitmap DESTINATION corsix-th
+ FILES_MATCHING REGEX ".*\\.(tab|pal|dat|png)$"
+ PATTERN "*.svn" EXCLUDE)
+- install(FILES CorsixTH.lua CorsixTH.ico DESTINATION CorsixTH )
++ install(FILES CorsixTH.lua CorsixTH.ico DESTINATION corsix-th )
+ ENDIF()
diff --git a/games-simulation/corsix-th/files/corsix-th-nodoc.patch b/games-simulation/corsix-th/files/corsix-th-nodoc.patch new file mode 100644 index 000000000000..0fcae9bcd702 --- /dev/null +++ b/games-simulation/corsix-th/files/corsix-th-nodoc.patch @@ -0,0 +1,11 @@ +diff --git a/CorsixTH/CMakeLists.txt b/CorsixTH/CMakeLists.txt +index dfdb59e..9b97b3c 100755 +--- a/CorsixTH/CMakeLists.txt ++++ b/CorsixTH/CMakeLists.txt +@@ -191,5 +191,5 @@ ELSE() + install(DIRECTORY Bitmap DESTINATION CorsixTH
+ FILES_MATCHING REGEX ".*\\.(tab|pal|dat|png)$"
+ PATTERN "*.svn" EXCLUDE)
+- install(FILES CorsixTH.lua LICENSE.txt CorsixTH.ico DESTINATION CorsixTH )
++ install(FILES CorsixTH.lua CorsixTH.ico DESTINATION CorsixTH )
+ ENDIF()
diff --git a/games-simulation/corsix-th/metadata.xml b/games-simulation/corsix-th/metadata.xml new file mode 100644 index 000000000000..30e9fc7dbb66 --- /dev/null +++ b/games-simulation/corsix-th/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>miknix@gentoo.org</email> + <name>Angelo Arrifano</name> + </maintainer> + <use> + <flag name='ffmpeg'>Use ffmpeg for playing in-game cutscenes.</flag> + <flag name='opengl'>Use OpenGL for rendering.</flag> + <flag name='sdl'>Use SDL for rendering.</flag> + <flag name='sound'>Use SDL mixer for MIDI sound.</flag> + <flag name='truetype'>Use high quality fonts.</flag> + </use> + <longdescription> + CorsixTH aims to reimplement the game engine of Theme Hospital, with the capability of loading assets including graphics and levels from the original game. This means that you will need a purchased copy of Theme Hospital, or a copy of the demo, in order to use CorsixTH. + </longdescription> +</pkgmetadata> |