diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2008-07-21 14:44:21 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2008-07-21 14:44:21 +0000 |
commit | eba84050c1b2dcb6451fc40e4235d8207814435c (patch) | |
tree | 12bbf76a947231b187695fb5b0b0d36b22e683af /x11-libs/pixman | |
parent | Version bump and removed old ebuilds. (diff) | |
download | gentoo-2-eba84050c1b2dcb6451fc40e4235d8207814435c.tar.gz gentoo-2-eba84050c1b2dcb6451fc40e4235d8207814435c.tar.bz2 gentoo-2-eba84050c1b2dcb6451fc40e4235d8207814435c.zip |
Add pkg_setup() checks for SSE & SSE2 use flags as well as SSE2 and GCC 4.2
(Portage version: 2.2_rc1/cvs/Linux 2.6.25-gentoo-r5 x86_64)
Diffstat (limited to 'x11-libs/pixman')
-rw-r--r-- | x11-libs/pixman/ChangeLog | 6 | ||||
-rw-r--r-- | x11-libs/pixman/pixman-0.11.8.ebuild | 16 |
2 files changed, 20 insertions, 2 deletions
diff --git a/x11-libs/pixman/ChangeLog b/x11-libs/pixman/ChangeLog index d36c85d03fc0..23eb348ee8d4 100644 --- a/x11-libs/pixman/ChangeLog +++ b/x11-libs/pixman/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for x11-libs/pixman # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/pixman/ChangeLog,v 1.17 2008/07/20 14:01:57 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/pixman/ChangeLog,v 1.18 2008/07/21 14:44:21 cardoe Exp $ + + 21 Jul 2008; Doug Goldstein <cardoe@gentoo.org> pixman-0.11.8.ebuild: + Add pkg_setup() checks for SSE & SSE2 use flags as well as SSE2 and GCC + 4.2 20 Jul 2008; Ben de Groot <yngwin@gentoo.org> +files/pixman-0.11.8-sse.patch, pixman-0.11.8.ebuild: diff --git a/x11-libs/pixman/pixman-0.11.8.ebuild b/x11-libs/pixman/pixman-0.11.8.ebuild index d37412d5399d..7e540888d9c7 100644 --- a/x11-libs/pixman/pixman-0.11.8.ebuild +++ b/x11-libs/pixman/pixman-0.11.8.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/pixman/pixman-0.11.8.ebuild,v 1.3 2008/07/20 14:01:57 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/pixman/pixman-0.11.8.ebuild,v 1.4 2008/07/21 14:44:21 cardoe Exp $ # Must be before x-modular eclass is inherited #SNAPSHOT="yes" @@ -14,6 +14,20 @@ IUSE="altivec mmx sse sse2" CONFIGURE_OPTIONS="$(use_enable altivec vmx) $(use_enable mmx) \ $(use_enable sse2) --disable-gtk" +pkg_setup() { + if use sse2 && ! use sse; then + eerror "You enabled SSE2 but have SSE disabled. This is an invalid" + eerror "configuration. Either do USE='sse' or USE='-sse2'" + die "SSE2 selected without SSE" + fi + + if use sse2 && ! $(version_is_at_least "4.2" "$(gcc-version)"); then + eerror "SSE2 instructions require GCC 4.2 or higher. Either use" + eerror "GCC 4.2 or higher or USE='-sse2'" + die "SSE2 instructions require GCC 4.2 or higher" + fi +} + src_unpack() { x-modular_src_unpack cd "${S}" |