diff options
Diffstat (limited to 'app-misc/ledit/ledit-2.03.ebuild')
-rw-r--r-- | app-misc/ledit/ledit-2.03.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-misc/ledit/ledit-2.03.ebuild b/app-misc/ledit/ledit-2.03.ebuild new file mode 100644 index 000000000000..1416711bafa7 --- /dev/null +++ b/app-misc/ledit/ledit-2.03.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils + +RESTRICT="installsources" +IUSE="+ocamlopt" + +DESCRIPTION="A line editor to be used with interactive commands" +SRC_URI="http://pauillac.inria.fr/~ddr/ledit/distrib/src/${P}.tgz" +HOMEPAGE="http://pauillac.inria.fr/~ddr/ledit/" + +DEPEND=">=dev-lang/ocaml-3.09:=[ocamlopt?] + dev-ml/camlp5:=" +RDEPEND="${DEPEND}" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" + +src_compile() { + emake -j1 all + if use ocamlopt; then + emake -j1 ledit.opt + else + # If using bytecode we dont want to strip the binary as it would remove the + # bytecode and only leave ocamlrun... + export STRIP_MASK="*/bin/*" + fi +} + +src_install() { + if use ocamlopt; then + newbin ledit.opt ledit + else + newbin ledit.out ledit + fi + doman ledit.1 + dodoc CHANGES README +} |