summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2004-02-18 11:02:08 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2004-02-18 11:02:08 +0000
commitbac1a3e1f25a4348920ec7e5be55d4a649dc431f (patch)
tree49d57a20230afb3d08969e10cfbcbeed407e2a91
parentremoving einfo since this is done in nagios-core (Manifest recommit) (diff)
downloadgentoo-2-bac1a3e1f25a4348920ec7e5be55d4a649dc431f.tar.gz
gentoo-2-bac1a3e1f25a4348920ec7e5be55d4a649dc431f.tar.bz2
gentoo-2-bac1a3e1f25a4348920ec7e5be55d4a649dc431f.zip
Checking gcc version before applying patch
-rw-r--r--media-libs/libemf/ChangeLog5
-rw-r--r--media-libs/libemf/libemf-1.0.ebuild9
2 files changed, 11 insertions, 3 deletions
diff --git a/media-libs/libemf/ChangeLog b/media-libs/libemf/ChangeLog
index 548ef849e810..9b2e4031a1a5 100644
--- a/media-libs/libemf/ChangeLog
+++ b/media-libs/libemf/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-libs/libemf
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/ChangeLog,v 1.2 2004/02/15 13:17:04 darkspecter Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/ChangeLog,v 1.3 2004/02/18 11:02:08 phosphan Exp $
+
+ 18 Feb 2004; Patrick Kursawe <phosphan@gentoo.org> libemf-1.0.ebuild:
+ Checking gcc version before applying the patch now.
15 Feb 2004; Bartosch Pixa <darkspecter@gentoo.org> libemf-1.0.ebuild:
set ~ppc in keywords
diff --git a/media-libs/libemf/libemf-1.0.ebuild b/media-libs/libemf/libemf-1.0.ebuild
index 3984cd39e0a7..aac5bea8126f 100644
--- a/media-libs/libemf/libemf-1.0.ebuild
+++ b/media-libs/libemf/libemf-1.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/libemf-1.0.ebuild,v 1.3 2004/02/15 13:17:04 darkspecter Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libemf/libemf-1.0.ebuild,v 1.4 2004/02/18 11:02:08 phosphan Exp $
MY_P="${P/emf/EMF}"
@@ -13,11 +13,16 @@ KEYWORDS="x86 ~ppc"
IUSE=""
DEPEND=""
+inherit gcc
+
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
- patch -p0 < ${FILESDIR}/${MY_P}-gcc3.patch || die "patch failed"
+ if [ $(gcc-major-version) -ge 3 ]; then
+ einfo "gcc >= 3, patch needed"
+ patch -p0 < ${FILESDIR}/${MY_P}-gcc3.patch || die "patch failed"
+ fi
}
src_compile() {