diff options
author | pho <pho@pkgsrc.org> | 2015-02-14 09:01:33 +0000 |
---|---|---|
committer | pho <pho@pkgsrc.org> | 2015-02-14 09:01:33 +0000 |
commit | 6047ef94eef6de40b0d53a5745c4dd32ea45f645 (patch) | |
tree | 9e3d60be3179c5a7b5d3631f31f8931e984600ac /devel/alex | |
parent | cb8751eaa155a98000c6c8c1fae7fd2b451dbd16 (diff) | |
download | pkgsrc-6047ef94eef6de40b0d53a5745c4dd32ea45f645.tar.gz |
Import alex-3.1.4 from wip/alex
Alex is a tool for generating lexical analysers in Haskell, given a
description of the tokens to be recognised in the form of regular
expressions. It is similar to the tools lex and flex for C/C++.
Alex takes a description of tokens based on regular expressions and
generates a Haskell module containing code for scanning text
efficiently. Alex is designed to be familiar to exisiting lex users,
although it does depart from lex in a number of ways.
Diffstat (limited to 'devel/alex')
-rw-r--r-- | devel/alex/DESCR | 8 | ||||
-rw-r--r-- | devel/alex/Makefile | 23 | ||||
-rw-r--r-- | devel/alex/PLIST | 19 | ||||
-rw-r--r-- | devel/alex/buildlink3.mk | 16 | ||||
-rw-r--r-- | devel/alex/distinfo | 5 |
5 files changed, 71 insertions, 0 deletions
diff --git a/devel/alex/DESCR b/devel/alex/DESCR new file mode 100644 index 00000000000..41b3843d2e6 --- /dev/null +++ b/devel/alex/DESCR @@ -0,0 +1,8 @@ +Alex is a tool for generating lexical analysers in Haskell, given a +description of the tokens to be recognised in the form of regular +expressions. It is similar to the tools lex and flex for C/C++. + +Alex takes a description of tokens based on regular expressions and +generates a Haskell module containing code for scanning text +efficiently. Alex is designed to be familiar to exisiting lex users, +although it does depart from lex in a number of ways. diff --git a/devel/alex/Makefile b/devel/alex/Makefile new file mode 100644 index 00000000000..8944e02d6e4 --- /dev/null +++ b/devel/alex/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2015/02/14 09:01:33 pho Exp $ + +DISTNAME= alex-3.1.4 +PKGNAME= ${DISTNAME} +CATEGORIES= devel + +MAINTAINER= esg@sdf.lonestar.org +COMMENT= Tool for generating lexical analysers in Haskell +LICENSE= modified-bsd + +USE_TOOLS+= autoconf + +INSTALLATION_DIRS+= ${PKGMANDIR}/man1 + +pre-configure: + cd ${WRKSRC}/doc && autoconf && ./configure + +post-install: + ${INSTALL_MAN} ${WRKSRC}/doc/alex.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + +.include "../../mk/haskell.mk" +.include "../../devel/hs-QuickCheck/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/alex/PLIST b/devel/alex/PLIST new file mode 100644 index 00000000000..4b920f586f3 --- /dev/null +++ b/devel/alex/PLIST @@ -0,0 +1,19 @@ +@comment $NetBSD: PLIST,v 1.1 2015/02/14 09:01:33 pho Exp $ +bin/alex +man/man1/alex.1 +share/${PKGNAME}/AlexTemplate +share/${PKGNAME}/AlexTemplate-debug +share/${PKGNAME}/AlexTemplate-ghc +share/${PKGNAME}/AlexTemplate-ghc-debug +share/${PKGNAME}/AlexTemplate-ghc-nopred +share/${PKGNAME}/AlexWrapper-basic +share/${PKGNAME}/AlexWrapper-basic-bytestring +share/${PKGNAME}/AlexWrapper-gscan +share/${PKGNAME}/AlexWrapper-monad +share/${PKGNAME}/AlexWrapper-monad-bytestring +share/${PKGNAME}/AlexWrapper-monadUserState +share/${PKGNAME}/AlexWrapper-monadUserState-bytestring +share/${PKGNAME}/AlexWrapper-posn +share/${PKGNAME}/AlexWrapper-posn-bytestring +share/${PKGNAME}/AlexWrapper-strict-bytestring +share/doc/${PKGNAME}/LICENSE diff --git a/devel/alex/buildlink3.mk b/devel/alex/buildlink3.mk new file mode 100644 index 00000000000..e5fa273b183 --- /dev/null +++ b/devel/alex/buildlink3.mk @@ -0,0 +1,16 @@ +# $NetBSD: buildlink3.mk,v 1.1 2015/02/14 09:01:33 pho Exp $ + +BUILDLINK_TREE+= alex + +.if !defined(ALEX_BUILDLINK3_MK) +ALEX_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.alex+= alex>=3.1.4 +BUILDLINK_ABI_DEPENDS.alex+= alex>=3.1.4 +BUILDLINK_PKGSRCDIR.alex?= ../../devel/alex +BUILDLINK_DEPMETHOD.alex?= build + +.include "../../devel/hs-QuickCheck/buildlink3.mk" +.endif # ALEX_BUILDLINK3_MK + +BUILDLINK_TREE+= -alex diff --git a/devel/alex/distinfo b/devel/alex/distinfo new file mode 100644 index 00000000000..4fadc6b38f1 --- /dev/null +++ b/devel/alex/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2015/02/14 09:01:33 pho Exp $ + +SHA1 (alex-3.1.4.tar.gz) = c9ab9bb8bbcc0cfe84086da872bb98b3fe67f946 +RMD160 (alex-3.1.4.tar.gz) = c708edb7f57eeb11b2bdb6b45bf3a1dab6de2ec8 +Size (alex-3.1.4.tar.gz) = 101827 bytes |