aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerion Entrup <gerion.entrup@flump.de>2019-04-21 16:25:28 +0200
committerGerion Entrup <gerion.entrup@flump.de>2019-04-21 16:49:34 +0200
commita2f699b6c34d7fc806be059d0ebbc883a20c5c2b (patch)
tree73f3e1dbc2c25901bdf33cf6a4fb41b3f883f837 /games-action
parentapp-text/zotero-bin: version bump 5.0.60 -> 5.0.66 (diff)
downloadgerislay-a2f699b6c34d7fc806be059d0ebbc883a20c5c2b.tar.gz
gerislay-a2f699b6c34d7fc806be059d0ebbc883a20c5c2b.tar.bz2
gerislay-a2f699b6c34d7fc806be059d0ebbc883a20c5c2b.zip
games-action/supertuxkart: add v1.0
Signed-off-by: Gerion Entrup <gerion.entrup@flump.de>
Diffstat (limited to 'games-action')
-rw-r--r--games-action/supertuxkart/Manifest5
-rw-r--r--games-action/supertuxkart/supertuxkart-1.0.ebuild100
-rw-r--r--games-action/supertuxkart/supertuxkart-9999.ebuild24
3 files changed, 116 insertions, 13 deletions
diff --git a/games-action/supertuxkart/Manifest b/games-action/supertuxkart/Manifest
index 1ea179b..e14cf37 100644
--- a/games-action/supertuxkart/Manifest
+++ b/games-action/supertuxkart/Manifest
@@ -1,2 +1,5 @@
-EBUILD supertuxkart-9999.ebuild 2300 BLAKE2B 29877d77949448fcde58de7cb90e23250819eb8b655797ef18052b191bb2ed0c6a0d7dd96dd8208ceacc7021479f73c971f9d9337f6ce95b5a91092ba4dc155e SHA512 bf545b63638c2001f5e06591d1dfbf85ed1050fa9de075bc3bc991eff15d88e7014804c55cfc9b3890052b468f23b174d77f612a4fe0dcc3fd222651eed405da
+DIST supertuxkart-1.0-src.tar.xz 597012504 BLAKE2B ed1b851bad8696b4593c54f215b115528afc29bde237f67627e2918c4a9fab09eddc204d0c879fa85c6b10b5544dba5fa5fc1b437cb83e6d884ac717e3369c28 SHA512 182754610abd09545630fa1f7fda858ba1731bbacb078bc71597e143f9cb2a1cfcedd3038720760d0471a89b79cc3bb1eb292d38fcd53be05aad7cb17c474ca9
+DIST supertuxkart.png 4435 BLAKE2B b48b95e1cdebe930837cc784c4c5e9a089a69077e2fcfed15fe5e8c4d649a0f8024769b2f2102bbaea3a94eb21f4b58b5d291b97493266c3c5c8d7335cf69a80 SHA512 a180332f79220431922fa8b351cb476ebc5d9d1df09f20707eb3bdd7002fd264cb027b8190c73c5221050e6e8601beb6758a5809d05aedfb18f0bdb426f47eda
+EBUILD supertuxkart-1.0.ebuild 2186 BLAKE2B 394d400040deae2c54641ebb7ce0672e8c3b6f488fa96b0471896a1a525b59a228bc72900959353dd1b23fd2a5685ddd76196409a7a9b0ad04f1407bacf9215f SHA512 b84d0610fb6942eb8b5c9b0adf20f5f39b96455212607dba0de2f65f25ca6e958e8e8c64b6d89f244afb46bb6e44f10f9844866e7fbd4c8a1a81507eaefa5e4a
+EBUILD supertuxkart-9999.ebuild 2186 BLAKE2B 394d400040deae2c54641ebb7ce0672e8c3b6f488fa96b0471896a1a525b59a228bc72900959353dd1b23fd2a5685ddd76196409a7a9b0ad04f1407bacf9215f SHA512 b84d0610fb6942eb8b5c9b0adf20f5f39b96455212607dba0de2f65f25ca6e958e8e8c64b6d89f244afb46bb6e44f10f9844866e7fbd4c8a1a81507eaefa5e4a
MISC metadata.xml 573 BLAKE2B 41f327d52da06dfcf6512169bb9a0852eda78289f23ffbaa4af2c4b0cdfa3a6eb0bb9f2294e320b027881ac6b0ad3c67289b5f7b60f8f609ed5b675f09141881 SHA512 70c44441fdb9d6dfbb1cddc909b16a38a8eb7eb1342f0072f987c7740acaba50bbb6e4747323007d203ef0659f3c0f2f77bed36277cc2bf460a11b8060211312
diff --git a/games-action/supertuxkart/supertuxkart-1.0.ebuild b/games-action/supertuxkart/supertuxkart-1.0.ebuild
new file mode 100644
index 0000000..3a1da01
--- /dev/null
+++ b/games-action/supertuxkart/supertuxkart-1.0.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/"
+
+SRC_URI="mirror://gentoo/${PN}.png"
+
+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"
+ 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"
+
+src_unpack() {
+ A_ARR=(${A})
+ cp ${DISTDIR}/${A_ARR[0]} ${WORKDIR}
+ if [[ ${PV} == 9999 ]]; then
+ git-r3_src_unpack
+ ( S="${WORKDIR}/stk-assets" subversion_src_unpack )
+ else
+ unpack ${A_ARR[1]}
+ fi
+}
+
+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 "${WORKDIR}"/${PN}.png
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/supertuxkart/supertuxkart-9999.ebuild b/games-action/supertuxkart/supertuxkart-9999.ebuild
index e52834f..3a1da01 100644
--- a/games-action/supertuxkart/supertuxkart-9999.ebuild
+++ b/games-action/supertuxkart/supertuxkart-9999.ebuild
@@ -8,13 +8,14 @@ inherit cmake-utils desktop gnome2-utils
DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)"
HOMEPAGE="https://supertuxkart.net/"
+SRC_URI="mirror://gentoo/${PN}.png"
+
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"
+ SRC_URI+=" mirror://sourceforge/${PN}/SuperTuxKart/${PV}/${P}-src.tar.xz"
KEYWORDS="~amd64 ~x86"
fi
@@ -47,16 +48,15 @@ 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 )
+ A_ARR=(${A})
+ cp ${DISTDIR}/${A_ARR[0]} ${WORKDIR}
+ if [[ ${PV} == 9999 ]]; then
+ git-r3_src_unpack
+ ( S="${WORKDIR}/stk-assets" subversion_src_unpack )
+ else
+ unpack ${A_ARR[1]}
+ fi
}
src_prepare() {
@@ -84,7 +84,7 @@ src_install() {
cmake-utils_src_install
dodoc CHANGELOG.md
- # doicon -s 64 "${DISTDIR}"/${PN}.png
+ doicon -s 64 "${WORKDIR}"/${PN}.png
}
pkg_preinst() {