Skip to content

Commit

Permalink
dev-ml/ocaml-inifiles: new package; add version 1.2
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Maciej Barć <[email protected]>
  • Loading branch information
xgqt committed Dec 11, 2021
1 parent f1bcd17 commit ba5b7b4
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-ml/ocaml-inifiles/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST ocaml-inifiles_1.2.orig.tar.gz 11642 BLAKE2B 9970a5df9290c0532ad54eb8df6737f2e22385d5de6defd9681f115e2c0c62217e56dbf3bde91424e3a75f56d6e00daa698e2029ae457cb55a3495a8b2144490 SHA512 d57016e338caade7ceff416b698ad320da7e5ef376430d5bca9115ca0abc219a8072c9fddc8c8388c0b7ed404801e5158827d86577be49658611bd830e8814ef
11 changes: 11 additions & 0 deletions dev-ml/ocaml-inifiles/files/ocaml-inifiles-1.2-inifiles.ml.patch
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions dev-ml/ocaml-inifiles/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>[email protected]</email>
<name>ML</name>
</maintainer>
</pkgmetadata>
30 changes: 30 additions & 0 deletions dev-ml/ocaml-inifiles/ocaml-inifiles-1.2.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit ba5b7b4

Please sign in to comment.