ANSITerminal-0.3.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ANSITerminal/ANSITerminal-0.3.ebuild,v 1.1 2008/01/27 17:52:38 aballier Exp $

EAPI=1

inherit findlib eutils

DESCRIPTION="Module which offers basic control of ANSI compliant terminals"
HOMEPAGE="http://math.umh.ac.be/an/software.php#x4-80007"
SRC_URI="ftp://ftp.umh.ac.be/pub/ftp_san/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="dev-lang/ocaml"
IUSE="doc +ocamlopt"

pkg_setup() {
if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
eerror "In order to build ${PN} with native code support from ocaml"
eerror "You first need to have a native code ocaml compiler."
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
die "Please install ocaml with ocamlopt useflag"
fi
}

src_compile() {
emake byte || die "Failed to compile bytecode"
if use ocamlopt; then
emake opt || die "Failed to compile native code"
else
sed -i -e "s/all META/byte META/" Makefile || die "failed to make native code optional"
fi
if use doc; then
emake doc || die "Failed to build documentation"
fi
}

src_install() {
findlib_src_install
dodoc README
use doc && dohtml ANSITerminal.html/*
}

ChangeLog

# ChangeLog for dev-ml/ANSITerminal
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ANSITerminal/ChangeLog,v 1.1 2008/01/27 17:52:38 aballier Exp $

*ANSITerminal-0.3 (27 Jan 2008)

27 Jan 2008; Alexis Ballier +metadata.xml,
+ANSITerminal-0.3.ebuild:
initial import, thanks to Bardur Arantsson
, bug #96384

Manifest

DIST ANSITerminal-0.3.tar.bz2 14697 RMD160 381dac33989cd20945c8023c54ea3931cb49bbc6 SHA1 83686fb5a572ce6c395b2cedcdf82dd9c506d3bb SHA256 727be52ffb49ebe6221bdcb83d00a80ab7c1d0e4f62599efba1db28c4ae12b60
EBUILD ANSITerminal-0.3.ebuild 1308 RMD160 7ff8de32458862e995135395440dc53233bb335f SHA1 900153b6745986ef78a6a1dcb40a0907faf45a85 SHA256 7196b5d9cae68edbad41f064bf22b6fd579fd00911a3caf58204d7e8c78d5c7b
MISC ChangeLog 435 RMD160 48edd839bb39f3f0b02c996019a3d3a96e482ef2 SHA1 c15c0cc24a00e487c9cd4af734c36bd73a65d5cb SHA256 dc0e6843fb06d125d708b45721aaff6d66c3324308a5e16f59703eca9fec2c2e
MISC metadata.xml 155 RMD160 dfaa057e679b01302a807c75a32a910098b26809 SHA1 94024f83dcacbb53e92be090dd0f994ec93dc90d SHA256 118048376ebb76f57628b0819f3de4856e73959c2578c88715d37ea2d1e0af81

metadata.xml




ml