diff options
author | François-Xavier Carton <fx.carton91@gmail.com> | 2019-04-30 01:06:16 +0200 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2019-05-10 22:16:04 +0100 |
commit | 489d69eb9937af74bd248ef1574c37849de75453 (patch) | |
tree | 3739c52df326e0f3a5319162efa6581dc87ab91e /games-action/supertuxkart/supertuxkart-1.0.ebuild | |
parent | dev-python/setuptools_scm: stable 3.2.0 for sparc, bug #685518 (diff) | |
download | gentoo-489d69eb9937af74bd248ef1574c37849de75453.tar.gz gentoo-489d69eb9937af74bd248ef1574c37849de75453.tar.bz2 gentoo-489d69eb9937af74bd248ef1574c37849de75453.zip |
games-action/supertuxkart: bump to 1.0
- Unbundle angelscript
- New deps nettle || openssl
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Closes: https://bugs.gentoo.org/683930
Signed-off-by: François-Xavier Carton <fx.carton91@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/11865
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-action/supertuxkart/supertuxkart-1.0.ebuild')
-rw-r--r-- | games-action/supertuxkart/supertuxkart-1.0.ebuild | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/games-action/supertuxkart/supertuxkart-1.0.ebuild b/games-action/supertuxkart/supertuxkart-1.0.ebuild new file mode 100644 index 000000000000..f6d84df9613a --- /dev/null +++ b/games-action/supertuxkart/supertuxkart-1.0.ebuild @@ -0,0 +1,96 @@ +# 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://sourceforge/${PN}/SuperTuxKart/${PV}/${P}-src.tar.xz + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2 GPL-3 CC-BY-SA-3.0 CC-BY-2.0 public-domain ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug fribidi libressl nettle 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=" + dev-libs/angelscript:= + 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 ) + nettle? ( dev-libs/nettle:= ) + !nettle? ( + libressl? ( dev-libs/libressl:= ) + !libressl? ( >=dev-libs/openssl-1.0.1d:0= ) + ) + 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-system-libs.patch + "${FILESDIR}"/${PN}-1.0-fix-buildsystem.patch +) + +src_prepare() { + cmake-utils_src_prepare + + # remove bundled libraries, just to be sure + rm -r lib/{angelscript,enet,glew,jpeglib,libpng,zlib} || die +} + +src_configure() { + local mycmakeargs=( + -DUSE_SYSTEM_ANGELSCRIPT=ON + -DUSE_SYSTEM_ENET=ON + -DUSE_SYSTEM_GLEW=ON + -DUSE_SYSTEM_WIIUSE=OFF + -DUSE_CRYPTO_OPENSSL=$(usex nettle no yes) + -DENABLE_WAYLAND_DEVICE=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 +} |