Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-simulation/openttd/
Date: Mon, 15 Apr 2019 14:54:21
Message-Id: 1555340046.3bd2ef414ba1d0bd640a1743c167faf629036cb1.polynomial-c@gentoo
1 commit: 3bd2ef414ba1d0bd640a1743c167faf629036cb1
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 15 12:51:21 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 15 14:54:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bd2ef41
7
8 games-simulation/openttd: Removed old.
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 games-simulation/openttd/Manifest | 1 -
14 games-simulation/openttd/openttd-1.8.0.ebuild | 178 --------------------------
15 2 files changed, 179 deletions(-)
16
17 diff --git a/games-simulation/openttd/Manifest b/games-simulation/openttd/Manifest
18 index 1627ef5ec00..98eed516095 100644
19 --- a/games-simulation/openttd/Manifest
20 +++ b/games-simulation/openttd/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST openttd-1.8.0-source.tar.xz 6521016 BLAKE2B b3a608fd21d21f861af6eba235c028a59f071ab4698cfdcdd499b6ea7ece853679b064935368d95330414a24ac90aaa3c426afc12a2e135d5b0a48170879b807 SHA512 a2d61b3c94a550c8f3a581127df8c3459b1ddff5ba924942c468cbc70e88e0bf4405cecb68a91243b544ead64f215aa8d489a07b38dce507ae7d59e8ec155d7a
23 DIST openttd-1.9.0-source.tar.xz 6575956 BLAKE2B 31d663b2f8aa67d9e3eb7899795468e8641671bb977957fdc6e55c8dedf3f2a00757de67ed034bf6180cc6091006a1b0bfba8af22d09744eb839a54ca662cbd9 SHA512 fcc044ea93810c99e9b3e80676676272c6f0efb43faa7ef4bfa7184aea793680df22504a1831837cc5ae8481e898d0636b992d1ddb8560cd4848463343adba2d
24 DIST openttd-1.9.1-source.tar.xz 6647548 BLAKE2B fd7d03221bea49345e2163ff700e62a12682f706c1dab3fc741136219b80094bf945dc0cefcd807a643d141841a307141bb760d4b06bf75fa18129c557b149c3 SHA512 44d907299a14fd09ebff980f7c212bbdbd5def880bc56bfe106c3efa8cb32472bbcafdbb145d3f4340a3bc96179418f78fe2ddc62dd067b464eca73313b477c1
25
26 diff --git a/games-simulation/openttd/openttd-1.8.0.ebuild b/games-simulation/openttd/openttd-1.8.0.ebuild
27 deleted file mode 100644
28 index 7daebea4a2c..00000000000
29 --- a/games-simulation/openttd/openttd-1.8.0.ebuild
30 +++ /dev/null
31 @@ -1,178 +0,0 @@
32 -# Copyright 1999-2018 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -inherit gnome2-utils
37 -
38 -MY_PV="${PV/_rc/-RC}"
39 -MY_P="${PN}-${MY_PV}"
40 -
41 -DESCRIPTION="OpenTTD is a clone of Transport Tycoon Deluxe"
42 -HOMEPAGE="http://www.openttd.org/"
43 -SRC_URI="http://binaries.openttd.org/releases/${MY_PV}/${MY_P}-source.tar.xz"
44 -
45 -LICENSE="GPL-2"
46 -SLOT="0"
47 -KEYWORDS="~amd64 ~ppc64 ~x86"
48 -IUSE="aplaymidi debug dedicated iconv icu lzo +openmedia +png cpu_flags_x86_sse +timidity +truetype zlib"
49 -RESTRICT="test" # needs a graphics set in order to test
50 -
51 -RDEPEND="!dedicated? (
52 - media-libs/libsdl[sound,X,video]
53 - icu? (
54 - dev-libs/icu-layoutex
55 - dev-libs/icu-le-hb
56 - >=dev-libs/icu-58.1:=
57 - )
58 - truetype? (
59 - media-libs/fontconfig
60 - media-libs/freetype:2
61 - sys-libs/zlib
62 - )
63 - )
64 - lzo? ( dev-libs/lzo:2 )
65 - iconv? ( virtual/libiconv )
66 - png? ( media-libs/libpng:0 )
67 - zlib? ( sys-libs/zlib )"
68 -DEPEND="${RDEPEND}
69 - virtual/pkgconfig"
70 -PDEPEND="
71 - !dedicated? (
72 - openmedia? (
73 - games-misc/openmsx
74 - games-misc/opensfx
75 - )
76 - aplaymidi? ( media-sound/alsa-utils )
77 - !aplaymidi? ( timidity? ( media-sound/timidity++ ) )
78 - )
79 - openmedia? ( >=games-misc/opengfx-0.4.7 )"
80 -
81 -S="${WORKDIR}/${MY_P}"
82 -
83 -PATCHES=(
84 - "${FILESDIR}"/${PN}-1.6.0-cflags.patch
85 - "${FILESDIR}"/${PN}-1.8.0-icu61.patch
86 - "${FILESDIR}"/${PN}-1.8.0-icu62.patch
87 -)
88 -
89 -src_configure() {
90 - local myopts=(
91 - $(use_with iconv)
92 - $(use_with png)
93 - $(use_with cpu_flags_x86_sse sse)
94 - $(use_with lzo liblzo2)
95 - )
96 - # there is an allegro interface available as well as sdl, but
97 - # the configure for it looks broken so the sdl interface is
98 - # always built instead.
99 - myopts+=( --without-allegro )
100 -
101 - # libtimidity not needed except for some embedded platform
102 - # nevertheless, it will be automagically linked if it is
103 - # installed. Hence, we disable it.
104 - myopts+=( --without-libtimidity )
105 -
106 - use debug && myopts+=( --enable-debug=3 )
107 -
108 - if use dedicated ; then
109 - myopts+=( --enable-dedicated )
110 - else
111 - myopts+=(
112 - $(usex aplaymidi '--with-midi=/usr/bin/aplaymidi' '')
113 - $(use_with truetype freetype)
114 - $(use_with icu)
115 - --with-sdl
116 - )
117 - fi
118 - if use png || { use !dedicated && use truetype; } || use zlib ; then
119 - myopts+=( --with-zlib )
120 - else
121 - myopts+=( --without-zlib )
122 - fi
123 -
124 - # configure is a hand-written bash-script, so econf will not work.
125 - # It's all built as C++, upstream uses CFLAGS internally.
126 - CFLAGS="" ./configure \
127 - --disable-strip \
128 - --prefix-dir="${EPREFIX%/}/usr" \
129 - --binary-dir="bin" \
130 - --install-dir="${D}" \
131 - --menu-group="Game;Simulation;" \
132 - ${myopts[@]} \
133 - || die
134 -}
135 -
136 -src_compile() {
137 - emake VERBOSE=1
138 -}
139 -
140 -src_install() {
141 - default
142 - if use dedicated ; then
143 - newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
144 - rm -rf "${ED%/}"/usr/share/{applications,icons,pixmaps}
145 - fi
146 - rm -f "${ED%/}"/usr/share/doc/${PF}/COPYING
147 -}
148 -
149 -pkg_preinst() {
150 - gnome2_icon_savelist
151 -}
152 -
153 -pkg_postinst() {
154 - gnome2_icon_cache_update
155 -
156 - if ! use lzo ; then
157 - elog "OpenTTD was built without 'lzo' in USE. While 'lzo' is not"
158 - elog "required, disabling it does mean that loading old savegames"
159 - elog "or scenarios from ancient versions (~0.2) will fail."
160 - elog
161 - fi
162 -
163 - if use dedicated ; then
164 - ewarn "Warning: The init script will kill all running openttd"
165 - ewarn "processes when triggered, including any running client sessions!"
166 - else
167 - if use aplaymidi ; then
168 - elog "You have emerged with 'aplaymidi' for playing MIDI."
169 - elog "This option is for those with a hardware midi device,"
170 - elog "or who have set up ALSA to handle midi ports."
171 - elog "You must set the environment variable ALSA_OUTPUT_PORTS."
172 - elog "Available ports can be listed by using 'aplaymidi -l'."
173 - else
174 - if ! use timidity ; then
175 - elog "OpenTTD was built with neither 'aplaymidi' nor 'timidity'"
176 - elog "in USE. Music may or may not work in-game. If you happen"
177 - elog "to have timidity++ installed, music will work so long"
178 - elog "as it remains installed, but OpenTTD will not depend on it."
179 - fi
180 - fi
181 - if ! use openmedia ; then
182 - elog
183 - elog "OpenTTD was compiled without the 'openmedia' USE flag."
184 - elog
185 - elog "In order to play, you must at least install:"
186 - elog "games-misc/opengfx, and games-misc/opensfx, or copy the "
187 - elog "following 6 files from a version of Transport Tycoon Deluxe"
188 - elog "(windows or DOS) to ~/.openttd/data/ or"
189 - elog "${GAMES_DATADIR}/${PN}/data/."
190 - elog
191 - elog "From the WINDOWS version you need: "
192 - elog "sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf"
193 - elog "OR from the DOS version you need: "
194 - elog "SAMPLE.CAT TRG1.GRF TRGC.GRF TRGH.GRF TRGI.GRF TRGT.GRF"
195 - elog
196 - elog "File names are case sensitive, but should work either with"
197 - elog "all upper or all lower case names"
198 - elog
199 - elog "In addition, in-game music will be unavailable: for music,"
200 - elog "install games-misc/openmsx, or use the in-game download"
201 - elog "functionality to get a music set"
202 - elog
203 - fi
204 - fi
205 -}
206 -
207 -pkg_postrm() {
208 - gnome2_icon_cache_update
209 -}