summaryrefslogtreecommitdiff
path: root/dev-haskell/wcwidth
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /dev-haskell/wcwidth
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'dev-haskell/wcwidth')
-rw-r--r--dev-haskell/wcwidth/Manifest4
-rw-r--r--dev-haskell/wcwidth/files/wcwidth-0.0.2-fix-build-failure.patch32
-rw-r--r--dev-haskell/wcwidth/metadata.xml18
-rw-r--r--dev-haskell/wcwidth/wcwidth-0.0.2.ebuild35
4 files changed, 89 insertions, 0 deletions
diff --git a/dev-haskell/wcwidth/Manifest b/dev-haskell/wcwidth/Manifest
new file mode 100644
index 000000000000..a32734792802
--- /dev/null
+++ b/dev-haskell/wcwidth/Manifest
@@ -0,0 +1,4 @@
+AUX wcwidth-0.0.2-fix-build-failure.patch 756 BLAKE2B c18ebd2a4c38875a2ab7120645d88dd62e69ab268bd147090cb0cedece3e4b621bf70c206d79e5e2b6d3991f72188fc2087b09b2345474328b25cbbe67c906f5 SHA512 8c0951b2251002eb3f0e5f56cd06d6571ead53e2a854cc79d1e496d7b0a82792a216a48e85deeef0d1c0b4f330da624729150b77bd444d911f6149c9c4109cb5
+DIST wcwidth-0.0.2.tar.gz 4168 BLAKE2B 4c6f3b490934aacef35b4fcbf8d9cc8f2c93b2d34a705e78dae4750f2adaf37d4d16d89e6595a50bf545d7a7dd486f589b1000f7d2f5b2893b45680ed31f1c4d SHA512 555c38183c7c402a66c151e52bbac9e6c501528cd661ad1708576444b6dc4daa19e0d75c9b79f8590843e0e40b3758d9bea08e426e754688cd32070dfce5a649
+EBUILD wcwidth-0.0.2.ebuild 839 BLAKE2B fbfa7391071d2ac3f877f3b55244e4614f07d20ae3c59d0c24bae3aa81c6c79b0ec7a784e59530b46f0ae35a31770906e07f12270301fe2aa5c0e964347f17cf SHA512 10081b0b13d93c4502a0d33db17a210a38c46c8d1b2432d22d7c5050514140e1f194f5900064106b8146562bd146deaa4f3fbf90dcc43fc9b990ef4e9cda0c32
+MISC metadata.xml 573 BLAKE2B 96dd1da6043be2b9cbc0b1846aa4d803560046c031baa9129af1d54cdaffb18fe73696b2c314c42d29f5e106f66154f45558366c8b76441fadb20ad551577d61 SHA512 83838b6164d9ba2126d3fd18eab3b63f7236b0ac98ec490e70557b112dae3fcad6d7c4869e02e383f25df022ca8bb5999b0e24c45caf18ff8d42c1ee863f5418
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 000000000000..7332f9edf0e3
--- /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 <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
+
diff --git a/dev-haskell/wcwidth/metadata.xml b/dev-haskell/wcwidth/metadata.xml
new file mode 100644
index 000000000000..9e3d25033a24
--- /dev/null
+++ b/dev-haskell/wcwidth/metadata.xml
@@ -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>
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 000000000000..32bc1fc8e9e2
--- /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
+}