blob: a8ed5808ef986a5a980ef4ba1365ef15a1c5184f (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit autotools eutils
DESCRIPTION="A free implementation of the unicode bidirectional algorithm"
HOMEPAGE="http://fribidi.org/"
SRC_URI="http://fribidi.org/download/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
IUSE="static-libs"
RESTRICT="test" #397347
RDEPEND=">=dev-libs/glib-2"
DEPEND="${RDEPEND}
virtual/pkgconfig"
DOCS="AUTHORS NEWS README ChangeLog THANKS TODO"
src_prepare() {
epatch \
"${FILESDIR}"/${PN}-0.19.2-nodoc.patch \
"${FILESDIR}"/${P}-signedwarning.patch
# Fix compability with dev-libs/glib >= 2.31
sed -i \
-e '/include/s:<glib/gstrfuncs.h>:<glib.h>:' \
-e '/include/s:<glib/gmem.h>:<glib.h>:' \
charset/fribidi-char-sets.c lib/mem.h || die
eautoreconf
}
src_configure() {
# --with-glib=yes is required for #345621 to ensure "Requires: glib-2.0" is
# present in /usr/lib/pkgconfig/fribidi.pc
econf \
$(use_enable static-libs static) \
--with-glib=yes
}
src_install() {
default
prune_libtool_files
}
|