summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-07 21:55:17 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-07 21:55:17 +0000
commit30aa82d5b410ffe2b87d2fae502f9da011b1e17d (patch)
tree485c5b75492b0efbfb15a9fa617dd2d13f479969 /sys-apps/hdparm
parentVersion bump (Manifest recommit) (diff)
downloadgentoo-2-30aa82d5b410ffe2b87d2fae502f9da011b1e17d.tar.gz
gentoo-2-30aa82d5b410ffe2b87d2fae502f9da011b1e17d.tar.bz2
gentoo-2-30aa82d5b410ffe2b87d2fae502f9da011b1e17d.zip
use toolchain-funcs instead of gcc eclass
Diffstat (limited to 'sys-apps/hdparm')
-rw-r--r--sys-apps/hdparm/hdparm-5.8.ebuild21
1 files changed, 9 insertions, 12 deletions
diff --git a/sys-apps/hdparm/hdparm-5.8.ebuild b/sys-apps/hdparm/hdparm-5.8.ebuild
index b7f5f0d3226f..e9595fad236a 100644
--- a/sys-apps/hdparm/hdparm-5.8.ebuild
+++ b/sys-apps/hdparm/hdparm-5.8.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-5.8.ebuild,v 1.1 2004/11/23 16:20:39 chainsaw Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-5.8.ebuild,v 1.2 2004/12/07 21:55:17 vapier Exp $
-inherit gcc
+inherit toolchain-funcs
DESCRIPTION="Utility to change hard drive performance parameters"
HOMEPAGE="http://www.ibiblio.org/pub/Linux/system/hardware/"
@@ -13,29 +13,26 @@ SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE=""
-DEPEND="virtual/libc"
+RDEPEND="virtual/libc"
+DEPEND="${RDEPEND}
+ >=sys-apps/portage-2.0.51"
src_unpack() {
unpack ${A}
cd ${S}
- sed -i \
- -e "/^CC/s:gcc:$(gcc-getCC):" \
- -e "/^CFLAGS/s:-O2:${CFLAGS}:" \
- Makefile || die
+ sed -i -e "/^CFLAGS/s:-O2:${CFLAGS}:" Makefile || die "sed"
}
src_compile() {
- emake || die "compile error"
+ emake CC="$(tc-getCC)" || die "compile error"
}
src_install() {
into /
dosbin hdparm contrib/idectl || die "dosbin"
- exeinto /etc/init.d
- newexe ${FILESDIR}/hdparm-init-7 hdparm || die "init.d"
- insinto /etc/conf.d
- newins ${FILESDIR}/hdparm-conf.d.3 hdparm
+ newinitd ${FILESDIR}/hdparm-init-7 hdparm
+ newconfd ${FILESDIR}/hdparm-conf.d.3 hdparm
doman hdparm.8
dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig