aboutsummaryrefslogtreecommitdiff
blob: e00835dec735bc17d99bb1a73cb72b665143f00b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit eutils toolchain-funcs

DESCRIPTION="library for processing UTF-8 encoded Unicode strings"
HOMEPAGE="http://www.public-software-group.org/utf8proc"
SRC_URI="https://github.com/JuliaLang/${PN}/archive/v1.2.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="static-libs"

src_prepare() {
	epatch "${FILESDIR}"/"${P}"-buildflags.patch
}

src_compile() {
	emake \
		libutf8proc.so \
		$(usex static-libs libutf8proc.a "") \
		CC=$(tc-getCC) \
		AR=$(tc-getAR)
#		CFLAGS="${CFLAGS}"
#		LDFLAGS="${LDFLAGS} -Wl,--soname,lib${PN}.${PV}"
}

src_install() {
	doheader utf8proc.h
	dolib.so libutf8proc.so*
	use static-libs && dolib.a libutf8proc.a
}