summaryrefslogtreecommitdiff
path: root/dev-perl/Wx-Scintilla
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-perl/Wx-Scintilla
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-perl/Wx-Scintilla')
-rw-r--r--dev-perl/Wx-Scintilla/Manifest7
-rw-r--r--dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r2.ebuild44
-rw-r--r--dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.34-flags.patch19
-rw-r--r--dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-gcc6.patch32
-rw-r--r--dev-perl/Wx-Scintilla/metadata.xml17
5 files changed, 119 insertions, 0 deletions
diff --git a/dev-perl/Wx-Scintilla/Manifest b/dev-perl/Wx-Scintilla/Manifest
new file mode 100644
index 000000000000..0643c0150027
--- /dev/null
+++ b/dev-perl/Wx-Scintilla/Manifest
@@ -0,0 +1,7 @@
+AUX Wx-Scintilla-0.34-flags.patch 545 SHA256 d6178fa4f212df5e14a9bdd18a26d2d9eae095968612a97836a5423ef197f397 SHA512 b1a12522cfd20dfd309a86da23214ace540f0365c3ac8753f081ad8bd7cff16f1f6f1b8345ac1cb3243208085c82a558e50e16ae0e4c556cc5bc2b9704d9a244 WHIRLPOOL 9d9b2482cc22a141bb82f412a9004f5425d389106ea4ef9b56a5b09aeda36b5b9d8a18ec64178213838c16ba079e0bac319996c153fd3b6ca8a0b94275ed0a82
+AUX Wx-Scintilla-0.39-gcc6.patch 1099 SHA256 b1bf6b7829918b7f0a6b69482352be35737f08194beff28b10871ac6e64e1282 SHA512 c5eceb13994cd0f156efacb0d505a95b873f954b6bea9f016d60d003fa24e82db8d13f440cad3b91188b2b4794c64d46ce077613516f2e78acbdfd06b93dd7de WHIRLPOOL b072bfe8d7a266b4144c51cc8a15c2605ed8626bd42e1136a224a8f67b032745995fecc8c820cbc5c4f898d67009f6ff387f8c52303a7c00fd4de8fa88aee1fa
+DIST Wx-Scintilla-0.39.tar.gz 848565 SHA256 d6d67528a55552bb3fda2a1f22058c6c94a05eaf632dba5331afb3390defe0ea SHA512 d9ecec347c1f1382788e5ed7708b0caf86f2ff87db0fdb2b8fa07460c96b1a7921a9402431105beee61f4627f3694a79db7515ceb76b1ae4fb3f95c807afb4d4 WHIRLPOOL 229c694683e939cc1110171945aa18cddcb989c63e33c032ae755ba878717792d88f9670f968bd989e58c62066d7e8d4035962ae58975970876a6741a8285560
+EBUILD Wx-Scintilla-0.390.0-r2.ebuild 817 SHA256 5246da6d00c423d0323372794f1b42468235881baa1ebf07155cb68662b0c37b SHA512 c5174bea04620af4400a5a2ffde748571c7278ceeaac1e504d69c1cb0697aea0b472c4a99b4de8a2d4a3fde7aa83e7856635f611a62575b9cb0d0ee55215935e WHIRLPOOL ad86a118e72dc653834b3f9877abc950e6cdeec1ca1ffef65993e90ddb2ffeb7e84baedbe6419e7dcf2f4b9ddd641143f7a1a97f0e6cdafdf0be09e1fd5043ee
+MISC ChangeLog 3150 SHA256 d3d50b7a6b79ab038d225fdcd1a063748e990a10ac97e16f4b7b6080e4861a2b SHA512 1eefcd442b1ad6839de5aa3eeec3064d6915439bbdda55e9d06907c19a0ba795ceb23ff6c38b8bb9ca3f2bd410554ce83c184517845f0809a663d9981d848451 WHIRLPOOL 0b64f8367d5b633615628051aa16e9a1acfcb9b464540e7e3bbb0d3d6acad27c23a2578d720e156191630ec513c763cbee5e37b27c1368bb371541a8b1ba44ce
+MISC ChangeLog-2015 1840 SHA256 b3ea78a385a119451e512b61531dea2e46a333f0a95a8d50751085a6329b48a9 SHA512 417784f803d316e6c7be4c49d9be7ee633998540b40b70d79fa44eb3bd373be4a4fd0322680e7bdfdcca9686738a095eb0d59a1926a8b1635dfa756babef7c45 WHIRLPOOL eb04349a7bdaa87cc281d9a485572673cdf30fe580cc1450777a4c4564395027a000a86e9df6ab2d2e6b23547560f3d7c36189804c89f5a5fae31b192c9c2889
+MISC metadata.xml 744 SHA256 5d93ee640cbf708cd0b57e91c3036459481df0ddd0ed45567edf7b1a588b7244 SHA512 96093148b5aa6af8a600273f746835adf2cf77596b6ded2c20b03734c43376f1d2e678254b0a15b1fe15747a6607b846e3f4824555bfa3aafcbb7f95319285d6 WHIRLPOOL 1d345fc43f4f78e509506a1f3539ed9087fdfd7fd1b576039dfb6c5d2759e17c42962c1bb985bd07fc85ff2d841bb51aad140120d70f657e1c01d4cdab480872
diff --git a/dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r2.ebuild b/dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r2.ebuild
new file mode 100644
index 000000000000..b11bb08f1896
--- /dev/null
+++ b/dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+#VIRTUALX_REQUIRED=test
+#inherit virtualx
+MODULE_AUTHOR=AZAWAWI
+MODULE_VERSION=0.39
+inherit wxwidgets perl-module
+
+DESCRIPTION="Scintilla source code editing component for wxWidgets"
+
+LICENSE+=" HPND"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-perl/Alien-wxWidgets
+ dev-perl/Wx
+ x11-libs/wxGTK:${WX_GTK_VER}
+"
+DEPEND="${RDEPEND}
+ >=dev-perl/ExtUtils-XSpp-0.160.200
+ >=dev-perl/Module-Build-0.360.0
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.34-flags.patch
+ "${FILESDIR}"/${PN}-0.39-gcc6.patch
+)
+
+src_configure() {
+ need-wxwidgets base-unicode
+ myconf=( --verbose )
+ perl-module_src_configure
+}
+
+#SRC_TEST=do
+#src_test() {
+# VIRTUALX_COMMAND="./Build" virtualmake test || die
+#}
diff --git a/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.34-flags.patch b/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.34-flags.patch
new file mode 100644
index 000000000000..31b669dc6844
--- /dev/null
+++ b/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.34-flags.patch
@@ -0,0 +1,19 @@
+--- a/inc/Module/Build/Scintilla/GTK.pm
++++ b/inc/Module/Build/Scintilla/GTK.pm
+@@ -48,7 +48,6 @@
+ $self->stc_defines,
+ '-c -fPIC',
+ '-o ' . $object_name,
+- '-O2',
+ '-Wall',
+ $object_name !~ /((Plat|Scintilla)WX|scintilla)\.o/
+ ? '-Wno-missing-braces -Wno-char-subscripts'
+@@ -143,7 +142,7 @@
+ Alien::wxWidgets->link_flags,
+ $Config{lddlflags},
+ '-fPIC -L.',
+- '-s -o ' . $dll,
++ '-o ' . $dll,
+ 'Scintilla.o',
+ '-Lblib/arch/auto/Wx/Scintilla ' . $self->stc_scintilla_link,
+ Alien::wxWidgets->libraries(qw(core base)),
diff --git a/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-gcc6.patch b/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-gcc6.patch
new file mode 100644
index 000000000000..269d1d483d34
--- /dev/null
+++ b/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-gcc6.patch
@@ -0,0 +1,32 @@
+diff -ruN Wx-Scintilla-0.39.orig/wx-scintilla/src/scintilla/src/Editor.cxx Wx-Scintilla-0.39/wx-scintilla/src/scintilla/src/Editor.cxx
+--- Wx-Scintilla-0.39.orig/wx-scintilla/src/scintilla/src/Editor.cxx 2012-09-04 12:20:46.000000000 +0200
++++ Wx-Scintilla-0.39/wx-scintilla/src/scintilla/src/Editor.cxx 2017-04-25 01:20:51.586427196 +0200
+@@ -11,6 +11,7 @@
+ #include <ctype.h>
+ #include <assert.h>
+
++#include <cmath>
+ #include <string>
+ #include <vector>
+ #include <map>
+@@ -989,7 +990,7 @@
+ // Try to optimise small scrolls
+ #ifndef UNDER_CE
+ int linesToMove = topLine - topLineNew;
+- bool performBlit = (abs(linesToMove) <= 10) && (paintState == notPainting);
++ bool performBlit = (std::abs(linesToMove) <= 10) && (paintState == notPainting);
+ willRedrawAll = !performBlit;
+ #endif
+ SetTopLine(topLineNew);
+@@ -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;
+ }
diff --git a/dev-perl/Wx-Scintilla/metadata.xml b/dev-perl/Wx-Scintilla/metadata.xml
new file mode 100644
index 000000000000..bdf98e0943b3
--- /dev/null
+++ b/dev-perl/Wx-Scintilla/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">Wx-Scintilla</remote-id>
+ <remote-id type="cpan-module">Wx::Scintilla</remote-id>
+ <remote-id type="cpan-module">Wx::Scintilla::Constant</remote-id>
+ <remote-id type="cpan-module">Wx::Scintilla::TextCtrl</remote-id>
+ <remote-id type="cpan-module">Wx::Scintilla::TextEvent</remote-id>
+ <remote-id type="cpan-module">Wx::ScintillaTextCtrl</remote-id>
+ <remote-id type="cpan-module">Wx::ScintillaTextEvent</remote-id>
+ </upstream>
+</pkgmetadata>