summaryrefslogtreecommitdiff
path: root/dev-libs/libutf8proc
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libutf8proc')
-rw-r--r--dev-libs/libutf8proc/Manifest6
-rw-r--r--dev-libs/libutf8proc/files/libutf8proc-2.3.0-no-static.patch21
-rw-r--r--dev-libs/libutf8proc/files/libutf8proc-2.3.0-tests-nofetch.patch33
-rw-r--r--dev-libs/libutf8proc/libutf8proc-2.2.0_p1-r1.ebuild2
-rw-r--r--dev-libs/libutf8proc/libutf8proc-2.3.0.ebuild38
5 files changed, 98 insertions, 2 deletions
diff --git a/dev-libs/libutf8proc/Manifest b/dev-libs/libutf8proc/Manifest
index 3d39cad4fa2a..d94bc3ffb759 100644
--- a/dev-libs/libutf8proc/Manifest
+++ b/dev-libs/libutf8proc/Manifest
@@ -1,3 +1,7 @@
+AUX libutf8proc-2.3.0-no-static.patch 859 BLAKE2B d461d31600b3ff46cdc791f058eb7bf94070579d638948d04c70a026f37334f85fddb691b31b9beaa0d0a8143f376237a017247179ab9067690c3aa4816badfa SHA512 0129963838e450cf0fd89eab811fda59348690ea45ddc132385fba7211f2afa82bb90c91d8532b2f0aef14c54eb26e02b7d39499e2d03e333fc4789279dbf55f
+AUX libutf8proc-2.3.0-tests-nofetch.patch 1219 BLAKE2B 3393e4dc8699b8672f14047334832fab56451aed2be4ae5157ed168b2161d0fc23a4ec5824afc54fc36ce97efba9ad86ecb078d649791237796cb0e4add58561 SHA512 2690738f457b524007a8c463e5b8e5de3c4eb7608c87354f0d5ddd0933af80e1bf20300aa1ebdcc740c5d000a12723401a1903939fdbd610f671feb9ed979e66
DIST libutf8proc-2.2.0-1-src.tar.gz 156447 BLAKE2B 1ccf32760bcb8a0d4d9fbf94177ffee97e735a8cb309d5522df1b5ecd5f313a6d0c681209adb066c16ac65573c9c1edaa336b52de1b057a4b74ed6a7e9ca2671 SHA512 eedaafb2fdb3b6bd47da002a48043c26c1cd3c6b96c447a02f2fea19954c1689dcdb5f64b7c662dd8c5de4f971d75b2d69c8483bd29d49675ef47b362ad0c9ad
-EBUILD libutf8proc-2.2.0_p1-r1.ebuild 727 BLAKE2B 77aa365c44a626a4f464de40eda833c278b48158f81391cf13e6ba5d8633e8c67f8d10736cff944246621a9f2b99a974fdf6d03e962602923982538577d623b6 SHA512 114b67a43e61d9c7ba44a6d4150d9c19283376299e8320812c9c1c095b48a0533ffcc6cbf9efc5d5612ec5f49e7db2de08323138caf22a831a9e0e97f48b208c
+DIST libutf8proc-2.3.0.tar.gz 154282 BLAKE2B d9e33cb9e3e587ddcb2c72cb84cb97ed5481a837df788636990f29415beff20dcc80985f2d2354b43f244b6a8122d3bffd9bd1e91c321f22a0ea70015b6ed611 SHA512 3935cd280e14ed570caa89a983b2d56a981e74da9298a1ea26064da78ece288ff48a73306446d3e1d777e6ecd8ea881f7a29169eaae2153cb015daefb8df8656
+EBUILD libutf8proc-2.2.0_p1-r1.ebuild 734 BLAKE2B 178c2fe8fe6699cb413b6bfb9f68b13b2e90abd9bafb402ff43275f2d363fcc9ba10a36c369edb6516b8acfe0c210b640fda5047dbeac89e45a803c41ea5671d SHA512 fa2c3e9e096b7b664a30c62437246e31f2cd8eb62d45c37077e76fb605f67acf0e2b80f848b946b994c85f7d2c33aee28621698a05224af5c07a29550e8fb4ea
+EBUILD libutf8proc-2.3.0.ebuild 1258 BLAKE2B e133fd86e6b2fb30707a15750c4db592716c7fef37626d21c7809dfc1606458dbfbaf81140ca33c0ac950685abbf41a54f5c9bd1112531aa6ac4b9a93b25664c SHA512 b851fd38045521c43834da48dad3e3b5fa2c02ca095676832cbe5f17db6670226422169590bc2f3c9d7c2d6764c50606e3bede2b06aac8fe7296eb8170f08064
MISC metadata.xml 247 BLAKE2B 6a66309df2e6d095dcb3c45e08b061e6e9bf2a074da8beeb37f4d5d4c523f9c09b1bc15afea9c73cd5da6c317b5f47549a5affa40438cf1bbb14b097654170fa SHA512 032acc8722c09ff98d8a24e355eaa2962e97f11ec990029198b123f568d7680b0e8416c1cac716faf4c08e08968cb10fa046869df7ee35f396ba691fc4c20cfc
diff --git a/dev-libs/libutf8proc/files/libutf8proc-2.3.0-no-static.patch b/dev-libs/libutf8proc/files/libutf8proc-2.3.0-no-static.patch
new file mode 100644
index 000000000000..75e9eaac6b53
--- /dev/null
+++ b/dev-libs/libutf8proc/files/libutf8proc-2.3.0-no-static.patch
@@ -0,0 +1,21 @@
+diff --git a/Makefile b/Makefile
+index e3310f7..44c8977 100644
+--- a/Makefile
++++ b/Makefile
+@@ -46,7 +46,7 @@ pkgincludedir=$(includedir:$(prefix)/%=%)
+
+ .PHONY: all clean data update manifest install
+
+-all: libutf8proc.a libutf8proc.$(SHLIB_EXT)
++all: libutf8proc.$(SHLIB_EXT)
+
+ clean:
+ rm -f utf8proc.o libutf8proc.a libutf8proc.$(SHLIB_VERS_EXT) libutf8proc.$(SHLIB_EXT)
+@@ -104,7 +104,6 @@ install: libutf8proc.a libutf8proc.$(SHLIB_EXT) libutf8proc.$(SHLIB_VERS_EXT) li
+ mkdir -m 755 -p $(DESTDIR)$(includedir)
+ $(INSTALL) -m 644 utf8proc.h $(DESTDIR)$(includedir)
+ mkdir -m 755 -p $(DESTDIR)$(libdir)
+- $(INSTALL) -m 644 libutf8proc.a $(DESTDIR)$(libdir)
+ $(INSTALL) -m 755 libutf8proc.$(SHLIB_VERS_EXT) $(DESTDIR)$(libdir)
+ mkdir -m 755 -p $(DESTDIR)$(pkgconfigdir)
+ $(INSTALL) -m 644 libutf8proc.pc $(DESTDIR)$(pkgconfigdir)/libutf8proc.pc
diff --git a/dev-libs/libutf8proc/files/libutf8proc-2.3.0-tests-nofetch.patch b/dev-libs/libutf8proc/files/libutf8proc-2.3.0-tests-nofetch.patch
new file mode 100644
index 000000000000..5750b43ad5fc
--- /dev/null
+++ b/dev-libs/libutf8proc/files/libutf8proc-2.3.0-tests-nofetch.patch
@@ -0,0 +1,33 @@
+diff --git a/data/Makefile b/data/Makefile
+index f5d1dd9..60c09e3 100644
+--- a/data/Makefile
++++ b/data/Makefile
+@@ -10,6 +10,7 @@ PERL=perl
+ MAKE=make
+ JULIA=julia
+ CURLFLAGS = --retry 5 --location
++UDATA=/usr/share/unicode-data
+
+ .PHONY: clean
+
+@@ -25,6 +26,7 @@ CharWidths.txt: charwidths.jl EastAsianWidth.txt
+ UNICODE_VERSION=12.0.0
+
+ UnicodeData.txt:
++ cp $(UDATA)/$@ $@
+ $(CURL) $(CURLFLAGS) -o $@ -O http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/UnicodeData.txt
+
+ EastAsianWidth.txt:
+@@ -43,10 +45,10 @@ CaseFolding.txt:
+ $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/CaseFolding.txt
+
+ NormalizationTest.txt:
+- $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/NormalizationTest.txt
++ cp $(UDATA)/$@ $@
+
+ GraphemeBreakTest.txt:
+- $(CURL) $(CURLFLAGS) $(URLCACHE)http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/auxiliary/GraphemeBreakTest.txt | $(PERL) -pe 's,÷,/,g;s,×,+,g' > $@
++ cat $(UDATA)/auxiliary/$@ | $(PERL) -pe 's,÷,/,g;s,×,+,g' > $@
+
+ emoji-data.txt:
+ $(CURL) $(CURLFLAGS) -o $@ -O $(URLCACHE)http://unicode.org/Public/emoji/`echo $(UNICODE_VERSION) | cut -d. -f1-2`/emoji-data.txt
diff --git a/dev-libs/libutf8proc/libutf8proc-2.2.0_p1-r1.ebuild b/dev-libs/libutf8proc/libutf8proc-2.2.0_p1-r1.ebuild
index 71b876c663db..9e5c990c74f5 100644
--- a/dev-libs/libutf8proc/libutf8proc-2.2.0_p1-r1.ebuild
+++ b/dev-libs/libutf8proc/libutf8proc-2.2.0_p1-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://download.netsurf-browser.org/libs/releases/${MY_P}-src.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86"
IUSE=""
DEPEND="dev-util/netsurf-buildsystem"
diff --git a/dev-libs/libutf8proc/libutf8proc-2.3.0.ebuild b/dev-libs/libutf8proc/libutf8proc-2.3.0.ebuild
new file mode 100644
index 000000000000..3b3b3a532031
--- /dev/null
+++ b/dev-libs/libutf8proc/libutf8proc-2.3.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+MY_P="${P#lib}"
+DESCRIPTION="mapping tool for UTF-8 strings"
+HOMEPAGE="https://github.com/JuliaStrings/utf8proc"
+SRC_URI="https://github.com/JuliaStrings/utf8proc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+
+S="${WORKDIR}/${MY_P}"
+
+BDEPEND="test? ( =app-i18n/unicode-data-12.0* )"
+
+PATCHES=(
+ # Don't build or install static libs
+ "${FILESDIR}/${PN}-2.3.0-no-static.patch"
+ # use app-i18n/unicode-data for test data instead of curl
+ "${FILESDIR}/${PN}-2.3.0-tests-nofetch.patch"
+)
+
+src_install() {
+ emake DESTDIR="${D}" prefix=/usr libdir=/usr/$(get_libdir) install
+ # This package used to use netsurf's version as an upstream, which lives in
+ # its own little world. Unlike julia's version, it puts its header file
+ # in libutf8proc/utf8proc.h instead of utf8proc.h. The problem is that
+ # revdeps are *already* patched to ajust to this. As a transitionary
+ # measure until we unpatch revdeps, we add a symlink to utf8proc.h.
+ dodir /usr/include/libutf8proc
+ dosym ../utf8proc.h /usr/include/libutf8proc/utf8proc.h
+}