summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2012-03-27 21:10:22 +0000
committerAlexis Ballier <aballier@gentoo.org>2012-03-27 21:10:22 +0000
commit0d78ee101cccd353d2f10fcad389b0bf299b1d6b (patch)
tree33b08ee9c4f71aa74a820cdfcb32fe4c7fbf2219 /dev-ml
parentconvert to oasis.eclass (diff)
downloadgentoo-2-0d78ee101cccd353d2f10fcad389b0bf299b1d6b.tar.gz
gentoo-2-0d78ee101cccd353d2f10fcad389b0bf299b1d6b.tar.bz2
gentoo-2-0d78ee101cccd353d2f10fcad389b0bf299b1d6b.zip
convert to oasis.eclass
(Portage version: 2.2.0_alpha95/cvs/Linux x86_64)
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/ocaml-expect/ChangeLog7
-rw-r--r--dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild40
2 files changed, 12 insertions, 35 deletions
diff --git a/dev-ml/ocaml-expect/ChangeLog b/dev-ml/ocaml-expect/ChangeLog
index b86968de6114..4e7473579a63 100644
--- a/dev-ml/ocaml-expect/ChangeLog
+++ b/dev-ml/ocaml-expect/ChangeLog
@@ -1,6 +1,9 @@
# 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 $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-expect/ChangeLog,v 1.2 2012/03/27 21:10:22 aballier Exp $
+
+ 27 Mar 2012; Alexis Ballier <aballier@gentoo.org> ocaml-expect-0.0.2.ebuild:
+ convert to oasis.eclass
*ocaml-expect-0.0.2 (22 Feb 2011)
diff --git a/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild b/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild
index 819fb184246c..ca73bd3bb2ad 100644
--- a/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild
+++ b/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 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 $
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-expect/ocaml-expect-0.0.2.ebuild,v 1.2 2012/03/27 21:10:22 aballier Exp $
EAPI=3
-inherit findlib eutils multilib
+OASIS_BUILD_DOCS=1
+
+inherit oasis
DESCRIPTION="Ocaml implementation of expect to help building unitary testing"
HOMEPAGE="http://forge.ocamlcore.org/projects/ocaml-expect/"
@@ -13,40 +15,12 @@ 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"
+IUSE=""
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"
-}
+DOCS=( "README.txt" "CHANGES.txt" "AUTHORS.txt" )