[arch-commits] Commit in haskell-colour/trunk (PKGBUILD)
    Eli Schwartz 
    eschwartz at archlinux.org
       
    Thu Jun 14 01:32:24 UTC 2018
    
    
  
    Date: Thursday, June 14, 2018 @ 01:32:23
  Author: eschwartz
Revision: 343013
FS#58797 Fix makedepends build cycles 
It is now possible to build haskell-colour with --nocheck in order to bootstrap
things. This results in different binary products depending on whether the
tests were built, but these seem to change quite often depending on many other
factors so one would be advised to rebuild all reverse dependencies for every
rebuild of haskell-colour either way.
Modified:
  haskell-colour/trunk/PKGBUILD
----------+
 PKGBUILD |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-14 01:32:16 UTC (rev 343012)
+++ PKGBUILD	2018-06-14 01:32:23 UTC (rev 343013)
@@ -5,14 +5,15 @@
 _hkgname=colour
 pkgname=haskell-colour
 pkgver=2.3.4
-pkgrel=8
+pkgrel=9
 pkgdesc="A model for human colour/color perception"
 url="https://hackage.haskell.org/package/${_hkgname}"
 license=("MIT")
 arch=('x86_64')
 depends=('ghc-libs')
-makedepends=('ghc' 'haskell-quickcheck' 'haskell-random' 'haskell-test-framework'
-             'haskell-test-framework-quickcheck2')
+makedepends=('ghc' )
+checkdepends=('haskell-quickcheck' 'haskell-random' 'haskell-test-framework'
+              'haskell-test-framework-quickcheck2')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
 sha512sums=('c475ed5ced7bcf749facfacf609d2b89a04f496bd6a7301259aa14cbfe6e768d65495f09b046b80f448b27478323a52cc2414954934985259e6f115325d17f9a')
 
@@ -24,8 +25,14 @@
 build() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
 
+    if (( CHECKFUNC )); then
+        opts=('--enable-tests')
+    else
+        opts=('--disable-tests')
+    fi
+
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" --enable-tests \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" "${opts[@]}" \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
     runhaskell Setup build
     runhaskell Setup register --gen-script
    
    
More information about the arch-commits
mailing list