diff --git a/dev-haskell/wcwidth/Manifest b/dev-haskell/wcwidth/Manifest new file mode 100644 index 0000000000000..dd3dcc4dbd78d --- /dev/null +++ b/dev-haskell/wcwidth/Manifest @@ -0,0 +1 @@ +DIST wcwidth-0.0.2.tar.gz 4168 BLAKE2B 4c6f3b490934aacef35b4fcbf8d9cc8f2c93b2d34a705e78dae4750f2adaf37d4d16d89e6595a50bf545d7a7dd486f589b1000f7d2f5b2893b45680ed31f1c4d SHA512 555c38183c7c402a66c151e52bbac9e6c501528cd661ad1708576444b6dc4daa19e0d75c9b79f8590843e0e40b3758d9bea08e426e754688cd32070dfce5a649 diff --git a/dev-haskell/wcwidth/files/wcwidth-0.0.2-fix-build-failure.patch b/dev-haskell/wcwidth/files/wcwidth-0.0.2-fix-build-failure.patch new file mode 100644 index 0000000000000..7332f9edf0e3e --- /dev/null +++ b/dev-haskell/wcwidth/files/wcwidth-0.0.2-fix-build-failure.patch @@ -0,0 +1,32 @@ +From 4fc1333ecfa19129debbac1dcdc1f444d69cbcd4 Mon Sep 17 00:00:00 2001 +From: Jack Todaro +Date: Sat, 22 Sep 2018 15:49:21 +1000 +Subject: [PATCH] Fix build for newer versions of base + +--- + WCWidthTableaux.hs | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/WCWidthTableaux.hs b/WCWidthTableaux.hs +index 576fbb6..4a4d8f4 100755 +--- a/WCWidthTableaux.hs ++++ b/WCWidthTableaux.hs +@@ -5,13 +5,13 @@ + + import Data.Char + import Data.List +-import System.Environment.UTF8 ++import System.Environment + import System.IO + import System.Exit + import Text.Printf + + import System.Locale.SetLocale +-import qualified System.IO.UTF8 as UTF8 ++-- import qualified System.IO.UTF8 as UTF8 + + import Data.Char.WCWidth + +-- +2.19.0 + diff --git a/dev-haskell/wcwidth/metadata.xml b/dev-haskell/wcwidth/metadata.xml new file mode 100644 index 0000000000000..9e3d25033a248 --- /dev/null +++ b/dev-haskell/wcwidth/metadata.xml @@ -0,0 +1,18 @@ + + + + + haskell@gentoo.org + Gentoo Haskell + + + + Enable command line tool + + + + Bindings for your system's native wcwidth and a command line tool to examine + the widths assigned by it. The command line tool can compile a width table + to Haskell code that assigns widths to the Char type. + + diff --git a/dev-haskell/wcwidth/wcwidth-0.0.2.ebuild b/dev-haskell/wcwidth/wcwidth-0.0.2.ebuild new file mode 100644 index 0000000000000..32bc1fc8e9e22 --- /dev/null +++ b/dev-haskell/wcwidth/wcwidth-0.0.2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# ebuild generated by hackport 0.5.5 +# hackport: flags: +split-base +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Native wcwidth" +HOMEPAGE="https://github.com/solidsnack/wcwidth/" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="cli" + +RDEPEND=">=dev-lang/ghc-7.4.1:= + cli? ( >=dev-haskell/attoparsec-0.8.5:=[profile?] + >=dev-haskell/setlocale-0.0.3:=[profile?] + >=dev-haskell/utf8-string-0.3:=[profile?] ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6.0 +" + +PATCHES=( ${FILESDIR}/${P}-fix-build-failure.patch ) + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag cli cli) \ + --flag=split-base +}