diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2015-05-26 21:24:24 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2015-05-26 21:24:24 +0000 |
commit | ea585fc7a1b29a27b527c8a9bfedce17dc257859 (patch) | |
tree | 5519287e7a11331d7b0e839a5d45f37ce2d60e64 /games-sports | |
parent | Version bump: bug #550344 by Marcin Mirosław. (diff) | |
download | gentoo-2-ea585fc7a1b29a27b527c8a9bfedce17dc257859.tar.gz gentoo-2-ea585fc7a1b29a27b527c8a9bfedce17dc257859.tar.bz2 gentoo-2-ea585fc7a1b29a27b527c8a9bfedce17dc257859.zip |
version bump
(Portage version: 2.2.18/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.11.0.ebuild | 70 | ||||
-rw-r--r-- | games-sports/dustrac/files/dustrac-1.11.0-cmake.patch | 23 | ||||
-rw-r--r-- | games-sports/dustrac/files/dustrac-1.9.2-cmake.patch | 10 |
4 files changed, 104 insertions, 7 deletions
diff --git a/games-sports/dustrac/ChangeLog b/games-sports/dustrac/ChangeLog index ff66950871dc..174ebbd81a94 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.10 2015/03/27 18:37:43 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-sports/dustrac/ChangeLog,v 1.11 2015/05/26 21:24:24 mr_bones_ Exp $ + +*dustrac-1.11.0 (26 May 2015) + + 26 May 2015; Michael Sterrett <mr_bones_@gentoo.org> +dustrac-1.11.0.ebuild, + +files/dustrac-1.11.0-cmake.patch, files/dustrac-1.9.2-cmake.patch: + version bump 27 Mar 2015; Michael Sterrett <mr_bones_@gentoo.org> dustrac-1.9.2.ebuild: add qttest dep (bug #544546) diff --git a/games-sports/dustrac/dustrac-1.11.0.ebuild b/games-sports/dustrac/dustrac-1.11.0.ebuild new file mode 100644 index 000000000000..f5e2bf0a02b4 --- /dev/null +++ b/games-sports/dustrac/dustrac-1.11.0.ebuild @@ -0,0 +1,70 @@ +# 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.11.0.ebuild,v 1.1 2015/05/26 21:24:24 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} + dev-qt/qttest:5 + 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.11.0-cmake.patch b/games-sports/dustrac/files/dustrac-1.11.0-cmake.patch new file mode 100644 index 000000000000..6f497e4969ef --- /dev/null +++ b/games-sports/dustrac/files/dustrac-1.11.0-cmake.patch @@ -0,0 +1,23 @@ +--- dustrac-1.11.0.orig/CMakeLists.txt ++++ dustrac-1.11.0/CMakeLists.txt +@@ -68,8 +68,7 @@ + endif() + + if(CMAKE_COMPILER_IS_GNUCXX OR MINGW OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") +- add_compile_options(-std=c++11 -W -Wall -O3 -pedantic) +- add_compile_options(-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() +--- dustrac-1.11.0.orig/InstallLinux.cmake ++++ dustrac-1.11.0/InstallLinux.cmake +@@ -58,7 +58,7 @@ + install(FILES data/fonts.conf DESTINATION ${DATA_PATH}) + install(FILES data/meshes.conf DESTINATION ${DATA_PATH}) + install(FILES data/surfaces.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") diff --git a/games-sports/dustrac/files/dustrac-1.9.2-cmake.patch b/games-sports/dustrac/files/dustrac-1.9.2-cmake.patch index c287ac3401e6..a90f7079ece1 100644 --- a/games-sports/dustrac/files/dustrac-1.9.2-cmake.patch +++ b/games-sports/dustrac/files/dustrac-1.9.2-cmake.patch @@ -1,6 +1,5 @@ -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 +--- dustrac-1.9.2.orig/CMakeLists.txt ++++ dustrac-1.9.2/CMakeLists.txt @@ -68,8 +68,7 @@ endif() @@ -11,9 +10,8 @@ diff -ru dustrac-1.9.2.orig/CMakeLists.txt dustrac-1.9.2/CMakeLists.txt 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 +--- dustrac-1.9.2.orig/InstallLinux.cmake ++++ dustrac-1.9.2/InstallLinux.cmake @@ -58,7 +58,7 @@ install(FILES data/fonts.conf DESTINATION ${DATA_PATH}) install(FILES data/meshes.conf DESTINATION ${DATA_PATH}) |