diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-ml/ocaml-expat | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-ml/ocaml-expat')
| -rw-r--r-- | dev-ml/ocaml-expat/Manifest | 1 | ||||
| -rw-r--r-- | dev-ml/ocaml-expat/files/ocaml-expat-1.1.0-cc.patch | 11 | ||||
| -rw-r--r-- | dev-ml/ocaml-expat/files/ounit2.patch | 17 | ||||
| -rw-r--r-- | dev-ml/ocaml-expat/metadata.xml | 9 | ||||
| -rw-r--r-- | dev-ml/ocaml-expat/ocaml-expat-1.3.0.ebuild | 55 |
5 files changed, 93 insertions, 0 deletions
diff --git a/dev-ml/ocaml-expat/Manifest b/dev-ml/ocaml-expat/Manifest new file mode 100644 index 000000000000..95aaf6ed4d51 --- /dev/null +++ b/dev-ml/ocaml-expat/Manifest @@ -0,0 +1 @@ +DIST ocaml-expat-1.3.0.tar.gz 58331 BLAKE2B 4d56dd1354a31095afada7e4b0ccc9d1eb7fae4ed45f579d6b2eeb9366df7c0f5ae58680d4e917185bbce2e5e7c957f266cb4e89b7eb1e943f0fb9f68c28f94d SHA512 72a59c982179ebc2cbd4c0659ec81c1c7422de78f9fff4bd9feebda8739d3a50d2840bb5f058e075dd63a2d1af35727e04315361febca3af6c8605ee52e27498 diff --git a/dev-ml/ocaml-expat/files/ocaml-expat-1.1.0-cc.patch b/dev-ml/ocaml-expat/files/ocaml-expat-1.1.0-cc.patch new file mode 100644 index 000000000000..724d9935baac --- /dev/null +++ b/dev-ml/ocaml-expat/files/ocaml-expat-1.1.0-cc.patch @@ -0,0 +1,11 @@ +--- a/Makefile 2022-01-23 19:29:56.516323939 +0100 ++++ b/Makefile 2022-01-23 19:30:07.289143969 +0100 +@@ -41,7 +41,7 @@ + allopt: $(OPT_TARGETS) + + depend: *.c *.ml *.mli +- gcc -I $(OCAMLDIR) -MM *.c > depend ++ $(CC) -I $(OCAMLDIR) -MM *.c > depend + $(OCAMLDEP) *.mli *.ml >> depend + + ## Library creation diff --git a/dev-ml/ocaml-expat/files/ounit2.patch b/dev-ml/ocaml-expat/files/ounit2.patch new file mode 100644 index 000000000000..5cbcc4e12b98 --- /dev/null +++ b/dev-ml/ocaml-expat/files/ounit2.patch @@ -0,0 +1,17 @@ +Index: ocaml-expat-1.1.0/Makefile +=================================================================== +--- ocaml-expat-1.1.0.orig/Makefile ++++ ocaml-expat-1.1.0/Makefile +@@ -85,10 +85,10 @@ test: unittest + testopt: unittest.opt + ./unittest.opt + unittest: all unittest.ml +- $(OCAMLFIND) ocamlc -o unittest -package oUnit -ccopt -L. -linkpkg \ ++ $(OCAMLFIND) ocamlc -o unittest -package ounit2 -ccopt -L. -linkpkg \ + $(ARCHIVE) unittest.ml + unittest.opt: allopt unittest.ml +- $(OCAMLFIND) ocamlopt -o unittest.opt -package oUnit -ccopt -L. -linkpkg \ ++ $(OCAMLFIND) ocamlopt -o unittest.opt -package ounit2 -ccopt -L. -linkpkg \ + $(XARCHIVE) unittest.ml + + ## Cleaning up diff --git a/dev-ml/ocaml-expat/metadata.xml b/dev-ml/ocaml-expat/metadata.xml new file mode 100644 index 000000000000..3a6d48cde411 --- /dev/null +++ b/dev-ml/ocaml-expat/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ml@gentoo.org</email> + <name>ML</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-ml/ocaml-expat/ocaml-expat-1.3.0.ebuild b/dev-ml/ocaml-expat/ocaml-expat-1.3.0.ebuild new file mode 100644 index 000000000000..0ef61122e622 --- /dev/null +++ b/dev-ml/ocaml-expat/ocaml-expat-1.3.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit findlib + +IUSE="doc +ocamlopt test" +RESTRICT="!test? ( test )" + +DESCRIPTION="OCaml bindings for expat" +SRC_URI="https://github.com/whitequark/ocaml-expat/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://github.com/whitequark/ocaml-expat" + +RDEPEND="dev-libs/expat + >=dev-lang/ocaml-4.14.1:=[ocamlopt?]" + +DEPEND="${RDEPEND} + test? ( dev-ml/ounit2 )" + +SLOT="0/${PV}" +LICENSE="MIT" +KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv x86" +PATCHES=( + "${FILESDIR}/ounit2.patch" + "${FILESDIR}/${PN}-1.1.0-cc.patch" +) + +src_compile() { + emake depend + emake all + if use ocamlopt; then + emake allopt + fi + if use doc; then + emake doc + fi +} + +src_test() { + emake test + if use ocamlopt; then + emake testopt + fi +} +src_install() { + findlib_src_preinst + emake install + + if use doc ; then + docinto html + dodoc -r doc/* + fi + dodoc README +} |
