summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2016-05-09 14:34:41 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-05-11 03:17:21 +0700
commit5b9914f4ca295afe2f9f5adcf35a1739c7552580 (patch)
tree4a3b50959195b7d6bd3750e7c5376dbe7d6f2300
parentcdbd25c206a51ccfdacd1f18cdd6d5a560c94355 (diff)
downloadslackbuilds-5b9914f4ca295afe2f9f5adcf35a1739c7552580.tar.gz
haskell/haskell-citeproc-hs: Updated for version 0.3.10.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
-rw-r--r--haskell/haskell-citeproc-hs/haskell-citeproc-hs.SlackBuild17
-rw-r--r--haskell/haskell-citeproc-hs/haskell-citeproc-hs.info8
2 files changed, 16 insertions, 9 deletions
diff --git a/haskell/haskell-citeproc-hs/haskell-citeproc-hs.SlackBuild b/haskell/haskell-citeproc-hs/haskell-citeproc-hs.SlackBuild
index c0d3de8fe4..8929d1807c 100644
--- a/haskell/haskell-citeproc-hs/haskell-citeproc-hs.SlackBuild
+++ b/haskell/haskell-citeproc-hs/haskell-citeproc-hs.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=haskell-citeproc-hs
-VERSION=${VERSION:-0.3.9}
+VERSION=${VERSION:-0.3.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,14 +69,21 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Fix compilation which is missing a CPP pass
patch -p0 <$CWD/citeproc-hs_cabal.patch
+# Fixes for ghc-7.10.3 etc
+sed -i -e '1i{-# LANGUAGE FlexibleContexts #-}' \
+ src/Text/CSL/Eval/Names.hs \
+ src/Text/CSL/Eval.hs
+sed -i -e '/import System.Locale/d' \
+ src/Text/CSL/Test.hs
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
runghc Setup configure \
diff --git a/haskell/haskell-citeproc-hs/haskell-citeproc-hs.info b/haskell/haskell-citeproc-hs/haskell-citeproc-hs.info
index 7ba41cb228..6a34e52890 100644
--- a/haskell/haskell-citeproc-hs/haskell-citeproc-hs.info
+++ b/haskell/haskell-citeproc-hs/haskell-citeproc-hs.info
@@ -1,10 +1,10 @@
PRGNAM="haskell-citeproc-hs"
-VERSION="0.3.9"
+VERSION="0.3.10"
HOMEPAGE="http://gorgias.mine.nu/repos/citeproc-hs/"
-DOWNLOAD="http://hackage.haskell.org/packages/archive/citeproc-hs/0.3.9/citeproc-hs-0.3.9.tar.gz"
-MD5SUM="6473df62c66af79982818d56eeec7d12"
+DOWNLOAD="http://hackage.haskell.org/package/citeproc-hs-0.3.10/citeproc-hs-0.3.10.tar.gz"
+MD5SUM="de72cbce05f35a55eb4a1b136c2ab75b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="haskell-json haskell-pandoc-types haskell-parsec haskell-utf8-string haskell-xml"
+REQUIRES="haskell-json haskell-pandoc-types haskell-parsec haskell-utf8-string haskell-xml haskell-old-locale"
MAINTAINER="Mikko Värri"
EMAIL="vmj@linuxbox.fi"