summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ml/camlidl/camlidl-1.05-r1.ebuild')
-rw-r--r--dev-ml/camlidl/camlidl-1.05-r1.ebuild19
1 files changed, 10 insertions, 9 deletions
diff --git a/dev-ml/camlidl/camlidl-1.05-r1.ebuild b/dev-ml/camlidl/camlidl-1.05-r1.ebuild
index 667d456641f4..06fafb20cc46 100644
--- a/dev-ml/camlidl/camlidl-1.05-r1.ebuild
+++ b/dev-ml/camlidl/camlidl-1.05-r1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-inherit epatch toolchain-funcs
+inherit toolchain-funcs
DESCRIPTION="CamlIDL is a stub code generator for using C/C++ libraries from O'Caml"
HOMEPAGE="http://caml.inria.fr/camlidl/"
@@ -16,15 +16,15 @@ KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
DEPEND=">=dev-lang/ocaml-3.10.2:=[ocamlopt]"
RDEPEND="${DEPEND}"
-src_prepare() {
- epatch "${FILESDIR}/tests.patch"
- epatch "${FILESDIR}/includes.patch"
- epatch "${FILESDIR}/nowarn.patch"
-}
+PATCHES=(
+ "${FILESDIR}/tests.patch"
+ "${FILESDIR}/includes.patch"
+ "${FILESDIR}/nowarn.patch"
+)
src_compile() {
# Use the UNIX makefile
- libdir=$(ocamlc -where)
+ libdir=$(ocamlc -where || die)
sed -i -e "s|OCAMLLIB=.*|OCAMLLIB=${libdir}|" config/Makefile.unix || die
sed -i -e "s|BINDIR=.*|BINDIR=${EPREFIX}/usr/bin|" config/Makefile.unix || die
@@ -41,8 +41,9 @@ src_test() {
}
src_install() {
- libdir=$(ocamlc -where)
+ libdir=$(ocamlc -where || die)
dodir ${libdir#${EPREFIX}}/caml
+
dodir /usr/bin
# Install
emake BINDIR="${ED}/usr/bin" OCAMLLIB="${D}${libdir}" install