summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-21 00:26:40 +0000
committerSam James <sam@gentoo.org>2021-04-21 02:09:35 +0000
commit232a8bfa925909be3bdc06c9860a191b5fb5f3cd (patch)
treeabb37f5593fcfff003d0cceea8a2fab67092c34f
parentdev-ml/ocaml-doc: port to EAPI 7 (diff)
downloadgentoo-232a8bfa925909be3bdc06c9860a191b5fb5f3cd.tar.gz
gentoo-232a8bfa925909be3bdc06c9860a191b5fb5f3cd.tar.bz2
gentoo-232a8bfa925909be3bdc06c9860a191b5fb5f3cd.zip
dev-ml/ocaml-hashcons: port to EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-ml/ocaml-hashcons/ocaml-hashcons-1.3.ebuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/dev-ml/ocaml-hashcons/ocaml-hashcons-1.3.ebuild b/dev-ml/ocaml-hashcons/ocaml-hashcons-1.3.ebuild
index 7b027961ea87..e059ea1b1938 100644
--- a/dev-ml/ocaml-hashcons/ocaml-hashcons-1.3.ebuild
+++ b/dev-ml/ocaml-hashcons/ocaml-hashcons-1.3.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
inherit autotools findlib
@@ -18,7 +18,10 @@ RDEPEND="dev-lang/ocaml:=[ocamlopt?]"
DEPEND="${RDEPEND}"
src_prepare() {
+ default
+
eautoreconf
+
sed -i -e 's/$(OCAMLFIND) remove/#/' Makefile.in || die
}
@@ -31,7 +34,12 @@ src_compile() {
}
src_install() {
- dodir "$(ocamlfind printconf destdir)/hashcons"
- emake DESTDIR="-destdir ${D}/$(ocamlfind printconf destdir)/" $(usex ocamlopt install-opt install-byte)
+ local destdir=$(ocamlfind printconf destdir || die)
+ dodir ${destdir}/hashcons
+
+ emake \
+ DESTDIR="-destdir ${D}"/${destdir}/ \
+ $(usex ocamlopt install-opt install-byte)
+
dodoc README.md CHANGES
}