pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/ocaml-xml-light Added textproc/ocaml-xml-ligh...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e7f1957e7186
branches:  trunk
changeset: 325999:e7f1957e7186
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Thu Nov 29 10:45:37 2018 +0000

description:
Added textproc/ocaml-xml-light, an XML parser for OCaml.

This is needed as a dependency for ocsigenserver.

diffstat:

 textproc/ocaml-xml-light/DESCR                  |   7 +++++
 textproc/ocaml-xml-light/Makefile               |  32 +++++++++++++++++++++++++
 textproc/ocaml-xml-light/PLIST                  |  15 +++++++++++
 textproc/ocaml-xml-light/buildlink3.mk          |  12 +++++++++
 textproc/ocaml-xml-light/distinfo               |   7 +++++
 textproc/ocaml-xml-light/patches/patch-Makefile |  14 ++++++++++
 6 files changed, 87 insertions(+), 0 deletions(-)

diffs (111 lines):

diff -r 7a552405b600 -r e7f1957e7186 textproc/ocaml-xml-light/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-xml-light/DESCR    Thu Nov 29 10:45:37 2018 +0000
@@ -0,0 +1,7 @@
+Xml Light is a minimal Xml parser & printer for OCaml.
+It provides a few functions to parse a basic Xml document into
+an OCaml data structure and to print back the data structures
+to an Xml document.
+
+Xml Light also has support for DTDs (Document Type Definitions).
+
diff -r 7a552405b600 -r e7f1957e7186 textproc/ocaml-xml-light/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-xml-light/Makefile Thu Nov 29 10:45:37 2018 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2018/11/29 10:45:37 jaapb Exp $
+
+GITHUB_PROJECT=        xml-light
+DISTNAME=      ${GITHUB_PROJECT}-2.4
+PKGNAME=       ocaml-${DISTNAME}
+CATEGORIES=    textproc
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=ncannasse/}
+DIST_SUBDIR=   ocaml-${GITHUB_PROJECT}
+
+MAINTAINER=    jaapb%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/ncannasse/xml-light/
+COMMENT=       Minimal Xml parser and printer
+LICENSE=       gnu-lgpl-v2.1
+
+USE_LANGUAGES= # none
+USE_TOOLS+=    gmake
+MAKE_JOBS_SAFE=        no
+
+OCAML_USE_FINDLIB=     yes
+
+.include "../../mk/ocaml.mk"
+
+BUILD_TARGET=  all
+.if ${OCAML_USE_OPT_COMPILER} == "yes"
+BUILD_TARGET+= opt
+MAKE_ENV+=     NATDYNLINK=YES
+.else
+MAKE_ENV+=     NATDYNLINK=NO
+.endif
+INSTALL_TARGET=        install_ocamlfind
+
+.include "../../mk/bsd.pkg.mk"
diff -r 7a552405b600 -r e7f1957e7186 textproc/ocaml-xml-light/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-xml-light/PLIST    Thu Nov 29 10:45:37 2018 +0000
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1 2018/11/29 10:45:37 jaapb Exp $
+${OCAML_SITELIB}/xml-light/META
+${OCAML_SITELIB}/xml-light/dtd.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/xml-light/dtd.cmx
+${OCAML_SITELIB}/xml-light/dtd.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/xml-light/xml-light.a
+${OCAML_SITELIB}/xml-light/xml-light.cma
+${PLIST.ocaml-opt}${OCAML_SITELIB}/xml-light/xml-light.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/xml-light/xml-light.cmxs
+${OCAML_SITELIB}/xml-light/xml.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/xml-light/xml.cmx
+${OCAML_SITELIB}/xml-light/xml.mli
+${OCAML_SITELIB}/xml-light/xmlParser.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/xml-light/xmlParser.cmx
+${OCAML_SITELIB}/xml-light/xmlParser.mli
diff -r 7a552405b600 -r e7f1957e7186 textproc/ocaml-xml-light/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-xml-light/buildlink3.mk    Thu Nov 29 10:45:37 2018 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/11/29 10:45:37 jaapb Exp $
+
+BUILDLINK_TREE+=       ocaml-xml-light
+
+.if !defined(OCAML_XML_LIGHT_BUILDLINK3_MK)
+OCAML_XML_LIGHT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-xml-light+=        ocaml-xml-light>=2.4
+BUILDLINK_PKGSRCDIR.ocaml-xml-light?=  ../../textproc/ocaml-xml-light
+.endif # OCAML_XML_LIGHT_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -ocaml-xml-light
diff -r 7a552405b600 -r e7f1957e7186 textproc/ocaml-xml-light/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-xml-light/distinfo Thu Nov 29 10:45:37 2018 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/11/29 10:45:37 jaapb Exp $
+
+SHA1 (ocaml-xml-light/xml-light-2.4.tar.gz) = f46388fa4adbeb9bd40419a0f5c37c308c5b21a0
+RMD160 (ocaml-xml-light/xml-light-2.4.tar.gz) = e10e04f02e1ca6c1599365eba7a96bb7f54dce27
+SHA512 (ocaml-xml-light/xml-light-2.4.tar.gz) = 029068c6eb48cd1223438dc0f86e1c5e6fd0412d160ea4d79928eec5e5f5843af46260d7240e4260851e9580e7f92d578c764c63c8e0acab348637455493ef02
+Size (ocaml-xml-light/xml-light-2.4.tar.gz) = 16573 bytes
+SHA1 (patch-Makefile) = e0884127c5bf94af4f4f36d64dd50617e6c0695a
diff -r 7a552405b600 -r e7f1957e7186 textproc/ocaml-xml-light/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-xml-light/patches/patch-Makefile   Thu Nov 29 10:45:37 2018 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-Makefile,v 1.1 2018/11/29 10:45:37 jaapb Exp $
+
+NATDYNLINK determined from pkgsrc settings
+--- Makefile.orig      2014-01-20 01:52:59.000000000 +0000
++++ Makefile
+@@ -12,7 +12,7 @@ CFLAGS=
+ LFLAGS= -a
+ LIBS=
+ 
+-NATDYNLINK := $(shell if [ -f `ocamlc -where`/dynlink.cmxa ]; then echo YES; else echo NO; fi)
++#NATDYNLINK := $(shell if [ -f `ocamlc -where`/dynlink.cmxa ]; then echo YES; else echo NO; fi)
+ 
+ ifeq "${NATDYNLINK}" "YES"
+ CMXS=xml-light.cmxs



Home | Main Index | Thread Index | Old Index