Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libutf8proc/, dev-libs/libutf8proc/files/
Date: Sat, 06 Apr 2019 20:01:00
Message-Id: 1554580834.2a218bae1566e59a476278e3725ba8b8363af2e6.vdupras@gentoo
1 commit: 2a218bae1566e59a476278e3725ba8b8363af2e6
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 6 20:00:34 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 6 20:00:34 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a218bae
7
8 dev-libs/libutf8proc: bump to 2.3.0
9
10 Also, change upstream to what most revdeps assume: julia-maintained
11 utf8proc.
12
13 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
14 Package-Manager: Portage-2.3.62, Repoman-2.3.11
15
16 dev-libs/libutf8proc/Manifest | 1 +
17 .../files/libutf8proc-2.3.0-no-static.patch | 21 +++++++++++++
18 dev-libs/libutf8proc/libutf8proc-2.3.0.ebuild | 34 ++++++++++++++++++++++
19 3 files changed, 56 insertions(+)
20
21 diff --git a/dev-libs/libutf8proc/Manifest b/dev-libs/libutf8proc/Manifest
22 index e842a463ab6..a49190ee9c9 100644
23 --- a/dev-libs/libutf8proc/Manifest
24 +++ b/dev-libs/libutf8proc/Manifest
25 @@ -1 +1,2 @@
26 DIST libutf8proc-2.2.0-1-src.tar.gz 156447 BLAKE2B 1ccf32760bcb8a0d4d9fbf94177ffee97e735a8cb309d5522df1b5ecd5f313a6d0c681209adb066c16ac65573c9c1edaa336b52de1b057a4b74ed6a7e9ca2671 SHA512 eedaafb2fdb3b6bd47da002a48043c26c1cd3c6b96c447a02f2fea19954c1689dcdb5f64b7c662dd8c5de4f971d75b2d69c8483bd29d49675ef47b362ad0c9ad
27 +DIST libutf8proc-2.3.0.tar.gz 154282 BLAKE2B d9e33cb9e3e587ddcb2c72cb84cb97ed5481a837df788636990f29415beff20dcc80985f2d2354b43f244b6a8122d3bffd9bd1e91c321f22a0ea70015b6ed611 SHA512 3935cd280e14ed570caa89a983b2d56a981e74da9298a1ea26064da78ece288ff48a73306446d3e1d777e6ecd8ea881f7a29169eaae2153cb015daefb8df8656
28
29 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
30 new file mode 100644
31 index 00000000000..75e9eaac6b5
32 --- /dev/null
33 +++ b/dev-libs/libutf8proc/files/libutf8proc-2.3.0-no-static.patch
34 @@ -0,0 +1,21 @@
35 +diff --git a/Makefile b/Makefile
36 +index e3310f7..44c8977 100644
37 +--- a/Makefile
38 ++++ b/Makefile
39 +@@ -46,7 +46,7 @@ pkgincludedir=$(includedir:$(prefix)/%=%)
40 +
41 + .PHONY: all clean data update manifest install
42 +
43 +-all: libutf8proc.a libutf8proc.$(SHLIB_EXT)
44 ++all: libutf8proc.$(SHLIB_EXT)
45 +
46 + clean:
47 + rm -f utf8proc.o libutf8proc.a libutf8proc.$(SHLIB_VERS_EXT) libutf8proc.$(SHLIB_EXT)
48 +@@ -104,7 +104,6 @@ install: libutf8proc.a libutf8proc.$(SHLIB_EXT) libutf8proc.$(SHLIB_VERS_EXT) li
49 + mkdir -m 755 -p $(DESTDIR)$(includedir)
50 + $(INSTALL) -m 644 utf8proc.h $(DESTDIR)$(includedir)
51 + mkdir -m 755 -p $(DESTDIR)$(libdir)
52 +- $(INSTALL) -m 644 libutf8proc.a $(DESTDIR)$(libdir)
53 + $(INSTALL) -m 755 libutf8proc.$(SHLIB_VERS_EXT) $(DESTDIR)$(libdir)
54 + mkdir -m 755 -p $(DESTDIR)$(pkgconfigdir)
55 + $(INSTALL) -m 644 libutf8proc.pc $(DESTDIR)$(pkgconfigdir)/libutf8proc.pc
56
57 diff --git a/dev-libs/libutf8proc/libutf8proc-2.3.0.ebuild b/dev-libs/libutf8proc/libutf8proc-2.3.0.ebuild
58 new file mode 100644
59 index 00000000000..ea48c910201
60 --- /dev/null
61 +++ b/dev-libs/libutf8proc/libutf8proc-2.3.0.ebuild
62 @@ -0,0 +1,34 @@
63 +# Copyright 1999-2019 Gentoo Authors
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=7
67 +
68 +inherit toolchain-funcs
69 +
70 +MY_P="${P#lib}"
71 +DESCRIPTION="mapping tool for UTF-8 strings"
72 +HOMEPAGE="https://github.com/JuliaStrings/utf8proc"
73 +SRC_URI="https://github.com/JuliaStrings/utf8proc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
74 +
75 +LICENSE="MIT"
76 +SLOT="0/${PV}"
77 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
78 +IUSE=""
79 +
80 +S="${WORKDIR}/${MY_P}"
81 +
82 +PATCHES=(
83 + # Don't build or install static libs
84 + "${FILESDIR}/${PN}-2.3.0-no-static.patch"
85 +)
86 +
87 +src_install() {
88 + emake DESTDIR="${D}" prefix=/usr libdir=/usr/$(get_libdir) install
89 + # This package used to use netsurf's version as an upstream, which lives in
90 + # its own little world. Unlike julia's version, it puts its header file
91 + # in libutf8proc/utf8proc.h instead of utf8proc.h. The problem is that
92 + # revdeps are *already* patched to ajust to this. As a transitionary
93 + # measure until we unpatch revdeps, we add a symlink to utf8proc.h.
94 + dodir /usr/include/libutf8proc
95 + dosym ../utf8proc.h /usr/include/libutf8proc/utf8proc.h
96 +}