gnu: netsurf: Use unbundled source.
* gnu/packages/patches/netsurf-system-utf8proc.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/web.scm (netsurf)[source]: Use it. Change to unbundled source
tarball.
[native-inputs]: Add netsurf-buildsystem, nsgenbind. Remove flex, bison.
[inputs]: Add utf8proc, libcss, libdom, libnsbmp, libnsgif, libnspsl,
libnsutils, libsvgtiny. Remove expat, gperf.
[arguments]: Adjust #:make-flags for netsurf-buildsystem. Delete configure
phase. Adjust source directories.
2017-02-12 19:52:21 +01:00
|
|
|
Use upstream utf8proc package, as suggested in
|
|
|
|
http://source.netsurf-browser.org/libutf8proc.git/commit/?id=770e329cceaf0620c7b482589a9b17ed1d19c16d
|
|
|
|
|
|
|
|
Work around upstream's lack of a pkg-config file and update API.
|
|
|
|
|
|
|
|
--- netsurf-3.6/Makefile
|
|
|
|
+++ netsurf-3.6/Makefile
|
|
|
|
@@ -527,10 +527,9 @@
|
|
|
|
$(eval $(call pkg_config_find_and_add,libcss,CSS))
|
|
|
|
$(eval $(call pkg_config_find_and_add,libdom,DOM))
|
|
|
|
$(eval $(call pkg_config_find_and_add,libnsutils,nsutils))
|
|
|
|
-$(eval $(call pkg_config_find_and_add,libutf8proc,utf8proc))
|
|
|
|
|
|
|
|
# Common libraries without pkg-config support
|
|
|
|
-LDFLAGS += -lz
|
|
|
|
+LDFLAGS += -lz -lutf8proc
|
|
|
|
|
|
|
|
# Optional libraries with pkgconfig
|
|
|
|
|
2018-08-29 21:12:58 +02:00
|
|
|
--- netsurf-3.8/utils/idna.c
|
|
|
|
+++ netsurf-3.8/utils/idna.c
|
|
|
|
@@ -27,7 +27,7 @@
|
gnu: netsurf: Use unbundled source.
* gnu/packages/patches/netsurf-system-utf8proc.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/web.scm (netsurf)[source]: Use it. Change to unbundled source
tarball.
[native-inputs]: Add netsurf-buildsystem, nsgenbind. Remove flex, bison.
[inputs]: Add utf8proc, libcss, libdom, libnsbmp, libnsgif, libnspsl,
libnsutils, libsvgtiny. Remove expat, gperf.
[arguments]: Adjust #:make-flags for netsurf-buildsystem. Delete configure
phase. Adjust source directories.
2017-02-12 19:52:21 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2018-08-29 21:12:58 +02:00
|
|
|
#include <sys/types.h>
|
gnu: netsurf: Use unbundled source.
* gnu/packages/patches/netsurf-system-utf8proc.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/web.scm (netsurf)[source]: Use it. Change to unbundled source
tarball.
[native-inputs]: Add netsurf-buildsystem, nsgenbind. Remove flex, bison.
[inputs]: Add utf8proc, libcss, libdom, libnsbmp, libnsgif, libnspsl,
libnsutils, libsvgtiny. Remove expat, gperf.
[arguments]: Adjust #:make-flags for netsurf-buildsystem. Delete configure
phase. Adjust source directories.
2017-02-12 19:52:21 +01:00
|
|
|
-#include <libutf8proc/utf8proc.h>
|
|
|
|
+#include <utf8proc.h>
|
|
|
|
|
2018-08-29 21:12:58 +02:00
|
|
|
#include "netsurf/inttypes.h"
|
|
|
|
|
|
|
|
--- netsurf-3.8/test/Makefile
|
|
|
|
+++ netsurf-3.8/test/Makefile
|
|
|
|
@@ -142,14 +142,15 @@
|
2017-11-05 18:56:59 +01:00
|
|
|
-Itest -Iinclude -Icontent/handlers -Ifrontends -I. -I.. \
|
|
|
|
-Dnsgtk \
|
2018-08-29 21:12:58 +02:00
|
|
|
$(SAN_FLAGS) \
|
2017-11-05 18:56:59 +01:00
|
|
|
- $(shell pkg-config --cflags libcurl libparserutils libwapcaplet libdom libnsutils libutf8proc) \
|
|
|
|
+ $(shell pkg-config --cflags libcurl libparserutils libwapcaplet libdom libnsutils) \
|
|
|
|
$(LIB_CFLAGS)
|
|
|
|
TESTCFLAGS := $(BASE_TESTCFLAGS) \
|
|
|
|
$(COV_CFLAGS) \
|
|
|
|
$(COV_CPPFLAGS)
|
|
|
|
|
|
|
|
TESTLDFLAGS := -L$(TESTROOT) \
|
|
|
|
- $(shell pkg-config --libs libcurl libparserutils libwapcaplet libdom libnsutils libutf8proc) -lz \
|
2018-08-29 21:12:58 +02:00
|
|
|
+ $(shell pkg-config --libs libcurl libparserutils libwapcaplet libdom libnsutils) \
|
|
|
|
+ $(LDFLAGS) \
|
|
|
|
$(SAN_FLAGS) \
|
2017-11-05 18:56:59 +01:00
|
|
|
$(LIB_LDFLAGS)\
|
|
|
|
$(COV_LDFLAGS)
|