[arch-commits] Commit in haskell-optparse-simple/trunk (PKGBUILD ghc9.patch)
Felix Yan
felixonmars at archlinux.org
Tue Jun 22 07:52:06 UTC 2021
Date: Tuesday, June 22, 2021 @ 07:52:06
Author: felixonmars
Revision: 966813
upgpkg: haskell-optparse-simple 0.1.1.3-170: rebuild with ghc 9.0.1
Added:
haskell-optparse-simple/trunk/ghc9.patch
Modified:
haskell-optparse-simple/trunk/PKGBUILD
------------+
PKGBUILD | 15 +++++++++++----
ghc9.patch | 21 +++++++++++++++++++++
2 files changed, 32 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-22 07:33:00 UTC (rev 966812)
+++ PKGBUILD 2021-06-22 07:52:06 UTC (rev 966813)
@@ -4,16 +4,23 @@
_hkgname=optparse-simple
pkgname=haskell-optparse-simple
pkgver=0.1.1.3
-pkgrel=169
+pkgrel=170
pkgdesc="Simple interface to optparse-applicative"
url="https://hackage.haskell.org/package/${_hkgname}"
license=("BSD")
arch=('x86_64')
-depends=('ghc-libs' 'haskell-githash' 'haskell-optparse-applicative')
+depends=('ghc-libs' 'haskell-githash' 'haskell-optparse-applicative' 'haskell-th-compat')
makedepends=('ghc')
-source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('9ab7208b459a196ec54511de6b51c98eabe29f5756c09c1f23653a0ff12cbd402ab8366ccfdc12467dce4be0fa1cae96571925ac5858d12478f0ed41168ecdf9')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+ ghc9.patch)
+sha512sums=('9ab7208b459a196ec54511de6b51c98eabe29f5756c09c1f23653a0ff12cbd402ab8366ccfdc12467dce4be0fa1cae96571925ac5858d12478f0ed41168ecdf9'
+ '26ba7c0d512d648fb86ea1e11bd89c55d9241a1a67438be6a0c8ee054bc99b590c57dd5c2c6445c14888f1835da4c345ff7cb4365c70eca101d0f9acfb2917a8')
+prepare() {
+ patch -d $_hkgname-$pkgver -p1 < ghc9.patch
+ sed -i '/githash/a \ , th-compat' $_hkgname-$pkgver/$_hkgname.cabal
+}
+
build() {
cd $_hkgname-$pkgver
Added: ghc9.patch
===================================================================
--- ghc9.patch (rev 0)
+++ ghc9.patch 2021-06-22 07:52:06 UTC (rev 966813)
@@ -0,0 +1,21 @@
+diff --git a/src/Options/Applicative/Simple.hs b/src/Options/Applicative/Simple.hs
+index f5d2dac..defcdcb 100644
+--- a/src/Options/Applicative/Simple.hs
++++ b/src/Options/Applicative/Simple.hs
+@@ -52,6 +52,7 @@ import Data.Version
+ import GitHash (GitInfo, giDirty, giHash, tGitInfoCwdTry)
+ import Language.Haskell.TH (Q,Exp)
+ import qualified Language.Haskell.TH.Syntax as TH
++import Language.Haskell.TH.Syntax.Compat
+ import Options.Applicative
+ import System.Environment
+
+@@ -89,7 +90,7 @@ simpleVersion version =
+ [|concat (["Version "
+ ,$(TH.lift $ showVersion version)
+ ] ++
+- case $(TH.unTypeQ tGitInfoCwdTry) :: Either String GitInfo of
++ case $(unTypeSplice tGitInfoCwdTry) :: Either String GitInfo of
+ Left _ -> []
+ Right gi -> [ ", Git revision "
+ , giHash gi
More information about the arch-commits
mailing list