diff options
author | Austin English <wizardedit@gentoo.org> | 2016-09-22 13:30:34 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-09-22 14:27:56 -0500 |
commit | 4096745f6612f4d25e7ad139d681bccfc3eb3699 (patch) | |
tree | 4195d97f7d505ffd890b40b46421b564abbfbc3e /games-sports/dustrac/dustrac-1.11.0-r1.ebuild | |
parent | 6427012a1b36047ba632b12620ece0dafc83150e (diff) | |
download | gentoo-4096745f6612f4d25e7ad139d681bccfc3eb3699.tar.gz gentoo-4096745f6612f4d25e7ad139d681bccfc3eb3699.tar.xz |
games-sports/dustrac: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: portage-2.3.0
Diffstat (limited to 'games-sports/dustrac/dustrac-1.11.0-r1.ebuild')
-rw-r--r-- | games-sports/dustrac/dustrac-1.11.0-r1.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/games-sports/dustrac/dustrac-1.11.0-r1.ebuild b/games-sports/dustrac/dustrac-1.11.0-r1.ebuild new file mode 100644 index 00000000000..edcd2512821 --- /dev/null +++ b/games-sports/dustrac/dustrac-1.11.0-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils gnome2-utils cmake-utils + +DESCRIPTION="Tile-based, cross-platform 2D racing game" +HOMEPAGE="http://dustrac.sourceforge.net/" +SRC_URI="mirror://sourceforge/dustrac/${P}.tar.gz" + +LICENSE="GPL-3+ CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtxml:5 + media-libs/libvorbis + media-libs/openal + virtual/opengl" +DEPEND="${RDEPEND} + dev-qt/linguist-tools:5 + dev-qt/qttest:5 + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-cmake.patch +) + +src_configure() { + # -DGLES=ON didn't build for me but maybe just need use flags on some QT package? + # Maybe add a local gles use flag + local mycmakeargs=( + -DReleaseBuild=ON + -DDATA_PATH="/usr/share/${PN}" + -DBIN_PATH="/usr/bin" + -DDOC_PATH=/usr/share/doc/${PF} + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + + # FIXME: where should these come from? + dosym /usr/share/fonts/ubuntu-font-family/UbuntuMono-B.ttf "/usr/share/${PN}/fonts/UbuntuMono-B.ttf" + dosym /usr/share/fonts/ubuntu-font-family/UbuntuMono-R.ttf "/usr/share/${PN}/fonts/UbuntuMono-R.ttf" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |