summaryrefslogtreecommitdiff
blob: f90f99f1f1efa327fa4c07909b86f955b1fb8e43 (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
40
41
42
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/byfl/byfl-9999.ebuild,v 1.5 2014/02/11 15:37:26 ottxor Exp $

EAPI=5

inherit autotools-utils multilib

if [ "${PV}" = "9999" ]; then
	EGIT_REPO_URI="git://github.com/losalamos/${PN^b}.git http://github.com/losalamos/${PN}.git"
	inherit git-2
	KEYWORDS=""
else
	SRC_URI="https://github.com/losalamos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
fi

DESCRIPTION="Compiler-based Application Analysis"
HOMEPAGE="https://github.com/losalamos/Byfl"

SLOT="0"
LICENSE="BSD"
IUSE=""

RDEPEND=">=sys-devel/dragonegg-9999
	>=sys-devel/llvm-9999
	>=sys-devel/clang-9999"
DEPEND="${RDEPEND}"

src_prepare() {
	ln -s autoconf/configure.ac || die
	eaclocal -I autoconf/m4
	eautoconf
}

src_configure() {
	local myeconfargs=(
		--enable-cxx11
	)
	autotools-utils_src_configure DRAGONEGG=/usr/$(get_libdir)/dragonegg.so
	MAKEOPTS+=" VERBOSE=1 LOPT=$(type -p opt)"
}