aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-alex/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/hs-alex/Makefile')
-rw-r--r--devel/hs-alex/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/devel/hs-alex/Makefile b/devel/hs-alex/Makefile
index b4c237b74586..5c9e383157e3 100644
--- a/devel/hs-alex/Makefile
+++ b/devel/hs-alex/Makefile
@@ -1,20 +1,25 @@
-# Created by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
-
PORTNAME= alex
-PORTVERSION= 3.2.6
-PORTREVISION= 1
+PORTVERSION= 3.5.0.0
CATEGORIES= devel haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= Tool for generating lexical analysers in Haskell
+WWW= https://www.haskell.org/alex/
LICENSE= BSD3CLAUSE
USES= cabal
+CABAL_WRAPPER_SCRIPTS= ${CABAL_EXECUTABLES}
+
OPTIONS_DEFINE= EXAMPLES
-PORTEXAMPLES= Makefile *.x *.y
+PORTEXAMPLES= examples/*
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|ALEX=../dist/build/alex/alex|ALEX=${PREFIX}/bin/alex|' \
+ -e 's|--template=..||g' \
+ ${WRKSRC}/examples/Makefile
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}