Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: x11-libs/pixman/
Date: Tue, 31 Jan 2012 01:34:31
Message-Id: 50500425cedf92d65e78d27392eb966b69654531.anarchy@gentoo
1 commit: 50500425cedf92d65e78d27392eb966b69654531
2 Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 01:33:51 2012 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 01:34:12 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=50500425
7
8 add pixman-0.24.2 release for android builds
9
10 ---
11 x11-libs/pixman/Manifest | 2 +
12 x11-libs/pixman/pixman-0.24.2.ebuild | 53 ++++++++++++++++++++++++++++++++++
13 2 files changed, 55 insertions(+), 0 deletions(-)
14
15 diff --git a/x11-libs/pixman/Manifest b/x11-libs/pixman/Manifest
16 new file mode 100644
17 index 0000000..7e1a815
18 --- /dev/null
19 +++ b/x11-libs/pixman/Manifest
20 @@ -0,0 +1,2 @@
21 +DIST pixman-0.24.2.tar.bz2 467979 RMD160 985a64799ba4b7240248807e7a691c3e9824ee3d SHA1 233eed3cd16ee1b2a842140477503d2c68b74418 SHA256 32f74f3e3c1feea33e6ad3e2fd66cb3eb816805c384b346ea1636a87c9057dbf
22 +EBUILD pixman-0.24.2.ebuild 1661 RMD160 4fd3c310f2c1a4854d71b1a9ab5df677287842c3 SHA1 ee1f10d873b79a30d84ba229b0a80e6c07fa57c5 SHA256 1ecc08c22fbc558979250cac148e5f789c2c150b0d4e60dd09683348d8f95ba3
23
24 diff --git a/x11-libs/pixman/pixman-0.24.2.ebuild b/x11-libs/pixman/pixman-0.24.2.ebuild
25 new file mode 100644
26 index 0000000..878b6ba
27 --- /dev/null
28 +++ b/x11-libs/pixman/pixman-0.24.2.ebuild
29 @@ -0,0 +1,53 @@
30 +# Copyright 1999-2011 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/pixman/pixman-0.24.0.ebuild,v 1.6 2011/12/27 21:05:34 maekke Exp $
33 +
34 +EAPI=4
35 +inherit xorg-2 toolchain-funcs versionator
36 +
37 +EGIT_REPO_URI="git://anongit.freedesktop.org/git/pixman"
38 +DESCRIPTION="Low-level pixel manipulation routines"
39 +
40 +KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
41 +IUSE="altivec iwmmxt mmx neon sse2"
42 +
43 +XORG_EAUTORECONF="yes"
44 +
45 +pkg_setup() {
46 + xorg-2_pkg_setup
47 +
48 + local enable_mmx="$(use mmx && echo 1 || echo 0)"
49 + local enable_sse2="$(use sse2 && echo 1 || echo 0)"
50 +
51 + # this block fixes bug #260287
52 + if use x86; then
53 + if use sse2 && ! $(version_is_at_least "4.2" "$(gcc-version)"); then
54 + ewarn "SSE2 instructions require GCC 4.2 or higher."
55 + ewarn "pixman will be built *without* SSE2 support"
56 + enable_sse2="0"
57 + fi
58 + fi
59 +
60 + local confadd
61 + # this block fixes bug #236558
62 + case "$enable_mmx,$enable_sse2" in
63 + '1,1')
64 + confadd=(--enable-mmx --enable-sse2) ;;
65 + '1,0')
66 + confadd=(--enable-mmx --disable-sse2) ;;
67 + '0,1')
68 + ewarn "You enabled SSE2 but have MMX disabled. This is an invalid."
69 + ewarn "pixman will be built *without* MMX/SSE2 support."
70 + confadd=(--disable-mmx --disable-sse2) ;;
71 + '0,0')
72 + confadd=(--disable-mmx --disable-sse2) ;;
73 + esac
74 +
75 + XORG_CONFIGURE_OPTIONS=(
76 + "${confadd[@]}"
77 + $(use_enable altivec vmx)
78 + $(use_enable neon arm-neon)
79 + $(use_enable iwmmxt arm-iwmmxt)
80 + --disable-gtk
81 + )
82 +}