| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/htmlc/htmlc-2.21.0.ebuild,v 1.4 2012/07/24 10:51:37 johu Exp $
|
| 4 |
|
| 5 |
EAPI=3
|
| 6 |
|
| 7 |
inherit eutils
|
| 8 |
|
| 9 |
DESCRIPTION="HTML template files expander"
|
| 10 |
HOMEPAGE="http://htmlc.inria.fr/"
|
| 11 |
SRC_URI="http://htmlc.inria.fr/${P}.tgz"
|
| 12 |
|
| 13 |
LICENSE="htmlc"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~ppc x86"
|
| 16 |
IUSE="+ocamlopt"
|
| 17 |
# Files for the tests are missing...
|
| 18 |
RESTRICT="test"
|
| 19 |
|
| 20 |
DEPEND=">=dev-lang/ocaml-3.11.2[ocamlopt?]"
|
| 21 |
RDEPEND="${DEPEND}"
|
| 22 |
|
| 23 |
src_prepare() {
|
| 24 |
has_version '>=dev-lang/ocaml-3.12' && epatch "${FILESDIR}/${P}-ocaml312.patch"
|
| 25 |
epatch "${FILESDIR}/${P}-werror.patch"
|
| 26 |
}
|
| 27 |
|
| 28 |
src_configure() {
|
| 29 |
./configure \
|
| 30 |
--install-root-dir "${D}usr" \
|
| 31 |
|| die
|
| 32 |
}
|
| 33 |
|
| 34 |
src_compile() {
|
| 35 |
if use ocamlopt ; then
|
| 36 |
emake bin || die
|
| 37 |
else
|
| 38 |
emake byt || die
|
| 39 |
fi
|
| 40 |
}
|
| 41 |
|
| 42 |
src_install() {
|
| 43 |
if use ocamlopt ; then
|
| 44 |
emake installbin || die
|
| 45 |
else
|
| 46 |
export STRIP_MASK="*/bin/*"
|
| 47 |
emake installbyt || die
|
| 48 |
fi
|
| 49 |
emake MANDIR='$(PREFIXINSTALLDIR)/share/man/man$(MANEXT)' installman || die
|
| 50 |
dodoc README Announce* CHANGES || die
|
| 51 |
}
|