From c03cebab4bcdb3293e29dfd2219dace720c2a9a9 Mon Sep 17 00:00:00 2001 From: Sébastien Fabbro Date: Mon, 19 Aug 2013 15:21:00 -0700 Subject: sci-libs/armadillo: Version bump Package-Manager: portage-2.2.01.22288-prefix RepoMan-Options: --force --- sci-libs/armadillo/ChangeLog | 6 ++ sci-libs/armadillo/Manifest | 2 +- sci-libs/armadillo/armadillo-3.900.6.ebuild | 91 ----------------------------- sci-libs/armadillo/armadillo-3.910.0.ebuild | 91 +++++++++++++++++++++++++++++ 4 files changed, 98 insertions(+), 92 deletions(-) delete mode 100644 sci-libs/armadillo/armadillo-3.900.6.ebuild create mode 100644 sci-libs/armadillo/armadillo-3.910.0.ebuild (limited to 'sci-libs/armadillo') diff --git a/sci-libs/armadillo/ChangeLog b/sci-libs/armadillo/ChangeLog index b017872cb..a55f90d4d 100644 --- a/sci-libs/armadillo/ChangeLog +++ b/sci-libs/armadillo/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*armadillo-3.910.0 (19 Aug 2013) + + 19 Aug 2013; Sébastien Fabbro +armadillo-3.910.0.ebuild, + -armadillo-3.900.6.ebuild: + sci-libs/armadillo: Version bump + *armadillo-3.900.6 (03 Jul 2013) 03 Jul 2013; Sébastien Fabbro +armadillo-3.900.6.ebuild, diff --git a/sci-libs/armadillo/Manifest b/sci-libs/armadillo/Manifest index d8f8ba9c8..6a3f8934d 100644 --- a/sci-libs/armadillo/Manifest +++ b/sci-libs/armadillo/Manifest @@ -1 +1 @@ -DIST armadillo-3.900.6.tar.gz 3220637 SHA256 253c27b148be1f027b66355f5ebc15eb6f812f29dfabd88a26f4f775424b29b0 SHA512 52cdb58104aa73267d931511b9edcdda29542d1f6134f940988362962335443cba23a8b33ebbc7b52e73fe802253207a1c9a5478624c067403fdf7b768369089 WHIRLPOOL cbb02c343e43fc71fb7271acc57f88771bad6884a126318e9d36b3f6887db3aadca9b1c5c5172081f3dca7ed1fbb4b44140ffc435e2c5ce62c3d73532a7e40a6 +DIST armadillo-3.910.0.tar.gz 3231589 SHA256 34e6b4e649a8da787c1136fdfd35ffd618ae0536af6855d2acfd4042429d5ceb SHA512 4952dfedc851744e267239ee211dea2be504b8344db8d4fd552b33821b0419cac2a989d51ab5e05b60bd2849cd86db57247837b7e01514cfb56d6d7c1a0b3cf5 WHIRLPOOL 6d6b6d023c1765f263f2ee04cc37e90bad4990fc1c9d0d528c364c547a7fc7b01d6d4796cf135afd4a3ffe6beecfec3d9f720977c00ca74a65d9ee4072618126 diff --git a/sci-libs/armadillo/armadillo-3.900.6.ebuild b/sci-libs/armadillo/armadillo-3.900.6.ebuild deleted file mode 100644 index f7213753c..000000000 --- a/sci-libs/armadillo/armadillo-3.900.6.ebuild +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -CMAKE_IN_SOURCE_BUILD=1 - -inherit cmake-utils toolchain-funcs multilib eutils - -DESCRIPTION="Streamlined C++ linear algebra library" -HOMEPAGE="http://arma.sourceforge.net/" -SRC_URI="mirror://sourceforge/arma/${P}.tar.gz" - -LICENSE="MPL-2.0" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="atlas blas debug doc examples hdf5 int64 lapack tbb" - -RDEPEND=" - dev-libs/boost - atlas? ( sci-libs/atlas[lapack] ) - blas? ( virtual/blas ) - lapack? ( virtual/lapack )" -DEPEND="${DEPEND} - atlas? ( virtual/pkgconfig ) - blas? ( virtual/pkgconfig ) - lapack? ( virtual/pkgconfig )" -PDEPEND="${RDEPEND} - hdf5? ( sci-libs/hdf5 ) - tbb? ( dev-cpp/tbb )" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-3.820.1-{hdf5,example-makefile}.patch - # avoid the automagic cmake macros - sed -i -e '/ARMA_Find/d' CMakeLists.txt || die -} - -src_configure() { - local mycmakeargs=( - -DINSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)" - $(cmake-utils_use debug ARMA_EXTRA_DEBUG) - $(cmake-utils_use hdf5 ARMA_USE_HDF5) - $(cmake-utils_use int64 ARMA_64BIT_WORD) - $(cmake-utils_use tbb ARMA_TBB_ALLOC) - ) - 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 - if use atlas; then - local c=atlas-cblas l=atlas-clapack - $(tc-getPKG_CONFIG) --exists ${c}-threads && c+=-threads - $(tc-getPKG_CONFIG) --exists ${l}-threads && l+=-threads - mycmakeargs+=( - -DCBLAS_FOUND=ON - -DCLAPACK_FOUND=ON - -DATLAS_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags ${c} | sed 's/-I//')" - -DCBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${c})" - -DCLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${l})" - ) - fi - cmake-utils_src_configure -} - -src_test() { - pushd examples > /dev/null - emake CXXFLAGS="-I../include ${CXXFLAGS}" EXTRA_LIB_FLAGS="-L.." - LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example1 || die - LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example2 || die - emake clean - popd > /dev/null -} - -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 -} diff --git a/sci-libs/armadillo/armadillo-3.910.0.ebuild b/sci-libs/armadillo/armadillo-3.910.0.ebuild new file mode 100644 index 000000000..f7213753c --- /dev/null +++ b/sci-libs/armadillo/armadillo-3.910.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +CMAKE_IN_SOURCE_BUILD=1 + +inherit cmake-utils toolchain-funcs multilib eutils + +DESCRIPTION="Streamlined C++ linear algebra library" +HOMEPAGE="http://arma.sourceforge.net/" +SRC_URI="mirror://sourceforge/arma/${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="atlas blas debug doc examples hdf5 int64 lapack tbb" + +RDEPEND=" + dev-libs/boost + atlas? ( sci-libs/atlas[lapack] ) + blas? ( virtual/blas ) + lapack? ( virtual/lapack )" +DEPEND="${DEPEND} + atlas? ( virtual/pkgconfig ) + blas? ( virtual/pkgconfig ) + lapack? ( virtual/pkgconfig )" +PDEPEND="${RDEPEND} + hdf5? ( sci-libs/hdf5 ) + tbb? ( dev-cpp/tbb )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.820.1-{hdf5,example-makefile}.patch + # avoid the automagic cmake macros + sed -i -e '/ARMA_Find/d' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DINSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)" + $(cmake-utils_use debug ARMA_EXTRA_DEBUG) + $(cmake-utils_use hdf5 ARMA_USE_HDF5) + $(cmake-utils_use int64 ARMA_64BIT_WORD) + $(cmake-utils_use tbb ARMA_TBB_ALLOC) + ) + 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 + if use atlas; then + local c=atlas-cblas l=atlas-clapack + $(tc-getPKG_CONFIG) --exists ${c}-threads && c+=-threads + $(tc-getPKG_CONFIG) --exists ${l}-threads && l+=-threads + mycmakeargs+=( + -DCBLAS_FOUND=ON + -DCLAPACK_FOUND=ON + -DATLAS_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags ${c} | sed 's/-I//')" + -DCBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${c})" + -DCLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${l})" + ) + fi + cmake-utils_src_configure +} + +src_test() { + pushd examples > /dev/null + emake CXXFLAGS="-I../include ${CXXFLAGS}" EXTRA_LIB_FLAGS="-L.." + LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example1 || die + LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./example2 || die + emake clean + popd > /dev/null +} + +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 +} -- cgit v1.2.3-65-gdbad