blob: 398aaadaea15f1d8ddf9421e50feb2dd3a9a54e5 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-block/smp_utils/smp_utils-0.96.ebuild,v 1.1 2011/08/30 09:31:54 radhermit Exp $
EAPI=4
inherit eutils toolchain-funcs multilib
DESCRIPTION="Utilities for SAS management protocol (SMP)"
HOMEPAGE="http://sg.danny.cz/sg/smp_utils.html"
SRC_URI="http://sg.danny.cz/sg/p/${P}.tgz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
src_prepare() {
epatch "${FILESDIR}"/${P}-make.patch
sed -i \
-e '/^INSTDIR=/s:/bin:/sbin:' \
-e 's:$(DESTDIR)/:$(DESTDIR):' \
-e 's:install -s :install :' \
Makefile */Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)" AR="$(tc-getAR)"
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
dodoc AUTHORS ChangeLog COVERAGE CREDITS README
}
|