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

2018-07-18 Thread Felix Yan via arch-commits
Date: Wednesday, July 18, 2018 @ 14:32:25
  Author: felixonmars
Revision: 361999

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 361998, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 361998, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 361998, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-18 14:32:25 UTC (rev 361999)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=66
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 361998, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-18 14:32:25 UTC (rev 
361999)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageD

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

2018-07-17 Thread Felix Yan via arch-commits
Date: Tuesday, July 17, 2018 @ 17:26:12
  Author: felixonmars
Revision: 361058

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 361057, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 361057, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 361057, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-17 17:26:12 UTC (rev 361058)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=65
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 361057, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-17 17:26:12 UTC (rev 
361058)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDes

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

2018-07-16 Thread Felix Yan via arch-commits
Date: Monday, July 16, 2018 @ 20:50:22
  Author: felixonmars
Revision: 360250

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 360249, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 360249, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 360249, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-16 20:50:22 UTC (rev 360250)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=64
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 360249, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-16 20:50:22 UTC (rev 
360250)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDesc

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

2018-07-16 Thread Felix Yan via arch-commits
Date: Monday, July 16, 2018 @ 17:31:16
  Author: felixonmars
Revision: 36

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 35, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 35, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 35, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-16 17:31:16 UTC (rev 36)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=63
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 35, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-16 17:31:16 UTC (rev 
36)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDesc

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

2018-07-14 Thread Felix Yan via arch-commits
Date: Saturday, July 14, 2018 @ 14:16:52
  Author: felixonmars
Revision: 359123

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 359122, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 359122, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 359122, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-14 14:16:52 UTC (rev 359123)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=62
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 359122, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-14 14:16:52 UTC (rev 
359123)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDe

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

2018-07-13 Thread Felix Yan via arch-commits
Date: Friday, July 13, 2018 @ 18:35:22
  Author: felixonmars
Revision: 358731

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 358730, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 358730, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 358730, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-13 18:35:22 UTC (rev 358731)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=61
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 358730, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-13 18:35:22 UTC (rev 
358731)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDesc

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

2018-07-12 Thread Felix Yan via arch-commits
Date: Thursday, July 12, 2018 @ 19:54:08
  Author: felixonmars
Revision: 358135

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 358134, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 358134, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 358134, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-12 19:54:08 UTC (rev 358135)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=60
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 358134, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-12 19:54:08 UTC (rev 
358135)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDe

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

2018-07-12 Thread Felix Yan via arch-commits
Date: Thursday, July 12, 2018 @ 08:07:06
  Author: felixonmars
Revision: 357591

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 357590, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 357590, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 357590, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-12 08:07:06 UTC (rev 357591)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=59
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 357590, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-12 08:07:06 UTC (rev 
357591)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDe

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

2018-07-10 Thread Felix Yan via arch-commits
Date: Tuesday, July 10, 2018 @ 23:18:22
  Author: felixonmars
Revision: 356607

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 356606, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 356606, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 356606, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-10 23:18:22 UTC (rev 356607)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=58
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 356606, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-10 23:18:22 UTC (rev 
356607)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDes

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

2018-07-09 Thread Felix Yan via arch-commits
Date: Tuesday, July 10, 2018 @ 02:35:44
  Author: felixonmars
Revision: 355957

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 355956, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 355956, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 355956, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-10 02:35:44 UTC (rev 355957)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=57
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 355956, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-10 02:35:44 UTC (rev 
355957)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDes

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

2018-07-08 Thread Felix Yan via arch-commits
Date: Sunday, July 8, 2018 @ 23:20:47
  Author: felixonmars
Revision: 355484

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 355483, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 355483, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 355483, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-08 23:20:47 UTC (rev 355484)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=56
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 355483, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-08 23:20:47 UTC (rev 
355484)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDescr

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

2018-07-08 Thread Felix Yan via arch-commits
Date: Sunday, July 8, 2018 @ 17:23:08
  Author: felixonmars
Revision: 355130

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 355129, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 355129, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 355129, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-08 17:23:08 UTC (rev 355130)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=55
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 355129, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-08 17:23:08 UTC (rev 
355130)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDescr

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

2018-07-07 Thread Felix Yan via arch-commits
Date: Saturday, July 7, 2018 @ 21:48:26
  Author: felixonmars
Revision: 354212

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 354211, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 354211, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 354211, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-07 21:48:26 UTC (rev 354212)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=54
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 354211, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-07 21:48:26 UTC (rev 
354212)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDes

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

2018-07-06 Thread Felix Yan via arch-commits
Date: Friday, July 6, 2018 @ 08:26:14
  Author: felixonmars
Revision: 353445

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 353444, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 353444, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 353444, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-06 08:26:14 UTC (rev 353445)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=53
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 353444, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-06 08:26:14 UTC (rev 
353445)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDescr

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

2018-07-05 Thread Felix Yan via arch-commits
Date: Thursday, July 5, 2018 @ 22:40:28
  Author: felixonmars
Revision: 353247

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 353246, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 353246, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 353246, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-05 22:40:28 UTC (rev 353247)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=52
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 353246, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-05 22:40:28 UTC (rev 
353247)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDes

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

2018-07-05 Thread Felix Yan via arch-commits
Date: Thursday, July 5, 2018 @ 17:49:47
  Author: felixonmars
Revision: 353022

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 353021, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 353021, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 353021, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-05 17:49:47 UTC (rev 353022)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=51
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 353021, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-05 17:49:47 UTC (rev 
353022)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDes

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

2018-07-04 Thread Felix Yan via arch-commits
Date: Wednesday, July 4, 2018 @ 21:06:22
  Author: felixonmars
Revision: 352203

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 352202, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 352202, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 352202, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-04 21:06:22 UTC (rev 352203)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=50
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 352202, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-04 21:06:22 UTC (rev 
352203)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDe

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

2018-07-03 Thread Felix Yan via arch-commits
Date: Tuesday, July 3, 2018 @ 13:32:17
  Author: felixonmars
Revision: 350990

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 350989, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 350989, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 350989, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-03 13:32:17 UTC (rev 350990)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=49
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 350989, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-03 13:32:17 UTC (rev 
350990)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDesc

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

2018-07-02 Thread Felix Yan via arch-commits
Date: Monday, July 2, 2018 @ 15:34:55
  Author: felixonmars
Revision: 349884

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 349883, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 349883, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 349883, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-02 15:34:55 UTC (rev 349884)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=48
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 349883, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-02 15:34:55 UTC (rev 
349884)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDescr

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

2018-07-02 Thread Felix Yan via arch-commits
Date: Monday, July 2, 2018 @ 09:15:10
  Author: felixonmars
Revision: 349441

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 349440, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 349440, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 349440, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-07-02 09:15:10 UTC (rev 349441)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=47
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 349440, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-07-02 09:15:10 UTC (rev 
349441)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDescr

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

2018-06-30 Thread Felix Yan via arch-commits
Date: Saturday, June 30, 2018 @ 15:47:23
  Author: felixonmars
Revision: 348309

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 348307, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 348307, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 348307, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-30 15:47:23 UTC (rev 348309)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=46
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 348307, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-30 15:47:23 UTC (rev 
348309)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDe

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

2018-06-28 Thread Felix Yan via arch-commits
Date: Thursday, June 28, 2018 @ 21:06:46
  Author: felixonmars
Revision: 347682

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 347681, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 347681, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 347681, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-28 21:06:46 UTC (rev 347682)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=45
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 347681, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-28 21:06:46 UTC (rev 
347682)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDe

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

2018-06-28 Thread Felix Yan via arch-commits
Date: Thursday, June 28, 2018 @ 18:33:33
  Author: felixonmars
Revision: 347465

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 347464, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 347464, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 347464, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-28 18:33:33 UTC (rev 347465)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=44
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 347464, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-28 18:33:33 UTC (rev 
347465)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDe

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

2018-06-28 Thread Felix Yan via arch-commits
Date: Thursday, June 28, 2018 @ 17:29:10
  Author: felixonmars
Revision: 347138

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 347137, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 347137, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 347137, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-28 17:29:10 UTC (rev 347138)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=43
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 347137, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-28 17:29:10 UTC (rev 
347138)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDe

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

2018-06-24 Thread Felix Yan via arch-commits
Date: Monday, June 25, 2018 @ 06:53:45
  Author: felixonmars
Revision: 345491

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 345490, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 345490, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 345490, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-25 06:53:45 UTC (rev 345491)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=42
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 345490, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-25 06:53:45 UTC (rev 
345491)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDesc

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

2018-06-22 Thread Felix Yan via arch-commits
Date: Saturday, June 23, 2018 @ 05:35:29
  Author: felixonmars
Revision: 344766

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 344765, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 344765, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 344765, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-23 05:35:29 UTC (rev 344766)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=41
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 344765, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-23 05:35:29 UTC (rev 
344766)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDe

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

2018-06-22 Thread Felix Yan via arch-commits
Date: Friday, June 22, 2018 @ 11:34:04
  Author: felixonmars
Revision: 344474

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 344473, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 344473, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 344473, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-22 11:34:04 UTC (rev 344474)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=40
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 344473, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-22 11:34:04 UTC (rev 
344474)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDesc

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

2018-06-18 Thread Felix Yan via arch-commits
Date: Monday, June 18, 2018 @ 09:26:56
  Author: felixonmars
Revision: 343797

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 343796, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 343796, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 343796, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-18 09:26:56 UTC (rev 343797)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=39
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 343796, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-18 09:26:56 UTC (rev 
343797)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDesc

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

2018-06-06 Thread Felix Yan via arch-commits
Date: Wednesday, June 6, 2018 @ 16:38:56
  Author: felixonmars
Revision: 341352

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 341351, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 341351, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 341351, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-06 16:38:56 UTC (rev 341352)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=38
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 341351, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-06 16:38:56 UTC (rev 
341352)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDe

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

2018-06-03 Thread Felix Yan via arch-commits
Date: Sunday, June 3, 2018 @ 11:16:41
  Author: felixonmars
Revision: 339082

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 339080, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 339080, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 339080, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-03 11:16:41 UTC (rev 339082)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=37
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 339080, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-03 11:16:41 UTC (rev 
339082)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDescr

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

2018-06-02 Thread Felix Yan via arch-commits
Date: Saturday, June 2, 2018 @ 18:33:25
  Author: felixonmars
Revision: 338035

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 338034, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 338034, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 338034, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-02 18:33:25 UTC (rev 338035)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=36
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 338034, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-02 18:33:25 UTC (rev 
338035)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDes

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

2018-06-01 Thread Felix Yan via arch-commits
Date: Friday, June 1, 2018 @ 16:32:34
  Author: felixonmars
Revision: 336253

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 336252, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 336252, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 336252, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-01 16:32:34 UTC (rev 336253)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=35
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 336252, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-06-01 16:32:34 UTC (rev 
336253)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDescr

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

2018-05-30 Thread Felix Yan via arch-commits
Date: Thursday, May 31, 2018 @ 06:47:15
  Author: felixonmars
Revision: 334241

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 334240, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 334240, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 334240, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-31 06:47:15 UTC (rev 334241)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=34
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 334240, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-05-31 06:47:15 UTC (rev 
334241)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDes

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

2018-05-28 Thread Felix Yan via arch-commits
Date: Monday, May 28, 2018 @ 14:56:20
  Author: felixonmars
Revision: 332719

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 332718, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 332718, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 332718, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-28 14:56:20 UTC (rev 332719)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=33
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 332718, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-05-28 14:56:20 UTC (rev 
332719)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDescr

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

2018-05-27 Thread Felix Yan via arch-commits
Date: Sunday, May 27, 2018 @ 08:07:28
  Author: felixonmars
Revision: 331439

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 331438, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 331438, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 331438, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-27 08:07:28 UTC (rev 331439)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=32
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 331438, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-05-27 08:07:28 UTC (rev 
331439)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDescr

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

2018-05-25 Thread Felix Yan via arch-commits
Date: Saturday, May 26, 2018 @ 05:32:07
  Author: felixonmars
Revision: 329694

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 329693, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 329693, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 329693, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-26 05:32:07 UTC (rev 329694)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=31
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 329693, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-05-26 05:32:07 UTC (rev 
329694)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDes

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

2018-05-24 Thread Felix Yan via arch-commits
Date: Thursday, May 24, 2018 @ 16:26:29
  Author: felixonmars
Revision: 328820

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 328819, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 328819, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 328819, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-24 16:26:29 UTC (rev 328820)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=30
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 328819, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-05-24 16:26:29 UTC (rev 
328820)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDes

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

2018-05-23 Thread Felix Yan via arch-commits
Date: Wednesday, May 23, 2018 @ 10:26:47
  Author: felixonmars
Revision: 328191

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 328190, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 328190, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 328190, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-23 10:26:47 UTC (rev 328191)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=29
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 328190, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-05-23 10:26:47 UTC (rev 
328191)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDe

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

2018-05-22 Thread Felix Yan via arch-commits
Date: Tuesday, May 22, 2018 @ 10:17:00
  Author: felixonmars
Revision: 326883

archrelease: copy trunk to community-staging-x86_64

Added:
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 326882, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/ghc-8.4.patch
(from rev 326882, hindent/trunk/ghc-8.4.patch)

---+
 PKGBUILD  |   52 
 ghc-8.4.patch |   72 
 2 files changed, 124 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 326882, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-22 10:17:00 UTC (rev 326883)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.5
+pkgrel=28
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-descriptive' 'haskell-exceptions' 
'haskell-monad-loops'
+ 'haskell-path' 'haskell-path-io' 'haskell-src-exts' 
'haskell-unix-compat'
+ 'haskell-utf8-string' 'haskell-yaml')
+makedepends=('ghc' 'haskell-diff' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";
+ghc-8.4.patch)
+sha512sums=('72a6b57ad5a2514ae7d3dd39d87b92757c8a5c85b60daad1e883ebb20385de3d4794b5f9550653b48cf682e5476b38d5dfaf348caec05df3d4396f3aa0f743ef'
+
'32d8f5f3df69ec204afc2ec6afee28c05670137285bb6ff3978d5ae729e0e67830d7cfe7c5775dd5ced0bbd93270d9f73f8c93282f3eaaded48d023e88ccdc72')
+
+prepare() {
+cd $pkgname-$pkgver
+patch -p1 -i ../ghc-8.4.patch
+}
+
+build() {
+cd $pkgname-$pkgver
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+runhaskell Setup build
+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
+}
+
+check() {
+cd $pkgname-$pkgver
+runhaskell Setup test
+}
+
+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.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: hindent/repos/community-staging-x86_64/ghc-8.4.patch (from rev 326882, 
hindent/trunk/ghc-8.4.patch)
===
--- community-staging-x86_64/ghc-8.4.patch  (rev 0)
+++ community-staging-x86_64/ghc-8.4.patch  2018-05-22 10:17:00 UTC (rev 
326883)
@@ -0,0 +1,72 @@
+From f0ac1ebed87bde6d93dbe5eac42ff5b5fb23e7ee Mon Sep 17 00:00:00 2001
+From: Rob Looby 
+Date: Fri, 11 May 2018 13:12:07 -0500
+Subject: [PATCH] Make work with lts-11 and ghc-8.4.2 nightly build
+
+---
+ .travis.yml  |  6 +-
+ src/HIndent/CabalFile.hs | 28 
+ stack.yaml   |  7 ---
+ 3 files changed, 33 insertions(+), 8 deletions(-)
+
+diff --git a/src/HIndent/CabalFile.hs b/src/HIndent/CabalFile.hs
+index 083d965..d8c731e 100644
+--- a/src/HIndent/CabalFile.hs
 b/src/HIndent/CabalFile.hs
+@@ -1,14 +1,21 @@
++{-# LANGUAGE CPP #-}
++
+ module HIndent.CabalFile
+   ( getCabalExtensionsForSourcePath
+   ) where
+ 
++import qualified Data.ByteString as BS
+ import Data.List
+ import Data.Maybe
+ import Data.Traversable
+ import Distribution.ModuleName
+ import Distribution.PackageDescription
+ import Distribution.PackageDescription.Configuration
++#if MIN_VERSION_Cabal(2, 2, 0)
++import Distribution.PackageDescription.Parsec
++#else
+ import Distribution.PackageDescription.Parse
++#endif
+ import Language.Haskell.Extension
+ import qualified Language.Haskell.Exts.Extension as HSE
+ import System.Directory
+@@ -82,6 +89,19 @@ findCabalFiles dir rel = do
+ [] -> findCabalFiles (takeDirectory dir) (takeFileName dir  rel)
+ _ -> return $ Just (fmap (\n -> dir  n) cabalnames, rel)
+ 
++getGenericPackageDescription :: FilePath -> IO (Maybe 
GenericPackageDescription)
++#if MIN_VERSION_Cabal(2, 2, 0)
++getGenericPackageDescription cabalPath = do
++cabaltext <- BS.readFile cabalPath
++return $ parseGenericPackageDesc

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

2017-06-21 Thread Felix Yan
Date: Wednesday, June 21, 2017 @ 16:56:16
  Author: felixonmars
Revision: 239295

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

Added:
  hindent/repos/community-staging-i686/PKGBUILD
(from rev 239294, hindent/trunk/PKGBUILD)
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 239294, hindent/trunk/PKGBUILD)
Deleted:
  hindent/repos/community-staging-x86_64/PKGBUILD

---+
 /PKGBUILD |   45 
 community-staging-i686/PKGBUILD   |   45 
 community-staging-x86_64/PKGBUILD |   45 
 3 files changed, 90 insertions(+), 45 deletions(-)

Copied: hindent/repos/community-staging-i686/PKGBUILD (from rev 239294, 
hindent/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-06-21 16:56:16 UTC (rev 239295)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.3
+pkgrel=17
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc' "haskell-descriptive" "haskell-exceptions" 
"haskell-monad-loops" "haskell-mtl"
+ "haskell-path" "haskell-path-io" "haskell-src-exts" "haskell-text" 
"haskell-unix-compat"
+ "haskell-utf8-string" "haskell-yaml")
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
+sha512sums=('478c207ffb408e31f15dbc5bf941acdc9116de1c775d393cb59514e4a28354865d808715005a7e6f076b86d4e5f5c0f389059c16d4761ffcec31953d2d88d969')
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+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}/${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"
+install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+ln -s "/usr/share/doc/${pkgname}/html" 
"${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}"
+runhaskell Setup copy --destdir="${pkgdir}"
+install -D -m644 "LICENSE.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+
+# Remove static libs
+find "$pkgdir"/usr/lib -name "*.a" -delete
+}

Deleted: community-staging-x86_64/PKGBUILD
===
--- community-staging-x86_64/PKGBUILD   2017-06-21 16:55:05 UTC (rev 239294)
+++ community-staging-x86_64/PKGBUILD   2017-06-21 16:56:16 UTC (rev 239295)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-# Contributor: Arch Haskell Team 
-
-pkgname=hindent
-pkgver=5.2.3
-pkgrel=17
-pkgdesc="Extensible Haskell pretty printer"
-url="https://github.com/commercialhaskell/hindent";
-license=("custom:BSD3")
-arch=('i686' 'x86_64')
-depends=('ghc' "haskell-descriptive" "haskell-exceptions" 
"haskell-monad-loops" "haskell-mtl"
- "haskell-path" "haskell-path-io" "haskell-src-exts" "haskell-text" 
"haskell-unix-compat"
- "haskell-utf8-string" "haskell-yaml")
-source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
-sha512sums=('478c207ffb408e31f15dbc5bf941acdc9116de1c775d393cb59514e4a28354865d808715005a7e6f076b86d4e5f5c0f389059c16d4761ffcec31953d2d88d969')
-
-build() {
-cd "${srcdir}/${pkgname}-${pkgver}"
-
-runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
---prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
---dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
-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}/${pkgname}-${pkgver}"
-
-install -D -m744 register.sh   
"${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
-install -D -m744 unregister.sh 
"${pkgdir}/usr/share/haskel

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

2017-06-21 Thread Felix Yan
Date: Wednesday, June 21, 2017 @ 16:52:58
  Author: felixonmars
Revision: 239291

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

Added:
  hindent/repos/community-staging-i686/
  hindent/repos/community-staging-x86_64/
  hindent/repos/community-staging-x86_64/PKGBUILD
(from rev 239290, hindent/trunk/PKGBUILD)

--+
 PKGBUILD |   45 +
 1 file changed, 45 insertions(+)

Copied: hindent/repos/community-staging-x86_64/PKGBUILD (from rev 239290, 
hindent/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-06-21 16:52:58 UTC (rev 239291)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Arch Haskell Team 
+
+pkgname=hindent
+pkgver=5.2.3
+pkgrel=17
+pkgdesc="Extensible Haskell pretty printer"
+url="https://github.com/commercialhaskell/hindent";
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc' "haskell-descriptive" "haskell-exceptions" 
"haskell-monad-loops" "haskell-mtl"
+ "haskell-path" "haskell-path-io" "haskell-src-exts" "haskell-text" 
"haskell-unix-compat"
+ "haskell-utf8-string" "haskell-yaml")
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
+sha512sums=('478c207ffb408e31f15dbc5bf941acdc9116de1c775d393cb59514e4a28354865d808715005a7e6f076b86d4e5f5c0f389059c16d4761ffcec31953d2d88d969')
+
+build() {
+cd "${srcdir}/${pkgname}-${pkgver}"
+
+runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+--prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+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}/${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"
+install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+ln -s "/usr/share/doc/${pkgname}/html" 
"${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}"
+runhaskell Setup copy --destdir="${pkgdir}"
+install -D -m644 "LICENSE.md" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+
+# Remove static libs
+find "$pkgdir"/usr/lib -name "*.a" -delete
+}