diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
| commit | dda948891d3731927b821ce31f9d9a2d03ba20c5 (patch) | |
| tree | 99cd40be4cbb0606260da212cd81b8ab2db9da9b /dev-haskell/wcwidth | |
| parent | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff) | |
| download | baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip | |
Adding metadata
Diffstat (limited to 'dev-haskell/wcwidth')
| -rw-r--r-- | dev-haskell/wcwidth/Manifest | 1 | ||||
| -rw-r--r-- | dev-haskell/wcwidth/files/wcwidth-0.0.2-fix-build-failure.patch | 32 | ||||
| -rw-r--r-- | dev-haskell/wcwidth/metadata.xml | 19 | ||||
| -rw-r--r-- | dev-haskell/wcwidth/wcwidth-0.0.2.ebuild | 35 |
4 files changed, 87 insertions, 0 deletions
diff --git a/dev-haskell/wcwidth/Manifest b/dev-haskell/wcwidth/Manifest new file mode 100644 index 000000000000..dd3dcc4dbd78 --- /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 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..6f8b29cbf6a9 --- /dev/null +++ b/dev-haskell/wcwidth/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/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> + <origin>baldeagleos-repo</origin> +</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..548bfd295202 --- /dev/null +++ b/dev-haskell/wcwidth/wcwidth-0.0.2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# 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 ~arm64 ~ppc64 ~riscv ~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 +} |
