summaryrefslogtreecommitdiff
blob: c9fbf411ce7b78f115184db757e75ae9e95a02f4 (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
# Copyright 1999-2007 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.3 2007/07/12 02:25:35 mr_bones_ Exp $

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 -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/*
}