diff options
author | 2013-01-21 19:38:49 +0000 | |
---|---|---|
committer | 2013-01-21 19:38:49 +0000 | |
commit | df5f71a8c8b8eb6e76088efe566157b24eadfd85 (patch) | |
tree | 8d01c640cbbad5abe21664290f02b55c8ba45c6a /sci-libs/armadillo | |
parent | Drop old version (diff) | |
download | gentoo-2-df5f71a8c8b8eb6e76088efe566157b24eadfd85.tar.gz gentoo-2-df5f71a8c8b8eb6e76088efe566157b24eadfd85.tar.bz2 gentoo-2-df5f71a8c8b8eb6e76088efe566157b24eadfd85.zip |
Version bump
(Portage version: 2.2.01.21580-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Diffstat (limited to 'sci-libs/armadillo')
-rw-r--r-- | sci-libs/armadillo/ChangeLog | 7 | ||||
-rw-r--r-- | sci-libs/armadillo/armadillo-3.6.1.ebuild | 57 |
2 files changed, 63 insertions, 1 deletions
diff --git a/sci-libs/armadillo/ChangeLog b/sci-libs/armadillo/ChangeLog index 0dc2be7cd2fd..682bc051c9f5 100644 --- a/sci-libs/armadillo/ChangeLog +++ b/sci-libs/armadillo/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-libs/armadillo # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/armadillo/ChangeLog,v 1.25 2013/01/03 05:33:16 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/armadillo/ChangeLog,v 1.26 2013/01/21 19:38:49 bicatali Exp $ + +*armadillo-3.6.1 (21 Jan 2013) + + 21 Jan 2013; Sébastien Fabbro <bicatali@gentoo.org> +armadillo-3.6.1.ebuild: + Version bump 03 Jan 2013; Sébastien Fabbro <bicatali@gentoo.org> -armadillo-3.0.2.ebuild, armadillo-3.4.4.ebuild: diff --git a/sci-libs/armadillo/armadillo-3.6.1.ebuild b/sci-libs/armadillo/armadillo-3.6.1.ebuild new file mode 100644 index 000000000000..abbd726b9084 --- /dev/null +++ b/sci-libs/armadillo/armadillo-3.6.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/armadillo/armadillo-3.6.1.ebuild,v 1.1 2013/01/21 19:38:49 bicatali Exp $ + +EAPI=4 + +CMAKE_IN_SOURCE_BUILD=1 + +inherit cmake-utils toolchain-funcs + +DESCRIPTION="Streamlined C++ linear algebra library" +HOMEPAGE="http://arma.sourceforge.net/" +SRC_URI="mirror://sourceforge/arma/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="blas doc examples lapack" + +RDEPEND=" + dev-libs/boost + blas? ( virtual/blas ) + lapack? ( virtual/lapack )" +DEPEND="${DEPEND} + virtual/pkgconfig" + +src_prepare() { + # avoid the automagic cmake macros + sed -i -e '/ARMA_Find/d' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=() + if use blas; then + mycmakeargs+=( + -DBLAS_FOUND=ON + -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" + ) + fi + if use lapack; then + mycmakeargs+=( + -DLAPACK_FOUND=ON + -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" + ) + fi + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc README.txt + use doc && dodoc *pdf && dohtml *html + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} |