[arch-commits] Commit in haskell-yesod-core/repos (3 files)

Felix Yan felixonmars at archlinux.org
Sat Jul 3 04:57:06 UTC 2021


    Date: Saturday, July 3, 2021 @ 04:57:06
  Author: felixonmars
Revision: 971774

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-yesod-core/repos/community-staging-x86_64/
  haskell-yesod-core/repos/community-staging-x86_64/PKGBUILD
    (from rev 971773, haskell-yesod-core/trunk/PKGBUILD)
  haskell-yesod-core/repos/community-staging-x86_64/ghc9.patch
    (from rev 971773, haskell-yesod-core/trunk/ghc9.patch)

------------+
 PKGBUILD   |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 ghc9.patch |   22 ++++++++++++++++++++++
 2 files changed, 74 insertions(+)

Copied: haskell-yesod-core/repos/community-staging-x86_64/PKGBUILD (from rev 971773, haskell-yesod-core/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-07-03 04:57:06 UTC (rev 971774)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=yesod-core
+pkgname=haskell-yesod-core
+pkgver=1.6.20.1
+pkgrel=13
+pkgdesc="Creation of type-safe, RESTful web applications."
+url="http://www.yesodweb.com/"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-auto-update' 'haskell-blaze-html'
+         'haskell-blaze-markup' 'haskell-case-insensitive' 'haskell-cereal'
+         'haskell-clientsession' 'haskell-conduit' 'haskell-conduit-extra' 'haskell-cookie'
+         'haskell-entropy' 'haskell-fast-logger' 'haskell-http-types' 'haskell-memory'
+         'haskell-monad-logger' 'haskell-old-locale' 'haskell-path-pieces' 'haskell-primitive'
+         'haskell-random' 'haskell-resourcet' 'haskell-shakespeare' 'haskell-unix-compat'
+         'haskell-unliftio' 'haskell-unordered-containers' 'haskell-vector' 'haskell-wai'
+         'haskell-wai-extra' 'haskell-wai-logger' 'haskell-warp' 'haskell-word8')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+        ghc9.patch)
+sha512sums=('626cffc53ea4e9b8a425dd84571955e2efcbb99d8feebdfd54bcfa62933111c5ed1f0a8435968b816f2d0360392194de8040dd66dedbaae39a47171790da443e'
+            'c6d5e04f1883c01d3302e7fcb5a0465d9e4f65b51d5c19140a6e9f3bffafdf08cc098202ddea58d548095b9150344d0be61993d01aee7ffb882ac55a03cf104e')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    patch -p2 -i ../ghc9.patch
+}
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    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
+    runhaskell Setup build $MAKEFLAGS
+    runhaskell Setup register --gen-script
+    runhaskell Setup unregister --gen-script
+    sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+    cd $_hkgname-$pkgver
+    
+    install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
+    install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+    runhaskell Setup copy --destdir="$pkgdir"
+    install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-yesod-core/repos/community-staging-x86_64/ghc9.patch (from rev 971773, haskell-yesod-core/trunk/ghc9.patch)
===================================================================
--- community-staging-x86_64/ghc9.patch	                        (rev 0)
+++ community-staging-x86_64/ghc9.patch	2021-07-03 04:57:06 UTC (rev 971774)
@@ -0,0 +1,22 @@
+commit a1e18c5b6832f30e0bb119406f0660863db40dd4
+Author: Felix Yan <felixonmars at archlinux.org>
+Date:   Fri Jun 25 10:54:55 2021 +0800
+
+    Fix compatibility with template-haskell 2.17
+
+diff --git a/yesod-core/src/Yesod/Core/Internal/TH.hs b/yesod-core/src/Yesod/Core/Internal/TH.hs
+index f3505b91..11bbf90b 100644
+--- a/yesod-core/src/Yesod/Core/Internal/TH.hs
++++ b/yesod-core/src/Yesod/Core/Internal/TH.hs
+@@ -107,9 +107,9 @@ mkYesodDispatch name = fmap snd . mkYesodWithParser name False return
+ -- | Get the Handler and Widget type synonyms for the given site.
+ masterTypeSyns :: [Name] -> Type -> [Dec] -- FIXME remove from here, put into the scaffolding itself?
+ masterTypeSyns vs site =
+-    [ TySynD (mkName "Handler") (fmap PlainTV vs)
++    [ TySynD (mkName "Handler") (fmap plainTV vs)
+       $ ConT ''HandlerFor `AppT` site
+-    , TySynD (mkName "Widget")  (fmap PlainTV vs)
++    , TySynD (mkName "Widget")  (fmap plainTV vs)
+       $ ConT ''WidgetFor `AppT` site `AppT` ConT ''()
+     ]
+ 




More information about the arch-commits mailing list