summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-03-22 04:08:29 +0000
committerMike Frysinger <vapier@gentoo.org>2004-03-22 04:08:29 +0000
commit5f4189b0a5dfe508b726d620d38cf381b894a81e (patch)
tree4ba202d05f5f4153d702a1281b91a4b94b5602d3 /sys-apps
parentalways run configure with --host and add --build when CBUILD is set (diff)
downloadgentoo-2-5f4189b0a5dfe508b726d620d38cf381b894a81e.tar.gz
gentoo-2-5f4189b0a5dfe508b726d620d38cf381b894a81e.tar.bz2
gentoo-2-5f4189b0a5dfe508b726d620d38cf381b894a81e.zip
make sure we use custom CC and CFLAGS
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/hdparm/hdparm-5.5.ebuild31
1 files changed, 22 insertions, 9 deletions
diff --git a/sys-apps/hdparm/hdparm-5.5.ebuild b/sys-apps/hdparm/hdparm-5.5.ebuild
index f2394eaff39c..65b627438eba 100644
--- a/sys-apps/hdparm/hdparm-5.5.ebuild
+++ b/sys-apps/hdparm/hdparm-5.5.ebuild
@@ -1,11 +1,12 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-5.5.ebuild,v 1.3 2004/03/02 16:55:39 iggy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hdparm/hdparm-5.5.ebuild,v 1.4 2004/03/22 04:08:29 vapier Exp $
+
+inherit gcc eutils
-S=${WORKDIR}/${P}
DESCRIPTION="Utility to change hard drive performance parameters"
-SRC_URI="http://www.ibiblio.org/pub/Linux/system/hardware/${P}.tar.gz"
HOMEPAGE="http://www.ibiblio.org/pub/Linux/system/hardware/"
+SRC_URI="http://www.ibiblio.org/pub/Linux/system/hardware/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
@@ -13,13 +14,17 @@ KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~alpha ~hppa ~ia64 mips ~ppc64 s390"
DEPEND="virtual/glibc"
-src_compile() {
- einfo ""
- einfo "The rc-script for hdparm has been updated, so make sure "
- einfo "that you etc-update. The script is much more configurable"
- einfo "for details please see /etc/conf.d/hdparm"
- einfo ""
+src_unpack() {
+ unpack ${A}
+ cd ${S}
epatch ${FILESDIR}/${PN}-5.4-readahead_rename.patch
+ sed -i \
+ -e "/^CC/s:gcc:$(gcc-getCC):" \
+ -e "/^CFLAGS/s:-O2:${CFLAGS}:" \
+ Makefile || die
+}
+
+src_compile() {
emake || die "compile error"
}
@@ -36,3 +41,11 @@ src_install() {
doman hdparm.8
dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig
}
+
+pkg_postinst() {
+ einfo ""
+ einfo "The rc-script for hdparm has been updated, so make sure "
+ einfo "that you etc-update. The script is much more configurable"
+ einfo "for details please see /etc/conf.d/hdparm"
+ einfo ""
+}