File: rules

package info (click to toggle)
haskell-pandoc-citeproc 0.14.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,588 kB
  • sloc: xml: 14,814; haskell: 7,752; makefile: 13
file content (25 lines) | stat: -rwxr-xr-x 991 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

# Seems to work only with the data files properly installed
# DEB_ENABLE_TESTS = yes

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk

DEB_GHC_EXTRA_PACKAGES := libghc-pandoc-citeproc-data (>= $(CABAL_VERSION))

DEB_SETUP_GHC_CONFIGURE_ARGS = -fbibutils -funicode_collation

# LANG needs to be en_SOMETHING to make sure that Text.CSL.Input.Bibtex
# works as the test suite expects.
check-ghc-stamp: export LANG := en_US.UTF-8
check-ghc-stamp: export LC_ALL := C.UTF-8

install/libghc-pandoc-citeproc-data:: debian/tmp-inst-ghc
	cp -a debian/tmp-inst-ghc/usr/share/pandoc-citeproc/chicago-author-date.csl \
		debian/tmp-inst-ghc/usr/share/pandoc-citeproc/locales \
		debian/libghc-pandoc-citeproc-data/usr/share/pandoc-citeproc/

install/pandoc-citeproc:: debian/tmp-inst-ghc
	cp debian/tmp-inst-ghc/usr/bin/* debian/pandoc-citeproc/usr/bin
	cp -a debian/tmp-inst-ghc/usr/share/pandoc-citeproc/man debian/pandoc-citeproc/usr/share