hlint: update to 2.1.11.

This commit is contained in:
Piotr Wójcik 2019-01-11 17:25:34 +01:00 committed by maxice8
parent 359211f66c
commit 25452a0e72
2 changed files with 22 additions and 6 deletions

View file

@ -0,0 +1,13 @@
diff --git src/CmdLine.hs src/CmdLine.hs
index 8c3d530..ccf7aac 100644
--- src/CmdLine.hs
+++ src/CmdLine.hs
@@ -52,7 +52,7 @@ automatic cmd = case cmd of
b <- doesDirectoryExist x
if b then return cmd{cmdDataDir=x} else do
exe <- getExecutablePath
- return cmd{cmdDataDir = takeDirectory exe </> "data"}
+ return cmd{cmdDataDir = takeDirectory exe </> "../share/hlint/data"}
git cmd
| cmdGit cmd = do
mgit <- findExecutable "git"

View file

@ -1,19 +1,22 @@
# Template file for 'hlint'
pkgname=hlint
version=2.1.8
revision=1
version=2.1.11
revision=3
build_style=haskell-stack
nocross=yes # Can't yet cross compile Haskell
stackage="lts-12.0"
stackage="lts-13.2"
short_desc="Haskell source code suggestions"
maintainer="Inokentiy Babushkin <twk@twki.de>"
license="BSD-3-Clause"
homepage="https://github.com/ndmitchell/hlint"
distfiles="https://github.com/ndmitchell/${pkgname}/archive/v${version}.tar.gz"
checksum=ad94f0a5baf05b83603c4ef26c426c2769047c83dd11b659d6bf00bccf895a04
distfiles="https://github.com/ndmitchell/hlint/archive/v${version}.tar.gz"
checksum=edb6e18e9b8abceb6326212c4c20163516e88e80da734a504065b9fe833cccc4
nocross=yes # Can't yet cross compile Haskell
nopie_files="/usr/bin/hlint"
post_install() {
rm -f ${DESTDIR}/usr/bin/engine
vmkdir usr/share/hlint
vcopy data usr/share/hlint
vman data/hlint.1
vlicense LICENSE
}