From: | "Alex Alexander (wired)" <wired@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in x11-wm/awesome/files: awesome-3.4.4-cmake-2.8.4.patch awesome-3.4.8-cmake-2.8.4.patch |
Date: | Tue, 22 Feb 2011 14:10:57 |
Message-Id: | 20110222141046.B197D20057@flycatcher.gentoo.org |
1 | wired 11/02/22 14:10:46 |
2 | |
3 | Added: awesome-3.4.4-cmake-2.8.4.patch |
4 | awesome-3.4.8-cmake-2.8.4.patch |
5 | Log: |
6 | fixed compilation with cmake-2.8.4, bug #356009 |
7 | |
8 | (Portage version: 2.2.0_alpha24/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.1 x11-wm/awesome/files/awesome-3.4.4-cmake-2.8.4.patch |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/awesome/files/awesome-3.4.4-cmake-2.8.4.patch?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/awesome/files/awesome-3.4.4-cmake-2.8.4.patch?rev=1.1&content-type=text/plain |
15 | |
16 | Index: awesome-3.4.4-cmake-2.8.4.patch |
17 | =================================================================== |
18 | fix compilation with cmake 2.8.4 by backporting some changes from 3.8.9 and applying |
19 | https://awesome.naquadah.org/bugs/index.php?do=details&task_id=869 |
20 | |
21 | https://bugs.gentoo.org/show_bug.cgi?id=356009 |
22 | --- awesome-3.4.4-orig/CMakeLists.txt 2011-02-22 15:26:17.380000002 +0200 |
23 | +++ CMakeLists.txt 2011-02-22 16:03:40.219000002 +0200 |
24 | @@ -249,22 +249,24 @@ |
25 | # }}} |
26 | |
27 | # {{{ Theme icons |
28 | -file(GLOB icon_sources ${SOURCE_DIR}/themes/*/titlebar/*.png) |
29 | -set(ALL_ICONS ${icon_sources}) |
30 | +file(GLOB icon_sources RELATIVE ${SOURCE_DIR} ${SOURCE_DIR}/themes/*/titlebar/*.png) |
31 | + |
32 | +foreach(icon ${icon_sources}) |
33 | + # Copy all icons to the build dir to simplify the following code. |
34 | + # Source paths are interpreted relative to ${SOURCE_DIR}, target paths |
35 | + # relative to ${BUILD_DIR}. |
36 | + get_filename_component(icon_path ${icon} PATH) |
37 | + get_filename_component(icon_name ${icon} NAME) |
38 | + file(COPY ${icon} DESTINATION ${icon_path}) |
39 | + set(ALL_ICONS ${ALL_ICONS} "${icon_path}/${icon_name}") |
40 | +endforeach() |
41 | |
42 | macro(a_icon_convert match replacement input) |
43 | string(REPLACE ${match} ${replacement} output ${input}) |
44 | |
45 | if(NOT ${input} STREQUAL ${output}) |
46 | - if(NOT ${output} MATCHES ${BUILD_DIR}) |
47 | - string(REPLACE ${SOURCE_DIR} ${BUILD_DIR} output ${output}) |
48 | - endif() |
49 | - |
50 | set(ALL_ICONS ${ALL_ICONS} ${output}) |
51 | |
52 | - get_filename_component(output_path ${output} PATH) |
53 | - file(MAKE_DIRECTORY ${output_path}) |
54 | - |
55 | add_custom_command( |
56 | COMMAND ${CONVERT_EXECUTABLE} ${input} ${ARGN} ${output} |
57 | OUTPUT ${output} |
58 | |
59 | |
60 | |
61 | 1.1 x11-wm/awesome/files/awesome-3.4.8-cmake-2.8.4.patch |
62 | |
63 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/awesome/files/awesome-3.4.8-cmake-2.8.4.patch?rev=1.1&view=markup |
64 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/awesome/files/awesome-3.4.8-cmake-2.8.4.patch?rev=1.1&content-type=text/plain |
65 | |
66 | Index: awesome-3.4.8-cmake-2.8.4.patch |
67 | =================================================================== |
68 | fix compilation with cmake 2.8.4 |
69 | |
70 | https://awesome.naquadah.org/bugs/index.php?do=details&task_id=869 |
71 | https://bugs.gentoo.org/show_bug.cgi?id=356009 |
72 | --- awesome-3.4.9/CMakeLists.txt.orig |
73 | +++ awesome-3.4.9/CMakeLists.txt |
74 | @@ -274,14 +274,15 @@ endif() |
75 | |
76 | # {{{ Theme icons |
77 | file(GLOB icon_sources RELATIVE ${SOURCE_DIR} ${SOURCE_DIR}/themes/*/titlebar/*.png) |
78 | -set(ALL_ICONS ${icon_sources}) |
79 | |
80 | foreach(icon ${icon_sources}) |
81 | # Copy all icons to the build dir to simplify the following code. |
82 | # Source paths are interpreted relative to ${SOURCE_DIR}, target paths |
83 | # relative to ${BUILD_DIR}. |
84 | get_filename_component(icon_path ${icon} PATH) |
85 | + get_filename_component(icon_name ${icon} NAME) |
86 | file(COPY ${icon} DESTINATION ${icon_path}) |
87 | + set(ALL_ICONS ${ALL_ICONS} "${icon_path}/${icon_name}") |
88 | endforeach() |
89 | |
90 | macro(a_icon_convert match replacement input) |