aboutsummaryrefslogtreecommitdiff
path: root/textproc/hs-citeproc-hs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/hs-citeproc-hs/Makefile')
-rw-r--r--textproc/hs-citeproc-hs/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/textproc/hs-citeproc-hs/Makefile b/textproc/hs-citeproc-hs/Makefile
index e2e991bf7606..5f7cd4cf79c6 100644
--- a/textproc/hs-citeproc-hs/Makefile
+++ b/textproc/hs-citeproc-hs/Makefile
@@ -6,27 +6,37 @@
#
PORTNAME= citeproc-hs
-PORTVERSION= 0.2
+PORTVERSION= 0.3.2
CATEGORIES= textproc haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= A Citation Style Language implementation in Haskell
-USE_HACKAGE= hxt>=8.1
+LICENSE= BSD
+
+USE_CABAL= json mtl pandoc-types>=1.8 utf8-string xml
PORTDATA= *
-OPTIONS= BIBUTILS "Use Chris Putnam's Bibutils" off
+OPTIONS= BIBUTILS "Use Chris Putnam's Bibutils" on \
+ NETWORK "Use network and HTTP to retrieve CSL file" on
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk"
.include <bsd.port.options.mk>
.if defined(WITH_BIBUTILS)
CONFIGURE_ARGS+= --flags="bibutils"
-USE_HACKAGE+= hs-bibutils
+USE_CABAL+= hs-bibutils>=0.3
.else
CONFIGURE_ARGS+= --flags="-bibutils"
.endif
+.if defined(WITH_NETWORK)
+CONFIGURE_ARGS+= --flags="network"
+USE_CABAL+= HTTP>=4000.0.9 network>=2
+.else
+CONFIGURE_ARGS+= --flags="-network"
+.endif
+
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>