diff options
author | 2017-07-17 12:09:45 +0200 | |
---|---|---|
committer | 2017-07-17 12:09:45 +0200 | |
commit | 388c6378c41473a597e5eb686b1de375101005e6 (patch) | |
tree | 50561fd7bd23bbc0adcc8da72569cbc95ee1b8a7 /dev-ml/uchar/uchar-0.0.2.ebuild | |
parent | sci-libs/gsl: keyword ~arm64 (diff) | |
download | gentoo-388c6378c41473a597e5eb686b1de375101005e6.tar.gz gentoo-388c6378c41473a597e5eb686b1de375101005e6.tar.bz2 gentoo-388c6378c41473a597e5eb686b1de375101005e6.zip |
dev-ml/uchar: bump to 0.0.2
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-ml/uchar/uchar-0.0.2.ebuild')
-rw-r--r-- | dev-ml/uchar/uchar-0.0.2.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-ml/uchar/uchar-0.0.2.ebuild b/dev-ml/uchar/uchar-0.0.2.ebuild new file mode 100644 index 000000000000..74e9bd312cb7 --- /dev/null +++ b/dev-ml/uchar/uchar-0.0.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit findlib + +DESCRIPTION="Uchar compatibility library" +HOMEPAGE="https://github.com/ocaml/uchar" +SRC_URI="https://github.com/ocaml/uchar/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2-with-linking-exception" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc" +IUSE="+ocamlopt" + +RDEPEND=">=dev-lang/ocaml-4.03:=" +DEPEND="${RDEPEND} dev-ml/ocamlbuild" + +# This is mostly a compat wrapper for older ocaml versions we don't support. No +# need to test it, plus it fails when installing for the first time: +# https://bugs.gentoo.org/show_bug.cgi?id=624144 +RESTRICT="test" + +src_compile() { + ocaml pkg/build.ml \ + "native=$(usex ocamlopt true false)" \ + "native-dynlink=$(usex ocamlopt true false)" || die +} + +src_test() { + ocamlbuild -X src -use-ocamlfind -pkg uchar test/testpkg.native || die +} + +src_install() { + # Can't use opam-installer here as it is an opam dep... + findlib_src_preinst + mv _build/pkg/META{.empty,} || die + ocamlfind install ${PN} _build/pkg/META || die + dodoc README.md CHANGES.md +} |