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-sports/xmoto/
Date: Tue, 27 Mar 2018 21:46:05
Message-Id: 1522187114.d9f86160e7814a3ca4d124024c4bccd3d97f75b4.chewi@gentoo
1 commit: d9f86160e7814a3ca4d124024c4bccd3d97f75b4
2 Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
3 AuthorDate: Tue Mar 27 03:37:49 2018 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 27 21:45:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9f86160
7
8 games-sports/xmoto: Fix building with GCC-7
9
10 Bug: https://bugs.gentoo.org/646578
11 Package-Manager: Portage-2.3.16, Repoman-2.3.6
12 Closes: https://github.com/gentoo/gentoo/pull/7604
13
14 games-sports/xmoto/Manifest | 1 +
15 games-sports/xmoto/metadata.xml | 1 +
16 games-sports/xmoto/xmoto-0.5.11-r2.ebuild | 92 +++++++++++++++++++++++++++++++
17 3 files changed, 94 insertions(+)
18
19 diff --git a/games-sports/xmoto/Manifest b/games-sports/xmoto/Manifest
20 index 1bf0d515045..479735b2793 100644
21 --- a/games-sports/xmoto/Manifest
22 +++ b/games-sports/xmoto/Manifest
23 @@ -1,3 +1,4 @@
24 DIST inksmoto-0.7.0.tar.gz 2628941 BLAKE2B b8469739e6368f7b36b9a5b766522c295de43c001fba00975fb3c761ba6df34bf97e684ddf51aa83a6a41a1b800d64d6d6fe77358cf1244f193d3aad4746c6b5 SHA512 af0ae49ea160a2274f6835abd82ccaa00dc9ff81875b7d4ea29789388c131b519cb77e6da42efeaf51d52b97090c67320af38145204a1d5418781c99cb23a704
25 DIST xmoto-0.5.11-src.tar.gz 40785573 BLAKE2B a1c19656ec5b206417ebdf5ac80e134ce7f29258d8a76f47bad4084ce4d2cdaeeecde1cf6cef1254a0832f21c50a49049947c1896681fe2dd8f3531ba22e7627 SHA512 7046745e8f7a045fa2ce1deb3fd75b73b233dc1092f5ecd6dd4e42938f70269a93a3a623a39a1f0520c90643a42dc1ce93c43ad07bf225ff6c50741cc02511f6
26 DIST xmoto_0.5.11+dfsg-6.debian.tar.xz 25240 BLAKE2B a1509cc25eca4f56e6bdad04aecf2cd63d9a2515b7dc7cebce64cde09de770636707a8344efda1e73d078185abdbaf0eaddeb1466081e4465e779f702866f8c2 SHA512 961f97a3427e77cf020d73820ff99fdc0ca81e5953a18ed9386a1b476eb2af897073adcd7141e993fbf4f8fdca9efdab8cf20b89bfc31196afdcb4f2095ab390
27 +DIST xmoto_0.5.11+dfsg-7.debian.tar.xz 25708 BLAKE2B e4029d9c66b176c6eebbf68c973cb726ef7b2522c6245ce626c7a61c13492f2e599c5a7deff4f2c853bc58d21afb4e53072a0ddc25a4e7bdb8b89b93fd44159a SHA512 d430fa37fdde90ac68e8ff4b7d2707ea5fc73fa8fab241f7a97b27e803a88321f0ea01b094a5f77ac7e43b2202113842b4f69a745e9212eead7ce4a0a5cd220c
28
29 diff --git a/games-sports/xmoto/metadata.xml b/games-sports/xmoto/metadata.xml
30 index 23c7b787914..5b72e0102ed 100644
31 --- a/games-sports/xmoto/metadata.xml
32 +++ b/games-sports/xmoto/metadata.xml
33 @@ -6,6 +6,7 @@
34 <name>Gentoo Games Project</name>
35 </maintainer>
36 <use>
37 + <flag name="double-precision">more precise calculations at the expense of speed</flag>
38 <flag name="editor">Depend on inkscape, scripts to convert svg to level (svg2lvl)</flag>
39 </use>
40 </pkgmetadata>
41
42 diff --git a/games-sports/xmoto/xmoto-0.5.11-r2.ebuild b/games-sports/xmoto/xmoto-0.5.11-r2.ebuild
43 new file mode 100644
44 index 00000000000..4a48f02abbc
45 --- /dev/null
46 +++ b/games-sports/xmoto/xmoto-0.5.11-r2.ebuild
47 @@ -0,0 +1,92 @@
48 +# Copyright 1999-2018 Gentoo Foundation
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=6
52 +inherit autotools eutils flag-o-matic
53 +
54 +LVL_PV="0.7.0" #they unfortunately don't release both at the same time, why ~ as separator :(
55 +LVL="inksmoto-${LVL_PV}"
56 +DEB_PV=7
57 +DESCRIPTION="A challenging 2D motocross platform game"
58 +HOMEPAGE="http://xmoto.tuxfamily.org"
59 +SRC_URI="http://download.tuxfamily.org/xmoto/xmoto/${PV}/${P}-src.tar.gz
60 + mirror://debian/pool/main/x/${PN}/${PN}_${PV}+dfsg-${DEB_PV}.debian.tar.xz
61 + editor? ( http://download.tuxfamily.org/xmoto/svg2lvl/${LVL_PV}/${LVL}.tar.gz )"
62 +
63 +LICENSE="GPL-2"
64 +SLOT="0"
65 +KEYWORDS="~amd64 ~x86"
66 +IUSE="double-precision editor nls"
67 +
68 +RDEPEND="
69 + app-arch/bzip2
70 + dev-db/sqlite:3
71 + dev-games/ode[double-precision=]
72 + dev-lang/lua:0[deprecated]
73 + dev-libs/libxdg-basedir
74 + dev-libs/libxml2
75 + media-fonts/dejavu
76 + media-libs/libpng:0
77 + media-libs/libsdl[joystick,opengl]
78 + media-libs/sdl-mixer[vorbis]
79 + media-libs/sdl-net
80 + media-libs/sdl-ttf
81 + net-misc/curl
82 + virtual/jpeg:0
83 + virtual/opengl
84 + virtual/glu
85 + nls? ( virtual/libintl )"
86 +DEPEND="${RDEPEND}
87 + app-arch/xz-utils
88 + nls? ( sys-devel/gettext )"
89 +RDEPEND="${RDEPEND}
90 + editor? ( media-gfx/inkscape )"
91 +
92 +src_prepare() {
93 + default
94 +
95 + EPATCH_SOURCE="${WORKDIR}/debian/patches" \
96 + epatch $(cat ${WORKDIR}/debian/patches/series)
97 + use editor && rm -vf "${WORKDIR}"/extensions/{bezmisc,inkex}.py
98 + sed -i \
99 + -e '/^gettextsrcdir/s:=.*:= @localedir@/gettext/po:' \
100 + po/Makefile.in.in || die
101 + mv configure.{in,ac} || die
102 + eautoreconf
103 +
104 + rm -r "${S}"/src/ode || die
105 +}
106 +
107 +src_configure() {
108 + econf \
109 + --enable-threads=posix \
110 + $(use_enable nls) \
111 + --localedir=/usr/share/locale \
112 + --with-localesdir=/usr/share/locale \
113 + --with-renderer-sdlGfx=0 \
114 + --with-renderer-openGl=1
115 +}
116 +
117 +src_install() {
118 + default
119 +
120 + rm -f "${D}/usr/share/xmoto"/Textures/Fonts/DejaVu*.ttf
121 + dosym ../../../fonts/dejavu/DejaVuSans.ttf /usr/share/xmoto/Textures/Fonts/DejaVuSans.ttf
122 + dosym ../../../fonts/dejavu/DejaVuSansMono.ttf /usr/share/xmoto/Textures/Fonts/DejaVuSansMono.ttf
123 + doicon extra/xmoto.xpm
124 + make_desktop_entry xmoto Xmoto
125 +
126 + if use editor; then
127 + insinto /usr/share/inkscape/
128 + doins -r "${WORKDIR}"/extensions/
129 + fi
130 +}
131 +
132 +pkg_postinst() {
133 + if use editor; then
134 + elog "If you want to know how to create Xmoto levels"
135 + elog "have a look at this Tutorial:"
136 + elog " http://wiki.xmoto.tuxfamily.org/index.php?title=Inksmoto-${LVL_PV}"
137 + elog "You can share your levels on the Xmoto homepage."
138 + fi
139 +}