diff options
author | Philipp Rösner <rndxelement@protonmail.com> | 2022-01-16 22:44:27 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-01-19 00:48:21 +0000 |
commit | 38298eaad5e5fbd13aeab71e5753e1e79987b845 (patch) | |
tree | fd99e2f3f535f2749cc104becabb03959d81c4ec /media-gfx/tuxpaint | |
parent | gnome-base/gnome-control-center: fix build with meson 0.61 (diff) | |
download | gentoo-38298eaad5e5fbd13aeab71e5753e1e79987b845.tar.gz gentoo-38298eaad5e5fbd13aeab71e5753e1e79987b845.tar.bz2 gentoo-38298eaad5e5fbd13aeab71e5753e1e79987b845.zip |
media-gfx/tuxpaint: switched to graphicsmagick
We switched from virtual/imagemagic-tools to media-gfx/graphicsmagic and
added required use flags to the media-gfx/graphicsmagic build dependency.
Bug: https://bugs.gentoo.org/831292
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Philipp Roesner <rndxelement@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx/tuxpaint')
-rw-r--r-- | media-gfx/tuxpaint/files/tuxpaint-0.9.27-Makefile.patch | 37 | ||||
-rw-r--r-- | media-gfx/tuxpaint/tuxpaint-0.9.27.ebuild | 2 |
2 files changed, 36 insertions, 3 deletions
diff --git a/media-gfx/tuxpaint/files/tuxpaint-0.9.27-Makefile.patch b/media-gfx/tuxpaint/files/tuxpaint-0.9.27-Makefile.patch index 7fd2e3ded8ec..fdbd5136f322 100644 --- a/media-gfx/tuxpaint/files/tuxpaint-0.9.27-Makefile.patch +++ b/media-gfx/tuxpaint/files/tuxpaint-0.9.27-Makefile.patch @@ -1,5 +1,5 @@ ---- a./Makefile -+++ b./Makefile +--- a/Makefile ++++ b/Makefile @@ -72,7 +72,7 @@ endif # <HOSTROOT> is the directory containing support files for building for <HOST>: # <HOSTROOT>/include Header files. @@ -45,6 +45,15 @@ MAN_PREFIX:=$(DESTDIR)$(PREFIX)/share/man DEVMAN_PREFIX:=$(DESTDIR)$(PREFIX)/share/man +@@ -358,7 +358,7 @@ MOUSE_CFLAGS:=-Isrc/$(MOUSEDIR) -D$(CURSOR_SHAPES)_CURSOR_SHAPES + # are 132x80. On larger screens, they will be bigger (since the New dialog + # is always 4x4 thumbnails); therefore, generating larger thumbs, which can + # be still be scaled down fairly quickly (esp. complicated SVG ones). +-CONVERT_OPTS:=-alpha Background -alpha Off +depth -resize !264x160 -background white -interlace none ++CONVERT_OPTS:=-resize 264x160 -background white -extent 0x0 -interlace none + + .SUFFIXES: + @@ -545,7 +545,7 @@ trans: windows_ARCH_INSTALL:=install-dlls install-tpconf-i18n macos_ARCH_INSTALL:=install-macbundle TuxPaint.dmg install-man install-importscript install-bash-completion @@ -73,6 +82,30 @@ -rm -f -r $(CONFDIR) -rm $(COMPLETIONDIR)/tuxpaint-completion.bash -rm -r $(MAGIC_PREFIX) +@@ -791,11 +791,11 @@ $(THUMB_STARTERS): + @mkdir -p starters/.thumbs + @if [ "x" != "x"$(STARTER_BACK_NAME) ] ; \ + then \ +- composite $(STARTER_NAME) $(STARTER_BACK_NAME) obj/tmp_$(notdir $(STARTER_NAME)).png ; \ +- convert $(CONVERT_OPTS) obj/tmp_$(notdir $(STARTER_NAME)).png $@ 2> /dev/null ; \ ++ gm composite $(STARTER_NAME) $(STARTER_BACK_NAME) obj/tmp_$(notdir $(STARTER_NAME)).png 2> /dev/null ; \ ++ gm convert $(CONVERT_OPTS) obj/tmp_$(notdir $(STARTER_NAME)).png $@ || echo "($@ failed)" ; \ + rm obj/tmp_$(notdir $(STARTER_NAME)).png ; \ + else \ +- convert $(CONVERT_OPTS) $(STARTER_NAME) $@ 2> /dev/null || ( echo "($@ failed)" ; rm $@ ) ; \ ++ gm convert $(CONVERT_OPTS) $(STARTER_NAME) $@ 2> /dev/null || ( echo "($@ failed)" ; rm $@ ) ; \ + fi + + $(INSTALLED_THUMB_STARTERS): $(DATA_PREFIX)/%: % +@@ -850,7 +850,7 @@ TEMPLATE_NAME=$(or $(wildcard $(subst templates/.thumbs,templates,$(@:-t.png=.sv + $(THUMB_TEMPLATES): + @printf "." + @mkdir -p templates/.thumbs +- @convert $(CONVERT_OPTS) $(TEMPLATE_NAME) $@ 2> /dev/null || ( echo "($@ failed)" ; rm $@ ) ; \ ++ @gm convert $(CONVERT_OPTS) $(TEMPLATE_NAME) $@ 2> /dev/null || ( echo "($@ failed)" ; rm $@ ) ; \ + + $(INSTALLED_THUMB_TEMPLATES): $(DATA_PREFIX)/%: % + @install -D -m 644 $< $@ || ( echo "NO THUMB $<" ) @@ -962,9 +962,9 @@ install-dlls: @cp -R win32/etc/ $(BIN_PREFIX) @echo diff --git a/media-gfx/tuxpaint/tuxpaint-0.9.27.ebuild b/media-gfx/tuxpaint/tuxpaint-0.9.27.ebuild index 7a1dffc5100d..393cf77443e4 100644 --- a/media-gfx/tuxpaint/tuxpaint-0.9.27.ebuild +++ b/media-gfx/tuxpaint/tuxpaint-0.9.27.ebuild @@ -31,7 +31,7 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND=" dev-util/gperf - virtual/imagemagick-tools + media-gfx/graphicsmagick[jpeg,png,svg] sys-devel/gettext " |