summaryrefslogtreecommitdiff
path: root/textproc/ocaml-tyxml
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-06-04 13:13:14 +0000
committerwiz <wiz@pkgsrc.org>2012-06-04 13:13:14 +0000
commit8290a81be8e33ecf0f9f8bb1c0cac7ec6cb9c6a9 (patch)
tree26bb672214ffd7e9f33aa79b0cce6097286165f4 /textproc/ocaml-tyxml
parent0ab5943e0ca3f59711d4af7c6c5eaa218ba35a1c (diff)
downloadpkgsrc-8290a81be8e33ecf0f9f8bb1c0cac7ec6cb9c6a9.tar.gz
Initial import of ocaml-tyxml, packaged by Jaap Boender in PR 45546:
TyXML is an OCaml library that allows you to build XML trees whose validity is insured by the typechecker. It supports XHTML 1.0 and 1.1, HTML5 and SVG (partial).
Diffstat (limited to 'textproc/ocaml-tyxml')
-rw-r--r--textproc/ocaml-tyxml/DESCR3
-rw-r--r--textproc/ocaml-tyxml/Makefile36
-rw-r--r--textproc/ocaml-tyxml/PLIST57
-rw-r--r--textproc/ocaml-tyxml/distinfo6
-rw-r--r--textproc/ocaml-tyxml/patches/patch-Makefile27
5 files changed, 129 insertions, 0 deletions
diff --git a/textproc/ocaml-tyxml/DESCR b/textproc/ocaml-tyxml/DESCR
new file mode 100644
index 00000000000..9733abaa8b5
--- /dev/null
+++ b/textproc/ocaml-tyxml/DESCR
@@ -0,0 +1,3 @@
+TyXML is an OCaml library that allows you to build XML trees whose validity is
+insured by the typechecker. It supports XHTML 1.0 and 1.1, HTML5 and SVG
+(partial).
diff --git a/textproc/ocaml-tyxml/Makefile b/textproc/ocaml-tyxml/Makefile
new file mode 100644
index 00000000000..73837dbc9da
--- /dev/null
+++ b/textproc/ocaml-tyxml/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/06/04 13:13:14 wiz Exp $
+#
+
+DISTNAME= tyxml-2.1
+PKGNAME= ocaml-${DISTNAME}
+CATEGORIES= textproc
+MASTER_SITES= http://ocsigen.org/download/
+
+MAINTAINER= jaapb@kerguelen.org
+HOMEPAGE= http://ocsigen.org/download/
+COMMENT= OCaml XML typing library
+LICENSE= gnu-lgpl-v2.1 # with openssl exemption
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c
+USE_TOOLS= gmake
+
+DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
+CONFLICTS+= ocsigen<2.0
+
+MAKE_ENV+= INSTALLDIR="${DESTDIR}${PREFIX}/lib/ocaml/site-lib"
+
+PLIST_VARS= opt
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
+ (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
+PLIST.opt= yes
+.endif
+
+pre-install:
+ ${RM} -rf ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/tyxml
+ ${MKDIR} ${DESTDIR}${PREFIX}/lib/ocaml/site-lib
+
+.include "../../net/ocamlnet/buildlink3.mk"
+.include "../../lang/ocaml/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/ocaml-tyxml/PLIST b/textproc/ocaml-tyxml/PLIST
new file mode 100644
index 00000000000..f86ba5d281d
--- /dev/null
+++ b/textproc/ocaml-tyxml/PLIST
@@ -0,0 +1,57 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2012/06/04 13:13:14 wiz Exp $
+@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/tyxml
+lib/ocaml/site-lib/tyxml/META
+lib/ocaml/site-lib/tyxml/html5.cmi
+lib/ocaml/site-lib/tyxml/html5.mli
+lib/ocaml/site-lib/tyxml/html5_f.cmi
+lib/ocaml/site-lib/tyxml/html5_f.mli
+lib/ocaml/site-lib/tyxml/html5_sigs.cmi
+lib/ocaml/site-lib/tyxml/html5_sigs.mli
+lib/ocaml/site-lib/tyxml/html5_types.cmi
+lib/ocaml/site-lib/tyxml/html5_types.mli
+lib/ocaml/site-lib/tyxml/pa_tyxml.cmi
+lib/ocaml/site-lib/tyxml/pa_tyxml.cmo
+lib/ocaml/site-lib/tyxml/pa_tyxml.mli
+lib/ocaml/site-lib/tyxml/simplexmlparser.cmi
+lib/ocaml/site-lib/tyxml/simplexmlparser.cmo
+lib/ocaml/site-lib/tyxml/simplexmlparser.mli
+${PLIST.opt}lib/ocaml/site-lib/tyxml/simplexmlparser.cmx
+${PLIST.opt}lib/ocaml/site-lib/tyxml/simplexmlparser.cmxs
+lib/ocaml/site-lib/tyxml/simplexmlparser.o
+lib/ocaml/site-lib/tyxml/svg.cmi
+lib/ocaml/site-lib/tyxml/svg.mli
+lib/ocaml/site-lib/tyxml/svg_f.cmi
+lib/ocaml/site-lib/tyxml/svg_f.mli
+lib/ocaml/site-lib/tyxml/svg_sigs.cmi
+lib/ocaml/site-lib/tyxml/svg_sigs.mli
+lib/ocaml/site-lib/tyxml/svg_types.cmi
+lib/ocaml/site-lib/tyxml/svg_types.mli
+${PLIST.opt}lib/ocaml/site-lib/tyxml/tyxml.a
+lib/ocaml/site-lib/tyxml/tyxml.cma
+${PLIST.opt}lib/ocaml/site-lib/tyxml/tyxml.cmxa
+${PLIST.opt}lib/ocaml/site-lib/tyxml/tyxml.cmxs
+${PLIST.opt}lib/ocaml/site-lib/tyxml/tyxml_f.a
+lib/ocaml/site-lib/tyxml/tyxml_f.cma
+${PLIST.opt}lib/ocaml/site-lib/tyxml/tyxml_f.cmxa
+${PLIST.opt}lib/ocaml/site-lib/tyxml/tyxml_f.cmxs
+lib/ocaml/site-lib/tyxml/xhtml.cmi
+lib/ocaml/site-lib/tyxml/xhtml.mli
+lib/ocaml/site-lib/tyxml/xhtml_f.cmi
+lib/ocaml/site-lib/tyxml/xhtml_f.mli
+lib/ocaml/site-lib/tyxml/xhtml_sigs.cmi
+lib/ocaml/site-lib/tyxml/xhtml_sigs.mli
+lib/ocaml/site-lib/tyxml/xhtml_types.cmi
+lib/ocaml/site-lib/tyxml/xhtml_types.mli
+lib/ocaml/site-lib/tyxml/xml.cmi
+lib/ocaml/site-lib/tyxml/xml.mli
+lib/ocaml/site-lib/tyxml/xml_iter.cmi
+lib/ocaml/site-lib/tyxml/xml_iter.mli
+lib/ocaml/site-lib/tyxml/xml_print.cmi
+lib/ocaml/site-lib/tyxml/xml_print.mli
+lib/ocaml/site-lib/tyxml/xml_sigs.cmi
+lib/ocaml/site-lib/tyxml/xml_sigs.mli
+lib/ocaml/site-lib/tyxml/xmllexer.cmo
+${PLIST.opt}lib/ocaml/site-lib/tyxml/xmllexer.cmx
+${PLIST.opt}lib/ocaml/site-lib/tyxml/xmllexer.cmxs
+lib/ocaml/site-lib/tyxml/xmllexer.o
+@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/tyxml
diff --git a/textproc/ocaml-tyxml/distinfo b/textproc/ocaml-tyxml/distinfo
new file mode 100644
index 00000000000..3e29994ef3d
--- /dev/null
+++ b/textproc/ocaml-tyxml/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2012/06/04 13:13:15 wiz Exp $
+
+SHA1 (tyxml-2.1.tar.gz) = 0e10c566fe7d3334a7d290adc4b00d89cb356caa
+RMD160 (tyxml-2.1.tar.gz) = 47c12dc0d175eaf191a284361c5fb06b917f32e4
+Size (tyxml-2.1.tar.gz) = 103875 bytes
+SHA1 (patch-Makefile) = b272c7b9adec929c5f79085cf58ce0b4d02a870c
diff --git a/textproc/ocaml-tyxml/patches/patch-Makefile b/textproc/ocaml-tyxml/patches/patch-Makefile
new file mode 100644
index 00000000000..3b0db18914b
--- /dev/null
+++ b/textproc/ocaml-tyxml/patches/patch-Makefile
@@ -0,0 +1,27 @@
+$NetBSD: patch-Makefile,v 1.1.1.1 2012/06/04 13:13:15 wiz Exp $
+
+Changes to Makefile for DESTDIR support
+--- Makefile.orig 2012-02-24 18:16:01.000000000 +0000
++++ Makefile
+@@ -53,18 +53,18 @@ files/META.tyxml: files/META.in Makefile
+
+ install:
+ $(OCAMLFIND) install ${PACKAGENAME} \
+- -patch-version ${VERSION} \
++ -patch-version ${VERSION} -destdir ${INSTALLDIR} \
+ files/META ${INTF} ${IMPL} ${NATIMPL} \
+ ${MLI_TO_INSTALL}
+
+ install-byte:
+ $(OCAMLFIND) install ${PACKAGENAME} \
+- -patch-version ${VERSION} \
++ -patch-version ${VERSION} -destdir ${INSTALLDIR} \
+ files/META ${INTF} ${IMPL} ${MLI_TO_INSTALL}
+
+ install-opt:
+ $(OCAMLFIND) install ${PACKAGENAME} \
+- -patch-version ${VERSION} \
++ -patch-version ${VERSION} -destdir ${INSTALLDIR} \
+ files/META ${INTF} ${NATIMPL} ${MLI_TO_INSTALL}
+
+ uninstall: