Ravenports generated: 11 Apr 2020 21:29
[ravenports.git] / bucket_A5 / perl-Wx-Scintilla
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               perl-Wx-Scintilla
4 VERSION=                0.39
5 KEYWORDS=               perl
6 VARIANTS=               530 528
7 SDESC[530]=             Scintilla source code editing for wxWidgets (v530)
8 SDESC[528]=             Scintilla source code editing for wxWidgets (v528)
9 HOMEPAGE=               none
10 CONTACT=                Perl_Automaton[perl@ironwolf.systems]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            CPAN/ID:A/AZ/AZAWAWI
14 DISTFILE[1]=            Wx-Scintilla-0.39.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[530]=             single
17 SPKGS[528]=             single
18
19 OPTIONS_AVAILABLE=      PERL_530 PERL_528
20 OPTIONS_STANDARD=       none
21 VOPTS[530]=             PERL_530=ON PERL_528=OFF
22 VOPTS[528]=             PERL_530=OFF PERL_528=ON
23
24 RUN_DEPENDS=            wxWidgets:single:gtk2
25
26 DISTNAME=               Wx-Scintilla-0.39
27
28 GENERATED=              yes
29
30 SINGLE_JOB=             yes
31
32 INSTALL_REQ_TOOLCHAIN=  yes
33
34 [PERL_528].BUILD_DEPENDS_ON=            perl-Alien-wxWidgets:single:528
35                                         perl-ExtUtils-XSpp:single:528
36                                         perl-Wx:single:528
37                                         perl-Module-Build:single:528
38 [PERL_528].USES_ON=                     perl:528,buildmod,run
39
40 [PERL_530].BUILD_DEPENDS_ON=            perl-Alien-wxWidgets:single:530
41                                         perl-ExtUtils-XSpp:single:530
42                                         perl-Wx:single:530
43                                         perl-Module-Build:single:530
44 [PERL_530].USES_ON=                     perl:530,buildmod,run
45
46 post-patch:
47         ${REINPLACE_CMD} -e \
48                 '/my /s|wx-config|wxgtk2u-3.0-config|g' \
49                 -e '/ret/ s|urn .flags;|urn $$flags . " -std=c++11";|' \
50                 ${WRKSRC}/inc/Module/Build/Scintilla.pm
51         ${REINPLACE_CMD} -e \
52                 's|_scintilla-|_scintilla| ; \
53                  s|$$major.*$$release \.|| ; \
54                  /$$major.*$$release;/s|^|#| ; \
55                  s|-lgtk-x11-2.0.*-lpangoft2-1.0|-lm| ; \
56                  /-lgobject-2.0/d ; \
57                  /-lglib-2.0/d ; \
58                  s|{ccflags}|{ccflags} . " -std=c++11"| ; \
59                  s|\\$$ORIGIN|${SITE_ARCH}/auto/Wx/Scintilla|' \
60                 ${WRKSRC}/inc/Module/Build/Scintilla/GTK.pm
61
62 [FILE:44:descriptions/desc.single]
63 Scintilla source code editing for wxWidgets
64
65
66 [FILE:103:distinfo]
67 d6d67528a55552bb3fda2a1f22058c6c94a05eaf632dba5331afb3390defe0ea       848565 Wx-Scintilla-0.39.tar.gz
68
69
70 [FILE:1085:patches/patch-fix-stc-with-gcc6]
71 From 73e9e18ea09ffffcaac50237def0d9728a213c02 Mon Sep 17 00:00:00 2001\r
72 From: Scott Talbert <swt@techie.net>\r
73 Date: Sat, 20 Feb 2016 00:08:14 -0500\r
74 Subject: [PATCH] Fix STC compilation with GCC6\r
75 \r
76 Use std::abs() from <cmath> instead of abs() from <math.h> to avoid problems\r
77 with ambiguous overloads.\r
78 \r
79 Closes #17147.\r
80 \r
81 Closes https://github.com/wxWidgets/wxWidgets/pull/222\r
82 \r
83 Bug-Debian: https://bugs.debian.org/816571\r
84 Bug: https://rt.cpan.org/Public/Bug/Display.html?id=112742\r
85 \r
86 ---\r
87  src/stc/scintilla/src/Editor.cxx | 5 +++--\r
88  1 file changed, 3 insertions(+), 2 deletions(-)\r
89 \r
90 --- wx-scintilla/src/scintilla/src/Editor.cxx
91 +++ wx-scintilla/src/scintilla/src/Editor.cxx
92 @@ -11,6 +11,7 @@
93  #include <ctype.h>\r
94  #include <assert.h>\r
95  \r
96 +#include <cmath>\r
97  #include <string>\r
98  #include <vector>\r
99  #include <map>\r
100 @@ -5868,9 +5869,9 @@
101  }\r
102  \r
103  static bool Close(Point pt1, Point pt2) {\r
104 -       if (abs(pt1.x - pt2.x) > 3)\r
105 +       if (std::abs(pt1.x - pt2.x) > 3)\r
106                 return false;\r
107 -       if (abs(pt1.y - pt2.y) > 3)\r
108 +       if (std::abs(pt1.y - pt2.y) > 3)\r
109                 return false;\r
110         return true;\r
111  }\r
112