Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-simulation/openrct2/
Date: Wed, 09 May 2018 12:26:46
Message-Id: 1525868793.e5a5da3285f1bc675323ee02cdb4fe78eb7c6b15.mgorny@gentoo
1 commit: e5a5da3285f1bc675323ee02cdb4fe78eb7c6b15
2 Author: Hendrik v. Raven <hendrik <AT> consetetur <DOT> de>
3 AuthorDate: Wed Apr 25 10:11:32 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 9 12:26:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5a5da32
7
8 games-simulation/openrct2: version bump to 0.1.2
9
10 also force the build system to create a shared library used by both
11 binaries
12
13 Package-Manager: Portage-2.3.31, Repoman-2.3.9
14
15 games-simulation/openrct2/Manifest | 2 +
16 games-simulation/openrct2/openrct2-0.1.2.ebuild | 104 ++++++++++++++++++++++++
17 2 files changed, 106 insertions(+)
18
19 diff --git a/games-simulation/openrct2/Manifest b/games-simulation/openrct2/Manifest
20 index 065282fe9cc..4a784c69ff6 100644
21 --- a/games-simulation/openrct2/Manifest
22 +++ b/games-simulation/openrct2/Manifest
23 @@ -1,2 +1,4 @@
24 DIST openrct2-0.1.1.tar.gz 6284135 BLAKE2B 71ac2671c42fb679f5430ef0d0bd5e05d112aebd20b4b59e05e3527bacf24137b81bcedc72f9cc86cbf0b7612d6dc14c82881a828108aa5b16b8ddeeed78c46e SHA512 fd84907819ac317af88c0446afcb04acdb43cd6671f0837f1294191aacf58e93887d46e6eb28d86f558577f4e7c834bc42a9ec486f67e0b64cb7bc0cc1bda427
25 +DIST openrct2-0.1.2.tar.gz 6769785 BLAKE2B 0cc6ef6c68c1db6c822dd6038bc2d115f487a52b5891316273ee36db1713913baa2f119dabace88a37c16f87c90b14cf84df75a24b26b22571e98966afd2adbc SHA512 489dac96e1eda1449680f98a4b500eeb7b3f1ffbdaa5a5c701300071eb3a7862c65fa5a81e769083927b95a14914db54307724756a9841cff0c769c9e5471adc
26 DIST openrct2-title-sequence-v0.1.0.zip 1766393 BLAKE2B 19612ba78572c4f271349387a24fc9caf389552ad78841ed86ff069c20686da339c83cabe041a1ae240055721984372f1ef20bd009f1ac8b38bf3ff82297b29a SHA512 0d1b47c5fc5d1d9e5580b30d0f43d5532b388f1a5685060ca9313ec2f76c61a5fc96b8aa37689072b71edd9fb1aedddd46fa38c237ccb7198841d7bc33bf2a2b
27 +DIST openrct2-title-sequence-v0.1.2.zip 4073116 BLAKE2B a36fb07e8da62afce129f2224f4cf5cc226922094132a3dc515fda1f02e0f8bbe07c973363f824ae58a54a26f252ad96f3f673bf5f142be5c964f45b6f712ed6 SHA512 7592c5397ceb27347c127ae5c4f8e11d7ef2ff23c97f627b354f941894420f546ffdcff88e2348e42c82d182ccf620e739c745d894a9b5650a0d7d028b68a106
28
29 diff --git a/games-simulation/openrct2/openrct2-0.1.2.ebuild b/games-simulation/openrct2/openrct2-0.1.2.ebuild
30 new file mode 100644
31 index 00000000000..33e4efa303c
32 --- /dev/null
33 +++ b/games-simulation/openrct2/openrct2-0.1.2.ebuild
34 @@ -0,0 +1,104 @@
35 +# Copyright 1999-2018 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit cmake-utils gnome2-utils xdg-utils
41 +
42 +DESCRIPTION="An open source re-implementation of RollerCoaster Tycoon 2"
43 +HOMEPAGE="https://openrct2.website/"
44 +if [[ ${PV} == 9999 ]]; then
45 + EGIT_REPO_URI="https://github.com/OpenRCT2/OpenRCT2.git"
46 + EGIT_BRANCH="develop"
47 + inherit git-r3
48 + SRC_URI=""
49 +else
50 + KEYWORDS="~amd64 ~x86"
51 + SRC_URI="https://github.com/OpenRCT2/OpenRCT2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
52 + S="${WORKDIR}/OpenRCT2-${PV}"
53 +fi
54 +
55 +TSV="${PV}"
56 +SRC_URI+=" https://github.com/OpenRCT2/title-sequences/releases/download/v${TSV}/title-sequence-v${TSV}.zip -> ${PN}-title-sequence-v${TSV}.zip "
57 +
58 +LICENSE="GPL-3"
59 +SLOT="0"
60 +IUSE="libressl +multiplayer opengl test truetype +twitch"
61 +
62 +RDEPEND="
63 + >=dev-libs/jansson-2.5
64 + >=dev-libs/libzip-1.0
65 + media-libs/libpng:0=
66 + media-libs/libsdl2
67 + || (
68 + media-libs/speexdsp
69 + <media-libs/speex-1.2.0
70 + )
71 + multiplayer? (
72 + libressl? ( dev-libs/libressl:0= )
73 + !libressl? ( dev-libs/openssl:0= )
74 + )
75 + opengl? ( virtual/opengl )
76 + truetype? (
77 + media-libs/sdl2-ttf
78 + media-libs/fontconfig
79 + )
80 + twitch? ( net-misc/curl[ssl] )
81 +"
82 +DEPEND="${RDEPEND}
83 + app-arch/unzip
84 + test? ( dev-cpp/gtest )
85 +"
86 +
87 +src_unpack() {
88 + if [[ ${PV} == 9999 ]]; then
89 + git-r3_src_unpack
90 + else
91 + unpack ${P}.tar.gz
92 + fi
93 +
94 + mkdir -p "${S}/data/title" || die
95 + pushd "${S}/data/title" || die
96 + unpack ${PN}-title-sequence-v${TSV}.zip
97 + popd || die
98 +}
99 +
100 +src_prepare() {
101 + sed -i CMakeLists.txt -e 's/-Werror//' || die
102 +
103 + cmake-utils_src_prepare
104 +}
105 +
106 +src_configure() {
107 + local mycmakeargs=(
108 + -DDISABLE_HTTP_TWITCH="$(usex !twitch)"
109 + -DDISABLE_NETWORK="$(usex !multiplayer)"
110 + -DDISABLE_OPENGL="$(usex !opengl)"
111 + -DDISABLE_TTF="$(usex !truetype)"
112 + -DWITH_TESTS="$(usex test)"
113 + -DDOWNLOAD_TITLE_SEQUENCES=OFF
114 + -DDISABLE_RCT2_TESTS=ON
115 + -DSYSTEM_GTEST=ON
116 + -DBUILD_SHARED_LIBS=ON
117 + )
118 +
119 + cmake-utils_src_configure
120 +}
121 +
122 +pkg_postinst() {
123 + if [[ -z ${REPLACING_VERSIONS} ]]; then
124 + ewarn ""
125 + ewarn "You need the original RollerCoaster Tycoon 2 files to play this game."
126 + ewarn "See: https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files#how-to-retrieve"
127 + ewarn ""
128 + fi
129 + gnome2_icon_cache_update
130 + xdg_desktop_database_update
131 + xdg_mimeinfo_database_update
132 +}
133 +
134 +pkg_postrm() {
135 + gnome2_icon_cache_update
136 + xdg_desktop_database_update
137 + xdg_mimeinfo_database_update
138 +}