summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2008-11-02 11:03:53 +0000
committerMarkus Meier <maekke@gentoo.org>2008-11-02 11:03:53 +0000
commit5f30a9ca0527ed8f17640f3462a0ea59e1333fba (patch)
tree096cd1d5d99593bb085b990e06972669f1cdcb03 /app-admin/mcelog/mcelog-0.7.ebuild
parentfix ChangeLog header (diff)
downloadgentoo-2-5f30a9ca0527ed8f17640f3462a0ea59e1333fba.tar.gz
gentoo-2-5f30a9ca0527ed8f17640f3462a0ea59e1333fba.tar.bz2
gentoo-2-5f30a9ca0527ed8f17640f3462a0ea59e1333fba.zip
respect CC (bug #243320) (and CFLAGS in 0.8, too), add several die statements
(Portage version: 2.2_rc12/cvs/Linux 2.6.27.3 i686)
Diffstat (limited to 'app-admin/mcelog/mcelog-0.7.ebuild')
-rw-r--r--app-admin/mcelog/mcelog-0.7.ebuild18
1 files changed, 13 insertions, 5 deletions
diff --git a/app-admin/mcelog/mcelog-0.7.ebuild b/app-admin/mcelog/mcelog-0.7.ebuild
index 48158b18fa33..a0c5c32b0fb3 100644
--- a/app-admin/mcelog/mcelog-0.7.ebuild
+++ b/app-admin/mcelog/mcelog-0.7.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/mcelog-0.7.ebuild,v 1.3 2008/10/14 00:53:49 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/mcelog/mcelog-0.7.ebuild,v 1.4 2008/11/02 11:03:53 maekke Exp $
+
+inherit toolchain-funcs
DESCRIPTION="A tool to log and decode Machine Check Exceptions"
HOMEPAGE="ftp://ftp.x86-64.org/pub/linux/tools/mcelog/"
@@ -17,18 +19,24 @@ RDEPEND="virtual/cron"
src_unpack() {
unpack ${A}
cd "${S}"
- sed -i -e 's:-g:${CFLAGS}:g' Makefile || die "sed makefile failed"
+ sed -i \
+ -e 's:-g:${CFLAGS}:g' \
+ -e 's:\tgcc:\t$(CC):g' Makefile || die "sed makefile failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die
}
src_install() {
- dosbin mcelog
+ dosbin mcelog || die
doman mcelog.8
exeinto /etc/cron.daily
- newexe mcelog.cron mcelog
+ newexe mcelog.cron mcelog || die
insinto /etc/logrotate.d/
- newins mcelog.logrotate mcelog
+ newins mcelog.logrotate mcelog || die
dodoc CHANGES README
}