* [gentoo-commits] repo/gentoo:master commit in: media-gfx/rotoscope/files/, media-gfx/rotoscope/
@ 2022-11-15 2:22 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2022-11-15 2:22 UTC (permalink / raw
To: gentoo-commits
commit: f69f8176edaf67c9d315ca874b313660237bd341
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Fri Nov 11 15:42:05 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov 15 02:19:50 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f69f8176
media-gfx/rotoscope: revbum, fix build for clang16, fix bugs
* Fixes build for clang16
* Fixes QA issue with desktop file
Closes: https://bugs.gentoo.org/875764
Closes: https://bugs.gentoo.org/740024
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>
Closes: https://github.com/gentoo/gentoo/pull/28226
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/rotoscope-0.2-fix_clang16_build.patch | 19 +++++++++++++++++++
.../files/rotoscope-0.2-fix_desktop_file.patch | 19 +++++++++++++++++++
.../{rotoscope-0.2.ebuild => rotoscope-0.2-r1.ebuild} | 15 ++++++++++-----
3 files changed, 48 insertions(+), 5 deletions(-)
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
new file mode 100644
index 000000000000..01a1f96be4ec
--- /dev/null
+++ b/media-gfx/rotoscope/files/rotoscope-0.2-fix_clang16_build.patch
@@ -0,0 +1,19 @@
+Clang16 does not allow implicit function declarations by default.
+
+See also: https://wiki.gentoo.org/wiki/Modern_C_porting
+Bug: https://bugs.gentoo.org/875764
+
+Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
+
+--- a/src/main.c
++++ b/src/main.c
+@@ -49,6 +49,9 @@ GList* edge_list = NULL;
+ MouseState mouse_state = IDLE;
+ Vertex last_click;
+
++/* Function prototypes */
++gboolean redraw_render_area( GtkWidget* widget, GdkEventExpose* event, gpointer user_data );
++
+ /* Functionality and callback functions */
+ void clear_edge_list()
+ {
diff --git a/media-gfx/rotoscope/files/rotoscope-0.2-fix_desktop_file.patch b/media-gfx/rotoscope/files/rotoscope-0.2-fix_desktop_file.patch
new file mode 100644
index 000000000000..9116f9598780
--- /dev/null
+++ b/media-gfx/rotoscope/files/rotoscope-0.2-fix_desktop_file.patch
@@ -0,0 +1,19 @@
+This fixes the QA issue of the .desktop file
+
+Bug: https://bugs.gentoo.org/740024
+
+Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
+
+--- a/rotoscope.desktop
++++ b/rotoscope.desktop
+@@ -2,7 +2,7 @@
+ Name=Rotoscope
+ Comment=Turn photos into cartoons
+ Exec=rotoscope
+-Icon=rotoscope.png
+-Terminal=0
++Icon=rotoscope
++Terminal=false
+ Type=Application
+-Categories=Application;Graphics;2DGraphics;RasterGraphics;GTK;
++Categories=Graphics;2DGraphics;RasterGraphics;GTK;
diff --git a/media-gfx/rotoscope/rotoscope-0.2.ebuild b/media-gfx/rotoscope/rotoscope-0.2-r1.ebuild
similarity index 54%
rename from media-gfx/rotoscope/rotoscope-0.2.ebuild
rename to media-gfx/rotoscope/rotoscope-0.2-r1.ebuild
index 545f535924d6..78b21e66e105 100644
--- a/media-gfx/rotoscope/rotoscope-0.2.ebuild
+++ b/media-gfx/rotoscope/rotoscope-0.2-r1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
DESCRIPTION="Graphics program that can be used to give photos a cartoon-like appearance"
-HOMEPAGE="http://www.toonyphotos.com"
+HOMEPAGE="http://www.toonyphotos.com https://sourceforge.net/projects/rotoscope/"
SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.orig.tar.gz"
LICENSE="GPL-2"
@@ -14,5 +14,10 @@ IUSE=""
RDEPEND="x11-libs/gtk+:2
>=gnome-base/libglade-2"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix_clang16_build.patch
+ "${FILESDIR}"/${P}-fix_desktop_file.patch
+)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-15 2:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-15 2:22 [gentoo-commits] repo/gentoo:master commit in: media-gfx/rotoscope/files/, media-gfx/rotoscope/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox