diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2004-02-18 11:02:08 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2004-02-18 11:02:08 +0000 |
commit | 85403ef97f325ae7c836fd813727146c32b91a73 (patch) | |
tree | 6228dbd30f482d9ea6a104fd2feae9cf2816a3c1 /media-libs/libemf | |
parent | removing einfo since this is done in nagios-core (diff) | |
download | historical-85403ef97f325ae7c836fd813727146c32b91a73.tar.gz historical-85403ef97f325ae7c836fd813727146c32b91a73.tar.bz2 historical-85403ef97f325ae7c836fd813727146c32b91a73.zip |
Checking gcc version before applying patch
Diffstat (limited to 'media-libs/libemf')
-rw-r--r-- | media-libs/libemf/ChangeLog | 5 | ||||
-rw-r--r-- | media-libs/libemf/Manifest | 6 | ||||
-rw-r--r-- | media-libs/libemf/libemf-1.0.ebuild | 9 |
3 files changed, 14 insertions, 6 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/Manifest b/media-libs/libemf/Manifest index f037bdcd1f16..c74a7fd59259 100644 --- a/media-libs/libemf/Manifest +++ b/media-libs/libemf/Manifest @@ -1,5 +1,5 @@ -MD5 289de920d59b83e46f8ec732e37d3ac1 ChangeLog 573 -MD5 c9de34909ee8bd0004a47b119b7ff10f libemf-1.0.ebuild 799 +MD5 491b01f21eca4c339276deff49e5065a libemf-1.0.ebuild 888 +MD5 4cba1d2fc5e16a6421a583e4722f7520 ChangeLog 697 MD5 b742040acaeddc3798a21739bd59e8aa metadata.xml 224 -MD5 5dd26ee62faddde9ae039b314d8e0850 files/digest-libemf-1.0 62 MD5 3b1d4fe080501e571622229464654b95 files/libEMF-1.0-gcc3.patch 2429 +MD5 5dd26ee62faddde9ae039b314d8e0850 files/digest-libemf-1.0 62 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() { |