You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-block/smp_utils/smp_utils-0.96.ebuild

36 lines
854 B

# 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
}