summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Seeger <jan.seeger@thenybble.de>2020-08-03 15:00:08 +0200
committerNick Sarnie <sarnex@gentoo.org>2020-08-05 12:09:33 -0400
commitf1efe67d2c8cdc8ebbf688b587bd86146a054c60 (patch)
tree8589e13f54336fe493a991ef6bf32bf3e46fcd32 /media-video/aegisub/files
parentdev-python/pexpect: Stabilize 4.8.0 ALLARCHES, #731478 (diff)
downloadgentoo-f1efe67d2c8cdc8ebbf688b587bd86146a054c60.tar.gz
gentoo-f1efe67d2c8cdc8ebbf688b587bd86146a054c60.tar.bz2
gentoo-f1efe67d2c8cdc8ebbf688b587bd86146a054c60.zip
media-video/aegisub-9999: Updated git ebuild.
Closes: https://bugs.gentoo.org/734916 Signed-off-by: Jan Seeger <jan.seeger@thenybble.de> Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'media-video/aegisub/files')
-rw-r--r--media-video/aegisub/files/aegisub-9999-git.patch78
1 files changed, 78 insertions, 0 deletions
diff --git a/media-video/aegisub/files/aegisub-9999-git.patch b/media-video/aegisub/files/aegisub-9999-git.patch
new file mode 100644
index 000000000000..80fd243703b1
--- /dev/null
+++ b/media-video/aegisub/files/aegisub-9999-git.patch
@@ -0,0 +1,78 @@
+diff --git a/Makefile.target b/Makefile.target
+index 516ef3c24..65de0e767 100644
+--- a/Makefile.target
++++ b/Makefile.target
+@@ -79,13 +79,13 @@ endif
+ all: $(LIB_TARGETS)
+
+ clean:
+- $(BIN_RM) -f $(OBJ) $(CLEANFILES) $(LIB_TARGETS)
++ $(BIN_RM) -f -- $(OBJ) $(CLEANFILES) $(LIB_TARGETS)
+
+ distclean: clean
+- $(BIN_RM) -rf $(DISTCLEANFILES) $(DEP)
++ $(BIN_RM) -rf -- $(DISTCLEANFILES) $(DEP)
+
+ depclean: clean
+- $(BIN_RM) -rf $(DEP)
++ $(BIN_RM) -rf -- $(DEP)
+
+ install:
+
+diff --git a/header.mk b/header.mk
+index 613b38ff1..2c238e125 100644
+--- a/header.mk
++++ b/header.mk
+@@ -5,15 +5,13 @@ TOP := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))/
+ include $(TOP)Makefile.inc
+
+ subdirs := \
+- automation \
+ libaegisub \
+ packages/desktop \
+ po \
+ src \
+ tests \
+- tools \
+ vendor/luabins \
+- vendor/luajit
++ tools
+
+ subdirs := $(addprefix $(TOP),$(addsuffix /Makefile,$(subdirs)))
+
+diff --git a/m4macros/ac_agi.m4 b/m4macros/ac_agi.m4
+index e45a54767..1bd0120ed 100644
+--- a/m4macros/ac_agi.m4
++++ b/m4macros/ac_agi.m4
+@@ -20,12 +20,14 @@ AC_DEFUN([AC_AGI_LINK],[
+ aegisub_save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $4"
+ LIBS="$LIBS $5"
++ AC_LANG_PUSH(C++)
+ AC_CHECK_HEADER([$3], [agi_cv_header="yes"], [agi_cv_header="no"])
+ AS_IF([test "x$agi_cv_header" = xyes],
+ [AC_CACHE_CHECK(
+ [whether $1 works], [agi_cv_with_$2],
+ [AC_LINK_IFELSE([AC_LANG_SOURCE([$6])], [eval agi_cv_with_$2="yes"], [eval agi_cv_with_$2="no"])])]
+ [eval agi_cv_with_$2="no"])
++ AC_LANG_POP(C++)
+ CPPFLAGS="$aegisub_save_CPPFLAGS"
+ LIBS="$aegisub_save_LIBS"
+ ])
+diff --git a/src/libresrc/libresrc.cpp b/src/libresrc/libresrc.cpp
+index 79dc0f16c..8648d2987 100644
+--- a/src/libresrc/libresrc.cpp
++++ b/src/libresrc/libresrc.cpp
+@@ -22,9 +22,10 @@
+
+ wxBitmap libresrc_getimage(const unsigned char *buff, size_t size, double scale, int dir) {
+ wxMemoryInputStream mem(buff, size);
++ auto img = wxImage(mem);
+ if (dir != wxLayout_RightToLeft)
+- return wxBitmap(wxImage(mem), -1, scale);
+- return wxBitmap(wxImage(mem).Mirror(), -1, scale);
++ return wxBitmap(img.Scale(img.GetHeight() * scale, img.GetWidth() * scale));
++ return wxBitmap(img.Mirror().Scale(img.GetHeight() * scale, img.GetWidth() * scale));
+ }
+
+ wxIcon libresrc_geticon(const unsigned char *buff, size_t size) {