diff options
author | pho <pho@pkgsrc.org> | 2020-01-19 23:45:50 +0000 |
---|---|---|
committer | pho <pho@pkgsrc.org> | 2020-01-19 23:45:50 +0000 |
commit | 69776f92401a5dfadbe8e643131b01eeb0deec63 (patch) | |
tree | d6782a498a13c2af67948267cb5fd54b0c9a4cec /textproc | |
parent | 9680c65dff136dbf5bf99504c1eaecd1b809faca (diff) | |
download | pkgsrc-69776f92401a5dfadbe8e643131b01eeb0deec63.tar.gz |
Import regex-tdfa-1.3.1.0 from wip
This package provides a pure Haskell "Tagged" DFA regex engine for
regex-base. This implementation was inspired by the algorithm (and
Master's thesis) behind the regular expression library known as TRE or
libtre.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/hs-regex-tdfa/DESCR | 4 | ||||
-rw-r--r-- | textproc/hs-regex-tdfa/Makefile | 15 | ||||
-rw-r--r-- | textproc/hs-regex-tdfa/buildlink3.mk | 15 | ||||
-rw-r--r-- | textproc/hs-regex-tdfa/distinfo | 6 | ||||
-rw-r--r-- | textproc/hs-regex-tdfa/files/Setup.hs | 2 |
5 files changed, 42 insertions, 0 deletions
diff --git a/textproc/hs-regex-tdfa/DESCR b/textproc/hs-regex-tdfa/DESCR new file mode 100644 index 00000000000..c2d58f3f7c1 --- /dev/null +++ b/textproc/hs-regex-tdfa/DESCR @@ -0,0 +1,4 @@ +This package provides a pure Haskell "Tagged" DFA regex engine for +regex-base. This implementation was inspired by the algorithm (and +Master's thesis) behind the regular expression library known as TRE or +libtre. diff --git a/textproc/hs-regex-tdfa/Makefile b/textproc/hs-regex-tdfa/Makefile new file mode 100644 index 00000000000..5667d350655 --- /dev/null +++ b/textproc/hs-regex-tdfa/Makefile @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.1 2020/01/19 23:45:50 pho Exp $ + +DISTNAME= regex-tdfa-1.3.1.0 +CATEGORIES= textproc + +MAINTAINER= pho@cielonegro.org +COMMENT= Pure Haskell Tagged DFA Backend for "Text.Regex" (regex-base) +LICENSE= modified-bsd + +post-patch: + ${RUN}${CP} -f ${FILESDIR}/Setup.hs ${WRKSRC}/ + +.include "../../mk/haskell.mk" +.include "../../textproc/hs-regex-base/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/hs-regex-tdfa/buildlink3.mk b/textproc/hs-regex-tdfa/buildlink3.mk new file mode 100644 index 00000000000..c3bad7914e7 --- /dev/null +++ b/textproc/hs-regex-tdfa/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2020/01/19 23:45:50 pho Exp $ + +BUILDLINK_TREE+= hs-regex-tdfa + +.if !defined(HS_REGEX_TDFA_BUILDLINK3_MK) +HS_REGEX_TDFA_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.hs-regex-tdfa+= hs-regex-tdfa>=1.3.1 +BUILDLINK_ABI_DEPENDS.hs-regex-tdfa+= hs-regex-tdfa>=1.3.1.0 +BUILDLINK_PKGSRCDIR.hs-regex-tdfa?= ../../textproc/hs-regex-tdfa + +.include "../../textproc/hs-regex-base/buildlink3.mk" +.endif # HS_REGEX_TDFA_BUILDLINK3_MK + +BUILDLINK_TREE+= -hs-regex-tdfa diff --git a/textproc/hs-regex-tdfa/distinfo b/textproc/hs-regex-tdfa/distinfo new file mode 100644 index 00000000000..c8c26a9dd23 --- /dev/null +++ b/textproc/hs-regex-tdfa/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/01/19 23:45:50 pho Exp $ + +SHA1 (regex-tdfa-1.3.1.0.tar.gz) = b71d6416f41989033730c9bdd788d21a61429224 +RMD160 (regex-tdfa-1.3.1.0.tar.gz) = 2fe621d6e90d052aa72312f50c9f145d636e600c +SHA512 (regex-tdfa-1.3.1.0.tar.gz) = becac929003ea2c1a8fe1e890a53d3cb914eeb02090a23d014120d04ee144e24c2c7bdfaadd58a2dd70ed49df1e0059a3f8a94faa4ce0a6efd533ee6019c951f +Size (regex-tdfa-1.3.1.0.tar.gz) = 77767 bytes diff --git a/textproc/hs-regex-tdfa/files/Setup.hs b/textproc/hs-regex-tdfa/files/Setup.hs new file mode 100644 index 00000000000..9a994af677b --- /dev/null +++ b/textproc/hs-regex-tdfa/files/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain |