diff options
author | Mikko Värri <vmj@linuxbox.fi> | 2012-06-27 15:59:44 -0400 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-06-27 15:59:44 -0400 |
commit | 7552055b0fe313789ea677ef2b23adee98e7e41c (patch) | |
tree | 8c2514fbd6f3344e3e869e7d0e0997d0ce2b0f67 /haskell | |
parent | 48bc28fee40969e284a934859a1cf62737db34bc (diff) | |
download | slackbuilds-7552055b0fe313789ea677ef2b23adee98e7e41c.tar.gz |
haskell/haskell-hinotify: Updated for version 0.3.2.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'haskell')
-rw-r--r-- | haskell/haskell-hinotify/README | 2 | ||||
-rw-r--r-- | haskell/haskell-hinotify/haskell-hinotify.SlackBuild | 50 | ||||
-rw-r--r-- | haskell/haskell-hinotify/haskell-hinotify.info | 12 | ||||
-rw-r--r-- | haskell/haskell-hinotify/slack-desc | 2 |
4 files changed, 42 insertions, 24 deletions
diff --git a/haskell/haskell-hinotify/README b/haskell/haskell-hinotify/README index 4b31faab0f..34c6a69eb4 100644 --- a/haskell/haskell-hinotify/README +++ b/haskell/haskell-hinotify/README @@ -4,5 +4,5 @@ This package provides haskell bindings for inotify. This requires ghc. -After uninstalling, run this command to unregister the package from +After uninstalling, run this command to unregister the package from the ghc package database: ghc-pkg recache diff --git a/haskell/haskell-hinotify/haskell-hinotify.SlackBuild b/haskell/haskell-hinotify/haskell-hinotify.SlackBuild index 0374b97aea..2a37ed1cff 100644 --- a/haskell/haskell-hinotify/haskell-hinotify.SlackBuild +++ b/haskell/haskell-hinotify/haskell-hinotify.SlackBuild @@ -2,24 +2,39 @@ # Slackware build script for hinotify -# Written by Mikko Värri (vmj@linuxbox.fi) -# Modified by Andy Bailey (GooseYArd@gmail.com) for hinotify -# Public domain. - -SRCNAM=hinotify -PRGNAM=haskell-$SRCNAM -VERSION=${VERSION:-0.3.1} -BUILD=${BUILD:-2} +# 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-hinotify +VERSION=${VERSION:-0.3.2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +SRCNAM="$( echo $PRGNAM | cut -d- -f2- )" + GHC_VERSION=$(ghc --numeric-version) -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -60,26 +75,29 @@ find . \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -runghc Setup.lhs configure \ +runghc Setup configure \ --prefix=/usr \ --enable-shared \ + --enable-library-profiling \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --libsubdir=ghc-${GHC_VERSION}/$SRCNAM-$VERSION \ --docdir=/usr/doc/$PRGNAM-$VERSION -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: " $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 +cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/haskell/haskell-hinotify/haskell-hinotify.info b/haskell/haskell-hinotify/haskell-hinotify.info index 728dd9939d..c49ce2c5f8 100644 --- a/haskell/haskell-hinotify/haskell-hinotify.info +++ b/haskell/haskell-hinotify/haskell-hinotify.info @@ -1,10 +1,10 @@ PRGNAM="haskell-hinotify" -VERSION="0.3.1" +VERSION="0.3.2" HOMEPAGE="http://hackage.haskell.org/package/hinotify" -DOWNLOAD="http://hackage.haskell.org/packages/archive/hinotify/0.3.1/hinotify-0.3.1.tar.gz" -MD5SUM="b24191dab428cd0bfb74af9f0ab68372" +DOWNLOAD="http://hackage.haskell.org/packages/archive/hinotify/0.3.2/hinotify-0.3.2.tar.gz" +MD5SUM="1105bc75012bd2a299181c47b21cac39" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -MAINTAINER="Andy Bailey" -EMAIL="GooseYArd@gmail.com" -APPROVED="Erik Hanson" +MAINTAINER="Mikko Värri" +EMAIL="vmj@linuxbox.fi" +APPROVED="dsomero" diff --git a/haskell/haskell-hinotify/slack-desc b/haskell/haskell-hinotify/slack-desc index a8d4c7b41f..499056b1a7 100644 --- a/haskell/haskell-hinotify/slack-desc +++ b/haskell/haskell-hinotify/slack-desc @@ -9,7 +9,7 @@ haskell-hinotify: haskell-hinotify (file system event notifications) haskell-hinotify: haskell-hinotify: inotify provides file system event notification, simply add a watcher -haskell-hinotify: to a file or directory and get an event when it is accessed or +haskell-hinotify: to a file or directory and get an event when it is accessed or haskell-hinotify: modified. haskell-hinotify: haskell-hinotify: http://hackage.haskell.org/package/hinotify |