/[gentoo-x86]/app-text/htmlc/htmlc-2.21.0.ebuild
Gentoo

Contents of /app-text/htmlc/htmlc-2.21.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Tue Jul 24 10:51:37 2012 UTC (2 years ago) by johu
Branch: MAIN
Changes since 1.3: +3 -3 lines
Stable for x86, wrt bug #416525

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 johu 1.4 # Copyright 1999-2012 Gentoo Foundation
2 aballier 1.1 # Distributed under the terms of the GNU General Public License v2
3 johu 1.4 # $Header: /var/cvsroot/gentoo-x86/app-text/htmlc/htmlc-2.21.0.ebuild,v 1.3 2011/07/24 12:01:07 xarthisius Exp $
4 aballier 1.1
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 johu 1.4 KEYWORDS="~amd64 ~ppc x86"
16 aballier 1.1 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     }
26    
27     src_configure() {
28     ./configure \
29     --install-root-dir "${D}usr" \
30     || die
31     }
32    
33     src_compile() {
34     if use ocamlopt ; then
35     emake bin || die
36     else
37     emake byt || die
38     fi
39     }
40    
41     src_install() {
42     if use ocamlopt ; then
43     emake installbin || die
44     else
45     export STRIP_MASK="*/bin/*"
46     emake installbyt || die
47     fi
48     emake MANDIR='$(PREFIXINSTALLDIR)/share/man/man$(MANEXT)' installman || die
49     dodoc README Announce* CHANGES || die
50     }

  ViewVC Help
Powered by ViewVC 1.1.20