blob: 2251ae52022237209bcfaa67ff9a41e21ba8d9ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/orc/orc-0.4.16.ebuild,v 1.2 2012/05/15 13:42:59 aballier Exp $
EAPI=4
inherit autotools flag-o-matic
DESCRIPTION="The Oil Runtime Compiler"
HOMEPAGE="http://code.entropywave.com/projects/orc/"
SRC_URI="http://code.entropywave.com/download/orc/${P}.tar.gz"
LICENSE="BSD BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~hppa ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="static-libs examples"
src_prepare() {
if ! use examples; then
sed -i -e '/SUBDIRS/s:examples::' Makefile.am || die
AT_M4DIR="m4" eautoreconf
fi
}
src_configure() {
# any optimisation on PPC/Darwin yields in a complaint from the assembler
# Parameter error: r0 not allowed for parameter %lu (code as 0 not r0)
# the same for Intel/Darwin, although the error message there is different
# but along the same lines
[[ ${CHOST} == *-darwin* ]] && filter-flags -O*
econf \
$(use_enable static-libs static) \
--with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html
}
src_install() {
default
find "${ED}" -name '*.la' -delete
}
|