darcs: build_style=haskell-stack, and bump to lts-3.5.

This commit is contained in:
Christian Neukirchen 2015-09-14 16:14:08 +02:00
parent 664fa28a67
commit 2c77f4d4f6
2 changed files with 5 additions and 12 deletions

View File

@ -4,4 +4,4 @@ packages:
extra-deps:
- dataenc-0.12
- regex-compat-tdfa-0.95.1.4
resolver: lts-3.0
resolver: lts-3.5

View File

@ -1,8 +1,10 @@
# Template file for 'darcs'
pkgname=darcs
version=2.10.1
revision=1
revision=2
nocross=yes
build_style=haskell-stack
make_build_args="--flag darcs:use-time-1point5"
hostmakedepends="ghc stack"
makedepends="zlib-devel libcurl-devel ncurses-devel"
short_desc="Change-focused cross-platform version control system"
@ -12,15 +14,6 @@ homepage="http://darcs.net/"
distfiles="http://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
checksum=f1ef65b43780e7593ca1afdae5ecf44ed91d62cc1be360693a52c5ff7b57ee94
do_build() {
export STACK_ROOT=$wrksrc/.stack
cp ${FILESDIR}/stack.yaml .
stack ${makejobs} build --flag darcs:use-time-1point5
}
do_install() {
export STACK_ROOT=$wrksrc/.stack
vmkdir usr/bin
stack install --flag darcs:use-time-1point5 --local-bin-path=${DESTDIR}/usr/bin
post_install() {
vinstall contrib/darcs_completion 644 etc/bash_completion.d
}