From 35d59fea02043ed03094aa536f2bb440dfa6fa67 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Tue, 22 Feb 2011 16:13:07 +0000 Subject: Initial import, ebuild by Vladimir Ivanov , bug #355763, with improvements by me. (Portage version: 2.2.0_alpha24/cvs/Linux x86_64) --- dev-ml/ocaml-expect/ChangeLog | 11 ++++++ dev-ml/ocaml-expect/metadata.xml | 9 +++++ dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild | 52 +++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 dev-ml/ocaml-expect/ChangeLog create mode 100644 dev-ml/ocaml-expect/metadata.xml create mode 100644 dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild (limited to 'dev-ml/ocaml-expect') diff --git a/dev-ml/ocaml-expect/ChangeLog b/dev-ml/ocaml-expect/ChangeLog new file mode 100644 index 000000000000..b86968de6114 --- /dev/null +++ b/dev-ml/ocaml-expect/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-ml/ocaml-expect +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-expect/ChangeLog,v 1.1 2011/02/22 16:13:07 aballier Exp $ + +*ocaml-expect-0.0.2 (22 Feb 2011) + + 22 Feb 2011; Alexis Ballier +ocaml-expect-0.0.2.ebuild, + +metadata.xml: + Initial import, ebuild by Vladimir Ivanov , bug #355763, + with improvements by me. + diff --git a/dev-ml/ocaml-expect/metadata.xml b/dev-ml/ocaml-expect/metadata.xml new file mode 100644 index 000000000000..f6b3ee22be88 --- /dev/null +++ b/dev-ml/ocaml-expect/metadata.xml @@ -0,0 +1,9 @@ + + + +ml + + v.ivanov@ymail.com + Vladimir Ivanov + + diff --git a/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild b/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild new file mode 100644 index 000000000000..819fb184246c --- /dev/null +++ b/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild,v 1.1 2011/02/22 16:13:07 aballier Exp $ + +EAPI=3 + +inherit findlib eutils multilib + +DESCRIPTION="Ocaml implementation of expect to help building unitary testing" +HOMEPAGE="http://forge.ocamlcore.org/projects/ocaml-expect/" +SRC_URI="http://forge.ocamlcore.org/frs/download.php/475/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="debug doc +ocamlopt" + +RDEPEND=" + >=dev-lang/ocaml-3.10.2[ocamlopt?] + dev-ml/extlib + dev-ml/pcre-ocaml" +DEPEND="${RDEPEND} + dev-ml/findlib + dev-ml/ounit" + +oasis_use_enable() { + echo "--override $2 `use $1 && echo \"true\" || echo \"false\"`" +} + +src_configure() { + chmod +x configure + ./configure --prefix usr \ + --libdir /usr/$(get_libdir) \ + --destdir "${D}" \ + --htmldir "/usr/share/doc/${PF}/html" \ + $(oasis_use_enable debug debug) \ + $(oasis_use_enable ocamlopt is_native) \ + || die +} + +src_compile() { + emake || die + if use doc; then + emake doc || die + fi +} + +src_install() { + findlib_src_install + + dodoc README.txt CHANGES.txt AUTHORS.txt || die "doc install failed" +} -- cgit v1.2.3-65-gdbad