commit:     ba5b7b45f6d416cc9c7fa112527799fb6d117012
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 11 02:19:05 2021 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Dec 11 02:57:03 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba5b7b45

dev-ml/ocaml-inifiles: new package; add version 1.2

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-ml/ocaml-inifiles/Manifest                     |  1 +
 .../files/ocaml-inifiles-1.2-inifiles.ml.patch     | 11 ++++++++
 dev-ml/ocaml-inifiles/metadata.xml                 |  9 +++++++
 dev-ml/ocaml-inifiles/ocaml-inifiles-1.2.ebuild    | 30 ++++++++++++++++++++++
 4 files changed, 51 insertions(+)

diff --git a/dev-ml/ocaml-inifiles/Manifest b/dev-ml/ocaml-inifiles/Manifest
new file mode 100644
index 000000000000..b1ede1dc79ec
--- /dev/null
+++ b/dev-ml/ocaml-inifiles/Manifest
@@ -0,0 +1 @@
+DIST ocaml-inifiles_1.2.orig.tar.gz 11642 BLAKE2B 
9970a5df9290c0532ad54eb8df6737f2e22385d5de6defd9681f115e2c0c62217e56dbf3bde91424e3a75f56d6e00daa698e2029ae457cb55a3495a8b2144490
 SHA512 
d57016e338caade7ceff416b698ad320da7e5ef376430d5bca9115ca0abc219a8072c9fddc8c8388c0b7ed404801e5158827d86577be49658611bd830e8814ef

diff --git a/dev-ml/ocaml-inifiles/files/ocaml-inifiles-1.2-inifiles.ml.patch 
b/dev-ml/ocaml-inifiles/files/ocaml-inifiles-1.2-inifiles.ml.patch
new file mode 100644
index 000000000000..17c060c8a208
--- /dev/null
+++ b/dev-ml/ocaml-inifiles/files/ocaml-inifiles-1.2-inifiles.ml.patch
@@ -0,0 +1,11 @@
+--- a/inifiles.ml
++++ b/inifiles.ml
+@@ -257,7 +257,7 @@
+        func
+        initial
+        (List.rev_map
+-        (new inifile)
++        (fun x -> new inifile x)
+         (List.filter
+            check_file
+            (List.rev_map

diff --git a/dev-ml/ocaml-inifiles/metadata.xml 
b/dev-ml/ocaml-inifiles/metadata.xml
new file mode 100644
index 000000000000..39ab33fa4ce0
--- /dev/null
+++ b/dev-ml/ocaml-inifiles/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+
+<pkgmetadata>
+  <maintainer type="project">
+    <email>m...@gentoo.org</email>
+    <name>ML</name>
+  </maintainer>
+</pkgmetadata>

diff --git a/dev-ml/ocaml-inifiles/ocaml-inifiles-1.2.ebuild 
b/dev-ml/ocaml-inifiles/ocaml-inifiles-1.2.ebuild
new file mode 100644
index 000000000000..bf249ff1364b
--- /dev/null
+++ b/dev-ml/ocaml-inifiles/ocaml-inifiles-1.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit findlib
+
+DESCRIPTION="A small OCaml library to read and write .ini files"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage";
+SRC_URI="http://archive.ubuntu.com/ubuntu/pool/universe/o/${PN}/${PN}_${PV}.orig.tar.gz";
+S="${WORKDIR}/inifiles-${PV}"
+
+LICENSE="LGPL-2.1+"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ocamlopt"
+
+RDEPEND="dev-ml/pcre-ocaml:="
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-inifiles.ml.patch )
+
+src_compile() {
+       emake -j1
+       use ocamlopt && emake -j1 opt
+}
+
+src_install() {
+       findlib_src_install
+}

Reply via email to