From 3fc42fac0dc272e1be9dbfa3b57e3a54b8495088 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Wed, 2 Sep 2009 02:09:22 +0000 Subject: Cleanup ebuild slightly, and add linux-headers dep to avoid compile failures due to uint64_t. Also update RESTRICT to include bindist as the license prohibits it, as nice as it would be to have this on install media. (Portage version: 2.2_rc40/cvs/Linux x86_64) --- sys-block/lsiutil/ChangeLog | 6 +++++- sys-block/lsiutil/lsiutil-1.60-r1.ebuild | 22 ++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/sys-block/lsiutil/ChangeLog b/sys-block/lsiutil/ChangeLog index 424b56dcee1a..80f4d7e65129 100644 --- a/sys-block/lsiutil/ChangeLog +++ b/sys-block/lsiutil/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-block/lsiutil # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-block/lsiutil/ChangeLog,v 1.4 2009/05/07 13:09:57 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-block/lsiutil/ChangeLog,v 1.5 2009/09/02 02:09:22 robbat2 Exp $ + + 02 Sep 2009; Robin H. Johnson lsiutil-1.60-r1.ebuild: + Cleanup ebuild slightly, and add linux-headers dep to avoid compile + failures due to uint64_t. *lsiutil-1.60-r1 (07 May 2009) diff --git a/sys-block/lsiutil/lsiutil-1.60-r1.ebuild b/sys-block/lsiutil/lsiutil-1.60-r1.ebuild index 74853a9ff609..124983a825b0 100644 --- a/sys-block/lsiutil/lsiutil-1.60-r1.ebuild +++ b/sys-block/lsiutil/lsiutil-1.60-r1.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-block/lsiutil/lsiutil-1.60-r1.ebuild,v 1.1 2009/05/07 13:09:57 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-block/lsiutil/lsiutil-1.60-r1.ebuild,v 1.2 2009/09/02 02:09:22 robbat2 Exp $ inherit toolchain-funcs DESCRIPTION="LSI Logic Fusion MPT Command Line Interface management tool" HOMEPAGE="http://www.lsi.com/" -SRC_URI="http://www.lsi.com/DistributionSystem/AssetDocument/support/downloads/hbas/fibre_channel/hardware_drivers/LSIUtil%20Kit_1.60.zip" +SRC_URI="http://www.lsi.com/DistributionSystem/AssetDocument/support/downloads/hbas/fibre_channel/hardware_drivers/LSIUtil%20Kit_${PV}.zip" LICENSE="LSI" SLOT="0" @@ -15,32 +15,30 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" -RESTRICT="strip mirror test" +RESTRICT="strip mirror test bindist" RDEPEND="" -DEPEND="app-arch/unzip" +DEPEND="app-arch/unzip + >=sys-kernel/linux-headers-2.6.27-r2" -S=${WORKDIR} +S="${WORKDIR}/${PN}" src_unpack() { unpack ${A} - cd "${S}" + # nested files unpack ./Source/${PN}.tar.gz } src_compile() { - cd "${S}"/${PN} - $(tc-getCC) ${CFLAGS} -o ${PN} ${PN}.c || die "emake failed." + $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN} ${PN}.c || die "emake failed." } src_install() { - dosbin ${PN}/${PN} || die "dosbin failed." - dodoc "${S}"/*.txt + dosbin ${PN} || die "dosbin failed." + dodoc "${WORKDIR}"/*.txt } pkg_postinst() { - einfo einfo "See LsiUtil_ReadMe.txt for a list of supported controllers" einfo "and general usage information." - einfo } -- cgit v1.2.3-65-gdbad