From 165352689a22701884fc81fafc43090fcb8dd8d4 Mon Sep 17 00:00:00 2001 From: Pascal Jäger Date: Tue, 15 Nov 2022 11:04:09 +0100 Subject: media-gfx/rotoscope: fix -Wreturn-type warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal Jäger Closes: https://github.com/gentoo/gentoo/pull/28280 Signed-off-by: Sam James --- .../files/rotoscope-0.2-fix_clang16_build.patch | 21 +++++++++++++++++++- media-gfx/rotoscope/rotoscope-0.2-r1.ebuild | 23 ---------------------- media-gfx/rotoscope/rotoscope-0.2-r2.ebuild | 23 ++++++++++++++++++++++ 3 files changed, 43 insertions(+), 24 deletions(-) delete mode 100644 media-gfx/rotoscope/rotoscope-0.2-r1.ebuild create mode 100644 media-gfx/rotoscope/rotoscope-0.2-r2.ebuild (limited to 'media-gfx/rotoscope') diff --git a/media-gfx/rotoscope/files/rotoscope-0.2-fix_clang16_build.patch b/media-gfx/rotoscope/files/rotoscope-0.2-fix_clang16_build.patch index 01a1f96be4ec..74eb94a0412a 100644 --- a/media-gfx/rotoscope/files/rotoscope-0.2-fix_clang16_build.patch +++ b/media-gfx/rotoscope/files/rotoscope-0.2-fix_clang16_build.patch @@ -12,8 +12,27 @@ Signed-off-by: Pascal Jäger Vertex last_click; +/* Function prototypes */ -+gboolean redraw_render_area( GtkWidget* widget, GdkEventExpose* event, gpointer user_data ); ++void redraw_render_area( GtkWidget* widget, GdkEventExpose* event, gpointer user_data ); + /* Functionality and callback functions */ void clear_edge_list() { +@@ -165,7 +168,7 @@ void draw_pixbuf_to_drawing_area( GdkPixbuf* src, GtkWidget* dest ) + GDK_RGB_DITHER_NONE, 0, 0 ); + } + +-gboolean redraw_render_area( GtkWidget* widget, GdkEventExpose* event, gpointer user_data ) ++void redraw_render_area( GtkWidget* widget, GdkEventExpose* event, gpointer user_data ) + { + GtkWidget* render_drawing_area = glade_xml_get_widget( xml, "render_drawing_area" ); + draw_pixbuf_to_drawing_area( render_result, render_drawing_area ); +--- a/src/graph.c ++++ b/src/graph.c +@@ -64,6 +64,7 @@ gboolean save_graph_to_file( GList* edges, char* filename ) + } + + fclose( f ); ++ return FALSE; + } + + GList* load_graph_from_file( char* filename ) diff --git a/media-gfx/rotoscope/rotoscope-0.2-r1.ebuild b/media-gfx/rotoscope/rotoscope-0.2-r1.ebuild deleted file mode 100644 index 78b21e66e105..000000000000 --- a/media-gfx/rotoscope/rotoscope-0.2-r1.ebuild +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DESCRIPTION="Graphics program that can be used to give photos a cartoon-like appearance" -HOMEPAGE="http://www.toonyphotos.com https://sourceforge.net/projects/rotoscope/" -SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.orig.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" - -RDEPEND="x11-libs/gtk+:2 - >=gnome-base/libglade-2" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}"/${P}-fix_clang16_build.patch - "${FILESDIR}"/${P}-fix_desktop_file.patch -) diff --git a/media-gfx/rotoscope/rotoscope-0.2-r2.ebuild b/media-gfx/rotoscope/rotoscope-0.2-r2.ebuild new file mode 100644 index 000000000000..78b21e66e105 --- /dev/null +++ b/media-gfx/rotoscope/rotoscope-0.2-r2.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Graphics program that can be used to give photos a cartoon-like appearance" +HOMEPAGE="http://www.toonyphotos.com https://sourceforge.net/projects/rotoscope/" +SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="x11-libs/gtk+:2 + >=gnome-base/libglade-2" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-fix_clang16_build.patch + "${FILESDIR}"/${P}-fix_desktop_file.patch +) -- cgit v1.2.3-65-gdbad