diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/colour/colour-2.3.3-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/colour/colour-2.3.3-r1.ebuild')
-rw-r--r-- | dev-haskell/colour/colour-2.3.3-r1.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-haskell/colour/colour-2.3.3-r1.ebuild b/dev-haskell/colour/colour-2.3.3-r1.ebuild new file mode 100644 index 000000000000..a6b0afa005c5 --- /dev/null +++ b/dev-haskell/colour/colour-2.3.3-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.3.2.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="A model for human colour/color perception" +HOMEPAGE="http://www.haskell.org/haskellwiki/Colour" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=dev-lang/ghc-6.10.4:=" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6" + +src_prepare() { + if has_version "<dev-haskell/haddock-2.9.2"; then + # Workaround http://hackage.haskell.org/trac/hackage/ticket/626 + # The haddock --hoogle option does not like unicode characters, which causes + # haddock 2.7.2 to fail like: + # haddock: internal Haddock or GHC error: dist/doc/html/enumerator/enumerator.txt: commitAndReleaseBuffer: invalid argument (Invalid or incomplete multibyte or wide character) + sed -e 's@°@ degrees@g' \ + -i "${S}/Data/Colour/CIE.hs" \ + -i "${S}/Data/Colour/CIE/Chromaticity.hs" + sed -e 's@“@"@g' \ + -e 's@”@"@g' \ + -i "${S}/Data/Colour/RGB.hs" + fi +} |