Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-sports/dustrac/files: dustrac-1.6.3-cmake.patch dustrac-1.6.3-desktopfile.patch
Date: Sun, 26 Jan 2014 23:15:14
Message-Id: 20140126231510.8854D2004C@flycatcher.gentoo.org
1 hasufell 14/01/26 23:15:10
2
3 Added: dustrac-1.6.3-cmake.patch
4 dustrac-1.6.3-desktopfile.patch
5 Log:
6 version bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
9
10 Revision Changes Path
11 1.1 games-sports/dustrac/files/dustrac-1.6.3-cmake.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-sports/dustrac/files/dustrac-1.6.3-cmake.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-sports/dustrac/files/dustrac-1.6.3-cmake.patch?rev=1.1&content-type=text/plain
15
16 Index: dustrac-1.6.3-cmake.patch
17 ===================================================================
18 From: Julian Ospald <hasufell@g.o>
19 Date: Wed Dec 25 22:55:09 UTC 2013
20 Subject: respect flags, fix installation
21
22 --- dustrac-1.6.2/CMakeLists.txt
23 +++ dustrac-1.6.2/CMakeLists.txt
24 @@ -43,7 +43,7 @@
25 endif()
26
27 set(CMAKE_VERBOSE_MAKEFILE OFF)
28 -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall -O3 -pedantic")
29 +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall")
30 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fomit-frame-pointer -finline-functions -ffast-math")
31
32 set(GAME_BINARY_NAME "dustrac-game")
33 --- dustrac-1.6.2/src/game/CMakeLists.txt
34 +++ dustrac-1.6.2/src/game/CMakeLists.txt
35 @@ -128,16 +128,11 @@
36
37 # Copy desktop file
38 if(ReleaseBuild AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
39 - set(DesktopFileSourcePath)
40 if(USC)
41 - set(DesktopFileSourcePath ${CMAKE_SOURCE_DIR}/src/dustrac-game.desktop.opt.in)
42 + configure_file(${CMAKE_SOURCE_DIR}/src/dustrac-game.desktop.opt.in ${CMAKE_BINARY_DIR}/src/dustrac-game.desktop)
43 else()
44 - set(DesktopFileSourcePath ${CMAKE_SOURCE_DIR}/src/dustrac-game.desktop.in)
45 + configure_file(${CMAKE_SOURCE_DIR}/src/dustrac-game.desktop.in ${CMAKE_BINARY_DIR}/src/dustrac-game.desktop)
46 endif()
47 - add_custom_target(desktop-file-game ALL
48 - COMMAND cmake -E copy ${DesktopFileSourcePath}
49 - ${CMAKE_BINARY_DIR}/dustrac-game.desktop
50 - DEPENDS ${GAME_BINARY_NAME})
51 endif()
52
53 # Resource compilation for MinGW
54 --- dustrac-1.6.2/src/editor/CMakeLists.txt
55 +++ dustrac-1.6.2/src/editor/CMakeLists.txt
56 @@ -76,16 +76,11 @@
57
58 # Copy desktop file
59 if(ReleaseBuild AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
60 - set(DesktopFileSourcePath)
61 if(USC)
62 - set(DesktopFileSourcePath ${CMAKE_SOURCE_DIR}/src/dustrac-editor.desktop.opt.in)
63 + configure_file(${CMAKE_SOURCE_DIR}/src/dustrac-editor.desktop.opt.in ${CMAKE_BINARY_DIR}/src/dustrac-editor.desktop)
64 else()
65 - set(DesktopFileSourcePath ${CMAKE_SOURCE_DIR}/src/dustrac-editor.desktop.in)
66 + configure_file(${CMAKE_SOURCE_DIR}/src/dustrac-editor.desktop.in ${CMAKE_BINARY_DIR}/src/dustrac-editor.desktop)
67 endif()
68 - add_custom_target(desktop-file-editor ALL
69 - COMMAND cmake -E copy ${DesktopFileSourcePath}
70 - ${CMAKE_BINARY_DIR}/dustrac-editor.desktop
71 - DEPENDS ${EDITOR_BINARY_NAME})
72 endif()
73
74 # Add the executable
75 --- dustrac-1.6.2/InstallLinux.cmake
76 +++ dustrac-1.6.2/InstallLinux.cmake
77 @@ -58,7 +58,7 @@
78 install(FILES data/fonts.conf DESTINATION ${DATA_PATH})
79 install(FILES data/meshes.conf DESTINATION ${DATA_PATH})
80 install(FILES data/textures.conf DESTINATION ${DATA_PATH})
81 - install(FILES AUTHORS CHANGELOG COPYING README DESTINATION ${DOC_PATH})
82 + install(FILES AUTHORS CHANGELOG README DESTINATION ${DOC_PATH})
83 install(DIRECTORY data/images DESTINATION ${DATA_PATH} FILES_MATCHING PATTERN "*.jpg")
84 install(DIRECTORY data/images DESTINATION ${DATA_PATH} FILES_MATCHING PATTERN "*.png")
85 install(DIRECTORY data/levels DESTINATION ${DATA_PATH} FILES_MATCHING PATTERN "*.trk")
86 @@ -69,8 +69,8 @@
87
88 if(ReleaseBuild)
89 # Install .desktop files
90 - install(FILES dustrac-game.desktop DESTINATION share/applications)
91 - install(FILES dustrac-editor.desktop DESTINATION share/applications)
92 + install(FILES ${CMAKE_BINARY_DIR}/src/dustrac-game.desktop DESTINATION share/applications)
93 + install(FILES ${CMAKE_BINARY_DIR}/src/dustrac-editor.desktop DESTINATION share/applications)
94
95 # Install icons
96 install(FILES data/icons/dustrac-game.png DESTINATION share/pixmaps)
97
98
99
100 1.1 games-sports/dustrac/files/dustrac-1.6.3-desktopfile.patch
101
102 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-sports/dustrac/files/dustrac-1.6.3-desktopfile.patch?rev=1.1&view=markup
103 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-sports/dustrac/files/dustrac-1.6.3-desktopfile.patch?rev=1.1&content-type=text/plain
104
105 Index: dustrac-1.6.3-desktopfile.patch
106 ===================================================================
107 From: Julian Ospald <hasufell@g.o>
108 Date: Wed Dec 25 23:21:50 UTC 2013
109 Subject: fix desktop files
110
111 --- dustrac-1.6.2/src/dustrac-editor.desktop.in
112 +++ dustrac-1.6.2/src/dustrac-editor.desktop.in
113 @@ -4,5 +4,5 @@
114 Exec=dustrac-editor
115 Icon=dustrac-editor
116 Type=Application
117 -Categories=Game
118 +Categories=Game;
119 StartupNotify=true
120 --- dustrac-1.6.2/src/dustrac-editor.desktop.opt.in
121 +++ dustrac-1.6.2/src/dustrac-editor.desktop.opt.in
122 @@ -4,5 +4,5 @@
123 Exec=/opt/dustrac/dustrac-editor
124 Icon=dustrac-editor
125 Type=Application
126 -Categories=Game
127 +Categories=Game;
128 StartupNotify=true
129 --- dustrac-1.6.2/src/dustrac-game.desktop.in
130 +++ dustrac-1.6.2/src/dustrac-game.desktop.in
131 @@ -4,5 +4,5 @@
132 Exec=dustrac-game
133 Icon=dustrac-game
134 Type=Application
135 -Categories=Game
136 +Categories=Game;
137 StartupNotify=true
138 --- dustrac-1.6.2/src/dustrac-game.desktop.opt.in
139 +++ dustrac-1.6.2/src/dustrac-game.desktop.opt.in
140 @@ -4,5 +4,5 @@
141 Exec=/opt/dustrac/dustrac-game
142 Icon=dustrac-game
143 Type=Application
144 -Categories=Game
145 +Categories=Game;
146 StartupNotify=true