diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
commit | 24fd814c326e282c4321965c31f341dad77e270d (patch) | |
tree | 033d63b33c21a3209964ab56005bb9bdd523630d /games-action/tuxkart/tuxkart-0.4.0-r2.ebuild | |
parent | 129160ec854dca4c3fedb5bcfbcb56930371da0f (diff) |
gentoo resync : 08.01.2021
Diffstat (limited to 'games-action/tuxkart/tuxkart-0.4.0-r2.ebuild')
-rw-r--r-- | games-action/tuxkart/tuxkart-0.4.0-r2.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/games-action/tuxkart/tuxkart-0.4.0-r2.ebuild b/games-action/tuxkart/tuxkart-0.4.0-r2.ebuild new file mode 100644 index 000000000000..38a3a375ea99 --- /dev/null +++ b/games-action/tuxkart/tuxkart-0.4.0-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop xdg + +DESCRIPTION="A racing game starring Tux, the Linux penguin" +HOMEPAGE="http://tuxkart.sourceforge.net/" +SRC_URI="mirror://sourceforge/tuxkart/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~x86" + +RDEPEND=" + >=media-libs/plib-1.8.0 + x11-libs/libX11 + x11-libs/libICE + x11-libs/libSM + x11-libs/libXext + x11-libs/libXi + x11-libs/libXmu + virtual/opengl +" +DEPEND=" + ${RDEPEND} + x11-libs/libXt +" + +src_prepare() { + default + + # apparently <sys/perm.h> doesn't exist on alpha + if use alpha; then + sed -i \ + -e '/#include <sys\/perm.h>/d' src/gfx.cxx || die + fi + sed -i \ + -e "/^plib_suffix/ s/-lplibul/-lplibul -lplibjs/" \ + -e "s/-malign-double//; s/-O6//" configure || die + sed -i \ + -e "/^bindir/s/=.*/=@bindir@/" src/Makefile.in || die +} + +src_install() { + default + dodoc doc/*.html + rm -r "${ED}"/usr/share/tuxkart/ || die + + newicon -s 256 doc/title_screen.png ${PN}.png + make_desktop_entry ${PN} TuxKart +} |