aboutsummaryrefslogtreecommitdiff
blob: 96a27f450de757a180f0974b3580e2277fb04f24 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

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

LICENSE="Boost-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"

DEPEND="sci-mathematics/glpk
		doc? ( app-text/ghostscript-gpl
				dev-lang/python )
		test? ( dev-util/valgrind )"
RDEPEND="${DEPEND}"

src_prepare(){
	if use test; then
		MYOPTS="--enable-valgrind"
	else
		MYOPTS=""
	fi
	econf ${MYOPTS} || die
}

# a dynamic library can be built using
# cmake -DBUILD_SHARED_LIBS=TRUE ..