[arch-commits] Commit in haskell-optparse-simple/trunk (PKGBUILD ghc9.patch)

Felix Yan felixonmars at archlinux.org
Tue Jul 6 03:08:41 UTC 2021


    Date: Tuesday, July 6, 2021 @ 03:08:40
  Author: felixonmars
Revision: 972596

upgpkg: haskell-optparse-simple 0.1.1.4-1: rebuild with optparse-simple 0.1.1.4

Modified:
  haskell-optparse-simple/trunk/PKGBUILD
Deleted:
  haskell-optparse-simple/trunk/ghc9.patch

------------+
 PKGBUILD   |   15 ++++-----------
 ghc9.patch |   21 ---------------------
 2 files changed, 4 insertions(+), 32 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-07-06 03:05:45 UTC (rev 972595)
+++ PKGBUILD	2021-07-06 03:08:40 UTC (rev 972596)
@@ -3,8 +3,8 @@
 
 _hkgname=optparse-simple
 pkgname=haskell-optparse-simple
-pkgver=0.1.1.3
-pkgrel=172
+pkgver=0.1.1.4
+pkgrel=1
 pkgdesc="Simple interface to optparse-applicative"
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=("BSD")
@@ -11,16 +11,9 @@
 arch=('x86_64')
 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"
-        ghc9.patch)
-sha512sums=('9ab7208b459a196ec54511de6b51c98eabe29f5756c09c1f23653a0ff12cbd402ab8366ccfdc12467dce4be0fa1cae96571925ac5858d12478f0ed41168ecdf9'
-            '26ba7c0d512d648fb86ea1e11bd89c55d9241a1a67438be6a0c8ee054bc99b590c57dd5c2c6445c14888f1835da4c345ff7cb4365c70eca101d0f9acfb2917a8')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('1e49f60eead8553d7dd4cc162b5a2a07a99eda2519a53947808d7b4c909e37cfa7734d4c8dce3cf83cbf1efbdeed6037bf480b768b7f9ee7add5e5afbe006557')
 
-prepare() {
-    patch -d $_hkgname-$pkgver -p1 < ghc9.patch
-    sed -i '/githash/a \    , th-compat' $_hkgname-$pkgver/$_hkgname.cabal
-}
-
 build() {
     cd $_hkgname-$pkgver
 

Deleted: ghc9.patch
===================================================================
--- ghc9.patch	2021-07-06 03:05:45 UTC (rev 972595)
+++ ghc9.patch	2021-07-06 03:08:40 UTC (rev 972596)
@@ -1,21 +0,0 @@
-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