diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
commit | feb0daf81d888e9160f9f94502de09b66f2a63fd (patch) | |
tree | b6e5c40ce2abef3da27ed50a023153f475e0ddef /media-gfx/mypaint | |
parent | 9452a6e87b6c2c70513bc47a2470bf9f1168920e (diff) |
gentoo resync : 21.06.2020
Diffstat (limited to 'media-gfx/mypaint')
-rw-r--r-- | media-gfx/mypaint/Manifest | 3 | ||||
-rw-r--r-- | media-gfx/mypaint/files/mypaint-1.2.1-json-c-boolean-defs.patch | 34 | ||||
-rw-r--r-- | media-gfx/mypaint/mypaint-1.2.1-r5.ebuild | 3 |
3 files changed, 39 insertions, 1 deletions
diff --git a/media-gfx/mypaint/Manifest b/media-gfx/mypaint/Manifest index 0b6332fca219..238b2ded9641 100644 --- a/media-gfx/mypaint/Manifest +++ b/media-gfx/mypaint/Manifest @@ -1,3 +1,4 @@ +AUX mypaint-1.2.1-json-c-boolean-defs.patch 1189 BLAKE2B 7cc9728fbe01195b0c95bd844592d4fbae29a7a26758d242933ed712b940d8a893cd41bd2987952e2a817208efbffd779e9c39d4dde42d809a1e11de06a234fa SHA512 8e5815c281a6c63c7818f378d0e75a94860dd24ea69e9fff8e5951b05c407f12e2e19fefeaa559476a4dab46c88eab8821eff061e8c8eadd1f3ce150e42563c2 DIST mypaint-1.2.1.tar.xz 37897196 BLAKE2B 2d8f6b03f710febae1c2d617a6e542543786be384585ae8a973604da2eba8a0fb770d185aa3d2dfc6f794adf29ffb9c217356a96ab27d677ebb57816f62fae9c SHA512 1783765e495b9535669a83a29d27ba684e6201fdfe0875bdd2c167b1dab8af05993b19025767fe0b2770ed9e578e4709f75d8a4820ac945812cba85609f9eb9b -EBUILD mypaint-1.2.1-r5.ebuild 1958 BLAKE2B 23392b56efece4806587d51024cd0338f31db243e171aa8e0ea99cbde9b84fe726e7fc6b9fea0221c25deafca74196cf387a50dd549542bfe415ed1aceef93b6 SHA512 034c0036442e5edf4ec1b97593e98b4569d6f3cc48398c13c67dd7b85634c89c8b73027af91977d25545236d490ac027bc9badf28754e0178d94fba29dee3478 +EBUILD mypaint-1.2.1-r5.ebuild 2016 BLAKE2B 0a00318c334adc4c97021ca1e52cb089075b1db667f0ad431fcf758345756d7d3558e50a353c8578d5749172ea4bbe396a99041c026cecce6174cb7cc6e4caf3 SHA512 5b1a703cf2efb5e0d729315ea092c58954975dedc177472467f03726956211b34744018cb3ef730f4b5a8ff2053f30218f838609ef225dd05eab21f5d8a683d8 MISC metadata.xml 247 BLAKE2B 3a8d267e6befd2f46c41982b7196470f32b4fcf5dc6a42ead10b13e81bdcb7975ea998a51d0deb2c3c1a49f00b5f9216d8e43ad7e6dd0aea0f3352b19532d0a0 SHA512 21b957bb801d29dfed1d0aeceac553c9ba039a7fe94ebf899e7ab5c3316bbad116c7bd63a07ccbbb8277d2ce19f27b964499d2ccd942028290519e465e989dbb diff --git a/media-gfx/mypaint/files/mypaint-1.2.1-json-c-boolean-defs.patch b/media-gfx/mypaint/files/mypaint-1.2.1-json-c-boolean-defs.patch new file mode 100644 index 000000000000..caa2df4de6ee --- /dev/null +++ b/media-gfx/mypaint/files/mypaint-1.2.1-json-c-boolean-defs.patch @@ -0,0 +1,34 @@ +commit a2b3f56b347c1897454eac1b5bdfe9d228302b80 +Author: Jehan <jehan@girinstud.io> +Date: Sat Jan 26 12:50:31 2019 +0100 + + Boolean #define-s removed from json-c in 2017. + + We don't need to #undef TRUE and FALSE before including json.h as this + redefinition has been removed in upstream json-c. + See json-c commit 0992aac61f8b087efd7094e9ac2b84fa9c040fcd. + + Note that it still works even if using an older json-c since the + original code was alreadying #undef-ing these 2 values before redefining + them. So that was anyway useless code and this change should work both + with old or new json-c. + + Note: the previous code was still working fine when building on Linux, + but not when cross-compiling on Windows. But this is the correct fix + anyway. + + (cherry picked from commit f4fd97445d3b6843af57ff8ba5f02cbdeb3942e9) + +diff --git a/brushlib/mypaint-brush.c b/mypaint-brush.c +index 4759d11..7a1380c 100644 +--- a/brushlib/mypaint-brush.c ++++ b/brushlib/mypaint-brush.c +@@ -35,9 +35,6 @@ + #include "rng-double.h" + + #ifdef HAVE_JSON_C +-// Allow the C99 define from json.h +-#undef TRUE +-#undef FALSE + #include <json.h> + #endif // HAVE_JSON_C diff --git a/media-gfx/mypaint/mypaint-1.2.1-r5.ebuild b/media-gfx/mypaint/mypaint-1.2.1-r5.ebuild index ed192d39fbdb..4c5a1859342c 100644 --- a/media-gfx/mypaint/mypaint-1.2.1-r5.ebuild +++ b/media-gfx/mypaint/mypaint-1.2.1-r5.ebuild @@ -41,6 +41,9 @@ DEPEND="${RDEPEND} dev-lang/swig virtual/pkgconfig " +PATCHES=( + "${FILESDIR}/${P}-json-c-boolean-defs.patch" +) pkg_setup() { python-single-r1_pkg_setup |