diff options
author | Angelo Arrifano <miknix@gentoo.org> | 2013-07-27 11:41:13 +0000 |
---|---|---|
committer | Angelo Arrifano <miknix@gentoo.org> | 2013-07-27 11:41:13 +0000 |
commit | 5c8a5e56c36d8cd38632dfc1c19f4a92c40e382d (patch) | |
tree | 28266c279c3127ed5f1e1a7f5043054101f65d42 /games-simulation/corsix-th | |
parent | Stable for amd64, wrt bug #477628 (diff) | |
download | gentoo-2-5c8a5e56c36d8cd38632dfc1c19f4a92c40e382d.tar.gz gentoo-2-5c8a5e56c36d8cd38632dfc1c19f4a92c40e382d.tar.bz2 gentoo-2-5c8a5e56c36d8cd38632dfc1c19f4a92c40e382d.zip |
Initial version based on a user submitted ebuild # 352669
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0720FC74)
Diffstat (limited to 'games-simulation/corsix-th')
-rw-r--r-- | games-simulation/corsix-th/ChangeLog | 10 | ||||
-rw-r--r-- | games-simulation/corsix-th/Manifest | 6 | ||||
-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 |
6 files changed, 116 insertions, 0 deletions
diff --git a/games-simulation/corsix-th/ChangeLog b/games-simulation/corsix-th/ChangeLog new file mode 100644 index 000000000000..611361d101b3 --- /dev/null +++ b/games-simulation/corsix-th/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-simulation/corsix-th +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-simulation/corsix-th/ChangeLog,v 1.1 2013/07/27 11:41:13 miknix Exp $ + +*corsix-th-0.21-r1 (27 Jul 2013) + + 27 Jul 2013; Angelo Arrifano <miknix@gentoo.org> +corsix-th-0.21-r1.ebuild, + +files/corsix-th-0.21-naming.patch, +files/corsix-th-nodoc.patch: + Use user submitted ebuild, #352669 + diff --git a/games-simulation/corsix-th/Manifest b/games-simulation/corsix-th/Manifest new file mode 100644 index 000000000000..5b30eb267ab9 --- /dev/null +++ b/games-simulation/corsix-th/Manifest @@ -0,0 +1,6 @@ +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 +MISC metadata.xml 848 SHA256 b22330ed1bd0457aa6c3860b76a10619a6fd5079681a55805d30ebba8bdef564 SHA512 c1bda026af3439bce60150e1019cd4604d78a4ea4b7201d9655f42578452ed58073844ed5baf5c02368495e07cb1e3034ea5f6446025141e886694a39fc6579a WHIRLPOOL 1e9af821c2f9d834b2c94be69a0d9cee3a88c46ee594ab9973cb7545bf116f9e0f2d528ede6ef68de840c2ead04a3e076ddb24e77c94994eaa8f85f471b767ee 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> |