[arch-commits] Commit in haskell-hakyll/repos (8 files)

Felix Yan felixonmars at archlinux.org
Mon Oct 24 04:39:51 UTC 2016


    Date: Monday, October 24, 2016 @ 04:39:50
  Author: felixonmars
Revision: 193156

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  haskell-hakyll/repos/community-staging-i686/
  haskell-hakyll/repos/community-staging-i686/PKGBUILD
    (from rev 193155, haskell-hakyll/trunk/PKGBUILD)
  haskell-hakyll/repos/community-staging-i686/http-conduit-2.2.patch
    (from rev 193155, haskell-hakyll/trunk/http-conduit-2.2.patch)
  haskell-hakyll/repos/community-staging-i686/optparse-applicative-0.13.patch
    (from rev 193155, haskell-hakyll/trunk/optparse-applicative-0.13.patch)
  haskell-hakyll/repos/community-staging-x86_64/
  haskell-hakyll/repos/community-staging-x86_64/PKGBUILD
    (from rev 193155, haskell-hakyll/trunk/PKGBUILD)
  haskell-hakyll/repos/community-staging-x86_64/http-conduit-2.2.patch
    (from rev 193155, haskell-hakyll/trunk/http-conduit-2.2.patch)
  haskell-hakyll/repos/community-staging-x86_64/optparse-applicative-0.13.patch
    (from rev 193155, haskell-hakyll/trunk/optparse-applicative-0.13.patch)

----------------------------------------------------------+
 community-staging-i686/PKGBUILD                          |   58 +++++++++++++
 community-staging-i686/http-conduit-2.2.patch            |   39 ++++++++
 community-staging-i686/optparse-applicative-0.13.patch   |   37 ++++++++
 community-staging-x86_64/PKGBUILD                        |   58 +++++++++++++
 community-staging-x86_64/http-conduit-2.2.patch          |   39 ++++++++
 community-staging-x86_64/optparse-applicative-0.13.patch |   37 ++++++++
 6 files changed, 268 insertions(+)

Copied: haskell-hakyll/repos/community-staging-i686/PKGBUILD (from rev 193155, haskell-hakyll/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2016-10-24 04:39:50 UTC (rev 193156)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=hakyll
+pkgname=haskell-hakyll
+pkgver=4.9.0.0
+pkgrel=4
+pkgdesc="A static website compiler library"
+url="http://jaspervdj.be/hakyll"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=("ghc=8.0.1" "haskell-blaze-html" "haskell-blaze-markup" "haskell-cryptohash"
+         "haskell-data-default" "haskell-fsnotify" "haskell-http-conduit" "haskell-http-types"
+         "haskell-lrucache" "haskell-mtl" "haskell-network" "haskell-network-uri"
+         "haskell-optparse-applicative" "haskell-pandoc" "haskell-pandoc-citeproc" "haskell-parsec"
+         "haskell-random" "haskell-regex-base" "haskell-regex-tdfa" "haskell-resourcet"
+         "haskell-scientific" "haskell-system-filepath" "haskell-tagsoup" "haskell-text"
+         "haskell-time-locale-compat" "haskell-unordered-containers" "haskell-vector" "haskell-wai"
+         "haskell-wai-app-static" "haskell-warp" "haskell-yaml")
+source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+        http-conduit-2.2.patch optparse-applicative-0.13.patch)
+sha256sums=('6c21697efaf30166a1afc508f1122e2b828ade9d8d4d53408b13c1216337295e'
+            'f1871d8f381bacfe4ba01e7f037c635fff591d8fb353a2f26d08b1af1311142a'
+            '0b38abf39d8a410e06a5875ddadfb9c22cd37b4552b224dfabd52f30e9015abb')
+
+prepare() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    patch -p1 -i ../http-conduit-2.2.patch
+    patch -p1 -i ../optparse-applicative-0.13.patch
+}
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --libsubdir=\$compiler/site-local/\$pkgid \
+            -fcheckexternal -fwatchserver -fpreviewserver
+    runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    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 "${srcdir}/${_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"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+    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-hakyll/repos/community-staging-i686/http-conduit-2.2.patch (from rev 193155, haskell-hakyll/trunk/http-conduit-2.2.patch)
===================================================================
--- community-staging-i686/http-conduit-2.2.patch	                        (rev 0)
+++ community-staging-i686/http-conduit-2.2.patch	2016-10-24 04:39:50 UTC (rev 193156)
@@ -0,0 +1,39 @@
+From ccb004ba10cfcdbcc419440e5f877605896bac4c Mon Sep 17 00:00:00 2001
+From: Chris Wong <lambda.fairy at gmail.com>
+Date: Fri, 14 Oct 2016 22:42:03 +1300
+Subject: [PATCH] Update to http-conduit 2.2
+
+The new `parseRequest` function doesn't throw on non-200 responses, so
+we don't need to account for these in the exception handler.
+---
+ hakyll.cabal        | 2 +-
+ src/Hakyll/Check.hs | 5 ++---
+ 2 files changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/hakyll.cabal b/hakyll.cabal
+index 44a09e5..c66524e 100644
+--- a/hakyll.cabal
++++ b/hakyll.cabal
+@@ -202,7 +202,7 @@ Library
+ 
+   If flag(checkExternal)
+     Build-depends:
+-      http-conduit >= 2.1    && < 2.2,
++      http-conduit >= 2.2    && < 2.3,
+       http-types   >= 0.7    && < 0.10
+     Cpp-options:
+       -DCHECK_EXTERNAL
+diff --git a/src/Hakyll/Check.hs b/src/Hakyll/Check.hs
+index c917f3a..b41b40e 100644
+--- a/src/Hakyll/Check.hs
++++ b/src/Hakyll/Check.hs
+@@ -236,8 +236,7 @@ checkExternalUrl url = do
+ 
+     -- Convert exception to a concise form
+     showException e = case cast e of
+-        Just (Http.StatusCodeException (Http.Status code msg) _ _) ->
+-            show code ++ " " ++ unpack msg
++        Just (Http.HttpExceptionRequest _ e') -> show e'
+         _ -> head $ words $ show e
+ #else
+ checkExternalUrl _ = return ()

Copied: haskell-hakyll/repos/community-staging-i686/optparse-applicative-0.13.patch (from rev 193155, haskell-hakyll/trunk/optparse-applicative-0.13.patch)
===================================================================
--- community-staging-i686/optparse-applicative-0.13.patch	                        (rev 0)
+++ community-staging-i686/optparse-applicative-0.13.patch	2016-10-24 04:39:50 UTC (rev 193156)
@@ -0,0 +1,37 @@
+From 218d68363adc426b91dcbcdfb44f9f3da85f2e7a Mon Sep 17 00:00:00 2001
+From: Chris Wong <lambda.fairy at gmail.com>
+Date: Fri, 14 Oct 2016 22:44:24 +1300
+Subject: [PATCH] Update to optparse-applicative 0.13
+
+---
+ hakyll.cabal       | 2 +-
+ src/Hakyll/Main.hs | 3 ++-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/hakyll.cabal b/hakyll.cabal
+index c66524e..06cff67 100644
+--- a/hakyll.cabal
++++ b/hakyll.cabal
+@@ -175,7 +175,7 @@ Library
+     unordered-containers >= 0.2    && < 0.3,
+     vector               >= 0.11   && < 0.12,
+     yaml                 >= 0.8    && < 0.9,
+-    optparse-applicative >= 0.12   && < 0.13
++    optparse-applicative >= 0.13   && < 0.14
+ 
+   If flag(previewServer)
+     Build-depends:
+diff --git a/src/Hakyll/Main.hs b/src/Hakyll/Main.hs
+index c46c705..b48743b 100644
+--- a/src/Hakyll/Main.hs
++++ b/src/Hakyll/Main.hs
+@@ -16,7 +16,8 @@ import           System.Exit                     (ExitCode(ExitSuccess), exitWit
+ 
+ 
+ --------------------------------------------------------------------------------
+-import Options.Applicative
++import           Data.Monoid                     ((<>))
++import           Options.Applicative
+ 
+ 
+ --------------------------------------------------------------------------------

Copied: haskell-hakyll/repos/community-staging-x86_64/PKGBUILD (from rev 193155, haskell-hakyll/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2016-10-24 04:39:50 UTC (rev 193156)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=hakyll
+pkgname=haskell-hakyll
+pkgver=4.9.0.0
+pkgrel=4
+pkgdesc="A static website compiler library"
+url="http://jaspervdj.be/hakyll"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=("ghc=8.0.1" "haskell-blaze-html" "haskell-blaze-markup" "haskell-cryptohash"
+         "haskell-data-default" "haskell-fsnotify" "haskell-http-conduit" "haskell-http-types"
+         "haskell-lrucache" "haskell-mtl" "haskell-network" "haskell-network-uri"
+         "haskell-optparse-applicative" "haskell-pandoc" "haskell-pandoc-citeproc" "haskell-parsec"
+         "haskell-random" "haskell-regex-base" "haskell-regex-tdfa" "haskell-resourcet"
+         "haskell-scientific" "haskell-system-filepath" "haskell-tagsoup" "haskell-text"
+         "haskell-time-locale-compat" "haskell-unordered-containers" "haskell-vector" "haskell-wai"
+         "haskell-wai-app-static" "haskell-warp" "haskell-yaml")
+source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+        http-conduit-2.2.patch optparse-applicative-0.13.patch)
+sha256sums=('6c21697efaf30166a1afc508f1122e2b828ade9d8d4d53408b13c1216337295e'
+            'f1871d8f381bacfe4ba01e7f037c635fff591d8fb353a2f26d08b1af1311142a'
+            '0b38abf39d8a410e06a5875ddadfb9c22cd37b4552b224dfabd52f30e9015abb')
+
+prepare() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    patch -p1 -i ../http-conduit-2.2.patch
+    patch -p1 -i ../optparse-applicative-0.13.patch
+}
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --libsubdir=\$compiler/site-local/\$pkgid \
+            -fcheckexternal -fwatchserver -fpreviewserver
+    runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    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 "${srcdir}/${_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"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+    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-hakyll/repos/community-staging-x86_64/http-conduit-2.2.patch (from rev 193155, haskell-hakyll/trunk/http-conduit-2.2.patch)
===================================================================
--- community-staging-x86_64/http-conduit-2.2.patch	                        (rev 0)
+++ community-staging-x86_64/http-conduit-2.2.patch	2016-10-24 04:39:50 UTC (rev 193156)
@@ -0,0 +1,39 @@
+From ccb004ba10cfcdbcc419440e5f877605896bac4c Mon Sep 17 00:00:00 2001
+From: Chris Wong <lambda.fairy at gmail.com>
+Date: Fri, 14 Oct 2016 22:42:03 +1300
+Subject: [PATCH] Update to http-conduit 2.2
+
+The new `parseRequest` function doesn't throw on non-200 responses, so
+we don't need to account for these in the exception handler.
+---
+ hakyll.cabal        | 2 +-
+ src/Hakyll/Check.hs | 5 ++---
+ 2 files changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/hakyll.cabal b/hakyll.cabal
+index 44a09e5..c66524e 100644
+--- a/hakyll.cabal
++++ b/hakyll.cabal
+@@ -202,7 +202,7 @@ Library
+ 
+   If flag(checkExternal)
+     Build-depends:
+-      http-conduit >= 2.1    && < 2.2,
++      http-conduit >= 2.2    && < 2.3,
+       http-types   >= 0.7    && < 0.10
+     Cpp-options:
+       -DCHECK_EXTERNAL
+diff --git a/src/Hakyll/Check.hs b/src/Hakyll/Check.hs
+index c917f3a..b41b40e 100644
+--- a/src/Hakyll/Check.hs
++++ b/src/Hakyll/Check.hs
+@@ -236,8 +236,7 @@ checkExternalUrl url = do
+ 
+     -- Convert exception to a concise form
+     showException e = case cast e of
+-        Just (Http.StatusCodeException (Http.Status code msg) _ _) ->
+-            show code ++ " " ++ unpack msg
++        Just (Http.HttpExceptionRequest _ e') -> show e'
+         _ -> head $ words $ show e
+ #else
+ checkExternalUrl _ = return ()

Copied: haskell-hakyll/repos/community-staging-x86_64/optparse-applicative-0.13.patch (from rev 193155, haskell-hakyll/trunk/optparse-applicative-0.13.patch)
===================================================================
--- community-staging-x86_64/optparse-applicative-0.13.patch	                        (rev 0)
+++ community-staging-x86_64/optparse-applicative-0.13.patch	2016-10-24 04:39:50 UTC (rev 193156)
@@ -0,0 +1,37 @@
+From 218d68363adc426b91dcbcdfb44f9f3da85f2e7a Mon Sep 17 00:00:00 2001
+From: Chris Wong <lambda.fairy at gmail.com>
+Date: Fri, 14 Oct 2016 22:44:24 +1300
+Subject: [PATCH] Update to optparse-applicative 0.13
+
+---
+ hakyll.cabal       | 2 +-
+ src/Hakyll/Main.hs | 3 ++-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/hakyll.cabal b/hakyll.cabal
+index c66524e..06cff67 100644
+--- a/hakyll.cabal
++++ b/hakyll.cabal
+@@ -175,7 +175,7 @@ Library
+     unordered-containers >= 0.2    && < 0.3,
+     vector               >= 0.11   && < 0.12,
+     yaml                 >= 0.8    && < 0.9,
+-    optparse-applicative >= 0.12   && < 0.13
++    optparse-applicative >= 0.13   && < 0.14
+ 
+   If flag(previewServer)
+     Build-depends:
+diff --git a/src/Hakyll/Main.hs b/src/Hakyll/Main.hs
+index c46c705..b48743b 100644
+--- a/src/Hakyll/Main.hs
++++ b/src/Hakyll/Main.hs
+@@ -16,7 +16,8 @@ import           System.Exit                     (ExitCode(ExitSuccess), exitWit
+ 
+ 
+ --------------------------------------------------------------------------------
+-import Options.Applicative
++import           Data.Monoid                     ((<>))
++import           Options.Applicative
+ 
+ 
+ --------------------------------------------------------------------------------



More information about the arch-commits mailing list