/[gentoo-x86]/dev-haskell/cairo/cairo-0.13.0.5.ebuild
Gentoo

Contents of /dev-haskell/cairo/cairo-0.13.0.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Dec 13 13:29:33 2014 UTC (2 years, 11 months ago) by gienah
Branch: MAIN
CVS Tags: HEAD
Bump cairo to 0.13.0.5

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 618E971F)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6
7 # ebuild generated by hackport 0.4.4.9999
8
9 CABAL_FEATURES="lib profile haddock hoogle hscolour nocabaldep"
10 inherit haskell-cabal
11
12 DESCRIPTION="Binding to the Cairo library"
13 HOMEPAGE="http://projects.haskell.org/gtk2hs/"
14 SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
15
16 LICENSE="BSD"
17 SLOT="0/${PV}"
18 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
19 IUSE="+pdf +postscript +svg"
20
21 RDEPEND="dev-haskell/mtl:=[profile?]
22 >=dev-haskell/text-1.0.0.0:=[profile?] <dev-haskell/text-1.3:=[profile?]
23 >=dev-haskell/utf8-string-0.2:=[profile?] <dev-haskell/utf8-string-0.4:=[profile?]
24 >=dev-lang/ghc-7.4.1:=
25 x11-libs/cairo[svg?]
26 "
27 DEPEND="${RDEPEND}
28 >=dev-haskell/cabal-1.18
29 >=dev-haskell/gtk2hs-buildtools-0.13.0.3:0=
30 virtual/pkgconfig
31 "
32
33 src_prepare() {
34 sed -e "s@#include<cairo-features.h>@#define $(usex amd64 __x86_64__ __i386__)\n#include<cairo-features.h>@" \
35 -i "${S}"/Graphics/Rendering/Cairo.hs \
36 || die "Could not define ABI in Graphics/Rendering/Cairo.hs"
37 }
38
39 src_configure() {
40 haskell-cabal_src_configure \
41 $(cabal_flag pdf cairo_pdf) \
42 $(cabal_flag postscript cairo_ps) \
43 $(cabal_flag svg cairo_svg)
44 }

  ViewVC Help
Powered by ViewVC 1.1.20