media-gfx/maim: remove gengetopt dependency
authorIngolf Wagner <contact@ingolf-wagner.de>
Sat, 3 Jun 2017 20:46:09 +0000 (15:46 -0500)
committerMatthias Maier <tamiko@gentoo.org>
Sat, 3 Jun 2017 21:01:43 +0000 (16:01 -0500)
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
media-gfx/maim/files/maim-3.4.47-no-gengetopt.patch [new file with mode: 0644]
media-gfx/maim/maim-3.4.47.ebuild

diff --git a/media-gfx/maim/files/maim-3.4.47-no-gengetopt.patch b/media-gfx/maim/files/maim-3.4.47-no-gengetopt.patch
new file mode 100644 (file)
index 0000000..7a1035d
--- /dev/null
@@ -0,0 +1,24 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index fe4cd5f..f0eb718 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -65,19 +65,6 @@ if ( RONN_EXECUTABLE AND GZIP_EXECUTABLE )
+                        WORKING_DIRECTORY man-src VERBATIM )
+ endif()
+-# Here we generate some of our code if we can. I package it pre-generated
+-# so nobody has to go find and install gengetopt if they don't want to.
+-find_program( GENGETOPT_EXECUTABLE gengetopt
+-              DOC "A tool to generate code to grab command line options." )
+-if ( GENGETOPT_EXECUTABLE )
+-    message( "-- Regenerating cmdline.in" )
+-    execute_process( COMMAND "${GENGETOPT_EXECUTABLE}" "--input=options.ggo"
+-                     WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src" )
+-    file( RENAME "${CMAKE_SOURCE_DIR}/src/cmdline.h" "${CMAKE_SOURCE_DIR}/src/cmdline.in" )
+-else()
+-    message( "Warning: Command gengetopt not found! Won't regenerate command line code. (If you're just compiling this doesn't matter.)" )
+-endif()
+-
+ # By default our src/options.ggo has our cmake versions variables for
+ # the 'version ""' line. We replace them here.
+ # The ${CMAKE_SOURCE_DIR} is there to fix problems with OpenBSD's out-of-source build black magic.
index f6069b30a18876a381115a8945fa7594e9b1a619..374899e4f47777f973c60fc4e7ec0cefc699ca04 100644 (file)
@@ -14,12 +14,13 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
+PATCHES=( "${FILESDIR}/maim-3.4.47-no-gengetopt.patch" )
+
 DEPEND="
        media-libs/imlib2[X]
        x11-libs/libX11
        x11-libs/libXrandr
-       x11-libs/libXfixes
-       dev-util/gengetopt"
+       x11-libs/libXfixes"
 RDEPEND="
        ${DEPEND}
        x11-misc/slop"