summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2021-05-05 09:48:29 +0000
committerpho <pho@pkgsrc.org>2021-05-05 09:48:29 +0000
commit3cab4eedda6adc268fef5df648efea30daa68bef (patch)
tree442e90cd56524393312415b10af97ced94004c6e /sysutils
parenta6e1a0559ebd831738176c03c01b4eb008ec22d8 (diff)
downloadpkgsrc-3cab4eedda6adc268fef5df648efea30daa68bef.tar.gz
Import filepattern-0.1.2
A library for matching files using patterns such as "src/**/*.png" for all .png files recursively under the src directory.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/hs-filepattern/DESCR16
-rw-r--r--sysutils/hs-filepattern/Makefile12
-rw-r--r--sysutils/hs-filepattern/buildlink3.mk15
-rw-r--r--sysutils/hs-filepattern/distinfo6
4 files changed, 49 insertions, 0 deletions
diff --git a/sysutils/hs-filepattern/DESCR b/sysutils/hs-filepattern/DESCR
new file mode 100644
index 00000000000..57084da9cc6
--- /dev/null
+++ b/sysutils/hs-filepattern/DESCR
@@ -0,0 +1,16 @@
+A library for matching files using patterns such as "src/**/*.png" for
+all .png files recursively under the src directory. Features:
+
+* All matching is O(n). Most functions precompute some information
+ given only one argument.
+
+* See "System.FilePattern" and '?==' simple matching and semantics.
+
+* Use 'match' and 'substitute' to extract suitable strings from the *
+ and ** matches, and substitute them back into other patterns.
+
+* Use 'step' and 'matchMany' to perform bulk matching of many patterns
+ against many paths simultaneously.
+
+* Use "System.FilePattern.Directory" to perform optimised directory
+ traverals using patterns.
diff --git a/sysutils/hs-filepattern/Makefile b/sysutils/hs-filepattern/Makefile
new file mode 100644
index 00000000000..88ab8e21cd3
--- /dev/null
+++ b/sysutils/hs-filepattern/Makefile
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile,v 1.1 2021/05/05 09:48:29 pho Exp $
+
+DISTNAME= filepattern-0.1.2
+CATEGORIES= sysutils
+
+MAINTAINER= pho@cielonegro.org
+COMMENT= File path glob-like matching
+LICENSE= modified-bsd
+
+.include "../../misc/hs-extra/buildlink3.mk"
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/hs-filepattern/buildlink3.mk b/sysutils/hs-filepattern/buildlink3.mk
new file mode 100644
index 00000000000..b61fe40ba35
--- /dev/null
+++ b/sysutils/hs-filepattern/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/05/05 09:48:29 pho Exp $
+
+BUILDLINK_TREE+= hs-filepattern
+
+.if !defined(HS_FILEPATTERN_BUILDLINK3_MK)
+HS_FILEPATTERN_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-filepattern+= hs-filepattern>=0.1.2
+BUILDLINK_ABI_DEPENDS.hs-filepattern+= hs-filepattern>=0.1.2
+BUILDLINK_PKGSRCDIR.hs-filepattern?= ../../sysutils/hs-filepattern
+
+.include "../../misc/hs-extra/buildlink3.mk"
+.endif # HS_FILEPATTERN_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-filepattern
diff --git a/sysutils/hs-filepattern/distinfo b/sysutils/hs-filepattern/distinfo
new file mode 100644
index 00000000000..c84adf8a3ef
--- /dev/null
+++ b/sysutils/hs-filepattern/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/05/05 09:48:29 pho Exp $
+
+SHA1 (filepattern-0.1.2.tar.gz) = cfcbd5c2638bfebceca0475db113639a4f369b16
+RMD160 (filepattern-0.1.2.tar.gz) = 3c36a3514b61ec53d66dd13fa45c0d10d14ba7d1
+SHA512 (filepattern-0.1.2.tar.gz) = 16866d70efdf55ee4e6b246eb7f7300c9ad4c148d8136d817f601b9c0cac95eb1ddaf57ab0b6fad539298b55128fe5c255c31fd152a713bf312488eae823da23
+Size (filepattern-0.1.2.tar.gz) = 15737 bytes