1 |
commit: 9397829673b8d17123689e73363c492db78e5757 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 30 21:05:49 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 30 21:05:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93978296 |
7 |
|
8 |
x11-misc/slop: Fix multilib-strict failure |
9 |
|
10 |
Closes: https://bugs.gentoo.org/629440 |
11 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
12 |
|
13 |
.../slop/files/slop-6.3.46-fix-build-system.patch | 56 ++++++++++++++++++++++ |
14 |
x11-misc/slop/slop-6.3.46.ebuild | 10 ++-- |
15 |
2 files changed, 61 insertions(+), 5 deletions(-) |
16 |
|
17 |
diff --git a/x11-misc/slop/files/slop-6.3.46-fix-build-system.patch b/x11-misc/slop/files/slop-6.3.46-fix-build-system.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..2ca92f9d2ac |
20 |
--- /dev/null |
21 |
+++ b/x11-misc/slop/files/slop-6.3.46-fix-build-system.patch |
22 |
@@ -0,0 +1,56 @@ |
23 |
+--- a/CMakeLists.txt |
24 |
++++ b/CMakeLists.txt |
25 |
+@@ -1,16 +1,13 @@ |
26 |
+ cmake_minimum_required(VERSION 3.1.3) |
27 |
+ |
28 |
++include(GNUInstallDirs) |
29 |
++ |
30 |
+ set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build (Debug or Release)") |
31 |
+-if ( NOT CMAKE_INSTALL_PREFIX ) |
32 |
+- set(CMAKE_INSTALL_PREFIX "/usr") |
33 |
+-endif() |
34 |
+ |
35 |
+-project(slop) |
36 |
++project(slop VERSION 6.3.46 LANGUAGES CXX) |
37 |
+ |
38 |
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/") |
39 |
+ |
40 |
+-set( CMAKE_INSTALL_MANDIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE PATH "Directory where man pages reside. (/usr/share/man, /usr/local/share/man, etc.)" ) |
41 |
+- |
42 |
+ set( CMAKE_COMPRESS_MAN TRUE CACHE BOOL "Whether or not to compress the man pages for install." ) |
43 |
+ |
44 |
+ if ( CMAKE_COMPRESS_MAN ) |
45 |
+@@ -21,7 +18,7 @@ |
46 |
+ |
47 |
+ include_directories("${PROJECT_BINARY_DIR}") |
48 |
+ |
49 |
+-add_definitions(-DSLOP_VERSION="v6.3.46") |
50 |
++add_definitions(-DSLOP_VERSION="v${PROJECT_VERSION}") |
51 |
+ |
52 |
+ # The names have to be unique unfortunately. |
53 |
+ set(EXECUTABLE_NAME "slop") |
54 |
+@@ -43,11 +40,13 @@ |
55 |
+ |
56 |
+ set_property(TARGET ${LIBRARY_NAME} PROPERTY CXX_STANDARD_REQUIRED ON) |
57 |
+ set_property(TARGET ${LIBRARY_NAME} PROPERTY CXX_STANDARD 11) |
58 |
++set_property(TARGET ${LIBRARY_NAME} PROPERTY CXX_EXTENSIONS OFF) |
59 |
+ |
60 |
+ add_executable(${EXECUTABLE_NAME} src/main.cpp) |
61 |
+ |
62 |
+ set_property(TARGET ${EXECUTABLE_NAME} PROPERTY CXX_STANDARD_REQUIRED ON) |
63 |
+ set_property(TARGET ${EXECUTABLE_NAME} PROPERTY CXX_STANDARD 11) |
64 |
++set_property(TARGET ${EXECUTABLE_NAME} PROPERTY CXX_EXTENSIONS OFF) |
65 |
+ |
66 |
+ set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/modules" ) |
67 |
+ |
68 |
+@@ -83,7 +82,7 @@ |
69 |
+ target_link_libraries(${EXECUTABLE_NAME} ${ICU_UC_LIBRARIES} ) |
70 |
+ endif() |
71 |
+ |
72 |
+-install( TARGETS ${EXECUTABLE_NAME} DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" ) |
73 |
+-install( TARGETS ${LIBRARY_NAME} DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" ) |
74 |
+-install( FILES ${CMAKE_SOURCE_DIR}/src/slop.hpp DESTINATION "${CMAKE_INSTALL_PREFIX}/include" COMPONENT development ) |
75 |
++install( TARGETS ${EXECUTABLE_NAME} DESTINATION "${CMAKE_INSTALL_BINDIR}" ) |
76 |
++install( TARGETS ${LIBRARY_NAME} DESTINATION "${CMAKE_INSTALL_LIBDIR}" ) |
77 |
++install( FILES ${CMAKE_SOURCE_DIR}/src/slop.hpp DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" COMPONENT development ) |
78 |
+ install( FILES "${CMAKE_SOURCE_DIR}/${MANTARGET}" DESTINATION "${CMAKE_INSTALL_MANDIR}/man1" COMPONENT doc ) |
79 |
|
80 |
diff --git a/x11-misc/slop/slop-6.3.46.ebuild b/x11-misc/slop/slop-6.3.46.ebuild |
81 |
index d8334f019a4..796bb1f9b9d 100644 |
82 |
--- a/x11-misc/slop/slop-6.3.46.ebuild |
83 |
+++ b/x11-misc/slop/slop-6.3.46.ebuild |
84 |
@@ -15,13 +15,13 @@ KEYWORDS="~amd64 ~x86" |
85 |
IUSE="" |
86 |
|
87 |
RDEPEND=" |
88 |
- dev-libs/icu |
89 |
+ dev-libs/icu:= |
90 |
virtual/opengl |
91 |
x11-libs/libX11 |
92 |
x11-libs/libXext |
93 |
- x11-libs/libXrender |
94 |
-" |
95 |
+ x11-libs/libXrender" |
96 |
DEPEND=" |
97 |
${RDEPEND} |
98 |
- media-libs/glm |
99 |
-" |
100 |
+ media-libs/glm" |
101 |
+ |
102 |
+PATCHES=( "${FILESDIR}"/${PN}-6.3.46-fix-build-system.patch ) |