blob: 266a125ce543f834895a7a0c11ad5ed9b9f1f9ff (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmba/libmba-0.9.1.ebuild,v 1.4 2008/10/27 17:07:00 jokey Exp $
inherit toolchain-funcs
DESCRIPTION="A library of generic C modules."
HOMEPAGE="http://www.ioplex.com/~miallen/libmba/"
SRC_URI="http://www.ioplex.com/~miallen/libmba/dl/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=""
RDEPEND=""
src_unpack() {
unpack ${A}
cd ${S}
rm Makefile.linux
}
src_compile() {
# Parallel make fails unless mktool is built first
emake CC="$(tc-getCC)" -j1 mktool || die "Unable to build mktool"
# Makefile uses MFLAGS, not CFLAGS
# Additional MFLAGS are from Makefile and are required
emake MFLAGS="-Isrc -W1 ${CFLAGS}" || die "emake failed"
}
src_install() {
# einstall is required here. No DESTDIR support
einstall || die "Install failed!"
dodoc README.txt docs/*.txt || die
dohtml -r docs/*.html docs/www/* docs/ref || die
insinto /usr/share/doc/${PF}/examples
doins examples/*
}
|