| 1 |
# Copyright 1999-2013 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.4.ebuild,v 1.5 2013/01/01 14:05:33 ago Exp $
|
| 4 |
|
| 5 |
EAPI=5
|
| 6 |
|
| 7 |
# ebuild generated by hackport 0.3.9999
|
| 8 |
|
| 9 |
#nocabaldep is for the fancy cabal-detection feature at build-time
|
| 10 |
CABAL_FEATURES="lib profile haddock hoogle hscolour nocabaldep"
|
| 11 |
inherit haskell-cabal
|
| 12 |
|
| 13 |
DESCRIPTION="Binding to the Cairo library."
|
| 14 |
HOMEPAGE="http://projects.haskell.org/gtk2hs/"
|
| 15 |
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
| 16 |
|
| 17 |
LICENSE="BSD"
|
| 18 |
SLOT="0/${PV}"
|
| 19 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
| 20 |
IUSE="+svg"
|
| 21 |
|
| 22 |
RDEPEND="dev-haskell/mtl:=[profile?]
|
| 23 |
>=dev-lang/ghc-6.10.4:=
|
| 24 |
x11-libs/cairo[svg?]"
|
| 25 |
DEPEND="${RDEPEND}
|
| 26 |
>=dev-haskell/cabal-1.8
|
| 27 |
>=dev-haskell/gtk2hs-buildtools-0.12.4"
|
| 28 |
|
| 29 |
src_configure() {
|
| 30 |
# x11-libs/cairo seems to build pdf and ps by default
|
| 31 |
cabal_src_configure \
|
| 32 |
--flags=cairo_pdf \
|
| 33 |
--flags=cairo_ps \
|
| 34 |
$(cabal_flag svg cairo_svg)
|
| 35 |
}
|