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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Mar 11 08:49:19 2015 UTC (4 years, 10 months ago) by gienah
Branch: MAIN
CVS Tags: HEAD
Bump cairo to 0.13.1.0

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

1 # Copyright 1999-2015 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-1.1:=[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 # workaround for module order
38 cabal_chdeps \
39 'other-modules:' 'exposed-modules:'
40 }
41
42 src_configure() {
43 haskell-cabal_src_configure \
44 $(cabal_flag pdf cairo_pdf) \
45 $(cabal_flag postscript cairo_ps) \
46 $(cabal_flag svg cairo_svg)
47 }

  ViewVC Help
Powered by ViewVC 1.1.20