pandoc: build_style=haskell-stack, and bump to lts-3.5.
This commit is contained in:
parent
57d73926e8
commit
664fa28a67
1 changed files with 7 additions and 14 deletions
|
@ -2,9 +2,11 @@
|
|||
pkgname=pandoc
|
||||
# Keep in sync with http://www.stackage.org/lts
|
||||
version=1.15.0.6
|
||||
revision=1
|
||||
_citeproc_version=0.7.3
|
||||
_stackage="lts-3.0"
|
||||
revision=2
|
||||
_citeproc_version=0.7.3.1
|
||||
build_style=haskell-stack
|
||||
stackage="lts-3.5"
|
||||
make_build_args="--flag pandoc:-old-locale --flag pandoc:embed_data_files"
|
||||
nocross=yes
|
||||
create_wrksrc=yes
|
||||
hostmakedepends="ghc stack hsb2hs"
|
||||
|
@ -16,18 +18,9 @@ homepage="http://johnmacfarlane.net/pandoc/"
|
|||
distfiles="http://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz
|
||||
http://hackage.haskell.org/package/${pkgname}-citeproc-${_citeproc_version}/${pkgname}-citeproc-${_citeproc_version}.tar.gz"
|
||||
checksum="d950968142526d5a765af7dfb26b47c3f60d4f883aa9d9eab668614179f1ed46
|
||||
72fc81d962812d037bb78c6d38d602ca2c6895f0436c8be94cb71600ed288e68"
|
||||
b2e9b814603dbb60b845fa14d767a154e43a2115a9a81b218a173e9bc1a319f5"
|
||||
|
||||
do_build() {
|
||||
export STACK_ROOT=$wrksrc/.stack
|
||||
stack init --force --resolver ${_stackage}
|
||||
stack ${makejobs} build --flag pandoc:-old-locale --flag pandoc:embed_data_files
|
||||
}
|
||||
|
||||
do_install() {
|
||||
export STACK_ROOT=$wrksrc/.stack
|
||||
vmkdir usr/bin
|
||||
stack install --flag pandoc:-old-locale --flag pandoc:embed_data_files --local-bin-path=${DESTDIR}/usr/bin
|
||||
post_install() {
|
||||
vman pandoc-${version}/man/pandoc.1
|
||||
vman pandoc-citeproc-${_citeproc_version}/man/man1/pandoc-citeproc.1
|
||||
vlicense pandoc-${version}/COPYRIGHT LICENSE.pandoc
|
||||
|
|
Loading…
Reference in a new issue