aboutsummaryrefslogtreecommitdiff
path: root/development/darcs/darcs.SlackBuild
diff options
context:
space:
mode:
authorMikko Värri <vmj@linuxbox.fi>2012-06-27 15:42:42 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-06-27 15:42:42 -0400
commitc4f4f894862a38dcc7f0e14f8b213236b5667d32 (patch)
tree368815375f564740d4c5ff4519ab0898b68f37b0 /development/darcs/darcs.SlackBuild
parentf0f92618799e02690a118fa2a8340a692644b5f8 (diff)
development/darcs: Updated for version 2.8.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/darcs/darcs.SlackBuild')
-rw-r--r--development/darcs/darcs.SlackBuild28
1 files changed, 15 insertions, 13 deletions
diff --git a/development/darcs/darcs.SlackBuild b/development/darcs/darcs.SlackBuild
index 5d5990e098fc1..caaea0ba024dd 100644
--- a/development/darcs/darcs.SlackBuild
+++ b/development/darcs/darcs.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for darcs
-# Copyright 2011 Mikko Värri, Finland
+# Copyright 2012 Mikko Värri, Finland
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=darcs
-VERSION=${VERSION:-2.5.2}
+VERSION=${VERSION:-2.8.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,32 +71,34 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Link darcs binary dynamically
-patch -p0 <$CWD/darcs_cabal_dynamic.patch
-# Bump regex-{posix,compat} version bounds (all tests pass)
-patch -p0 <$CWD/darcs_cabal_regex.patch
+# Bump haskell-tar version (all tests pass)
+patch -p0 <$CWD/darcs_cabal_tar.patch
+# Fix haskell-tar compatibility
+patch -p0 <$CWD/src_Darcs_Repository_hs.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-runghc Setup.lhs configure \
+runghc Setup configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--libsubdir=ghc-${GHC_VERSION}/$PRGNAM-$VERSION \
--enable-shared \
+ --enable-library-profiling \
+ --enable-executable-dynamic \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --flags="dynamic -curl http mmap terminfo"
+ --flags="-curl http mmap terminfo"
-runghc Setup.lhs build
-runghc Setup.lhs haddock
-runghc Setup.lhs copy --destdir=$PKG
-runghc Setup.lhs register --gen-pkg-config
+runghc Setup build
+runghc Setup haddock
+runghc Setup copy --destdir=$PKG
+runghc Setup register --gen-pkg-config
PKGCONFD=/usr/lib${LIBDIRSUFFIX}/ghc-${GHC_VERSION}/package.conf.d
PKGID=$( grep -E "^id: " $PRGNAM-$VERSION.conf | cut -d" " -f2 )
mkdir -p $PKG/$PKGCONFD
mv $PRGNAM-$VERSION.conf $PKG/$PKGCONFD/$PKGID.conf
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# manual is missplaced, and Cabal does not support --mandir