mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
netsurf: patch for libutf8proc
This commit is contained in:
@@ -8,11 +8,12 @@ features including tabbed browsing, bookmarks and page thumbnailing."
|
||||
HOMEPAGE="https://www.netsurf-browser.org/"
|
||||
COPYRIGHT="2003-2018 The NetSurf Browser project"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
# Do NOT use the netsurf-all package. It contains a bunch of subprojects which
|
||||
# we build as separate packages so they can easily be used by other projects.
|
||||
SOURCE_URI="https://download.netsurf-browser.org/netsurf/releases/source/netsurf-$portVersion-src.tar.gz"
|
||||
CHECKSUM_SHA256="d72f1c6f6113a01e541f8476a93c347235068779140090df55ba402eb4a8ecc3"
|
||||
PATCHES="netsurf-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
|
||||
31
www-client/netsurf/patches/netsurf-3.9.patchset
Normal file
31
www-client/netsurf/patches/netsurf-3.9.patchset
Normal file
@@ -0,0 +1,31 @@
|
||||
From 8ca7db438b21b07fd3a90b9283ab9f9dcda35801 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Wed, 20 Nov 2019 19:34:02 +0100
|
||||
Subject: libutf8proc2 patch
|
||||
|
||||
|
||||
diff --git a/utils/idna.c b/utils/idna.c
|
||||
index d657f90..73f4f4a 100644
|
||||
--- a/utils/idna.c
|
||||
+++ b/utils/idna.c
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
-#include <libutf8proc/utf8proc.h>
|
||||
+#include <utf8proc.h>
|
||||
|
||||
#include "netsurf/inttypes.h"
|
||||
|
||||
@@ -172,7 +172,7 @@ static bool idna__contextj_rule(int32_t *label, int index, size_t len)
|
||||
return false; /* No previous character */
|
||||
}
|
||||
unicode_props = utf8proc_get_property(label[index - 1]);
|
||||
- if (unicode_props->combining_class == IDNA_UNICODE_CCC_VIRAMA) {
|
||||
+ if (unicode_props->combining_class == UTF8PROC_BIDI_CLASS_EN) {
|
||||
return true;
|
||||
}
|
||||
|
||||
--
|
||||
2.24.0
|
||||
|
||||
Reference in New Issue
Block a user