summaryrefslogtreecommitdiff
blob: fc3ead04eade0ccd3211ca15374238a3100339d6 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=2
inherit eutils multilib toolchain-funcs

DESCRIPTION="A general purpose library for ACPI"
HOMEPAGE="http://www.ngolde.de/libacpi.html"
SRC_URI="http://www.ngolde.de/download/${P}.tar.gz"

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

src_prepare() {
	epatch "${FILESDIR}"/${P}.patch
}

src_compile() {
	tc-export AR CC RANLIB
	emake || die
}

src_install() {
	emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install || die
	prepalldocs
}