summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2010-11-17 19:22:54 +0000
committerMichał Górny <mgorny@gentoo.org>2010-11-17 19:22:54 +0000
commit2547a4495bc9eb03fbb6428ba25d8d1e49a624ef (patch)
tree1f699d08f78a44daf2fc070ead8b693a25745ec4 /sys-apps
parentapp-mobilephone/series60-remote: Version bump (diff)
downloadsunrise-2547a4495bc9eb03fbb6428ba25d8d1e49a624ef.tar.gz
sunrise-2547a4495bc9eb03fbb6428ba25d8d1e49a624ef.tar.bz2
sunrise-2547a4495bc9eb03fbb6428ba25d8d1e49a624ef.zip
sys-apps/hd-idle: Fix S= variable use. Respect CC, CFLAGS and LDFLAGS.
(Portage version: 2.2.0_alpha4/git/Linux x86_64, signed Manifest commit with key 05DE07BB) svn path=/sunrise/; revision=11557
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/hd-idle/ChangeLog3
-rw-r--r--sys-apps/hd-idle/Manifest14
-rw-r--r--sys-apps/hd-idle/hd-idle-1.02.ebuild13
3 files changed, 24 insertions, 6 deletions
diff --git a/sys-apps/hd-idle/ChangeLog b/sys-apps/hd-idle/ChangeLog
index ce9b08fe8..c01735ac5 100644
--- a/sys-apps/hd-idle/ChangeLog
+++ b/sys-apps/hd-idle/ChangeLog
@@ -2,6 +2,9 @@
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 17 Nov 2010; Michał Górny <mgorny@gentoo.org> hd-idle-1.02.ebuild:
+ Fix S= variable use. Respect CC, CFLAGS and LDFLAGS.
+
14 Nov 2010; Matthias Treydte <waldheinz@gmail.com> -hd-idle-1.01.ebuild,
+hd-idle-1.02.ebuild:
Version bump for hd-idle
diff --git a/sys-apps/hd-idle/Manifest b/sys-apps/hd-idle/Manifest
index e036c6d96..fda43e5b4 100644
--- a/sys-apps/hd-idle/Manifest
+++ b/sys-apps/hd-idle/Manifest
@@ -1,6 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX hd-idle-conf 1422 RMD160 4ee3a2e3a49d337c1f28c7a9216d017628993fd3 SHA1 f4b1acbce6fac19727f1d4e0d904530cc6e68c8b SHA256 34a049765a2825bbe2a01cd1130642e3b20bbf38c678f15ada563b41d9fcf6b8
AUX hd-idle-init 267 RMD160 2e61b95ae275edcc41267cfd1adf743f7114b8e1 SHA1 3d907c8fb4fec667fc6bffe9e903b16ac460f9a2 SHA256 0442322e45ae079154ad574aa4067434cb3faa8b953e2d392800207d1aec5035
DIST hd-idle-1.02.tgz 15467 RMD160 77a8a2494c9d89f32fcced43581d7a769c297e11 SHA1 fe783494e949fca0e43725c5bbf2d98362915a09 SHA256 50e9f5030fed045e8854a16273dc43f9ae87fe00d80e86157218e70075de6ea3
-EBUILD hd-idle-1.02.ebuild 962 RMD160 9713587792d9b1c054300d252e05e89316396156 SHA1 d5232819e7c53a08de5f199a23fbcd1db2ae777e SHA256 bda7cc09d0cd738e5a1e5f88099d0b54eb4f9817c6ea421cea2ce9714d61b9ee
-MISC ChangeLog 450 RMD160 4dac9d26e8f40e0646571f405d3170b5d108bb5d SHA1 21df3d55a525094fcee06463126bb34bed2ff0d8 SHA256 5a643c9b504b1a2c274d32ca687fbf9cdbe70463115e1208e567f942705b31e8
+EBUILD hd-idle-1.02.ebuild 1081 RMD160 13f3e2bb21d8c88ef52b4f4ed96fc91a4681d5c4 SHA1 f75706d2ef9591a9dd31f47fefa1e4e855c95e6c SHA256 7edb509ad90c99546d9af86a6dfc97195fb6dd2b885233e44df136432a42836c
+MISC ChangeLog 577 RMD160 abd2536f6d0bc796f59fdda575d56b98695ebd10 SHA1 aeecdd0ea56609d2e9d4dfe1b9696aa7302e9da4 SHA256 08335131e56091c42854dc4954d406aca21021582b171cb6f0f4e93917e19457
MISC metadata.xml 231 RMD160 6aebfea93d789d2b96ea6d8259dc842dd1fdacd3 SHA1 e10a04c4c18a66af326abc1f40c61b28cc610fae SHA256 48054ea190d00518c1e035fc6663b2368854cdea5ff69a94830e4f9a38260987
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iEYEARECAAYFAkzkKwIACgkQnGSe5QXeB7uIOQCgn/o2iUxPIBL9mpXQsd61uk1R
+w2gAoIJ85LFNDEucfwKPOgrdZ10lpjFp
+=geVr
+-----END PGP SIGNATURE-----
diff --git a/sys-apps/hd-idle/hd-idle-1.02.ebuild b/sys-apps/hd-idle/hd-idle-1.02.ebuild
index 6130739f4..262018f4c 100644
--- a/sys-apps/hd-idle/hd-idle-1.02.ebuild
+++ b/sys-apps/hd-idle/hd-idle-1.02.ebuild
@@ -2,6 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+inherit toolchain-funcs
+
DESCRIPTION="Utility for spinning down hard disks after a period of idle time"
HOMEPAGE="http://hd-idle.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
@@ -11,9 +13,12 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-src_unpack() {
- unpack ${A} || die "unpack failed"
- mv "${PN}" "${P}" || die "renaming source folder failed"
+S=${WORKDIR}/${PN}
+
+src_compile() {
+ # CC_DEBUG is now used with linking only, so it's a good place
+ # to push the LDFLAGS into.
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" CC_DEBUG="${LDFLAGS}" || die
}
src_install() {
@@ -23,7 +28,7 @@ src_install() {
}
pkg_postinst() {
- if [ ! -f /proc/diskstats ]
+ if [[ ! -f /proc/diskstats ]]
then
ewarn "Please note that hd-idle uses /proc/diskstats to read disk"
ewarn "statistics. If this file is not present, hd-idle won't work."