# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= perl-Wx-Scintilla VERSION= 0.39 KEYWORDS= perl VARIANTS= 536 538 SDESC[536]= Scintilla source code editing for wxWidgets (5.36) SDESC[538]= Scintilla source code editing for wxWidgets (5.38) HOMEPAGE= none CONTACT= Perl_Automaton[perl@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= CPAN/ID:A/AZ/AZAWAWI DISTFILE[1]= Wx-Scintilla-0.39.tar.gz:main DF_INDEX= 1 SPKGS[536]= single SPKGS[538]= single OPTIONS_AVAILABLE= PERL_536 PERL_538 OPTIONS_STANDARD= none VOPTS[536]= PERL_536=ON PERL_538=OFF VOPTS[538]= PERL_536=OFF PERL_538=ON RUN_DEPENDS= wxWidgets30:primary:gtk2 DISTNAME= Wx-Scintilla-0.39 GENERATED= yes SINGLE_JOB= yes INSTALL_REQ_TOOLCHAIN= yes [PERL_536].BUILD_DEPENDS_ON= perl-Alien-wxWidgets:single:536 perl-ExtUtils-XSpp:single:536 perl-Wx:single:536 perl-Module-Build:single:536 [PERL_536].USES_ON= perl:536,buildmod,run [PERL_538].BUILD_DEPENDS_ON= perl-Alien-wxWidgets:single:538 perl-ExtUtils-XSpp:single:538 perl-Wx:single:538 perl-Module-Build:single:538 [PERL_538].USES_ON= perl:538,buildmod,run post-patch: ${REINPLACE_CMD} -e \ '/ret/ s|urn .flags;|urn $$flags . " -std=c++11";|' \ ${WRKSRC}/inc/Module/Build/Scintilla.pm ${REINPLACE_CMD} -e \ 's|_scintilla-|_scintilla| ; \ s|$$major.*$$release \.|| ; \ /$$major.*$$release;/s|^|#| ; \ s|-lgtk-x11-2.0.*-lpangoft2-1.0|-lm| ; \ /-lgobject-2.0/d ; \ /-lglib-2.0/d ; \ s|{ccflags}|{ccflags} . " -std=c++11"| ; \ s|\\$$ORIGIN|${SITE_ARCH}/auto/Wx/Scintilla|' \ ${WRKSRC}/inc/Module/Build/Scintilla/GTK.pm [FILE:45:descriptions/desc.single] Scintilla source code editing for wxWidgets [FILE:103:distinfo] d6d67528a55552bb3fda2a1f22058c6c94a05eaf632dba5331afb3390defe0ea 848565 Wx-Scintilla-0.39.tar.gz [FILE:1085:patches/patch-fix-stc-with-gcc6] From 73e9e18ea09ffffcaac50237def0d9728a213c02 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Sat, 20 Feb 2016 00:08:14 -0500 Subject: [PATCH] Fix STC compilation with GCC6 Use std::abs() from instead of abs() from to avoid problems with ambiguous overloads. Closes #17147. Closes https://github.com/wxWidgets/wxWidgets/pull/222 Bug-Debian: https://bugs.debian.org/816571 Bug: https://rt.cpan.org/Public/Bug/Display.html?id=112742 --- src/stc/scintilla/src/Editor.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- wx-scintilla/src/scintilla/src/Editor.cxx +++ wx-scintilla/src/scintilla/src/Editor.cxx @@ -11,6 +11,7 @@ #include #include +#include #include #include #include @@ -5868,9 +5869,9 @@ } static bool Close(Point pt1, Point pt2) { - if (abs(pt1.x - pt2.x) > 3) + if (std::abs(pt1.x - pt2.x) > 3) return false; - if (abs(pt1.y - pt2.y) > 3) + if (std::abs(pt1.y - pt2.y) > 3) return false; return true; }