[arch-commits] Commit in hoogle/repos (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Sep 15 14:15:09 UTC 2021


    Date: Wednesday, September 15, 2021 @ 14:15:09
  Author: felixonmars
Revision: 1015562

archrelease: copy trunk to community-staging-x86_64

Added:
  hoogle/repos/community-staging-x86_64/
  hoogle/repos/community-staging-x86_64/PKGBUILD
    (from rev 1015561, hoogle/trunk/PKGBUILD)
  hoogle/repos/community-staging-x86_64/extra-1.7.10.patch
    (from rev 1015561, hoogle/trunk/extra-1.7.10.patch)

--------------------+
 PKGBUILD           |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 extra-1.7.10.patch |   23 +++++++++++++++++++++++
 2 files changed, 74 insertions(+)

Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 1015561, hoogle/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-09-15 14:15:09 UTC (rev 1015562)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hoogle
+pkgver=5.0.18.1
+pkgrel=153
+pkgdesc="Haskell API Search"
+url="https://www.haskell.org/hoogle/"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-blaze-html'
+         'haskell-blaze-markup' 'haskell-cmdargs' 'haskell-conduit' 'haskell-conduit-extra'
+         'haskell-connection' 'haskell-extra' 'haskell-foundation' 'haskell-hashable'
+         'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' 'haskell-js-jquery'
+         'haskell-mmap' 'haskell-network' 'haskell-old-locale' 'haskell-process-extras'
+         'haskell-resourcet' 'haskell-src-exts' 'haskell-storable-tuple' 'haskell-tar'
+         'haskell-uniplate' 'haskell-utf8-string' 'haskell-vector' 'haskell-wai'
+         'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' 'haskell-zlib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        extra-1.7.10.patch)
+sha512sums=('00abbcf557824c604abbd5e9d27a5ca3d4a89e943888b6eef70dea46b8f786dfc851cb1c8f1531c808f4b71b34d3899258f3b009b0a38a385fc5c393a914da17'
+            '5397bcc5554b4e0a1a30947cf646bbc5f010e86113dfb0ecbe7e1024769ae85d8d7401b30306fd588f5f8103837c82978665fcba742578fef7d37deec2982f6d')
+
+prepare() {
+    patch -d $pkgname-$pkgver -p1 < extra-1.7.10.patch
+}
+
+build() {
+    cd $pkgname-$pkgver
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+        --ghc-option='-pie'
+    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 $pkgname-$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: hoogle/repos/community-staging-x86_64/extra-1.7.10.patch (from rev 1015561, hoogle/trunk/extra-1.7.10.patch)
===================================================================
--- community-staging-x86_64/extra-1.7.10.patch	                        (rev 0)
+++ community-staging-x86_64/extra-1.7.10.patch	2021-09-15 14:15:09 UTC (rev 1015562)
@@ -0,0 +1,23 @@
+From 620da73bc474786b4addf669f17af76142e891f1 Mon Sep 17 00:00:00 2001
+From: Neil Mitchell <ndmitchell at gmail.com>
+Date: Mon, 30 Aug 2021 21:25:36 +0100
+Subject: [PATCH] Qualify !? so it doesn't conflict with extra
+
+---
+ CHANGES.txt          | 1 +
+ src/Action/Server.hs | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/Action/Server.hs b/src/Action/Server.hs
+index f05dbc69..935cc313 100644
+--- a/src/Action/Server.hs
++++ b/src/Action/Server.hs
+@@ -163,7 +163,7 @@ replyServer log local links haddock store cdn home htmlDir scope Input{..} = cas
+         html = templateMarkup
+         text = templateMarkup . H.string
+ 
+-        tagOptions sel = mconcat [H.option !? (x `elem` sel, H.selected "selected") $ H.string x | x <- completionTags store]
++        tagOptions sel = mconcat [H.option Text.Blaze.!? (x `elem` sel, H.selected "selected") $ H.string x | x <- completionTags store]
+         params =
+             [("cdn", text cdn)
+             ,("home", text home)



More information about the arch-commits mailing list