summaryrefslogtreecommitdiff
blob: b88f688f4d7a76145ec5b967117ba26b8b99cb07 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/libffi-3.0.8.ebuild,v 1.1 2008/12/24 18:31:29 wormo Exp $

inherit eutils

DESCRIPTION="a portable, high level programming interface to various calling conventions."
HOMEPAGE="http://sourceware.org/libffi"
SRC_URI="ftp://sourceware.org/pub/${PN}/${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug test"

DEPEND="test? ( dev-util/dejagnu )"
RDEPEND=""

pkg_setup() {
	ewarn "This package provides a separate libffi which may conflict with the"
	ewarn "one provided by sys-devel/gcc when it is built with libffi use flag on."
	ebeep
}

src_compile() {
	econf --disable-dependency-tracking \
		$(use_enable debug) || die "econf failed."
	emake || die "emake failed."
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed."
	dodoc ChangeLog* README TODO
}