| 1 |
# Copyright 1999-2010 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/raidutils/raidutils-0.0.6-r2.ebuild,v 1.3 2010/07/20 08:22:16 fauli Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
inherit eutils
|
| 7 |
|
| 8 |
DESCRIPTION="Utilities to manage i2o/dtp RAID controllers."
|
| 9 |
HOMEPAGE="http://i2o.shadowconnect.com/"
|
| 10 |
# http://cvs.fedoraproject.org/viewvc/rpms/raidutils/devel/
|
| 11 |
SRC_URI="http://i2o.shadowconnect.com/raidutils/${P}.tar.bz2
|
| 12 |
mirror://gentoo/${PN}-rpm.patch.bz2"
|
| 13 |
|
| 14 |
LICENSE="BSD"
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS="amd64 x86"
|
| 17 |
IUSE="static-libs"
|
| 18 |
|
| 19 |
DEPEND=">=sys-kernel/linux-headers-2.6"
|
| 20 |
RDEPEND=""
|
| 21 |
|
| 22 |
src_prepare() {
|
| 23 |
epatch "${WORKDIR}"/${PN}-rpm.patch \
|
| 24 |
"${FILESDIR}"/${P}-gcc45.patch
|
| 25 |
}
|
| 26 |
|
| 27 |
src_configure() {
|
| 28 |
econf \
|
| 29 |
--disable-dependency-tracking \
|
| 30 |
$(use_enable static-libs static)
|
| 31 |
}
|
| 32 |
|
| 33 |
src_compile() {
|
| 34 |
emake -j1 || die
|
| 35 |
}
|
| 36 |
|
| 37 |
src_install() {
|
| 38 |
emake DESTDIR="${D}" install || die
|
| 39 |
dodoc AUTHORS ChangeLog NEWS
|
| 40 |
find "${D}" -name '*.la' -delete
|
| 41 |
}
|