commit: a96af1e2ef016984da15bcf721475f0951f3c11d
Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Thu Sep 5 17:45:00 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 5 19:32:49 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a96af1e2
dev-perl/Wx-Scintilla: respect user flags
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r5.ebuild | 3 ++-
.../files/Wx-Scintilla-0.39-respect-user-flags.patch | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r5.ebuild
b/dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r5.ebuild
index 61c60e271dfb..65cb495b5f83 100644
--- a/dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r5.ebuild
+++ b/dev-perl/Wx-Scintilla/Wx-Scintilla-0.390.0-r5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -29,6 +29,7 @@ BDEPEND=${DEPEND}
PATCHES=(
"${FILESDIR}"/${PN}-0.34-flags.patch
"${FILESDIR}"/${PN}-0.39-gcc6.patch
+ "${FILESDIR}"/${PN}-0.39-respect-user-flags.patch
)
src_configure() {
diff --git
a/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-respect-user-flags.patch
b/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-respect-user-flags.patch
new file mode 100644
index 000000000000..e92e644a7956
--- /dev/null
+++ b/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-respect-user-flags.patch
@@ -0,0 +1,18 @@
+--- a/inc/Module/Build/Scintilla.pm
++++ b/inc/Module/Build/Scintilla.pm
+@@ -89,7 +89,7 @@
+
+ sub stc_ldflags {
+ my $self = shift;
+- return Alien::wxWidgets->link_flags;
++ return Alien::wxWidgets->link_flags . $Config{ldflags};
+ }
+
+ sub stc_defines {
+@@ -119,6 +119,7 @@
+ my $flags = qx($command);
+ chomp($flags);
+ $flags .= ' ' . Alien::wxWidgets->c_flags;
++ $flags .= ' ' . $Config{ccflags};
+ return $flags;
+ }