From 57d73926e8b1c919ce68bf7dd8d42d2fce46c9c1 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 14 Sep 2015 16:14:21 +0200 Subject: [PATCH] hsb2hs: build_style=haskell-stack, and bump to lts-3.5. --- srcpkgs/hsb2hs/files/stack.yaml | 2 +- srcpkgs/hsb2hs/template | 14 +++----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/srcpkgs/hsb2hs/files/stack.yaml b/srcpkgs/hsb2hs/files/stack.yaml index 7982c0f1114..08f5632459a 100644 --- a/srcpkgs/hsb2hs/files/stack.yaml +++ b/srcpkgs/hsb2hs/files/stack.yaml @@ -3,4 +3,4 @@ packages: - . extra-deps: - preprocessor-tools-1.0.1 -resolver: lts-3.0 +resolver: lts-3.5 diff --git a/srcpkgs/hsb2hs/template b/srcpkgs/hsb2hs/template index cf9f5d306c3..beb59a1a3d0 100644 --- a/srcpkgs/hsb2hs/template +++ b/srcpkgs/hsb2hs/template @@ -1,8 +1,9 @@ # Template file for 'hsb2hs' pkgname=hsb2hs version=0.3.1 -revision=1 +revision=2 nocross=yes +build_style=haskell-stack hostmakedepends="ghc stack" short_desc="Preprocesses a file, adding blobs from files as string literals" maintainer="Christian Neukirchen " @@ -11,15 +12,6 @@ homepage="https://hackage.haskell.org/package/hsb2hs" distfiles="http://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz" checksum=8ad800820554f273ada083dfce2f463d920fb1ceb053255023a4c883b090f9d8 -do_build() { - export STACK_ROOT=$wrksrc/.stack - cp ${FILESDIR}/stack.yaml . - stack ${makejobs} build -} - -do_install() { - export STACK_ROOT=$wrksrc/.stack - vmkdir usr/bin - stack install --local-bin-path=${DESTDIR}/usr/bin +post_install() { vlicense LICENSE }