| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/cminpack/cminpack-1.1.3.ebuild,v 1.1 2011/06/09 20:52:31 bicatali Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit cmake-utils
|
| 8 |
|
| 9 |
DESCRIPTION="C implementation of the MINPACK nonlinear optimization library"
|
| 10 |
HOMEPAGE="http://devernay.free.fr/hacks/cminpack/cminpack.html"
|
| 11 |
SRC_URI="http://devernay.free.fr/hacks/cminpack/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="BSD"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~x86"
|
| 16 |
IUSE="doc test"
|
| 17 |
|
| 18 |
src_configure() {
|
| 19 |
mycmakeargs+=(
|
| 20 |
-DSHARED_LIBS=ON
|
| 21 |
$(cmake-utils_use_build test examples)
|
| 22 |
)
|
| 23 |
cmake-utils_src_configure
|
| 24 |
}
|
| 25 |
|
| 26 |
src_install() {
|
| 27 |
cmake-utils_src_install
|
| 28 |
dodoc readme*
|
| 29 |
use doc && dohtml -A .txt doc/*
|
| 30 |
}
|