summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2016-05-10 22:25:10 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2016-05-11 09:48:03 +0100
commitef7f313971f048fcbf374041257c19e564d41820 (patch)
treec635d32a1250496aebd8fea3ffbd125f94783459 /dev-haskell/colour
parentdev-haskell/network-uri: bump up to 2.6.1.0 (diff)
downloadgentoo-ef7f313971f048fcbf374041257c19e564d41820.tar.gz
gentoo-ef7f313971f048fcbf374041257c19e564d41820.tar.bz2
gentoo-ef7f313971f048fcbf374041257c19e564d41820.zip
dev-haskell/colour: new package, a depend of graphviz
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-haskell/colour')
-rw-r--r--dev-haskell/colour/Manifest1
-rw-r--r--dev-haskell/colour/colour-2.3.3-r1.ebuild38
-rw-r--r--dev-haskell/colour/metadata.xml14
3 files changed, 53 insertions, 0 deletions
diff --git a/dev-haskell/colour/Manifest b/dev-haskell/colour/Manifest
new file mode 100644
index 000000000000..6857b1db4fd4
--- /dev/null
+++ b/dev-haskell/colour/Manifest
@@ -0,0 +1 @@
+DIST colour-2.3.3.tar.gz 20392 SHA256 8d15a63494f8e2a06fe6dc38baee8e948adfae0e93749b9e3ce0fd8ece09b6e2 SHA512 3498215698c3c4010a2bcb6ef87ad263f5a5425167751730919363a0e6806a5c8c2ba82b403b7898addd74feaa756c9df339a37a2b2f2d727680c14ffc21ccf8 WHIRLPOOL de12851691aa69586e1d1f47d2d56f8ea437bddccb11eca70e7999f7ca226154783671143a5e2d207260e0a39a5e593fb5bc8d56bc084fee22adef6a0f22c670
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..cdd4f0063a73
--- /dev/null
+++ b/dev-haskell/colour/colour-2.3.3-r1.ebuild
@@ -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
+}
diff --git a/dev-haskell/colour/metadata.xml b/dev-haskell/colour/metadata.xml
new file mode 100644
index 000000000000..874a4514fe7d
--- /dev/null
+++ b/dev-haskell/colour/metadata.xml
@@ -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>