[arch-commits] Commit in haskell-shakespeare/repos (6 files)

Felix Yan felixonmars at archlinux.org
Wed Dec 28 02:30:57 UTC 2016


    Date: Wednesday, December 28, 2016 @ 02:30:56
  Author: felixonmars
Revision: 203129

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

Added:
  haskell-shakespeare/repos/community-i686/PKGBUILD
    (from rev 203128, haskell-shakespeare/trunk/PKGBUILD)
  haskell-shakespeare/repos/community-i686/issue201.patch
    (from rev 203128, haskell-shakespeare/trunk/issue201.patch)
  haskell-shakespeare/repos/community-x86_64/PKGBUILD
    (from rev 203128, haskell-shakespeare/trunk/PKGBUILD)
  haskell-shakespeare/repos/community-x86_64/issue201.patch
    (from rev 203128, haskell-shakespeare/trunk/issue201.patch)
Deleted:
  haskell-shakespeare/repos/community-i686/issue201.patch
  haskell-shakespeare/repos/community-x86_64/issue201.patch

---------------------------------+
 /issue201.patch                 |   42 ++++++++++++++++++++++++++++++
 community-i686/PKGBUILD         |   53 ++++++++++++++++++++++++++++++++++++++
 community-i686/issue201.patch   |   21 ---------------
 community-x86_64/PKGBUILD       |   53 ++++++++++++++++++++++++++++++++++++++
 community-x86_64/issue201.patch |   21 ---------------
 5 files changed, 148 insertions(+), 42 deletions(-)

Copied: haskell-shakespeare/repos/community-i686/PKGBUILD (from rev 203128, haskell-shakespeare/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-12-28 02:30:56 UTC (rev 203129)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=shakespeare
+pkgname=haskell-shakespeare
+pkgver=2.0.12
+pkgrel=2
+pkgdesc="A toolkit for making compile-time interpolated templates"
+url="http://www.yesodweb.com/book/shakespearean-templates"
+license=("MIT")
+arch=('i686' 'x86_64')
+depends=("ghc=8.0.1" "haskell-aeson" "haskell-blaze-html" "haskell-blaze-markup"
+         "haskell-exceptions" "haskell-parsec" "haskell-scientific" "haskell-text"
+         "haskell-unordered-containers" "haskell-vector")
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+        issue201.patch)
+sha256sums=('9f07d26f00bba94ea47c35197132d22d8f6cb56de53bad818c5db8382c7cae91'
+            '7f5fdcd7afe63168df07ad59c4c191c76b341e811d1952b4da089763a165c6ff')
+
+prepare() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    # https://github.com/yesodweb/shakespeare/pull/201
+    patch -p1 -i ../issue201.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 \
+            -f-test_roy -f-test_coffee -f-test_export
+    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"
+}

Deleted: community-i686/issue201.patch
===================================================================
--- community-i686/issue201.patch	2016-12-28 02:29:56 UTC (rev 203128)
+++ community-i686/issue201.patch	2016-12-28 02:30:56 UTC (rev 203129)
@@ -1,21 +0,0 @@
-From 81875f9409cb306ec518d61812a6f3f075e16339 Mon Sep 17 00:00:00 2001
-From: Tyler Erickson <me at tylererickson.com>
-Date: Tue, 27 Dec 2016 12:09:46 -0800
-Subject: [PATCH] Fixed regression caused by previous merge
-
----
- Text/Hamlet/Parse.hs | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/Text/Hamlet/Parse.hs b/Text/Hamlet/Parse.hs
-index d0c9961..27b65a7 100644
---- a/Text/Hamlet/Parse.hs
-+++ b/Text/Hamlet/Parse.hs
-@@ -257,6 +257,7 @@ parseLine set = do
-         case x of
-             Left "#" -> case cr of
-                           InContent -> return (ContentRaw "#", False)
-+                          NotInQuotesAttr -> return (ContentRaw "#", False)
-                           _ -> fail "Expected hash at end of line, got Id"
-             Left str -> return (ContentRaw str, null str)
-             Right deref -> return (ContentVar deref, False)

Copied: haskell-shakespeare/repos/community-i686/issue201.patch (from rev 203128, haskell-shakespeare/trunk/issue201.patch)
===================================================================
--- community-i686/issue201.patch	                        (rev 0)
+++ community-i686/issue201.patch	2016-12-28 02:30:56 UTC (rev 203129)
@@ -0,0 +1,21 @@
+From 81875f9409cb306ec518d61812a6f3f075e16339 Mon Sep 17 00:00:00 2001
+From: Tyler Erickson <me at tylererickson.com>
+Date: Tue, 27 Dec 2016 12:09:46 -0800
+Subject: [PATCH] Fixed regression caused by previous merge
+
+---
+ Text/Hamlet/Parse.hs | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Text/Hamlet/Parse.hs b/Text/Hamlet/Parse.hs
+index d0c9961..27b65a7 100644
+--- a/Text/Hamlet/Parse.hs
++++ b/Text/Hamlet/Parse.hs
+@@ -257,6 +257,7 @@ parseLine set = do
+         case x of
+             Left "#" -> case cr of
+                           InContent -> return (ContentRaw "#", False)
++                          NotInQuotesAttr -> return (ContentRaw "#", False)
+                           _ -> fail "Expected hash at end of line, got Id"
+             Left str -> return (ContentRaw str, null str)
+             Right deref -> return (ContentVar deref, False)

Copied: haskell-shakespeare/repos/community-x86_64/PKGBUILD (from rev 203128, haskell-shakespeare/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-12-28 02:30:56 UTC (rev 203129)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=shakespeare
+pkgname=haskell-shakespeare
+pkgver=2.0.12
+pkgrel=2
+pkgdesc="A toolkit for making compile-time interpolated templates"
+url="http://www.yesodweb.com/book/shakespearean-templates"
+license=("MIT")
+arch=('i686' 'x86_64')
+depends=("ghc=8.0.1" "haskell-aeson" "haskell-blaze-html" "haskell-blaze-markup"
+         "haskell-exceptions" "haskell-parsec" "haskell-scientific" "haskell-text"
+         "haskell-unordered-containers" "haskell-vector")
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+        issue201.patch)
+sha256sums=('9f07d26f00bba94ea47c35197132d22d8f6cb56de53bad818c5db8382c7cae91'
+            '7f5fdcd7afe63168df07ad59c4c191c76b341e811d1952b4da089763a165c6ff')
+
+prepare() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    # https://github.com/yesodweb/shakespeare/pull/201
+    patch -p1 -i ../issue201.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 \
+            -f-test_roy -f-test_coffee -f-test_export
+    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"
+}

Deleted: community-x86_64/issue201.patch
===================================================================
--- community-x86_64/issue201.patch	2016-12-28 02:29:56 UTC (rev 203128)
+++ community-x86_64/issue201.patch	2016-12-28 02:30:56 UTC (rev 203129)
@@ -1,21 +0,0 @@
-From 81875f9409cb306ec518d61812a6f3f075e16339 Mon Sep 17 00:00:00 2001
-From: Tyler Erickson <me at tylererickson.com>
-Date: Tue, 27 Dec 2016 12:09:46 -0800
-Subject: [PATCH] Fixed regression caused by previous merge
-
----
- Text/Hamlet/Parse.hs | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/Text/Hamlet/Parse.hs b/Text/Hamlet/Parse.hs
-index d0c9961..27b65a7 100644
---- a/Text/Hamlet/Parse.hs
-+++ b/Text/Hamlet/Parse.hs
-@@ -257,6 +257,7 @@ parseLine set = do
-         case x of
-             Left "#" -> case cr of
-                           InContent -> return (ContentRaw "#", False)
-+                          NotInQuotesAttr -> return (ContentRaw "#", False)
-                           _ -> fail "Expected hash at end of line, got Id"
-             Left str -> return (ContentRaw str, null str)
-             Right deref -> return (ContentVar deref, False)

Copied: haskell-shakespeare/repos/community-x86_64/issue201.patch (from rev 203128, haskell-shakespeare/trunk/issue201.patch)
===================================================================
--- community-x86_64/issue201.patch	                        (rev 0)
+++ community-x86_64/issue201.patch	2016-12-28 02:30:56 UTC (rev 203129)
@@ -0,0 +1,21 @@
+From 81875f9409cb306ec518d61812a6f3f075e16339 Mon Sep 17 00:00:00 2001
+From: Tyler Erickson <me at tylererickson.com>
+Date: Tue, 27 Dec 2016 12:09:46 -0800
+Subject: [PATCH] Fixed regression caused by previous merge
+
+---
+ Text/Hamlet/Parse.hs | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Text/Hamlet/Parse.hs b/Text/Hamlet/Parse.hs
+index d0c9961..27b65a7 100644
+--- a/Text/Hamlet/Parse.hs
++++ b/Text/Hamlet/Parse.hs
+@@ -257,6 +257,7 @@ parseLine set = do
+         case x of
+             Left "#" -> case cr of
+                           InContent -> return (ContentRaw "#", False)
++                          NotInQuotesAttr -> return (ContentRaw "#", False)
+                           _ -> fail "Expected hash at end of line, got Id"
+             Left str -> return (ContentRaw str, null str)
+             Right deref -> return (ContentVar deref, False)



More information about the arch-commits mailing list