pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/hs-filepattern Import filepattern-0.1.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/72f3bb0c9473
branches:  trunk
changeset: 452057:72f3bb0c9473
user:      pho <pho%pkgsrc.org@localhost>
date:      Wed May 05 09:48:29 2021 +0000

description:
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:

 sysutils/hs-filepattern/DESCR         |  16 ++++++++++++++++
 sysutils/hs-filepattern/Makefile      |  12 ++++++++++++
 sysutils/hs-filepattern/buildlink3.mk |  15 +++++++++++++++
 sysutils/hs-filepattern/distinfo      |   6 ++++++
 4 files changed, 49 insertions(+), 0 deletions(-)

diffs (65 lines):

diff -r 4eb15b97f6a6 -r 72f3bb0c9473 sysutils/hs-filepattern/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/hs-filepattern/DESCR     Wed May 05 09:48:29 2021 +0000
@@ -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 -r 4eb15b97f6a6 -r 72f3bb0c9473 sysutils/hs-filepattern/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/hs-filepattern/Makefile  Wed May 05 09:48:29 2021 +0000
@@ -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@localhost
+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 -r 4eb15b97f6a6 -r 72f3bb0c9473 sysutils/hs-filepattern/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/hs-filepattern/buildlink3.mk     Wed May 05 09:48:29 2021 +0000
@@ -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 -r 4eb15b97f6a6 -r 72f3bb0c9473 sysutils/hs-filepattern/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/hs-filepattern/distinfo  Wed May 05 09:48:29 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index