summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjaapb <jaapb>2016-06-20 11:08:31 +0000
committerjaapb <jaapb>2016-06-20 11:08:31 +0000
commitb4c83eb05bb91195af8b2d990b0a559465a1f5f2 (patch)
treec6c1e0c016fe06533ad85a46be41b6bd99ff3d42 /textproc
parent96fd81593d0a8807291412436920c834b589334c (diff)
downloadpkgsrc-b4c83eb05bb91195af8b2d990b0a559465a1f5f2.tar.gz
Added package textproc/ocaml-markup, a pair of parsers for XML and HTML5.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ocaml-markup/DESCR13
-rw-r--r--textproc/ocaml-markup/Makefile28
-rw-r--r--textproc/ocaml-markup/PLIST26
-rw-r--r--textproc/ocaml-markup/buildlink3.mk13
-rw-r--r--textproc/ocaml-markup/distinfo6
5 files changed, 86 insertions, 0 deletions
diff --git a/textproc/ocaml-markup/DESCR b/textproc/ocaml-markup/DESCR
new file mode 100644
index 00000000000..334c7f20cbb
--- /dev/null
+++ b/textproc/ocaml-markup/DESCR
@@ -0,0 +1,13 @@
+Markup.ml is a pair of best-effort parsers implementing the HTML5 and XML
+specifications.
+
+In addition to being error-correcting, the parsers are:
+* streaming: capable of parsing partial input and emitting signals while more
+ input is still being received;
+* lazy: not parsing input unless you have requested the next parsing signal,
+ so you can easily stop parsing partway through a document;
+* non-blocking: they can be used with Lwt, but still provide a straightforward
+ synchronous interface for simple usage; and
+* one-pass: memory consumption is limited since the parsers don't build up a
+ document representation, nor buffer input beyond a small amount of
+ lookahead.
diff --git a/textproc/ocaml-markup/Makefile b/textproc/ocaml-markup/Makefile
new file mode 100644
index 00000000000..1da94be2513
--- /dev/null
+++ b/textproc/ocaml-markup/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2016/06/20 11:08:31 jaapb Exp $
+
+VERSION= 0.7.2
+GITHUB_PROJECT= markup.ml
+DISTNAME= markup-${VERSION}
+PKGNAME= ${GITHUB_PROJECT}-${DISTNAME}
+PKGNAME= ocaml-${DISTNAME}
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=aantron/}
+
+MAINTAINER= jaapb@NetBSD.org
+HOMEPAGE= https://github.com/aantron/markup.ml/
+COMMENT= Error-recovering streaming HTML5 and XML parsers for OCaml
+LICENSE= 2-clause-bsd
+
+WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${VERSION}
+USE_LANGUAGES= # none
+USE_TOOLS+= gmake
+OCAML_USE_FINDLIB= yes
+
+BUILD_TARGET= build
+INSTALL_TARGET= ocamlfind-install
+
+.include "../../devel/ocaml-lwt/buildlink3.mk"
+.include "../../devel/ocamlbuild/buildlink3.mk"
+.include "../../textproc/ocaml-uutf/buildlink3.mk"
+.include "../../mk/ocaml.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/ocaml-markup/PLIST b/textproc/ocaml-markup/PLIST
new file mode 100644
index 00000000000..7bf056f3aef
--- /dev/null
+++ b/textproc/ocaml-markup/PLIST
@@ -0,0 +1,26 @@
+@comment $NetBSD: PLIST,v 1.1 2016/06/20 11:08:31 jaapb Exp $
+${OCAML_SITELIB}/markup/META
+${PLIST.ocaml-opt}${OCAML_SITELIB}/markup/markup.a
+${OCAML_SITELIB}/markup/markup.cma
+${OCAML_SITELIB}/markup/markup.cmi
+${OCAML_SITELIB}/markup/markup.cmt
+${OCAML_SITELIB}/markup/markup.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/markup/markup.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/markup/markup.cmxa
+${OCAML_SITELIB}/markup/markup.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/markup/markup_lwt.a
+${OCAML_SITELIB}/markup/markup_lwt.cma
+${OCAML_SITELIB}/markup/markup_lwt.cmi
+${OCAML_SITELIB}/markup/markup_lwt.cmt
+${OCAML_SITELIB}/markup/markup_lwt.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/markup/markup_lwt.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/markup/markup_lwt.cmxa
+${OCAML_SITELIB}/markup/markup_lwt.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/markup/markup_lwt_unix.a
+${OCAML_SITELIB}/markup/markup_lwt_unix.cma
+${OCAML_SITELIB}/markup/markup_lwt_unix.cmi
+${OCAML_SITELIB}/markup/markup_lwt_unix.cmt
+${OCAML_SITELIB}/markup/markup_lwt_unix.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/markup/markup_lwt_unix.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/markup/markup_lwt_unix.cmxa
+${OCAML_SITELIB}/markup/markup_lwt_unix.mli
diff --git a/textproc/ocaml-markup/buildlink3.mk b/textproc/ocaml-markup/buildlink3.mk
new file mode 100644
index 00000000000..fc9e13ce7a6
--- /dev/null
+++ b/textproc/ocaml-markup/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/06/20 11:08:31 jaapb Exp $
+
+BUILDLINK_TREE+= ocaml-markup
+
+.if !defined(OCAML_MARKUP_BUILDLINK3_MK)
+OCAML_MARKUP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-markup+= ocaml-markup>=0.7.2
+BUILDLINK_PKGSRCDIR.ocaml-markup?= ../../textproc/ocaml-markup
+
+.endif # OCAML_MARKUP_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ocaml-markup
diff --git a/textproc/ocaml-markup/distinfo b/textproc/ocaml-markup/distinfo
new file mode 100644
index 00000000000..6546e63ffbb
--- /dev/null
+++ b/textproc/ocaml-markup/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/06/20 11:08:31 jaapb Exp $
+
+SHA1 (markup-0.7.2.tar.gz) = e4f7c378a4e4fd69a3b1ad947a1c7b3a81b8a605
+RMD160 (markup-0.7.2.tar.gz) = e8071516331af8b1c33ec6c0e675611b0cfb2a75
+SHA512 (markup-0.7.2.tar.gz) = 72a87f54692a0b751c23e6b52bc4ecaa68334b0c6c067793cbf5b011b7d06ce7563f9aa2daeef3553ab48bb6cb9e592587b5a4f37279eaef7b45e19e5b372f73
+Size (markup-0.7.2.tar.gz) = 275010 bytes