forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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ć <[email protected]>
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
11
dev-ml/ocaml-inifiles/files/ocaml-inifiles-1.2-inifiles.ml.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |