| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ml/camomile/camomile-0.8.4.ebuild,v 1.2 2012/05/22 05:47:52 jdhore Exp $ |
| 4 |
|
| 5 |
EAPI="2" |
| 6 |
|
| 7 |
inherit findlib eutils |
| 8 |
|
| 9 |
DESCRIPTION="Camomile is a comprehensive Unicode library for ocaml." |
| 10 |
HOMEPAGE="http://github.com/yoriyuki/Camomile/wiki" |
| 11 |
SRC_URI="http://github.com/downloads/yoriyuki/Camomile/${P}.tar.bz2" |
| 12 |
|
| 13 |
LICENSE="LGPL-2" |
| 14 |
SLOT="0" |
| 15 |
KEYWORDS="~amd64 ppc x86" |
| 16 |
IUSE="debug +ocamlopt" |
| 17 |
|
| 18 |
RDEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?]" |
| 19 |
DEPEND="${RDEPEND}" |
| 20 |
|
| 21 |
src_configure() { |
| 22 |
econf $(use_enable debug) |
| 23 |
} |
| 24 |
|
| 25 |
src_compile() { |
| 26 |
emake -j1 byte unidata unimaps charmap_data locale_data || die "failed to build" |
| 27 |
if use ocamlopt; then |
| 28 |
emake -j1 opt || die "failed to build native code" |
| 29 |
fi |
| 30 |
} |
| 31 |
|
| 32 |
src_install() { |
| 33 |
dodir /usr/bin |
| 34 |
findlib_src_install DATADIR="${D}/usr/share" BINDIR="${D}/usr/bin" |
| 35 |
} |