Gentoo Archives: gentoo-commits

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/supertuxkart/
Date: Thu, 08 Oct 2015 06:03:26
Message-Id: 1444283575.007f1c6b43d99a99a2b7620256915094de2afb79.mr_bones_@gentoo
1 commit: 007f1c6b43d99a99a2b7620256915094de2afb79
2 Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 8 05:52:41 2015 +0000
4 Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 8 05:52:55 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=007f1c6b
7
8 version bump (bug #547624)
9
10 Package-Manager: portage-2.2.20.1
11
12 games-action/supertuxkart/Manifest | 1 +
13 games-action/supertuxkart/supertuxkart-0.9.ebuild | 83 +++++++++++++++++++++++
14 2 files changed, 84 insertions(+)
15
16 diff --git a/games-action/supertuxkart/Manifest b/games-action/supertuxkart/Manifest
17 index ebd2f36..dab06ac 100644
18 --- a/games-action/supertuxkart/Manifest
19 +++ b/games-action/supertuxkart/Manifest
20 @@ -1,2 +1,3 @@
21 DIST supertuxkart-0.8.1-src.tar.bz2 229944480 SHA256 335301ae61b0c177be68d5593c65e5b197dc807421f08a8a35740a254cacf8d6 SHA512 1d72230a2cfa6196c6ea6c5464f01d1a0064994c9dafbf5d47c04b5db87e82590fde57a88d5316f2cf6094dcebae5e115b81e5ecc964a29bd669bc83d527d13a WHIRLPOOL 5cf87e57cd5b5d12e4549bf49efb0596e4a1fafa7cba58e366c843e2ebf61c02e5c3471d1591f1231194021cbcb6082829e026616403680fc7ad05bd235b155e
22 +DIST supertuxkart-0.9-src.tar.xz 385780604 SHA256 c0eb24eb49e23ed6d03f4864feb43573e14971c8420bf60c3c654d4e05ff9aa6 SHA512 0876ad8bda49b3a26be82ee60742704608f4aca3e16fc038a06d9aa8dce9389b15fa69b547eca4b4a3c073cea495e7872924732a2e66802987c905348ff25ebb WHIRLPOOL 780c664d418de612fdfa2905dc86f0eddced5b2c0eef60b67931203afd34b418eb254d0270113846a1c51e149acd6a64157263895163fb1016a9a840384eeb51
23 DIST supertuxkart.png 4435 SHA256 99bc1801cb0514946cb0171d6d5a84484b6dc881edfa7f096b6eb5fea2f28828 SHA512 a180332f79220431922fa8b351cb476ebc5d9d1df09f20707eb3bdd7002fd264cb027b8190c73c5221050e6e8601beb6758a5809d05aedfb18f0bdb426f47eda WHIRLPOOL eef651802a927b451226fc06a682d7dea68b65b05195130ccfc7544165f26f65bda4fc9565e09d6487d02be3cf57880b0c6c257f26587c6bc6d30afc6aa5d3c2
24
25 diff --git a/games-action/supertuxkart/supertuxkart-0.9.ebuild b/games-action/supertuxkart/supertuxkart-0.9.ebuild
26 new file mode 100644
27 index 0000000..b070ae7
28 --- /dev/null
29 +++ b/games-action/supertuxkart/supertuxkart-0.9.ebuild
30 @@ -0,0 +1,83 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +inherit gnome2-utils cmake-utils eutils games
37 +
38 +DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)"
39 +HOMEPAGE="http://supertuxkart.sourceforge.net/"
40 +SRC_URI="mirror://sourceforge/supertuxkart/SuperTuxKart/${PV}/${P}-src.tar.xz
41 + mirror://gentoo/${PN}.png"
42 +
43 +LICENSE="GPL-3 CC-BY-SA-3.0 CC-BY-2.0 public-domain ZLIB"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~ppc ~x86"
46 +IUSE="debug fribidi wiimote"
47 +
48 +# don't unbundle irrlicht and bullet
49 +# both are modified and system versions will break the game
50 +# http://sourceforge.net/tracker/?func=detail&aid=3454889&group_id=74339&atid=540679
51 +
52 +RDEPEND="media-libs/libpng:0
53 + media-libs/libvorbis
54 + media-libs/openal
55 + net-misc/curl
56 + sys-libs/zlib
57 + virtual/glu
58 + virtual/jpeg:62
59 + virtual/libintl
60 + virtual/opengl
61 + x11-libs/libX11
62 + x11-libs/libXxf86vm
63 + fribidi? ( dev-libs/fribidi )
64 + wiimote? ( net-wireless/bluez )"
65 +DEPEND="${RDEPEND}
66 + sys-devel/gettext
67 + virtual/pkgconfig"
68 +
69 +src_prepare() {
70 + # inconsistent handling of debug definition
71 + # avoid using Debug build type
72 + if use debug ; then
73 + sed -i \
74 + -e 's/add_definitions(-DNDEBUG)/add_definitions(-DDEBUG)/' \
75 + CMakeLists.txt || die
76 + fi
77 +}
78 +
79 +src_configure() {
80 + local mycmakeargs=(
81 + $(cmake-utils_use_use fribidi FRIBIDI)
82 + $(cmake-utils_use_use wiimote WIIUSE)
83 + -DSTK_INSTALL_BINARY_DIR="${GAMES_BINDIR}"
84 + -DSTK_INSTALL_DATA_DIR="${GAMES_DATADIR}"/${PN}
85 + )
86 +
87 + cmake-utils_src_configure
88 +}
89 +
90 +src_compile() {
91 + cmake-utils_src_compile
92 +}
93 +
94 +src_install() {
95 + cmake-utils_src_install
96 + doicon -s 64 "${DISTDIR}"/${PN}.png
97 + dodoc AUTHORS CHANGELOG.md README.md TODO.md
98 + prepgamesdirs
99 +}
100 +
101 +pkg_preinst() {
102 + games_pkg_preinst
103 + gnome2_icon_savelist
104 +}
105 +
106 +pkg_postinst() {
107 + games_pkg_postinst
108 + gnome2_icon_cache_update
109 +}
110 +
111 +pkg_postrm() {
112 + gnome2_icon_cache_update
113 +}