# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 inherit eutils DESCRIPTION="library for processing UTF-8 encoded Unicode strings" HOMEPAGE="http://www.public-software-group.org/utf8proc" SRC_URI="http://www.public-software-group.org/pub/projects/${PN}/v${PV}/utf8proc-v${PV}.tar.gz" S="${WORKDIR}/${PN}-v${PV}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="static-libs" DEPEND="" RDEPEND="${DEPEND}" src_prepare() { epatch \ "${FILESDIR}"/${P}-soname.patch \ "${FILESDIR}"/${P}-buildflags.patch } src_compile() { emake libutf8proc.so use static-libs & emake libutf8proc.a } src_install() { doheader utf8proc.h dolib.so libutf8proc.so use static-libs && dolib.a libutf8proc.a }