Diff libutf8proc-2.2.0_p1-r1 with a libutf8proc-2.4.0

/usr/portage/dev-libs/libutf8proc/libutf8proc-2.4.0.ebuild 2019-06-12 20:39:00.000000000 +0300
5 5

  
6 6
inherit toolchain-funcs
7 7

  
8
MY_P="${P/_p/-}"
8
MY_P="${P#lib}"
9 9
DESCRIPTION="mapping tool for UTF-8 strings"
10
HOMEPAGE="http://www.netsurf-browser.org/"
11
SRC_URI="https://download.netsurf-browser.org/libs/releases/${MY_P}-src.tar.gz"
10
HOMEPAGE="https://github.com/JuliaStrings/utf8proc"
11
SRC_URI="https://github.com/JuliaStrings/utf8proc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12 12

  
13 13
LICENSE="MIT"
14 14
SLOT="0/${PV}"
15
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86"
16
IUSE=""
17

  
18
DEPEND="dev-util/netsurf-buildsystem"
15
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux"
16
IUSE="test"
19 17

  
20 18
S="${WORKDIR}/${MY_P}"
21 19

  
20
BDEPEND="test? ( =app-i18n/unicode-data-12.0* )"
21

  
22
PATCHES=(
23
	# Don't build or install static libs
24
	"${FILESDIR}/${PN}-2.3.0-no-static.patch"
25
	# use app-i18n/unicode-data for test data instead of curl
26
	"${FILESDIR}/${PN}-2.3.0-tests-nofetch.patch"
27
)
28

  
22 29
_emake() {
23
	source "${EPREFIX}"/usr/share/netsurf-buildsystem/gentoo-helpers.sh
24
	netsurf_define_makeconf
25
	emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@
30
	emake CC=$(tc-getCC) AR=$(tc-getAR) "$@"
26 31
}
27 32

  
28 33
src_compile() {
......
30 35
}
31 36

  
32 37
src_install() {
33
	_emake DESTDIR="${D}" install
38
	_emake DESTDIR="${D}" \
39
		prefix="${EPREFIX}/usr" \
40
		libdir="${EPREFIX}/usr/$(get_libdir)" \
41
		install
42
	# This package used to use netsurf's version as an upstream, which lives in
43
	# its own little world. Unlike julia's version, it puts its header file
44
	# in libutf8proc/utf8proc.h instead of utf8proc.h. The problem is that
45
	# revdeps are *already* patched to ajust to this. As a transitionary
46
	# measure until we unpatch revdeps, we add a symlink to utf8proc.h.
47
	dodir /usr/include/libutf8proc
48
	dosym ../utf8proc.h /usr/include/libutf8proc/utf8proc.h
49
}
50

  
51
src_test() {
52
	_emake check
34 53
}
Thank you!