summaryrefslogtreecommitdiff
path: root/haskell/haskell-citeproc-hs/haskell-citeproc-hs.SlackBuild
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 /haskell/haskell-citeproc-hs/haskell-citeproc-hs.SlackBuild
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>
Diffstat (limited to 'haskell/haskell-citeproc-hs/haskell-citeproc-hs.SlackBuild')
-rw-r--r--haskell/haskell-citeproc-hs/haskell-citeproc-hs.SlackBuild17
1 files changed, 12 insertions, 5 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 \