summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2021-12-11 03:19:05 +0100
committerMaciej Barć <xgqt@gentoo.org>2021-12-11 03:57:03 +0100
commitba5b7b45f6d416cc9c7fa112527799fb6d117012 (patch)
treecf7c99c567380f5702dd196850cd54e2f16717fb /dev-ml
parentdev-libs/aml: add 0.2.1, fix musl build (diff)
downloadgentoo-ba5b7b45f6d416cc9c7fa112527799fb6d117012.tar.gz
gentoo-ba5b7b45f6d416cc9c7fa112527799fb6d117012.tar.bz2
gentoo-ba5b7b45f6d416cc9c7fa112527799fb6d117012.zip
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@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/ocaml-inifiles/Manifest1
-rw-r--r--dev-ml/ocaml-inifiles/files/ocaml-inifiles-1.2-inifiles.ml.patch11
-rw-r--r--dev-ml/ocaml-inifiles/metadata.xml9
-rw-r--r--dev-ml/ocaml-inifiles/ocaml-inifiles-1.2.ebuild30
4 files changed, 51 insertions, 0 deletions
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>ml@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
+}