pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/ocaml-markup Added package textproc/ocaml-mar...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/872f9838ca0d
branches:  trunk
changeset: 348913:872f9838ca0d
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Mon Jun 20 11:08:31 2016 +0000

description:
Added package textproc/ocaml-markup, a pair of parsers for XML and HTML5.

diffstat:

 textproc/ocaml-markup/DESCR         |  13 +++++++++++++
 textproc/ocaml-markup/Makefile      |  28 ++++++++++++++++++++++++++++
 textproc/ocaml-markup/PLIST         |  26 ++++++++++++++++++++++++++
 textproc/ocaml-markup/buildlink3.mk |  13 +++++++++++++
 textproc/ocaml-markup/distinfo      |   6 ++++++
 5 files changed, 86 insertions(+), 0 deletions(-)

diffs (106 lines):

diff -r f10946628da0 -r 872f9838ca0d textproc/ocaml-markup/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-markup/DESCR       Mon Jun 20 11:08:31 2016 +0000
@@ -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 -r f10946628da0 -r 872f9838ca0d textproc/ocaml-markup/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-markup/Makefile    Mon Jun 20 11:08:31 2016 +0000
@@ -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@localhost
+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 -r f10946628da0 -r 872f9838ca0d textproc/ocaml-markup/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-markup/PLIST       Mon Jun 20 11:08:31 2016 +0000
@@ -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 -r f10946628da0 -r 872f9838ca0d textproc/ocaml-markup/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-markup/buildlink3.mk       Mon Jun 20 11:08:31 2016 +0000
@@ -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 -r f10946628da0 -r 872f9838ca0d textproc/ocaml-markup/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-markup/distinfo    Mon Jun 20 11:08:31 2016 +0000
@@ -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



Home | Main Index | Thread Index | Old Index