| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.19 2012/05/05 03:52:25 jdhore Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.20 2012/07/14 20:01:53 cardoe Exp $ |
| 4 | |
4 | |
| 5 | EAPI=4 |
5 | EAPI=4 |
| 6 | |
6 | |
| 7 | EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo" |
7 | inherit eutils flag-o-matic autotools |
| 8 | [[ ${PV} == *9999 ]] && GIT_ECLASS="git-2" |
|
|
| 9 | |
8 | |
| 10 | inherit eutils flag-o-matic autotools ${GIT_ECLASS} |
9 | if [[ ${PV} == *9999* ]]; then |
|
|
10 | inherit git-2 |
|
|
11 | EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo" |
|
|
12 | SRC_URI="" |
|
|
13 | KEYWORDS="" |
|
|
14 | else |
|
|
15 | SRC_URI="http://cairographics.org/releases/${P}.tar.xz" |
|
|
16 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
|
|
17 | fi |
| 11 | |
18 | |
| 12 | DESCRIPTION="A vector graphics library with cross-device output support" |
19 | DESCRIPTION="A vector graphics library with cross-device output support" |
| 13 | HOMEPAGE="http://cairographics.org/" |
20 | HOMEPAGE="http://cairographics.org/" |
| 14 | [[ ${PV} == *9999 ]] || SRC_URI="http://cairographics.org/releases/${P}.tar.xz" |
|
|
| 15 | |
|
|
| 16 | LICENSE="|| ( LGPL-2.1 MPL-1.1 )" |
21 | LICENSE="|| ( LGPL-2.1 MPL-1.1 )" |
| 17 | SLOT="0" |
22 | SLOT="0" |
| 18 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
|
|
| 19 | IUSE="X aqua debug directfb doc drm gallium +glib opengl openvg qt4 static-libs +svg xcb" |
23 | IUSE="X aqua debug directfb doc drm gallium +glib opengl openvg qt4 static-libs +svg xcb" |
| 20 | |
24 | |
| 21 | # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it |
25 | # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it |
| 22 | RESTRICT="test" |
26 | RESTRICT="test" |
| 23 | |
27 | |
| … | |
… | |
| 96 | #gets rid of fbmmx.c inlining warnings |
100 | #gets rid of fbmmx.c inlining warnings |
| 97 | append-flags -finline-limit=1200 |
101 | append-flags -finline-limit=1200 |
| 98 | |
102 | |
| 99 | use X && myopts+=" --enable-tee=yes" |
103 | use X && myopts+=" --enable-tee=yes" |
| 100 | |
104 | |
|
|
105 | use elibc_FreeBSD && myopts+=" --disable-symbol-lookup" |
|
|
106 | |
| 101 | # --disable-xcb-lib: |
107 | # --disable-xcb-lib: |
| 102 | # do not override good xlib backed by hardforcing rendering over xcb |
108 | # do not override good xlib backed by hardforcing rendering over xcb |
| 103 | econf \ |
109 | econf \ |
| 104 | --disable-dependency-tracking \ |
110 | --disable-dependency-tracking \ |
| 105 | $(use_with X x) \ |
111 | $(use_with X x) \ |