1 |
commit: bcf440932c8ee9ebdfe5d3c024789efc6705277c |
2 |
Author: Jan Segre <jan <AT> segre <DOT> in> |
3 |
AuthorDate: Fri Aug 11 21:11:35 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 11 22:12:23 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcf44093 |
7 |
|
8 |
games-simulation/openrct2: version bump to 0.1.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
games-simulation/openrct2/Manifest | 1 + |
13 |
games-simulation/openrct2/openrct2-0.1.1.ebuild | 96 +++++++++++++++++++++++++ |
14 |
2 files changed, 97 insertions(+) |
15 |
|
16 |
diff --git a/games-simulation/openrct2/Manifest b/games-simulation/openrct2/Manifest |
17 |
index 545dbe32f6b..267f4e9c3e9 100644 |
18 |
--- a/games-simulation/openrct2/Manifest |
19 |
+++ b/games-simulation/openrct2/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST openrct2-0.1.0.tar.gz 6253207 SHA256 0347a47d380fc18ea543928c92a13d1bdb4431573154afeb80fa33f1149e6992 SHA512 102902f47948e2dc648a48897eddbb53bbd451fd6e9a66f397c6f026012131c11e3c5a5aa208b9d719a0e75aa244c9a3967ae3b98c33ba695fd622cb1bd18f12 WHIRLPOOL 18d1fc763606b9fb85fae9ba056ef3b8ae9be68903fbd137e045f594e273c954777c2ea2f2ede65e3695d43e4c4a714df9f77afaf07b5a6555a314e616188a3d |
22 |
+DIST openrct2-0.1.1.tar.gz 6284135 SHA256 5d7a6c7f3c770e7de506958f86789c438c543c27d312fd096322cde4e89f50ad SHA512 fd84907819ac317af88c0446afcb04acdb43cd6671f0837f1294191aacf58e93887d46e6eb28d86f558577f4e7c834bc42a9ec486f67e0b64cb7bc0cc1bda427 WHIRLPOOL 9e673852d653fe8e1839db96d124b1cc1e7e4f7a594ec05c1a895c883da234e536851025c75e0fcacb3be776cb3dd1dea9ad7ac028cfda6434095146ba68c5e7 |
23 |
DIST openrct2-title-sequence-v0.1.0.zip 1766393 SHA256 1df6ad253896bd09b728616f7bf12f4b797ef9db2b9bab8465b08662f47f4bef SHA512 0d1b47c5fc5d1d9e5580b30d0f43d5532b388f1a5685060ca9313ec2f76c61a5fc96b8aa37689072b71edd9fb1aedddd46fa38c237ccb7198841d7bc33bf2a2b WHIRLPOOL f78612445dda2c55aa224e4df0ece92a5f762049ca1b6bcf4e00f72f6aaf900fb944a6a1dd358900b1968a63b301af8bf4b1ca0a645c43c0ca2221279efabd9a |
24 |
|
25 |
diff --git a/games-simulation/openrct2/openrct2-0.1.1.ebuild b/games-simulation/openrct2/openrct2-0.1.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..c93e3088f8a |
28 |
--- /dev/null |
29 |
+++ b/games-simulation/openrct2/openrct2-0.1.1.ebuild |
30 |
@@ -0,0 +1,96 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit cmake-utils gnome2-utils |
37 |
+ |
38 |
+DESCRIPTION="An open source re-implementation of RollerCoaster Tycoon 2" |
39 |
+HOMEPAGE="https://openrct2.website/" |
40 |
+if [[ ${PV} == 9999 ]]; then |
41 |
+ EGIT_REPO_URI="https://github.com/OpenRCT2/OpenRCT2.git" |
42 |
+ EGIT_BRANCH="develop" |
43 |
+ inherit git-r3 |
44 |
+ SRC_URI="" |
45 |
+else |
46 |
+ KEYWORDS="~amd64 ~x86" |
47 |
+ SRC_URI="https://github.com/OpenRCT2/OpenRCT2/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ S="${WORKDIR}/OpenRCT2-${PV}" |
49 |
+fi |
50 |
+ |
51 |
+TSV="0.1.0" |
52 |
+SRC_URI+=" https://github.com/OpenRCT2/title-sequences/releases/download/v${TSV}/title-sequence-v${TSV}.zip -> ${PN}-title-sequence-v${TSV}.zip " |
53 |
+ |
54 |
+LICENSE="GPL-3" |
55 |
+SLOT="0" |
56 |
+IUSE="libressl +multiplayer opengl test truetype +twitch" |
57 |
+ |
58 |
+# This is needed because of this bug: https://github.com/OpenRCT2/OpenRCT2/issues/5469 |
59 |
+REQUIRED_USE="multiplayer? ( twitch )" |
60 |
+ |
61 |
+RDEPEND=" |
62 |
+ >=dev-libs/jansson-2.5 |
63 |
+ >=dev-libs/libzip-1.0 |
64 |
+ media-libs/libpng:0= |
65 |
+ media-libs/libsdl2 |
66 |
+ || ( |
67 |
+ media-libs/speexdsp |
68 |
+ <media-libs/speex-1.2.0 |
69 |
+ ) |
70 |
+ multiplayer? ( |
71 |
+ libressl? ( dev-libs/libressl:0= ) |
72 |
+ !libressl? ( dev-libs/openssl:0= ) |
73 |
+ ) |
74 |
+ opengl? ( virtual/opengl ) |
75 |
+ truetype? ( |
76 |
+ media-libs/sdl2-ttf |
77 |
+ media-libs/fontconfig |
78 |
+ ) |
79 |
+ twitch? ( net-misc/curl[ssl] ) |
80 |
+" |
81 |
+DEPEND="${RDEPEND} |
82 |
+ test? ( dev-cpp/gtest ) |
83 |
+" |
84 |
+ |
85 |
+if [[ ${PV} == 9999 ]]; then |
86 |
+src_unpack() { |
87 |
+ default |
88 |
+ git-r3_src_unpack |
89 |
+} |
90 |
+fi |
91 |
+ |
92 |
+src_configure() { |
93 |
+ local mycmakeargs=( |
94 |
+ -DDISABLE_HTTP_TWITCH="$(usex !twitch)" |
95 |
+ -DDISABLE_NETWORK="$(usex !multiplayer)" |
96 |
+ -DDISABLE_OPENGL="$(usex !opengl)" |
97 |
+ -DDISABLE_TTF="$(usex !truetype)" |
98 |
+ -DWITH_TESTS="$(usex test)" |
99 |
+ -DDOWNLOAD_TITLE_SEQUENCES=OFF |
100 |
+ -DDISABLE_RCT2_TESTS=ON |
101 |
+ -DSYSTEM_GTEST=ON |
102 |
+ ) |
103 |
+ |
104 |
+ cmake-utils_src_configure |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ cmake-utils_src_install |
109 |
+ |
110 |
+ insinto /usr/share/openrct2/title |
111 |
+ doins "${WORKDIR}"/*.parkseq |
112 |
+} |
113 |
+ |
114 |
+pkg_postinst() { |
115 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
116 |
+ ewarn "" |
117 |
+ ewarn "You need the original RollerCoaster Tycoon 2 files to play this game." |
118 |
+ ewarn "See: https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files#how-to-retrieve" |
119 |
+ ewarn "" |
120 |
+ fi |
121 |
+ gnome2_icon_cache_update |
122 |
+} |
123 |
+ |
124 |
+pkg_postrm() { |
125 |
+ gnome2_icon_cache_update |
126 |
+} |