From 9017685356f5fc5f38ab8c43382074d74b3d30d1 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Wed, 24 Jun 2009 13:45:12 +0000 Subject: for some reason this didn't take before. version bump. cull old versions (Portage version: 2.1.6.13/cvs/Linux x86_64) --- x11-libs/cairo/ChangeLog | 12 ++++- x11-libs/cairo/cairo-1.4.12.ebuild | 71 -------------------------- x11-libs/cairo/cairo-1.6.4.ebuild | 79 ----------------------------- x11-libs/cairo/cairo-1.8.0.ebuild | 87 -------------------------------- x11-libs/cairo/cairo-1.8.2.ebuild | 87 -------------------------------- x11-libs/cairo/cairo-1.8.4.ebuild | 87 -------------------------------- x11-libs/cairo/cairo-1.8.6.ebuild | 101 ------------------------------------- x11-libs/cairo/cairo-1.8.8.ebuild | 91 +++++++++++++++++++++++++++++++++ 8 files changed, 102 insertions(+), 513 deletions(-) delete mode 100644 x11-libs/cairo/cairo-1.4.12.ebuild delete mode 100644 x11-libs/cairo/cairo-1.6.4.ebuild delete mode 100644 x11-libs/cairo/cairo-1.8.0.ebuild delete mode 100644 x11-libs/cairo/cairo-1.8.2.ebuild delete mode 100644 x11-libs/cairo/cairo-1.8.4.ebuild delete mode 100644 x11-libs/cairo/cairo-1.8.6.ebuild create mode 100644 x11-libs/cairo/cairo-1.8.8.ebuild (limited to 'x11-libs') diff --git a/x11-libs/cairo/ChangeLog b/x11-libs/cairo/ChangeLog index 1eafeaf92bad..443f19d5185b 100644 --- a/x11-libs/cairo/ChangeLog +++ b/x11-libs/cairo/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for x11-libs/cairo # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v 1.218 2009/04/27 13:46:52 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v 1.219 2009/06/24 13:45:12 cardoe Exp $ + + 16 Jun 2009; Doug Goldstein -cairo-1.4.12.ebuild, + -cairo-1.6.4.ebuild, -cairo-1.8.0.ebuild, -cairo-1.8.2.ebuild, + -cairo-1.8.4.ebuild, -cairo-1.8.6.ebuild, +cairo-1.8.8.ebuild: + cull old versions + +*cairo-1.8.8 (16 Jun 2009) + + 16 Jun 2009; Doug Goldstein +cairo-1.8.8.ebuild: + version bump 27 Apr 2009; Jeroen Roovers cairo-1.8.6-r1: Stable for HPPA (bug #260063). diff --git a/x11-libs/cairo/cairo-1.4.12.ebuild b/x11-libs/cairo/cairo-1.4.12.ebuild deleted file mode 100644 index 6fa8ab946771..000000000000 --- a/x11-libs/cairo/cairo-1.4.12.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.4.12.ebuild,v 1.9 2009/01/05 13:26:13 remi Exp $ - -inherit eutils flag-o-matic libtool - -DESCRIPTION="A vector graphics library with cross-device output support" -HOMEPAGE="http://cairographics.org/" -SRC_URI="http://cairographics.org/releases/${P}.tar.gz" - -LICENSE="|| ( LGPL-2.1 MPL-1.1 )" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" -IUSE="debug directfb doc glitz opengl svg X xcb" - -# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it -RESTRICT="test" - -RDEPEND="media-libs/fontconfig - >=media-libs/freetype-2.1.4 - media-libs/libpng - X? ( - x11-libs/libXrender - x11-libs/libXext - x11-libs/libX11 - x11-libs/libXft - xcb? ( x11-libs/libxcb - x11-libs/xcb-util ) - ) - directfb? ( >=dev-libs/DirectFB-0.9.24 ) - glitz? ( >=media-libs/glitz-0.5.1 ) - svg? ( dev-libs/libxml2 )" - -DEPEND="${RDEPEND} - >=dev-util/pkgconfig-0.19 - X? ( x11-proto/renderproto - xcb? ( x11-proto/xcb-proto ) ) - doc? ( - >=dev-util/gtk-doc-1.3 - ~app-text/docbook-xml-dtd-4.2 - )" - -src_unpack() { - unpack ${A} - cd "${S}" - - # We need to run elibtoolize to ensure correct so versioning on FreeBSD - elibtoolize -} - -src_compile() { - #gets rid of fbmmx.c inlining warnings - append-flags -finline-limit=1200 - - if use glitz && use opengl; then - export glitz_LIBS=-lglitz-glx - fi - - econf $(use_enable X xlib) $(use_enable doc gtk-doc) $(use_enable directfb) \ - $(use_enable svg) $(use_enable glitz) \ - $(use_enable debug test-surfaces) --enable-pdf --enable-png \ - --enable-freetype --enable-ps $(use_enable xcb) \ - || die "configure failed" - - emake || die "compile failed" -} - -src_install() { - make DESTDIR="${D}" install || die "Installation failed" - dodoc AUTHORS ChangeLog NEWS README TODO -} diff --git a/x11-libs/cairo/cairo-1.6.4.ebuild b/x11-libs/cairo/cairo-1.6.4.ebuild deleted file mode 100644 index d1cf36aaa9ee..000000000000 --- a/x11-libs/cairo/cairo-1.6.4.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.6.4.ebuild,v 1.14 2009/01/05 13:26:13 remi Exp $ - -inherit eutils flag-o-matic libtool - -DESCRIPTION="A vector graphics library with cross-device output support" -HOMEPAGE="http://cairographics.org/" -SRC_URI="http://cairographics.org/releases/${P}.tar.gz" - -LICENSE="|| ( LGPL-2.1 MPL-1.1 )" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" -IUSE="debug directfb doc glitz opengl svg test X xcb" - -# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it -RESTRICT="test" - -RDEPEND="media-libs/fontconfig - >=media-libs/freetype-2.1.9 - sys-libs/zlib - media-libs/libpng - >=x11-libs/pixman-0.10.0 - X? ( - x11-libs/libXrender - x11-libs/libXext - x11-libs/libX11 - x11-libs/libXft - xcb? ( x11-libs/libxcb - x11-libs/xcb-util ) - ) - directfb? ( >=dev-libs/DirectFB-0.9.24 ) - glitz? ( >=media-libs/glitz-0.5.1 ) - svg? ( dev-libs/libxml2 )" - -DEPEND="${RDEPEND} - >=dev-util/pkgconfig-0.19 - X? ( x11-proto/renderproto - xcb? ( x11-proto/xcb-proto ) ) - doc? ( - >=dev-util/gtk-doc-1.6 - ~app-text/docbook-xml-dtd-4.2 - )" - -src_unpack() { - unpack ${A} - cd "${S}" - - # We need to run elibtoolize to ensure correct so versioning on FreeBSD - elibtoolize -} - -src_compile() { - local use_xcb - - #gets rid of fbmmx.c inlining warnings - append-flags -finline-limit=1200 - - if use glitz && use opengl; then - export glitz_LIBS=-lglitz-glx - fi - - use_xcb="--disable-xcb" - use X && use xcb && use_xcb="--enable-xcb" - - econf $(use_enable X xlib) $(use_enable doc gtk-doc) \ - $(use_enable directfb) ${use_xcb} \ - $(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \ - $(use_enable debug test-surfaces) --enable-pdf --enable-png \ - --enable-freetype --enable-ps \ - || die "configure failed" - - emake || die "compile failed" -} - -src_install() { - make DESTDIR="${D}" install || die "Installation failed" - dodoc AUTHORS ChangeLog NEWS README -} diff --git a/x11-libs/cairo/cairo-1.8.0.ebuild b/x11-libs/cairo/cairo-1.8.0.ebuild deleted file mode 100644 index 2c4f231127a5..000000000000 --- a/x11-libs/cairo/cairo-1.8.0.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.8.0.ebuild,v 1.8 2009/01/05 13:26:13 remi Exp $ - -inherit eutils flag-o-matic libtool - -DESCRIPTION="A vector graphics library with cross-device output support" -HOMEPAGE="http://cairographics.org/" -SRC_URI="http://cairographics.org/releases/${P}.tar.gz" - -LICENSE="|| ( LGPL-2.1 MPL-1.1 )" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="debug directfb doc glitz opengl svg X xcb" - -# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it -RESTRICT="test" - -RDEPEND="media-libs/fontconfig - >=media-libs/freetype-2.1.9 - sys-libs/zlib - media-libs/libpng - >=x11-libs/pixman-0.12.0 - directfb? ( >=dev-libs/DirectFB-0.9.24 ) - glitz? ( >=media-libs/glitz-0.5.1 ) - svg? ( dev-libs/libxml2 ) - X? ( >=x11-libs/libXrender-0.6 - x11-libs/libXext - x11-libs/libX11 - x11-libs/libXft ) - xcb? ( >=x11-libs/libxcb-0.92 - x11-libs/xcb-util )" -# test? ( -# pdf test -# x11-libs/pango -# >=x11-libs/gtk+-2.0 -# >=app-text/poppler-bindings-0.9.2 -# ps test -# virtual/ghostscript -# svg test -# >=x11-libs/gtk+-2.0 -# >=gnome-base/librsvg-2.15.0 - -DEPEND="${RDEPEND} - >=dev-util/pkgconfig-0.19 - doc? ( >=dev-util/gtk-doc-1.6 - ~app-text/docbook-xml-dtd-4.2 ) - X? ( x11-proto/renderproto ) - xcb? ( x11-proto/xcb-proto )" - -#pkg_setup() { -# if ! built_with_use app-text/poppler-bindings gtk ; then -# eerror 'poppler-bindings with gtk is required for the pdf backend' -# die 'poppler-bindings built without gtk support' -# fi -#} - -src_unpack() { - unpack ${A} - cd "${S}" - - # We need to run elibtoolize to ensure correct so versioning on FreeBSD - elibtoolize -} - -src_compile() { - #gets rid of fbmmx.c inlining warnings - append-flags -finline-limit=1200 - - if use glitz && use opengl; then - export glitz_LIBS=-lglitz-glx - fi - - econf $(use_enable X xlib) $(use_enable doc gtk-doc) \ - $(use_enable directfb) $(use_enable xcb) \ - $(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \ - $(use_enable debug test-surfaces) --enable-pdf --enable-png \ - --enable-ft --enable-ps \ - || die "configure failed" - - emake || die "compile failed" -} - -src_install() { - make DESTDIR="${D}" install || die "Installation failed" - dodoc AUTHORS ChangeLog NEWS README -} diff --git a/x11-libs/cairo/cairo-1.8.2.ebuild b/x11-libs/cairo/cairo-1.8.2.ebuild deleted file mode 100644 index 5f182a1c55dd..000000000000 --- a/x11-libs/cairo/cairo-1.8.2.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.8.2.ebuild,v 1.4 2009/01/05 13:26:13 remi Exp $ - -inherit eutils flag-o-matic libtool - -DESCRIPTION="A vector graphics library with cross-device output support" -HOMEPAGE="http://cairographics.org/" -SRC_URI="http://cairographics.org/releases/${P}.tar.gz" - -LICENSE="|| ( LGPL-2.1 MPL-1.1 )" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="debug directfb doc glitz opengl svg X xcb" - -# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it -RESTRICT="test" - -RDEPEND="media-libs/fontconfig - >=media-libs/freetype-2.1.9 - sys-libs/zlib - media-libs/libpng - >=x11-libs/pixman-0.12.0 - directfb? ( >=dev-libs/DirectFB-0.9.24 ) - glitz? ( >=media-libs/glitz-0.5.1 ) - svg? ( dev-libs/libxml2 ) - X? ( >=x11-libs/libXrender-0.6 - x11-libs/libXext - x11-libs/libX11 - x11-libs/libXft ) - xcb? ( >=x11-libs/libxcb-0.92 - x11-libs/xcb-util )" -# test? ( -# pdf test -# x11-libs/pango -# >=x11-libs/gtk+-2.0 -# >=app-text/poppler-bindings-0.9.2 -# ps test -# virtual/ghostscript -# svg test -# >=x11-libs/gtk+-2.0 -# >=gnome-base/librsvg-2.15.0 - -DEPEND="${RDEPEND} - >=dev-util/pkgconfig-0.19 - doc? ( >=dev-util/gtk-doc-1.6 - ~app-text/docbook-xml-dtd-4.2 ) - X? ( x11-proto/renderproto ) - xcb? ( x11-proto/xcb-proto )" - -#pkg_setup() { -# if ! built_with_use app-text/poppler-bindings gtk ; then -# eerror 'poppler-bindings with gtk is required for the pdf backend' -# die 'poppler-bindings built without gtk support' -# fi -#} - -src_unpack() { - unpack ${A} - cd "${S}" - - # We need to run elibtoolize to ensure correct so versioning on FreeBSD - elibtoolize -} - -src_compile() { - #gets rid of fbmmx.c inlining warnings - append-flags -finline-limit=1200 - - if use glitz && use opengl; then - export glitz_LIBS=-lglitz-glx - fi - - econf $(use_enable X xlib) $(use_enable doc gtk-doc) \ - $(use_enable directfb) $(use_enable xcb) \ - $(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \ - $(use_enable debug test-surfaces) --enable-pdf --enable-png \ - --enable-ft --enable-ps \ - || die "configure failed" - - emake || die "compile failed" -} - -src_install() { - make DESTDIR="${D}" install || die "Installation failed" - dodoc AUTHORS ChangeLog NEWS README -} diff --git a/x11-libs/cairo/cairo-1.8.4.ebuild b/x11-libs/cairo/cairo-1.8.4.ebuild deleted file mode 100644 index 44abd9a5613d..000000000000 --- a/x11-libs/cairo/cairo-1.8.4.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.8.4.ebuild,v 1.4 2009/01/05 13:26:13 remi Exp $ - -inherit eutils flag-o-matic libtool - -DESCRIPTION="A vector graphics library with cross-device output support" -HOMEPAGE="http://cairographics.org/" -SRC_URI="http://cairographics.org/releases/${P}.tar.gz" - -LICENSE="|| ( LGPL-2.1 MPL-1.1 )" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="debug directfb doc glitz opengl svg X xcb" - -# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it -RESTRICT="test" - -RDEPEND="media-libs/fontconfig - >=media-libs/freetype-2.1.9 - sys-libs/zlib - media-libs/libpng - >=x11-libs/pixman-0.12.0 - directfb? ( >=dev-libs/DirectFB-0.9.24 ) - glitz? ( >=media-libs/glitz-0.5.1 ) - svg? ( dev-libs/libxml2 ) - X? ( >=x11-libs/libXrender-0.6 - x11-libs/libXext - x11-libs/libX11 - x11-libs/libXft ) - xcb? ( >=x11-libs/libxcb-0.92 - x11-libs/xcb-util )" -# test? ( -# pdf test -# x11-libs/pango -# >=x11-libs/gtk+-2.0 -# >=app-text/poppler-bindings-0.9.2 -# ps test -# virtual/ghostscript -# svg test -# >=x11-libs/gtk+-2.0 -# >=gnome-base/librsvg-2.15.0 - -DEPEND="${RDEPEND} - >=dev-util/pkgconfig-0.19 - doc? ( >=dev-util/gtk-doc-1.6 - ~app-text/docbook-xml-dtd-4.2 ) - X? ( x11-proto/renderproto ) - xcb? ( x11-proto/xcb-proto )" - -#pkg_setup() { -# if ! built_with_use app-text/poppler-bindings gtk ; then -# eerror 'poppler-bindings with gtk is required for the pdf backend' -# die 'poppler-bindings built without gtk support' -# fi -#} - -src_unpack() { - unpack ${A} - cd "${S}" - - # We need to run elibtoolize to ensure correct so versioning on FreeBSD - elibtoolize -} - -src_compile() { - #gets rid of fbmmx.c inlining warnings - append-flags -finline-limit=1200 - - if use glitz && use opengl; then - export glitz_LIBS=-lglitz-glx - fi - - econf $(use_enable X xlib) $(use_enable doc gtk-doc) \ - $(use_enable directfb) $(use_enable xcb) \ - $(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \ - $(use_enable debug test-surfaces) --enable-pdf --enable-png \ - --enable-ft --enable-ps \ - || die "configure failed" - - emake || die "compile failed" -} - -src_install() { - make DESTDIR="${D}" install || die "Installation failed" - dodoc AUTHORS ChangeLog NEWS README -} diff --git a/x11-libs/cairo/cairo-1.8.6.ebuild b/x11-libs/cairo/cairo-1.8.6.ebuild deleted file mode 100644 index 44c5c5e67bf7..000000000000 --- a/x11-libs/cairo/cairo-1.8.6.ebuild +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.8.6.ebuild,v 1.4 2009/01/05 13:26:13 remi Exp $ - -inherit eutils flag-o-matic libtool - -DESCRIPTION="A vector graphics library with cross-device output support" -HOMEPAGE="http://cairographics.org/" -SRC_URI="http://cairographics.org/releases/${P}.tar.gz" - -LICENSE="|| ( LGPL-2.1 MPL-1.1 )" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="cleartype debug directfb doc glitz opengl svg X xcb" - -# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it -RESTRICT="test" - -RDEPEND="media-libs/fontconfig - >=media-libs/freetype-2.1.9 - sys-libs/zlib - media-libs/libpng - >=x11-libs/pixman-0.12.0 - directfb? ( >=dev-libs/DirectFB-0.9.24 ) - glitz? ( >=media-libs/glitz-0.5.1 ) - svg? ( dev-libs/libxml2 ) - X? ( >=x11-libs/libXrender-0.6 - x11-libs/libXext - x11-libs/libX11 - x11-libs/libXft ) - xcb? ( >=x11-libs/libxcb-0.92 - x11-libs/xcb-util )" -# test? ( -# pdf test -# x11-libs/pango -# >=x11-libs/gtk+-2.0 -# >=app-text/poppler-bindings-0.9.2 -# ps test -# virtual/ghostscript -# svg test -# >=x11-libs/gtk+-2.0 -# >=gnome-base/librsvg-2.15.0 - -DEPEND="${RDEPEND} - >=dev-util/pkgconfig-0.19 - doc? ( >=dev-util/gtk-doc-1.6 - ~app-text/docbook-xml-dtd-4.2 ) - X? ( x11-proto/renderproto ) - xcb? ( x11-proto/xcb-proto )" - -#pkg_setup() { -# if ! built_with_use app-text/poppler-bindings gtk ; then -# eerror 'poppler-bindings with gtk is required for the pdf backend' -# die 'poppler-bindings built without gtk support' -# fi -#} - -src_unpack() { - unpack ${A} - cd "${S}" - - # ClearType-like patches applied by ArchLinux - use cleartype && epatch "${FILESDIR}"/cairo-1.2.4-lcd-cleartype-like.diff - - # We need to run elibtoolize to ensure correct so versioning on FreeBSD - elibtoolize -} - -src_compile() { - #gets rid of fbmmx.c inlining warnings - append-flags -finline-limit=1200 - - if use glitz && use opengl; then - export glitz_LIBS=$(pkg-config --libs glitz-glx) - fi - - econf $(use_enable X xlib) $(use_enable doc gtk-doc) \ - $(use_enable directfb) $(use_enable xcb) \ - $(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \ - $(use_enable debug test-surfaces) --enable-pdf --enable-png \ - --enable-ft --enable-ps \ - || die "configure failed" - - emake || die "compile failed" -} - -src_install() { - make DESTDIR="${D}" install || die "Installation failed" - dodoc AUTHORS ChangeLog NEWS README -} - -pkg_postinst() { - if use xcb; then - ewarn "You have enabled the Cairo XCB backend which is used only by" - ewarn "a select few apps. The Cairo XCB backend is presently" - ewarn "un-maintained and needs a lot of work to get it caught up" - ewarn "to the Xrender and Xlib backends, which are the backends used" - ewarn "by most applications. See:" - ewarn "http://lists.freedesktop.org/archives/xcb/2008-December/004139.html" - fi -} diff --git a/x11-libs/cairo/cairo-1.8.8.ebuild b/x11-libs/cairo/cairo-1.8.8.ebuild new file mode 100644 index 000000000000..20340625307f --- /dev/null +++ b/x11-libs/cairo/cairo-1.8.8.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.8.8.ebuild,v 1.1 2009/06/24 13:45:12 cardoe Exp $ + +EAPI=2 + +inherit eutils flag-o-matic libtool + +DESCRIPTION="A vector graphics library with cross-device output support" +HOMEPAGE="http://cairographics.org/" +SRC_URI="http://cairographics.org/releases/${P}.tar.gz" + +LICENSE="|| ( LGPL-2.1 MPL-1.1 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="cleartype debug directfb doc glitz opengl svg X xcb" + +# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it +RESTRICT="test" + +RDEPEND="media-libs/fontconfig + >=media-libs/freetype-2.1.9 + sys-libs/zlib + media-libs/libpng + >=x11-libs/pixman-0.12.0 + directfb? ( >=dev-libs/DirectFB-0.9.24 ) + glitz? ( >=media-libs/glitz-0.5.1 ) + svg? ( dev-libs/libxml2 ) + X? ( >=x11-libs/libXrender-0.6 + x11-libs/libXext + x11-libs/libX11 + x11-libs/libXft ) + xcb? ( >=x11-libs/libxcb-0.92 + x11-libs/xcb-util )" +# test? ( +# pdf test +# x11-libs/pango +# >=x11-libs/gtk+-2.0 +# >=app-text/poppler-bindings-0.9.2[gtk] +# ps test +# virtual/ghostscript +# svg test +# >=x11-libs/gtk+-2.0 +# >=gnome-base/librsvg-2.15.0 + +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.19 + doc? ( >=dev-util/gtk-doc-1.6 + ~app-text/docbook-xml-dtd-4.2 ) + X? ( x11-proto/renderproto ) + xcb? ( x11-proto/xcb-proto )" + +src_prepare() { + # ClearType-like patches applied by ArchLinux + use cleartype && epatch "${FILESDIR}"/cairo-1.2.4-lcd-cleartype-like.diff + + # We need to run elibtoolize to ensure correct so versioning on FreeBSD + elibtoolize +} + +src_configure() { + #gets rid of fbmmx.c inlining warnings + append-flags -finline-limit=1200 + + if use glitz && use opengl; then + export glitz_LIBS=$(pkg-config --libs glitz-glx) + fi + + econf $(use_enable X xlib) $(use_enable doc gtk-doc) \ + $(use_enable directfb) $(use_enable xcb) \ + $(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \ + $(use_enable debug test-surfaces) --enable-pdf --enable-png \ + --enable-ft --enable-ps \ + || die "configure failed" +} + +src_install() { + make DESTDIR="${D}" install || die "Installation failed" + dodoc AUTHORS ChangeLog NEWS README +} + +pkg_postinst() { + if use xcb; then + ewarn "You have enabled the Cairo XCB backend which is used only by" + ewarn "a select few apps. The Cairo XCB backend is presently" + ewarn "un-maintained and needs a lot of work to get it caught up" + ewarn "to the Xrender and Xlib backends, which are the backends used" + ewarn "by most applications. See:" + ewarn "http://lists.freedesktop.org/archives/xcb/2008-December/004139.html" + fi +} -- cgit v1.2.3-65-gdbad