Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/uqm/
Date: Sun, 15 Jul 2018 19:01:18
Message-Id: 1531681260.b4fb84082fed670697efdb2c245d3671c2799b2d.chewi@gentoo
1 commit: b4fb84082fed670697efdb2c245d3671c2799b2d
2 Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 13 12:30:07 2018 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 15 19:01:00 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4fb8408
7
8 games-strategy/uqm: version bump to 0.7.0.1
9
10 Also bump to EAPI 7.
11
12 Thanks to: Joshua Clayton <stillcompiling <AT> gmail.com>
13
14 Closes: https://bugs.gentoo.org/638086
15 Package-Manager: Portage-2.3.42, Repoman-2.3.9
16 Closes: https://github.com/gentoo/gentoo/pull/9215
17
18 games-strategy/uqm/Manifest | 1 +
19 games-strategy/uqm/uqm-0.7.0.1.ebuild | 119 ++++++++++++++++++++++++++++++++++
20 2 files changed, 120 insertions(+)
21
22 diff --git a/games-strategy/uqm/Manifest b/games-strategy/uqm/Manifest
23 index bb6549fff5d..403a17b29b4 100644
24 --- a/games-strategy/uqm/Manifest
25 +++ b/games-strategy/uqm/Manifest
26 @@ -1,3 +1,4 @@
27 +DIST uqm-0.7.0-1-source.tgz 1591613 BLAKE2B 400309aced671a23bf325b95bb471db2e5b9aa59a0c868bc1cf971e71ad22a7a555c68fc15be1c574e4b4a8f58b0c18c4a5f85c188b494e20b36bd09ba6de02b SHA512 77255e7e4cc195d4db7f02bb95e76d41c0d72cb179b30a8cd944c4c78560485d76ad89b0bbd03102e5718d66f3b16050ef73a30b6bc8d31e1c0bfa46758badaa
28 DIST uqm-0.7.0-3domusic.uqm 18980671 BLAKE2B e86828b8a4a2ae7aee7469a9792c3ba7f472208fe33de46f2797024331a290c1092fcae4a1d599fa002d9cd9ef0248df6cb6cda673d3c0ef90c55ae4a38afd56 SHA512 e7d723194685388813d72e1add9a710ecd3de9b33381dfe66acee6c31a31634ee9031ecc83c2003a5222b9381efe150a2f2a9289f8505d842182ca03b012183b
29 DIST uqm-0.7.0-content.uqm 11538533 BLAKE2B 8b654f47d8d2e66dac197b10b96fdfc62907cafc6b5b9046a84588d539349263012c5cb235a428e2cb9a8840b1ff7565035f810a8445892b3c272bb629769348 SHA512 c80aa9f1158d07534abc1ef625662dfcd5021cb5e8091d46b3e9a2d96a0fffbe7e9e6cc88680b43d810c8e68a580f7a0d4b62c08e9f7b948ae7f017e4ad20dd2
30 DIST uqm-0.7.0-source.tgz 1562003 BLAKE2B 682f87b4967b1aef298dd576dd37cef838f2eaf42f2212fc3af70bf7319e5284cc9bff616d8db3a36a7f2760d2f47f714bcaa2f4f3d35993892a78cdadc85e54 SHA512 443ac13da401d45743f913755647b3309834c57f371fb673c3ea2cacb81184bf30430db10af9001de854363520d1f792f47faffd690c8c2b2f3d12d63b217815
31
32 diff --git a/games-strategy/uqm/uqm-0.7.0.1.ebuild b/games-strategy/uqm/uqm-0.7.0.1.ebuild
33 new file mode 100644
34 index 00000000000..562c43b26a8
35 --- /dev/null
36 +++ b/games-strategy/uqm/uqm-0.7.0.1.ebuild
37 @@ -0,0 +1,119 @@
38 +# Copyright 1999-2018 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +inherit desktop toolchain-funcs
43 +
44 +MY_PV=$(ver_rs 3 '-')
45 +MY_P="${PN}-${MY_PV}"
46 +BASE_PV=$(ver_cut 1-3)
47 +BASE_P="${PN}-${BASE_PV}"
48 +
49 +DESCRIPTION="The Ur-Quan Masters: Port of Star Control 2"
50 +HOMEPAGE="http://sc2.sourceforge.net/"
51 +SRC_URI="mirror://sourceforge/sc2/${MY_P}-source.tgz
52 + mirror://sourceforge/sc2/${BASE_P}-content.uqm
53 + music? ( mirror://sourceforge/sc2/${BASE_P}-3domusic.uqm )
54 + voice? ( mirror://sourceforge/sc2/${BASE_P}-voice.uqm )
55 + remix? ( mirror://sourceforge/sc2/${PN}-remix-disc1.uqm \
56 + mirror://sourceforge/sc2/${PN}-remix-disc2.uqm \
57 + mirror://sourceforge/sc2/${PN}-remix-disc3.uqm \
58 + mirror://sourceforge/sc2/${PN}-remix-disc4.uqm )"
59 +
60 +LICENSE="GPL-2+"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~ppc64 ~x86"
63 +IUSE="music opengl remix voice"
64 +
65 +RDEPEND="
66 + media-libs/libmikmod
67 + media-libs/libogg
68 + >=media-libs/libpng-1.4:0=
69 + media-libs/libsdl[X,sound,joystick,video]
70 + media-libs/libvorbis
71 + media-libs/sdl-image[png]
72 + sys-libs/zlib
73 + opengl? ( virtual/opengl )
74 +"
75 +DEPEND="${RDEPEND}
76 + virtual/pkgconfig
77 +"
78 +
79 +S="${WORKDIR}/${MY_P}"
80 +
81 +PATCHES=(
82 + "${FILESDIR}/${BASE_P}-tempdir.patch"
83 + "${FILESDIR}/${BASE_P}-warning.patch"
84 +)
85 +
86 +src_prepare() {
87 + default
88 +
89 + local myopengl=$(usex opengl 'opengl' 'pure')
90 +
91 + cat <<-EOF > config.state
92 + CHOICE_debug_VALUE='nodebug'
93 + CHOICE_graphics_VALUE='${myopengl}'
94 + CHOICE_sound_VALUE='mixsdl'
95 + CHOICE_accel_VALUE='plainc'
96 + INPUT_install_prefix_VALUE='/usr/share'
97 + INPUT_install_bindir_VALUE='\$prefix/bin'
98 + INPUT_install_libdir_VALUE='\$prefix/lib'
99 + INPUT_install_sharedir_VALUE='/usr/share/'
100 + EOF
101 +
102 + # Take out the read so we can be non-interactive.
103 + sed -i \
104 + -e '/read CHOICE/d' build/unix/menu_functions || die
105 +
106 + # respect CFLAGS
107 + sed -i \
108 + -e "s/-O3//" build/unix/build.config || die
109 +
110 + sed -i \
111 + -e "s:@INSTALL_LIBDIR@:/usr/$(get_libdir)/:g" \
112 + build/unix/uqm-wrapper.in || die
113 +
114 + # respect CC
115 + sed -i \
116 + -e "s/PROG_gcc_FILE=\"gcc\"/PROG_gcc_FILE=\"$(tc-getCC)\"/" \
117 + build/unix/config_proginfo_build || die
118 +}
119 +
120 +src_compile() {
121 + MAKE_VERBOSE=1 ./build.sh uqm || die
122 +}
123 +
124 +src_install() {
125 + # Using the included install scripts seems quite painful.
126 + # This manual install is totally fragile but maybe they'll
127 + # use a sane build system for the next release.
128 + newbin uqm-wrapper uqm
129 + exeinto /usr/"$(get_libdir)"/${PN}
130 + doexe uqm
131 +
132 + insinto /usr/share/${PN}/content/packages
133 + doins "${DISTDIR}"/${BASE_P}-content.uqm
134 + echo ${BASE_P} > "${ED}"/usr/share/${PN}/content/version || die
135 +
136 + insinto /usr/share/${PN}/content/addons
137 + if use music; then
138 + doins "${DISTDIR}"/${BASE_P}-3domusic.uqm
139 + fi
140 +
141 + if use voice; then
142 + doins "${DISTDIR}"/${BASE_P}-voice.uqm
143 + fi
144 +
145 + if use remix; then
146 + insinto /usr/share/${PN}/content/addons
147 + doins "${DISTDIR}"/${PN}-remix-disc{1,2,3,4}.uqm
148 + fi
149 +
150 + dodoc AUTHORS ChangeLog Contributing README WhatsNew doc/users/manual.txt
151 + docinto devel
152 + dodoc doc/devel/[!n]*
153 + docinto devel/netplay
154 + dodoc doc/devel/netplay/*
155 + make_desktop_entry uqm "The Ur-Quan Masters"
156 +}