dev-haskell/colour: new package, a depend of graphviz

Package-Manager: portage-2.2.28
This commit is contained in:
Sergei Trofimovich
2016-05-11 09:48:03 +01:00
parent 4788467d76
commit ef7f313971
3 changed files with 53 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
DIST colour-2.3.3.tar.gz 20392 SHA256 8d15a63494f8e2a06fe6dc38baee8e948adfae0e93749b9e3ce0fd8ece09b6e2 SHA512 3498215698c3c4010a2bcb6ef87ad263f5a5425167751730919363a0e6806a5c8c2ba82b403b7898addd74feaa756c9df339a37a2b2f2d727680c14ffc21ccf8 WHIRLPOOL de12851691aa69586e1d1f47d2d56f8ea437bddccb11eca70e7999f7ca226154783671143a5e2d207260e0a39a5e593fb5bc8d56bc084fee22adef6a0f22c670
+38
View File
@@ -0,0 +1,38 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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@&#176;@ degrees@g' \
-i "${S}/Data/Colour/CIE.hs" \
-i "${S}/Data/Colour/CIE/Chromaticity.hs"
sed -e 's@&#8220;@"@g' \
-e 's@&#8221;@"@g' \
-i "${S}/Data/Colour/RGB.hs"
fi
}
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>haskell@gentoo.org</email>
<name>Gentoo Haskell</name>
</maintainer>
<longdescription>
This package provides a data type for colours and transparency.
Colours can be blended and composed.
Various colour spaces are supported.
A module of colour names ("Data.Colour.Names") is provided.
</longdescription>
</pkgmetadata>