diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2015-02-27 17:42:58 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2015-02-27 17:42:58 +0000 |
commit | 114fe35a774f26ad1f5188a0428da051e6852671 (patch) | |
tree | d1f021eaf1799c648b6e12ba9f2b7e0d965ea034 /games-sports | |
parent | Version bump (bug #541514). (diff) | |
download | gentoo-2-114fe35a774f26ad1f5188a0428da051e6852671.tar.gz gentoo-2-114fe35a774f26ad1f5188a0428da051e6852671.tar.bz2 gentoo-2-114fe35a774f26ad1f5188a0428da051e6852671.zip |
version bump
(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-sports')
-rw-r--r-- | games-sports/dustrac/ChangeLog | 8 | ||||
-rw-r--r-- | games-sports/dustrac/dustrac-1.9.2.ebuild | 69 | ||||
-rw-r--r-- | games-sports/dustrac/files/dustrac-1.9.2-cmake.patch | 25 |
3 files changed, 101 insertions, 1 deletions
diff --git a/games-sports/dustrac/ChangeLog b/games-sports/dustrac/ChangeLog index 50fa58acd8ac..ce4fdc88bc71 100644 --- a/games-sports/dustrac/ChangeLog +++ b/games-sports/dustrac/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-sports/dustrac # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-sports/dustrac/ChangeLog,v 1.7 2015/01/26 22:10:14 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-sports/dustrac/ChangeLog,v 1.8 2015/02/27 17:42:58 mr_bones_ Exp $ + +*dustrac-1.9.2 (27 Feb 2015) + + 27 Feb 2015; Michael Sterrett <mr_bones_@gentoo.org> +dustrac-1.9.2.ebuild, + +files/dustrac-1.9.2-cmake.patch: + version bump 26 Jan 2015; Michael Sterrett <mr_bones_@gentoo.org> +files/dustrac-1.7.3-desktopfile.patch, -dustrac-1.7.2.ebuild, diff --git a/games-sports/dustrac/dustrac-1.9.2.ebuild b/games-sports/dustrac/dustrac-1.9.2.ebuild new file mode 100644 index 000000000000..dd4e4558b331 --- /dev/null +++ b/games-sports/dustrac/dustrac-1.9.2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-sports/dustrac/dustrac-1.9.2.ebuild,v 1.1 2015/02/27 17:42:58 mr_bones_ Exp $ + +EAPI=5 +inherit eutils gnome2-utils cmake-utils games + +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 + dev-qt/linguist-tools:5 + media-libs/libvorbis + media-libs/openal + virtual/opengl" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${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="${GAMES_DATADIR}/${PN}" + -DBIN_PATH="${GAMES_BINDIR}" + -DDOC_PATH=/usr/share/doc/${PF} + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + dosym /usr/share/fonts/ubuntu-font-family/UbuntuMono-B.ttf "${GAMES_DATADIR}/${PN}/fonts/UbuntuMono-B.ttf" + dosym /usr/share/fonts/ubuntu-font-family/UbuntuMono-R.ttf "${GAMES_DATADIR}/${PN}/fonts/UbuntuMono-R.ttf" + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-sports/dustrac/files/dustrac-1.9.2-cmake.patch b/games-sports/dustrac/files/dustrac-1.9.2-cmake.patch new file mode 100644 index 000000000000..c287ac3401e6 --- /dev/null +++ b/games-sports/dustrac/files/dustrac-1.9.2-cmake.patch @@ -0,0 +1,25 @@ +diff -ru dustrac-1.9.2.orig/CMakeLists.txt dustrac-1.9.2/CMakeLists.txt +--- dustrac-1.9.2.orig/CMakeLists.txt 2015-01-18 15:25:19.000000000 -0500 ++++ dustrac-1.9.2/CMakeLists.txt 2015-02-26 12:28:00.270875467 -0500 +@@ -68,8 +68,7 @@ + endif() + + if(CMAKE_COMPILER_IS_GNUCXX OR MINGW OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -W -Wall -O3 -pedantic") +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fomit-frame-pointer -finline-functions -ffast-math") ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -W -Wall -fomit-frame-pointer -finline-functions") + elseif(MSVC) + add_definitions(-DNOMINMAX) + endif() +diff -ru dustrac-1.9.2.orig/InstallLinux.cmake dustrac-1.9.2/InstallLinux.cmake +--- dustrac-1.9.2.orig/InstallLinux.cmake 2015-01-18 15:25:19.000000000 -0500 ++++ dustrac-1.9.2/InstallLinux.cmake 2015-02-26 12:28:27.246817132 -0500 +@@ -58,7 +58,7 @@ + install(FILES data/fonts.conf DESTINATION ${DATA_PATH}) + install(FILES data/meshes.conf DESTINATION ${DATA_PATH}) + install(FILES data/textures.conf DESTINATION ${DATA_PATH}) +- install(FILES AUTHORS CHANGELOG COPYING README DESTINATION ${DOC_PATH}) ++ install(FILES AUTHORS CHANGELOG README DESTINATION ${DOC_PATH}) + install(DIRECTORY data/images DESTINATION ${DATA_PATH} FILES_MATCHING PATTERN "*.jpg") + install(DIRECTORY data/images DESTINATION ${DATA_PATH} FILES_MATCHING PATTERN "*.png") + install(DIRECTORY data/levels DESTINATION ${DATA_PATH} FILES_MATCHING PATTERN "*.trk") |