aboutsummaryrefslogtreecommitdiff
blob: 0e46da6026917592eff005a6a66bd5327bb98e42 (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-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

AUTOTOOLS_IN_SOURCE_BUILD=1
inherit autotools-utils eutils

DESCRIPTION="C++ template static library of common data structures and algorithms"
HOMEPAGE="https://lemon.cs.elte.hu/trac/lemon/"
SRC_URI="http://lemon.cs.elte.hu/pub/sources/${P}.tar.gz"

LICENSE="Boost-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="coin doc static-libs test tools"

RDEPEND="
	sci-mathematics/glpk
	coin? ( sci-libs/coinor-cbc sci-libs/coinor-clp )"
DEPEND="${RDEPEND}
	test? ( dev-util/valgrind )"

PATCHES=( "${FILESDIR}"/${P}-gcc47.patch )

src_configure() {
	#	$(use_enable test valgrind)
	local myeconfargs=(
		$(use_enable tools)
		$(use_with coin)
	)
	autotools-utils_src_configure
}

src_install() {
	autotools-utils_src_install
	use doc && emake DESTDIR="${D}" install-html
}