summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorszptvlfn <szptvlfn>2014-08-01 12:09:42 +0000
committerszptvlfn <szptvlfn>2014-08-01 12:09:42 +0000
commit7df370473af3093ff733bb1613e6ec0c67824398 (patch)
tree4729125428ef68db508bff592ba08d2a74a0de83 /textproc
parent12ef630644c6c9c78beab3aea08f5e2b6fc0ad3d (diff)
downloadpkgsrc-7df370473af3093ff733bb1613e6ec0c67824398.tar.gz
Import stringsearch-0.3.6.5 as textproc/hs-stringsearch,
packaged for wip by pho. This package provides several functions to quickly search for substrings in strict or lazy ByteStrings. It also provides functions for breaking or splitting on substrings and replacing all occurrences of a substring (the first in case of overlaps) with another.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/hs-stringsearch/DESCR4
-rw-r--r--textproc/hs-stringsearch/Makefile11
-rw-r--r--textproc/hs-stringsearch/PLIST53
-rw-r--r--textproc/hs-stringsearch/buildlink3.mk12
-rw-r--r--textproc/hs-stringsearch/distinfo5
5 files changed, 85 insertions, 0 deletions
diff --git a/textproc/hs-stringsearch/DESCR b/textproc/hs-stringsearch/DESCR
new file mode 100644
index 00000000000..89f4b2f44ff
--- /dev/null
+++ b/textproc/hs-stringsearch/DESCR
@@ -0,0 +1,4 @@
+This package provides several functions to quickly search for
+substrings in strict or lazy ByteStrings. It also provides functions
+for breaking or splitting on substrings and replacing all occurrences
+of a substring (the first in case of overlaps) with another.
diff --git a/textproc/hs-stringsearch/Makefile b/textproc/hs-stringsearch/Makefile
new file mode 100644
index 00000000000..058bce08f2c
--- /dev/null
+++ b/textproc/hs-stringsearch/Makefile
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2014/08/01 12:09:42 szptvlfn Exp $
+
+DISTNAME= stringsearch-0.3.6.5
+CATEGORIES= textproc
+
+MAINTAINER= pho@cielonegro.org
+COMMENT= Fast searching, splitting and replacing of ByteStrings
+LICENSE= modified-bsd
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/hs-stringsearch/PLIST b/textproc/hs-stringsearch/PLIST
new file mode 100644
index 00000000000..659c8814a73
--- /dev/null
+++ b/textproc/hs-stringsearch/PLIST
@@ -0,0 +1,53 @@
+@comment $NetBSD: PLIST,v 1.1 2014/08/01 12:09:42 szptvlfn Exp $
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Lazy/Search.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Lazy/Search/DFA.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Lazy/Search/Internal/BoyerMoore.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Lazy/Search/KMP.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Lazy/Search/KarpRabin.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Search.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Search/BoyerMoore.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Search/DFA.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Search/Internal/BoyerMoore.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Search/Internal/KnuthMorrisPratt.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Search/Internal/Utils.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Search/KMP.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Search/KarpRabin.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Search/KnuthMorrisPratt.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/Data/ByteString/Search/Substitution.hi
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/HSstringsearch-${PKGVERSION}.o
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/libHSstringsearch-${PKGVERSION}.a
+lib/stringsearch-${PKGVERSION}/${HASKELL_VERSION}/package-description
+share/doc/stringsearch-${PKGVERSION}/LICENCE
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/Data-ByteString-Lazy-Search-DFA.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/Data-ByteString-Lazy-Search-KMP.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/Data-ByteString-Lazy-Search-KarpRabin.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/Data-ByteString-Lazy-Search.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/Data-ByteString-Search-BoyerMoore.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/Data-ByteString-Search-DFA.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/Data-ByteString-Search-KMP.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/Data-ByteString-Search-KarpRabin.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/Data-ByteString-Search-KnuthMorrisPratt.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/Data-ByteString-Search-Substitution.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/Data-ByteString-Search.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/doc-index.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/frames.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/haddock-util.js
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/hslogo-16.png
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/index-frames.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/index.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/mini_Data-ByteString-Lazy-Search-DFA.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/mini_Data-ByteString-Lazy-Search-KMP.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/mini_Data-ByteString-Lazy-Search-KarpRabin.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/mini_Data-ByteString-Lazy-Search.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/mini_Data-ByteString-Search-BoyerMoore.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/mini_Data-ByteString-Search-DFA.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/mini_Data-ByteString-Search-KMP.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/mini_Data-ByteString-Search-KarpRabin.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/mini_Data-ByteString-Search-KnuthMorrisPratt.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/mini_Data-ByteString-Search-Substitution.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/mini_Data-ByteString-Search.html
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/minus.gif
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/ocean.css
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/plus.gif
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/stringsearch.haddock
+${PLIST.doc}share/doc/stringsearch-${PKGVERSION}/html/synopsis.png
diff --git a/textproc/hs-stringsearch/buildlink3.mk b/textproc/hs-stringsearch/buildlink3.mk
new file mode 100644
index 00000000000..52847290539
--- /dev/null
+++ b/textproc/hs-stringsearch/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/08/01 12:09:42 szptvlfn Exp $
+
+BUILDLINK_TREE+= hs-stringsearch
+
+.if !defined(HS_STRINGSEARCH_BUILDLINK3_MK)
+HS_STRINGSEARCH_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-stringsearch+= hs-stringsearch>=0.3.6
+BUILDLINK_PKGSRCDIR.hs-stringsearch?= ../../textproc/hs-stringsearch
+.endif # HS_STRINGSEARCH_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-stringsearch
diff --git a/textproc/hs-stringsearch/distinfo b/textproc/hs-stringsearch/distinfo
new file mode 100644
index 00000000000..04eb6d9adb3
--- /dev/null
+++ b/textproc/hs-stringsearch/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/08/01 12:09:42 szptvlfn Exp $
+
+SHA1 (stringsearch-0.3.6.5.tar.gz) = fb6ff8a7ed32fd3a646181ee663b727f7c450047
+RMD160 (stringsearch-0.3.6.5.tar.gz) = 4481559b53afc0ef044b2be4211148bc7e757357
+Size (stringsearch-0.3.6.5.tar.gz) = 38994 bytes