testing/haskell-ansi-wl-pprint: new aport

parent a210239a
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=haskell-ansi-wl-pprint
pkgver=0.6.9
pkgrel=0
pkgdesc="The Wadler/Leijen Pretty Printer for colored ANSI terminal output"
url="https://github.com/ekmett/ansi-wl-pprint"
arch="x86_64"
license="BSD-3-Clause"
depends="ghc haskell-ansi-terminal"
options="!tracedeps"
install="$pkgname.post-install $pkgname.pre-deinstall"
subpackages="$pkgname-doc"
source="https://hackage.haskell.org/package/ansi-wl-pprint-$pkgver/ansi-wl-pprint-$pkgver.tar.gz
allow-ansi-terminal-0.10.patch"
builddir="$srcdir/ansi-wl-pprint-$pkgver"
build() {
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
--prefix=/usr --docdir=/usr/share/doc/$pkgname \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
--enable-tests
runhaskell Setup build
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
}
check() {
runhaskell Setup test
}
package() {
runhaskell Setup copy --destdir="$pkgdir"
install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
}
sha512sums="2a66236f740f0b45b6133555e8b1315dc85ece1c16dd51e4aa7f31d2fee03d66869af5f81e6383aa840f503c2cad46f3655f53b784ebca7b3480efb53eea2a04 ansi-wl-pprint-0.6.9.tar.gz
a561f298c3a67d3b285df613573f9694727990d5d3f8db33b6233ae06bef3024281e7e2477153a9a174954bdc35edb4ee69929320eb5b6a1adbdeb544d2f943f allow-ansi-terminal-0.10.patch"
From ee6be1484cea39ec7fd58af083e34c8691f838dd Mon Sep 17 00:00:00 2001
From: Oleg Grenrus <oleg.grenrus@iki.fi>
Date: Fri, 6 Sep 2019 14:31:25 +0300
Subject: [PATCH] Allow ansi-terminal-0.10
---
ansi-wl-pprint.cabal | 6 ++--
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/ansi-wl-pprint.cabal b/ansi-wl-pprint.cabal
index 319dc10..6f3cb9f 100644
--- a/ansi-wl-pprint.cabal
+++ b/ansi-wl-pprint.cabal
@@ -1,6 +1,8 @@
+cabal-version: >= 1.10
name: ansi-wl-pprint
version: 0.6.9
-cabal-version: >= 1.10
+x-revision: 1
+
category: User Interfaces, Text
synopsis: The Wadler/Leijen Pretty Printer for colored ANSI terminal output
description: {
@@ -44,7 +46,7 @@ library
-- see also notes in Text.PrettyPrint.ANSI.Leijen
build-depends: semigroups >= 0.18.5 && < 0.20
- build-depends: ansi-terminal >= 0.9.1 && < 0.10
+ build-depends: ansi-terminal >= 0.9.1 && < 0.11
build-depends: base >= 4.3 && < 5
if impl(ghc >= 7.4)
#!/bin/sh
pkgver=$1
script=$(basename $0)
pkgname=${script%-$pkgver.*}
/usr/share/haskell/register/$pkgname.sh
#!/bin/sh
pkgver=$1
script=$(basename $0)
pkgname=${script%-$pkgver.*}
/usr/share/haskell/unregister/$pkgname.sh
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment