You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ml/ocsigen-toolkit/ocsigen-toolkit-9999.ebuild

53 lines
1.1 KiB

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit findlib
DESCRIPTION="User interface widgets for Ocsigen applications"
HOMEPAGE="https://github.com/ocsigen/ocsigen-toolkit"
LICENSE="LGPL-2.1-with-linking-exception"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+ocamlopt debug"
if [ "${PV#9999}" != "${PV}" ] ; then
inherit git-r3
SRC_URI=""
EGIT_REPO_URI="https://github.com/ocsigen/ocsigen-toolkit"
KEYWORDS=""
else
SRC_URI="https://github.com/ocsigen/ocsigen-toolkit/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
RDEPEND="dev-lang/ocaml:=[ocamlopt?]
>dev-ml/js_of_ocaml-2.7:=
>=dev-ml/eliom-5.1:=[ppx]
dev-ml/ppx_deriving:=
dev-ml/calendar:=
dev-ml/lwt:="
DEPEND="${RDEPEND}
dev-ml/opam"
src_compile() {
emake \
DEBUG="$(usex debug yes no)" \
NATIVE="$(usex ocamlopt yes no)" \
all
}
src_install() {
findlib_src_preinst
OCAMLPATH="${OCAMLFIND_DESTDIR}" emake install
opam-installer -i \
--prefix="${ED}/usr" \
--libdir="${D}/$(ocamlc -where)" \
--docdir="${ED}/usr/share/doc/${PF}" \
${PN}.install || die
dodoc README.md
}