Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/slop/files/, x11-misc/slop/
Date: Sat, 30 Dec 2017 09:14:15
Message-Id: 1514625237.8b05a51861d57b5c5115f30dac4b8f936372a9bb.kensington@gentoo
1 commit: 8b05a51861d57b5c5115f30dac4b8f936372a9bb
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 30 09:12:26 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 30 09:13:57 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b05a518
7
8 x11-misc/slop: remove 4.3.21
9
10 Package-Manager: Portage-2.3.14, Repoman-2.3.6
11
12 x11-misc/slop/Manifest | 1 -
13 x11-misc/slop/files/slop-4.3.21-no-cppcheck.patch | 20 ---------
14 x11-misc/slop/files/slop-4.3.21-no-gengetopt.patch | 33 ---------------
15 x11-misc/slop/files/slop-4.3.21-no-librt.patch | 37 ----------------
16 x11-misc/slop/files/slop-4.3.21-no-opengl.patch | 39 -----------------
17 x11-misc/slop/slop-4.3.21.ebuild | 49 ----------------------
18 6 files changed, 179 deletions(-)
19
20 diff --git a/x11-misc/slop/Manifest b/x11-misc/slop/Manifest
21 index 200192285a3..eae40123c51 100644
22 --- a/x11-misc/slop/Manifest
23 +++ b/x11-misc/slop/Manifest
24 @@ -1,2 +1 @@
25 -DIST slop-4.3.21.tar.gz 488238 BLAKE2B dc99c690984b616b28f93c3dd26ebd4264dcba7d66c5929f3732c88d3a423f19a3ab94d6673091735bd0d6dc4cec1bc41fc8e3f7bc666e9a8459acb717405e4d SHA512 4489a108883b785eb5dda368a06ea0b7c61e3afeefdeb421f211e01e3cb7eb20836200197abc755be653f086fcd3b8647a460dacf15062fe2cd44438b4f54b68
26 DIST slop-6.3.46.tar.gz 89391 BLAKE2B 0150ca63e4a598e892abd5505e867f01204f29796dc378a7f3d0c041c1a27f000e98962c41cbf8109573575b37449c1869f29f988c5d2046b504382b2a56779d SHA512 9f44bbb8e14e71a17858711d8da902cb9cf5dc65ed47284be15122f2d1793544deab7f0700517bd07e44613662bfbc7f0991f3d36dcf74af6f90de5fbbd79558
27
28 diff --git a/x11-misc/slop/files/slop-4.3.21-no-cppcheck.patch b/x11-misc/slop/files/slop-4.3.21-no-cppcheck.patch
29 deleted file mode 100644
30 index f92c57f977d..00000000000
31 --- a/x11-misc/slop/files/slop-4.3.21-no-cppcheck.patch
32 +++ /dev/null
33 @@ -1,20 +0,0 @@
34 -diff --git a/CMakeLists.txt b/CMakeLists.txt
35 -index 361f930..0982647 100644
36 ---- a/CMakeLists.txt
37 -+++ b/CMakeLists.txt
38 -@@ -33,15 +33,6 @@ else()
39 - message( FATAL_ERROR "Your operating system isn't supported yet! CMake will now exit." )
40 - endif()
41 -
42 --# Add a check target for our makefile.
43 --find_program( CPPCHECK_EXECUTABLE cppcheck
44 -- DOC "A tool for static C/C++ code analysis." )
45 --if (CPPCHECK_EXECUTABLE)
46 -- add_custom_target( "check"
47 -- COMMAND "${CPPCHECK_EXECUTABLE}" "--enable=all" "*"
48 -- WORKING_DIRECTORY src VERBATIM )
49 --endif()
50 --
51 - # Here we generate some of our code if we can. I package it pre-generated
52 - # so nobody has to go find and install gengetopt if they don't want to.
53 - find_program( GENGETOPT_EXECUTABLE gengetopt
54
55 diff --git a/x11-misc/slop/files/slop-4.3.21-no-gengetopt.patch b/x11-misc/slop/files/slop-4.3.21-no-gengetopt.patch
56 deleted file mode 100644
57 index 13f79eef211..00000000000
58 --- a/x11-misc/slop/files/slop-4.3.21-no-gengetopt.patch
59 +++ /dev/null
60 @@ -1,33 +0,0 @@
61 -diff --git a/CMakeLists.txt b/CMakeLists.txt
62 ---- a/CMakeLists.txt
63 -+++ b/CMakeLists.txt
64 -@@ -33,29 +33,6 @@ else()
65 - message( FATAL_ERROR "Your operating system isn't supported yet! CMake will now exit." )
66 - endif()
67 -
68 --# Here we generate some of our code if we can. I package it pre-generated
69 --# so nobody has to go find and install gengetopt if they don't want to.
70 --find_program( GENGETOPT_EXECUTABLE gengetopt
71 -- DOC "A tool to generate code to grab command line options." )
72 --find_program( SED_EXECUTABLE sed )
73 --if ( GENGETOPT_EXECUTABLE AND SED_EXECUTABLE )
74 -- message( "-- Regenerating cmdline.in" )
75 -- # gengetopt generates cmdline.h, then we move it to cmdline.in.
76 -- execute_process( COMMAND "${GENGETOPT_EXECUTABLE}" "--input=options.ggo"
77 -- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src" )
78 -- file( RENAME "${CMAKE_CURRENT_SOURCE_DIR}/src/cmdline.h" "${CMAKE_CURRENT_SOURCE_DIR}/src/cmdline.in" )
79 -- # Due to a bug in gengetopt, we have to manually insert some code.
80 -- # Replace the first instance of REPLACEME with some text.
81 -- # Eight backslashes = two in the code because of how many instances of escaping is happening.
82 -- execute_process( COMMAND "${SED_EXECUTABLE}" "-i" "0,/REPLACEME/{s/REPLACEME/X=%x\\\\\\\\nY=%y\\\\\\\\nW=%w\\\\\\\\nH=%h\\\\\\\\nG=%g\\\\\\\\nID=%i\\\\\\\\nCancel=%c\\\\\\\\n/}" "cmdline.c"
83 -- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src" )
84 -- # Then replace remaining instances.
85 -- execute_process( COMMAND "${SED_EXECUTABLE}" "-i" "s/REPLACEME/X=%x\\\\nY=%y\\\\nW=%w\\\\nH=%h\\\\nG=%g\\\\nID=%i\\\\nCancel=%c\\\\n/" "cmdline.c"
86 -- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src" )
87 --else()
88 -- message( "Warning: Command gengetopt or sed not found! Won't regenerate command line code. (If you're just compiling this doesn't matter.)" )
89 --endif()
90 --
91 - # By default our src/options.ggo has our cmake versions variables for
92 - # the 'version ""' line. We replace them here.
93 - # The ${CMAKE_SOURCE_DIR} is there to fix problems with OpenBSD's out-of-source build black magic.
94
95 diff --git a/x11-misc/slop/files/slop-4.3.21-no-librt.patch b/x11-misc/slop/files/slop-4.3.21-no-librt.patch
96 deleted file mode 100644
97 index 0b95b833ffd..00000000000
98 --- a/x11-misc/slop/files/slop-4.3.21-no-librt.patch
99 +++ /dev/null
100 @@ -1,37 +0,0 @@
101 -diff --git a/CMakeLists.txt b/CMakeLists.txt
102 ---- a/CMakeLists.txt
103 -+++ b/CMakeLists.txt
104 -@@ -75,10 +75,6 @@ find_package( GLX REQUIRED )
105 - find_package( XRender REQUIRED )
106 - find_package( XRandr REQUIRED )
107 - find_package( GLEW REQUIRED )
108 --# This library is needed only for Ubuntu it seems, some platforms don't even
109 --# ship with it. I couldn't find a way to do a test compile to check if librt
110 --# was needed, so instead I just didn't mark it as REQUIRED.
111 --find_package( RT )
112 -
113 - set( CMAKE_CXX_FLAGS
114 - "${CMAKE_CXX_FLAGS} ${CMAKE_IMLIB2_CXX_FLAGS}" )
115 -@@ -96,10 +92,6 @@ include_directories( "${IMLIB2_INCLUDE_DIR}"
116 - ${XRENDER_INCLUDE_DIRS} )
117 - endif()
118 -
119 --if ( RT_INCLUDE_DIR )
120 -- include_directories( ${RT_INCLUDE_DIR} )
121 --endif()
122 --
123 - # Executable
124 - add_executable( "${BIN_TARGET}" ${source} )
125 -
126 -@@ -119,11 +111,6 @@ if ( CMAKE_OPENGL_SUPPORT )
127 - endif()
128 -
129 -
130 --if ( RT_LIBRARY )
131 -- target_link_libraries( "${BIN_TARGET}"
132 -- "${RT_LIBRARY}" )
133 --endif()
134 --
135 - install( TARGETS ${BIN_TARGET}
136 - DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" )
137 -
138
139 diff --git a/x11-misc/slop/files/slop-4.3.21-no-opengl.patch b/x11-misc/slop/files/slop-4.3.21-no-opengl.patch
140 deleted file mode 100644
141 index 2f596b65e99..00000000000
142 --- a/x11-misc/slop/files/slop-4.3.21-no-opengl.patch
143 +++ /dev/null
144 @@ -1,39 +0,0 @@
145 -diff --git a/CMakeLists.txt b/CMakeLists.txt
146 -index 62cc1a6..f5d66e5 100644
147 ---- a/CMakeLists.txt
148 -+++ b/CMakeLists.txt
149 -@@ -71,14 +71,8 @@ endif()
150 -
151 - # Obtain library paths and make sure they exist.
152 - set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmakemodules" )
153 --find_package( Imlib2 REQUIRED )
154 - find_package( X11 REQUIRED )
155 - find_package( XExt REQUIRED )
156 --find_package( OpenGL REQUIRED )
157 --find_package( GLX REQUIRED )
158 --find_package( XRender REQUIRED )
159 --find_package( XRandr REQUIRED )
160 --find_package( GLEW REQUIRED )
161 -
162 - set( CMAKE_CXX_FLAGS
163 - "${CMAKE_CXX_FLAGS} ${CMAKE_IMLIB2_CXX_FLAGS}" )
164 -diff --git a/src/x.hpp b/src/x.hpp
165 -index 2478414..f35e722 100644
166 ---- a/src/x.hpp
167 -+++ b/src/x.hpp
168 -@@ -26,7 +26,6 @@
169 - #include <X11/Xlib.h>
170 - #include <X11/cursorfont.h>
171 - #include <X11/extensions/shape.h>
172 --#include <X11/extensions/Xrandr.h>
173 -
174 - #include <stdlib.h>
175 - #include <cstring>
176 -@@ -97,7 +96,6 @@ public:
177 - std::vector<bool> m_mouse;
178 - bool mouseDown( unsigned int button );
179 - bool m_keypressed;
180 -- XRRScreenResources* m_res;
181 - private:
182 - slop::CursorType m_currentCursor;
183 - bool m_good;
184
185 diff --git a/x11-misc/slop/slop-4.3.21.ebuild b/x11-misc/slop/slop-4.3.21.ebuild
186 deleted file mode 100644
187 index 20411872e46..00000000000
188 --- a/x11-misc/slop/slop-4.3.21.ebuild
189 +++ /dev/null
190 @@ -1,49 +0,0 @@
191 -# Copyright 1999-2017 Gentoo Foundation
192 -# Distributed under the terms of the GNU General Public License v2
193 -
194 -EAPI=6
195 -
196 -inherit cmake-utils
197 -
198 -DESCRIPTION="An application that queries the user for a selection for printing"
199 -HOMEPAGE="https://github.com/naelstrof/slop"
200 -SRC_URI="https://github.com/naelstrof/slop/archive/v${PV}.tar.gz -> ${P}.tar.gz"
201 -
202 -LICENSE="GPL-3"
203 -SLOT="0"
204 -KEYWORDS="~amd64 ~x86"
205 -IUSE="opengl"
206 -
207 -RDEPEND="
208 - x11-libs/libX11
209 - x11-libs/libXext
210 - opengl? (
211 - media-libs/glew:0=
212 - media-libs/imlib2
213 - virtual/opengl
214 - x11-libs/libXrandr
215 - x11-libs/libXrender
216 - )"
217 -DEPEND="
218 - ${RDEPEND}
219 - opengl? (
220 - media-libs/glm
221 - )"
222 -
223 -PATCHES=(
224 - "${FILESDIR}/${PN}-4.3.21-no-cppcheck.patch"
225 - "${FILESDIR}/${PN}-4.3.21-no-gengetopt.patch"
226 - "${FILESDIR}/${PN}-4.3.21-no-librt.patch"
227 -)
228 -
229 -src_prepare() {
230 - use opengl || PATCHES+=( "${FILESDIR}/${PN}-4.3.21-no-opengl.patch" )
231 - cmake-utils_src_prepare
232 -}
233 -
234 -src_configure() {
235 - local mycmakeargs=(
236 - -DCMAKE_OPENGL_SUPPORT=$(usex opengl)
237 - )
238 - cmake-utils_src_configure
239 -}