dev-haskell/wcwidth: add package

Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Jack Todaro <solpeth@posteo.org>
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Jack Todaro
2020-07-29 11:52:51 +10:00
committed by Sergei Trofimovich
parent 7619a959f2
commit 71be0b104c
4 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST wcwidth-0.0.2.tar.gz 4168 BLAKE2B 4c6f3b490934aacef35b4fcbf8d9cc8f2c93b2d34a705e78dae4750f2adaf37d4d16d89e6595a50bf545d7a7dd486f589b1000f7d2f5b2893b45680ed31f1c4d SHA512 555c38183c7c402a66c151e52bbac9e6c501528cd661ad1708576444b6dc4daa19e0d75c9b79f8590843e0e40b3758d9bea08e426e754688cd32070dfce5a649

View File

@@ -0,0 +1,32 @@
From 4fc1333ecfa19129debbac1dcdc1f444d69cbcd4 Mon Sep 17 00:00:00 2001
From: Jack Todaro <jackmtodaro@gmail.com>
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

View File

@@ -0,0 +1,18 @@
<?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>
<use>
<flag name="cli">
Enable command line tool
</flag>
</use>
<longdescription>
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.
</longdescription>
</pkgmetadata>

View File

@@ -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
}