diff options
author | Mikko Värri <vmj@linuxbox.fi> | 2012-06-27 16:01:33 -0400 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-06-27 16:01:33 -0400 |
commit | 833a8993f278d0344d850904d4fba1f1afb644ec (patch) | |
tree | ac50901a6746748e6cb4f527b2fcd1a602f2038e /haskell/haskell-json | |
parent | 936ea910e2a9f236d7d2d639d192e2f4b0589dbe (diff) |
haskell/haskell-json: Updated for version 0.5.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'haskell/haskell-json')
-rw-r--r-- | haskell/haskell-json/haskell-json.SlackBuild | 35 | ||||
-rw-r--r-- | haskell/haskell-json/haskell-json.info | 10 |
2 files changed, 32 insertions, 13 deletions
diff --git a/haskell/haskell-json/haskell-json.SlackBuild b/haskell/haskell-json/haskell-json.SlackBuild index 1308bc9c937dd..4f53a05316d63 100644 --- a/haskell/haskell-json/haskell-json.SlackBuild +++ b/haskell/haskell-json/haskell-json.SlackBuild @@ -3,10 +3,28 @@ # Slackware build script for json # Written by Peter Wang (novalazy@gmail.com) -# Public domain. +# Copyright 2012 Mikko Värri, Finland +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=haskell-json -VERSION=${VERSION:-0.4.4} +VERSION=${VERSION:-0.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,25 +77,26 @@ find . \ # Force generic for haskell-citeproc-hs. CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -runghc Setup.hs configure \ +runghc Setup configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --libsubdir=ghc-${GHC_VERSION}/$SRCNAM-$VERSION \ --enable-shared \ + --enable-library-profiling \ -f generic \ --docdir=/usr/doc/$PRGNAM-$VERSION -runghc Setup.hs build -runghc Setup.hs haddock -runghc Setup.hs copy --destdir=$PKG -runghc Setup.hs 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: " $SRCNAM-$VERSION.conf | cut -d" " -f2 ) mkdir -p $PKG/$PKGCONFD mv $SRCNAM-$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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/haskell/haskell-json/haskell-json.info b/haskell/haskell-json/haskell-json.info index 543627e9a7c74..9ce0423e11797 100644 --- a/haskell/haskell-json/haskell-json.info +++ b/haskell/haskell-json/haskell-json.info @@ -1,10 +1,10 @@ PRGNAM="haskell-json" -VERSION="0.4.4" +VERSION="0.5" HOMEPAGE="http://hackage.haskell.org/package/json" -DOWNLOAD="http://hackage.haskell.org/packages/archive/json/0.4.4/json-0.4.4.tar.gz" -MD5SUM="a29a1b52c66971aca87ed54ad1e7de64" +DOWNLOAD="http://hackage.haskell.org/packages/archive/json/0.5/json-0.5.tar.gz" +MD5SUM="dc61a7972a5f265ae310bcdbddaed15c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -MAINTAINER="Peter Wang" -EMAIL="novalazy@gmail.com" +MAINTAINER="Mikko Värri" +EMAIL="vmj@linuxbox.fi" APPROVED="dsomero" |