diff options
Diffstat (limited to 'dev-ml/xml-light')
-rw-r--r-- | dev-ml/xml-light/Manifest | 9 | ||||
-rw-r--r-- | dev-ml/xml-light/files/01_installopt.dpatch | 24 | ||||
-rw-r--r-- | dev-ml/xml-light/files/02_cmi_depends.dpatch | 18 | ||||
-rw-r--r-- | dev-ml/xml-light/files/03_cflags.dpatch | 51 | ||||
-rw-r--r-- | dev-ml/xml-light/files/04_dtd_trace.dpatch | 26 | ||||
-rw-r--r-- | dev-ml/xml-light/metadata.xml | 8 | ||||
-rw-r--r-- | dev-ml/xml-light/xml-light-2.2-r3.ebuild | 62 |
7 files changed, 198 insertions, 0 deletions
diff --git a/dev-ml/xml-light/Manifest b/dev-ml/xml-light/Manifest new file mode 100644 index 000000000000..a1046cab5b79 --- /dev/null +++ b/dev-ml/xml-light/Manifest @@ -0,0 +1,9 @@ +AUX 01_installopt.dpatch 861 SHA256 aad4700cca888ffb6d159ee442af4be4114ddac7e706aa0c9c9f6d4bef11eb2c SHA512 1413f51f182affc2628799d0f4224033cb305755c31174450873cada394f9ca83fa7afc6452414b1c305f0b39b8f9936b28ca96c4aeef4acc1b0f9957a20865e WHIRLPOOL 2aaea992bcf2b771bbc6e4d167bded2de702ebdd45aabbcf16918949c6ed1f41dbdfedf08fa1370938b1249a9b669153496dfd785343b5147bb2a75477e299e8 +AUX 02_cmi_depends.dpatch 492 SHA256 3497b14c89eac4810637607fe10b20ac7645469ec02a391b36fe29726da8db39 SHA512 47f9e71b14d1df29325d5b9077c93353114566f579fb8d26b9dd5a24ce8dd66a2c56e0508924eb8c3491373bc8870e81039be990290417b559345400e03cab09 WHIRLPOOL 3399d8b54c6e458a53abac8e51071a96dc11f486d901df6a46611af2e04165c6cba558c3bf4b49a6393b0f7f2a14a5c2cc6233babd9e6d20218d02b82e5a2eca +AUX 03_cflags.dpatch 1681 SHA256 3f4127cc44d5cb82e9e91830ac3e5a49f559d31a4d0363a54ed8fd7cde758668 SHA512 314d30a73cd6a430a367a38b50c10afaf1d307b8ce63795315b093be8500dfb5ddac98eaf5a60f32b047a62f203fa59d9e6dd5c342e7ec7132b78fcd734de51e WHIRLPOOL e67fb5f7e239615e75fbf91958fc8b17b9eefcbe8b21043c27e8c78e83da48f68bb53536987cae3a029304e86a53c8aa47db9a436c420586a07b83c26162bf6b +AUX 04_dtd_trace.dpatch 780 SHA256 86d2652afd61fa75dadd54c15ccd430df84c5d67fe7386ebe2de614013833014 SHA512 14cb78558afeed100e6f085233b001ea5501ccb3020c2437362870031b1a14ad7227794bc81c3de9567cf0d797c0966c515ce56245e429a149f097895c06f771 WHIRLPOOL 0aaf66d1c074eaa7f094a4857caecf1570a3c9f0b6681e2b6aab95c9a625e73914d41b0129a5f20d2a6f60219e6d8aa278c3705c0834fc159f912c7da396862f +DIST xml-light-2.2.zip 22130 SHA256 fdb205e8b3a25922e46fca52aea449b9a2de4000c5442487e7e74d79f1e2274a SHA512 b3be968db1ea8b9f8cc439fc8a685083227a7b07469af17c31993229a506f2ff6b1b0cf2097f4198a71e1d858d166f36c99bb26720136633c233a790764087ed WHIRLPOOL 7acf499002dcbe92fb7303d7eea93b403a743d93174a16197544fd06b8e4212891f95c904070c6617d35281b90581ed6ffbdbe579e4d83c35ef0c35d0199fb1c +EBUILD xml-light-2.2-r3.ebuild 1261 SHA256 16bb8f648c56e6ebff7510466ccdaf7dd21d2039483f792b9b8a16174f233246 SHA512 d72b8c4930ae826bf2b84bf608e104589fddb3e8944bd83050c3c1efd27011f05ff4fd98f9d83d516b096b087bad76a1b50b626c1ac0ca4c511f88635fbc08f4 WHIRLPOOL 29f7d42d64b41be5d0f15d6900be4ba4379e31875a36e93c69d6c96b4e8aa66d4a0b575b28a3ab0c538de4063e184342fdf42816845a17580afe7711d52609e9 +MISC ChangeLog 2667 SHA256 a02cbaec4e134d5debde860bd116bc9eb9cb931fd043f0011a53311b09535875 SHA512 2368afcc699f9615aa300668a14b0d4dad85bef5cf8a10f6c93fb1ec64505cd6c339d1af0ab6083a7a911413825a0118099076662744e41474f39f02316356aa WHIRLPOOL 7b3decb925e7971618fd4b09ab4877722456f56655de4c922aa0f911a26470d585828a2932e5bb0a8768c65ffca960eff64d2c27bc40611954b68554b32c44f9 +MISC ChangeLog-2015 2299 SHA256 ebdd175523388c897fe7fe6b1ffedb7127d092697200e08e897189a596639341 SHA512 55bb51cc5a603b07924490462c61113dc32f81124ef0efba70f557a87f0d4e2d4f420da182dba6fc159601065f999be976e4e3881a681f728672b00a479d4f6b WHIRLPOOL fa2adb4481bc778a1818d3912d4811932ecf8baf3b5973c70da71b5e1f4c14fd0f43f66d2f811c8c90447635236fbf6b466292a345298453de32f7aa7ee851f0 +MISC metadata.xml 245 SHA256 d8a2d603183590c960989695dbe8e1b40b18c4405314cc754b4a609ef266be7c SHA512 1c6cdb75d4cbbd8d3a5f2cc24950924c030db330e135cf2cacecdaaa99ee65117efd7abd9f8652bf5dfa8169d427f51ff84123aab11fa8ef82498a6834b0805a WHIRLPOOL 8d19cc9bf7a59c51d8a9e346f23576705184758bc5a732bafa587d4d51ce3ec01b77a6a1c06d6121b72342fe401a02f03935acf5d386cb48f7e5b14b197810d5 diff --git a/dev-ml/xml-light/files/01_installopt.dpatch b/dev-ml/xml-light/files/01_installopt.dpatch new file mode 100644 index 000000000000..1dfb50c9e271 --- /dev/null +++ b/dev-ml/xml-light/files/01_installopt.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_installopt.dpatch by Sylvain Le Gall <gildor@debian.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad xml-light-2.2~/Makefile xml-light-2.2/Makefile +--- xml-light-2.2~/Makefile 2005-10-11 23:26:41.000000000 +0200 ++++ xml-light-2.2/Makefile 2005-10-11 23:28:00.000000000 +0200 +@@ -11,8 +11,11 @@ +
+ opt: xml-light.cmxa test_opt.exe
+
+-install: all opt
+- cp xml-light.cmxa xml-light.a xml-light.cma xml.mli xmlParser.mli dtd.mli xml.cmi xmlParser.cmi dtd.cmi xml.cmx dtd.cmx xmlParser.cmx $(INSTALLDIR)
++install: all
++ cp xml-light.cma xml.mli xmlParser.mli dtd.mli xml.cmi xmlParser.cmi dtd.cmi $(INSTALLDIR)
++
++installopt: opt all
++ cp xml-light.a xml-light.cmxa xml.cmx dtd.cmx xmlParser.cmx $(INSTALLDIR)
+
+ doc:
+ mkdir doc
diff --git a/dev-ml/xml-light/files/02_cmi_depends.dpatch b/dev-ml/xml-light/files/02_cmi_depends.dpatch new file mode 100644 index 000000000000..1fcf17048407 --- /dev/null +++ b/dev-ml/xml-light/files/02_cmi_depends.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_cmi_depends.dpatch by Sylvain Le Gall <gildor@debian.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad xml-light-2.2~/Makefile xml-light-2.2/Makefile +--- xml-light-2.2~/Makefile 2006-01-03 17:34:23.000000000 +0100 ++++ xml-light-2.2/Makefile 2006-01-03 17:35:04.000000000 +0100 +@@ -82,6 +82,6 @@ + .mll.ml:
+ ocamllex $<
+
+-.mly.ml:
++%.mli %.ml: %.mly
+ ocamlyacc $<
+
diff --git a/dev-ml/xml-light/files/03_cflags.dpatch b/dev-ml/xml-light/files/03_cflags.dpatch new file mode 100644 index 000000000000..5dfbffe5da1f --- /dev/null +++ b/dev-ml/xml-light/files/03_cflags.dpatch @@ -0,0 +1,51 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_cflags.dpatch by Sylvain Le Gall <gildor@debian.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad xml-light-2.2~/Makefile xml-light-2.2/Makefile +--- xml-light-2.2~/Makefile 2006-10-26 00:22:41.000000000 +0200 ++++ xml-light-2.2/Makefile 2006-10-26 00:24:45.000000000 +0200 +@@ -3,8 +3,8 @@ + .SUFFIXES : .ml .mli .cmo .cmx .cmi .mll .mly
+
+ INSTALLDIR=`ocamlc -where`
+-CFLAGS=
+-LFLAGS= -a
++XML_LIGHT_OCAML_CFLAGS= $(OCAML_CFLAGS)
++XML_LIGHT_OCAML_LFLAGS= $(OCAML_LFLAGS) -a
+ LIBS=
+
+ all: xml-light.cma test.exe doc
+@@ -28,10 +28,10 @@ + ocamlopt xml-light.cmxa test.ml -o test_opt.exe
+
+ xml-light.cma: xml_parser.cmo xml_lexer.cmo dtd.cmo xmlParser.cmo xml.cmo
+- ocamlc -o xml-light.cma $(LFLAGS) $(LIBS) xml_parser.cmo xml_lexer.cmo dtd.cmo xmlParser.cmo xml.cmo
++ ocamlc -o xml-light.cma $(XML_LIGHT_OCAML_LFLAGS) $(LIBS) xml_parser.cmo xml_lexer.cmo dtd.cmo xmlParser.cmo xml.cmo
+
+ xml-light.cmxa: xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
+- ocamlopt -o xml-light.cmxa $(LFLAGS) $(LIBS) xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
++ ocamlopt -o xml-light.cmxa $(XML_LIGHT_OCAML_LFLAGS) $(LIBS) xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
+
+ dtd.cmo: xml.cmi xml_lexer.cmi dtd.cmi
+
+@@ -71,13 +71,13 @@ +
+ # SUFFIXES
+ .ml.cmo:
+- ocamlc $(CFLAGS) -c $<
++ ocamlc $(XML_LIGHT_OCAML_CFLAGS) -c $<
+
+ .ml.cmx:
+- ocamlopt $(CFLAGS) -c $<
++ ocamlopt $(XML_LIGHT_OCAML_CFLAGS) -c $<
+
+ .mli.cmi:
+- ocamlc $(CFLAGS) $<
++ ocamlc $(XML_LIGHT_OCAML_CFLAGS) $<
+
+ .mll.ml:
+ ocamllex $<
diff --git a/dev-ml/xml-light/files/04_dtd_trace.dpatch b/dev-ml/xml-light/files/04_dtd_trace.dpatch new file mode 100644 index 000000000000..9dbea4bdf0c8 --- /dev/null +++ b/dev-ml/xml-light/files/04_dtd_trace.dpatch @@ -0,0 +1,26 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_dtd_trace.dpatch by Sylvain Le Gall <gildor@debian.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad xml-light-2.2~/dtd.ml xml-light-2.2/dtd.ml +--- xml-light-2.2~/dtd.ml 2005-02-18 10:01:54.000000000 +0100 ++++ xml-light-2.2/dtd.ml 2006-10-26 23:22:25.000000000 +0200 +@@ -267,7 +267,7 @@ + exception TmpResult of dtd_result
+
+ let prove_child dtd tag =
+- trace dtd tag;
++ (*trace dtd tag;*)
+ match dtd.current with
+ | DTDEmpty -> raise (Prove_error EmptyExpected)
+ | DTDAny -> ()
+@@ -505,4 +505,4 @@ + sprintf "<!ELEMENT %s %s>" tag (etype_to_string etype)
+
+ ;;
+-to_string_ref := to_string +\ No newline at end of file ++to_string_ref := to_string
diff --git a/dev-ml/xml-light/metadata.xml b/dev-ml/xml-light/metadata.xml new file mode 100644 index 000000000000..c5adddd4b3e6 --- /dev/null +++ b/dev-ml/xml-light/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>maksbotan@gentoo.org</email> + <name>Maxim Koltsov</name> +</maintainer> +</pkgmetadata> diff --git a/dev-ml/xml-light/xml-light-2.2-r3.ebuild b/dev-ml/xml-light/xml-light-2.2-r3.ebuild new file mode 100644 index 000000000000..f7244b272a18 --- /dev/null +++ b/dev-ml/xml-light/xml-light-2.2-r3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib + +DESCRIPTION="Minimal Xml parser and printer for OCaml" +HOMEPAGE="http://tech.motion-twin.com/xmllight.html" +SRC_URI="http://tech.motion-twin.com/zip/${P}.zip" + +LICENSE="LGPL-2.1" +SLOT="0/${PV}" +KEYWORDS="amd64 ~arm ~arm64 ~ppc x86" +IUSE="doc +ocamlopt" + +RDEPEND="dev-lang/ocaml:=[ocamlopt?]" +DEPEND="app-arch/unzip + ${RDEPEND}" + +S="${WORKDIR}/${PN}" + +src_prepare() { + EPATCH_FORCE=yes EPATCH_SUFFIX=dpatch EPATCH_SOURCE="${FILESDIR}" \ + epatch +} + +src_compile() { + emake -j1 + if use ocamlopt; then + emake -j1 opt + fi + if use doc;then + emake doc + fi +} + +src_test() { + # There are no tests... + : +} + +src_install() { + dodir /usr/$(get_libdir)/ocaml/${PN} + emake INSTALLDIR="${D}"/usr/$(get_libdir)/ocaml/${PN} install + cat > "${D}"/usr/$(get_libdir)/ocaml/${PN}/META << EOF +name="${PN}" +version="${PV}" +description="${DESCRIPTION}" +requires="" +archive(byte)="xml-light.cma" +EOF + if use ocamlopt; then + emake INSTALLDIR="${D}"/usr/$(get_libdir)/ocaml/${PN} installopt + echo 'archive(native)="xml-light.cmxa"' >> "${D}"/usr/$(get_libdir)/ocaml/${PN}/META + fi + dodoc README + if use doc; then + emake doc + dohtml doc/* + fi +} |