aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerion Entrup <gerion.entrup@flump.de>2019-03-25 00:57:22 +0100
committerGerion Entrup <gerion.entrup@flump.de>2019-03-25 00:57:36 +0100
commitdd9c3c55d689c7fdd28810fa0acdefe01985d299 (patch)
treec57c184a23262866dc102c93d75f469b02265f55 /games-action/supertuxkart
parentmedia-sound/mixxx: make ebuild 9999 version only (diff)
downloadgerislay-dd9c3c55d689c7fdd28810fa0acdefe01985d299.tar.gz
gerislay-dd9c3c55d689c7fdd28810fa0acdefe01985d299.tar.bz2
gerislay-dd9c3c55d689c7fdd28810fa0acdefe01985d299.zip
games-action/supertuxkart: add live ebuild
Seems to build but does not do any unbundling etc. Propably a rather bad quality. Package-Manager: Portage-2.3.62, Repoman-2.3.11 Signed-off-by: Gerion Entrup <gerion.entrup@flump.de>
Diffstat (limited to 'games-action/supertuxkart')
-rw-r--r--games-action/supertuxkart/Manifest2
-rw-r--r--games-action/supertuxkart/metadata.xml16
-rw-r--r--games-action/supertuxkart/supertuxkart-9999.ebuild100
3 files changed, 118 insertions, 0 deletions
diff --git a/games-action/supertuxkart/Manifest b/games-action/supertuxkart/Manifest
new file mode 100644
index 0000000..1ea179b
--- /dev/null
+++ b/games-action/supertuxkart/Manifest
@@ -0,0 +1,2 @@
+EBUILD supertuxkart-9999.ebuild 2300 BLAKE2B 29877d77949448fcde58de7cb90e23250819eb8b655797ef18052b191bb2ed0c6a0d7dd96dd8208ceacc7021479f73c971f9d9337f6ce95b5a91092ba4dc155e SHA512 bf545b63638c2001f5e06591d1dfbf85ed1050fa9de075bc3bc991eff15d88e7014804c55cfc9b3890052b468f23b174d77f612a4fe0dcc3fd222651eed405da
+MISC metadata.xml 573 BLAKE2B 41f327d52da06dfcf6512169bb9a0852eda78289f23ffbaa4af2c4b0cdfa3a6eb0bb9f2294e320b027881ac6b0ad3c67289b5f7b60f8f609ed5b675f09141881 SHA512 70c44441fdb9d6dfbb1cddc909b16a38a8eb7eb1342f0072f987c7740acaba50bbb6e4747323007d203ef0659f3c0f2f77bed36277cc2bf460a11b8060211312
diff --git a/games-action/supertuxkart/metadata.xml b/games-action/supertuxkart/metadata.xml
new file mode 100644
index 0000000..53ad721
--- /dev/null
+++ b/games-action/supertuxkart/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gerione.entrup@flump.de</email>
+ <name>Gerion Entrup</name>
+ </maintainer>
+ <use>
+ <flag name="fribidi">Support for right-to-left languages</flag>
+ <flag name="recorder">Enable recording with <pkg>media-libs/libopenglrecorder</pkg></flag>
+ <flag name="wiimote">Support for wiimote input devices</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">supertuxkart</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/supertuxkart/supertuxkart-9999.ebuild b/games-action/supertuxkart/supertuxkart-9999.ebuild
new file mode 100644
index 0000000..e52834f
--- /dev/null
+++ b/games-action/supertuxkart/supertuxkart-9999.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils desktop gnome2-utils
+
+DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)"
+HOMEPAGE="https://supertuxkart.net/"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3 subversion
+ EGIT_REPO_URI="https://github.com/${PN}/stk-code"
+ ESVN_REPO_URI="https://svn.code.sf.net/p/${PN}/code/stk-assets"
+else
+ SRC_URI="mirror://sourceforge/${PN}/SuperTuxKart/${PV}/${P}-src.tar.xz
+ mirror://gentoo/${PN}.png"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2 GPL-3 CC-BY-SA-3.0 CC-BY-2.0 public-domain ZLIB"
+SLOT="0"
+IUSE="debug fribidi recorder wiimote"
+
+# don't unbundle irrlicht and bullet
+# both are modified and system versions will break the game
+# https://sourceforge.net/p/irrlicht/feature-requests/138/
+
+RDEPEND="
+ media-libs/glew:0=
+ media-libs/libpng:0=
+ media-libs/libvorbis
+ media-libs/openal
+ net-libs/enet:1.3=
+ net-misc/curl
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0
+ virtual/libintl
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ fribidi? ( dev-libs/fribidi )
+ recorder? ( media-libs/libopenglrecorder )
+ wiimote? ( net-wireless/bluez )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+# PATCHES=(
+# "${FILESDIR}"/${PN}-0.9.3-irrlicht-arch-support.patch
+# "${FILESDIR}"/${PN}-0.9.3-irrlicht-bundled-libs.patch
+# "${FILESDIR}"/${PN}-0.9.3-irrlicht-system-libs.patch
+# "${FILESDIR}"/${PN}-0.9.3-fix-buildsystem.patch
+# )
+
+src_unpack() {
+ git-r3_src_unpack
+ ( S="${WORKDIR}/stk-assets" subversion_src_unpack )
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # remove bundled libraries, just to be sure
+ rm -r lib/{enet,glew,jpeglib,libpng,zlib} || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ # system dev-libs/angelscript leads
+ # to failed assert segfaults
+ -DUSE_SYSTEM_ANGELSCRIPT=OFF
+ -DUSE_FRIBIDI=$(usex fribidi)
+ -DBUILD_RECORDER=$(usex recorder)
+ -DUSE_WIIUSE=$(usex wiimote)
+ -DSTK_INSTALL_BINARY_DIR=bin
+ -DSTK_INSTALL_DATA_DIR=share/${PN}
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc CHANGELOG.md
+
+ # doicon -s 64 "${DISTDIR}"/${PN}.png
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}