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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jul 25 09:16:30 2014 UTC (5 years, 5 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Drop trailing '.' from description.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/cairo/cairo-0.12.5.3.ebuild,v 1.1 2014/05/20 13:29:01 gienah Exp $
4
5 EAPI=5
6
7 # ebuild generated by hackport 0.3.5.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/utf8-string-0.2:=[profile?] <dev-haskell/utf8-string-0.4:=[profile?]
23 >=dev-lang/ghc-6.10.4:=
24 x11-libs/cairo[svg?]"
25 DEPEND="${RDEPEND}
26 >=dev-haskell/gtk2hs-buildtools-0.12.5.1-r1:0=
27 virtual/pkgconfig
28 "
29
30 src_prepare() {
31 sed -e "s@#include<cairo-features.h>@#define $(usex amd64 __x86_64__ __i386__)\n#include<cairo-features.h>@" \
32 -i "${S}"/Graphics/Rendering/Cairo.hs \
33 || die "Could not define ABI in Graphics/Rendering/Cairo.hs"
34 }
35
36 src_configure() {
37 haskell-cabal_src_configure \
38 $(cabal_flag pdf cairo_pdf) \
39 $(cabal_flag postscript cairo_ps) \
40 $(cabal_flag svg cairo_svg)
41 }

  ViewVC Help
Powered by ViewVC 1.1.20