diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-12 02:18:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-12 02:18:43 +0100 |
commit | 683e8a42fb208dee0d6289d084fb39ab17aa2b60 (patch) | |
tree | 7dc14cd46e691df01335e2acfa0caa749440e302 /sci-libs | |
parent | b8a68ff14101189bc5330d9afa620b8c45212032 (diff) |
gentoo auto-resync : 12:06:2023 - 02:18:43
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/Manifest.gz | bin | 44810 -> 44812 bytes | |||
-rw-r--r-- | sci-libs/armadillo/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/armadillo/armadillo-12.4.0.ebuild | 143 |
3 files changed, 145 insertions, 0 deletions
diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz Binary files differindex 0b00a032123e..e5b2bd82636b 100644 --- a/sci-libs/Manifest.gz +++ b/sci-libs/Manifest.gz diff --git a/sci-libs/armadillo/Manifest b/sci-libs/armadillo/Manifest index bffb017287ec..7500913f0501 100644 --- a/sci-libs/armadillo/Manifest +++ b/sci-libs/armadillo/Manifest @@ -4,8 +4,10 @@ DIST armadillo-10.2.0.tar.xz 6042348 BLAKE2B e85f24ca7137c3a8c8fc53db15b382f2e4d DIST armadillo-10.8.2.tar.xz 6262832 BLAKE2B f8a5a66464614661bcccffb8138434d117ad07dcea5f89ddde45df293df5dd4f10def2085b85d37386337fd8bd0152914a957e0b1b7919a47ec8b1a79e92b90b SHA512 720fadad491dfeeb894544b0305cd64a0e0402e66fc788949ecd54c0b1a3b9c3ede9f75b081f832931d59d2bd59529cebb9d5b57b8582df869765cac01c2979b DIST armadillo-11.4.0.tar.xz 6804388 BLAKE2B cb44d248cf817f66cc0b6aa968535e266282775b20035f46f3158687100c0f49c6cf4fad8d1f2ec1741f9bceb06c5a841f20f3b7e59146f2fe57c86d00741434 SHA512 21d58b383229f55bf6a3b217c04901982b484b6d806dd3c4a72ebe5a9614f63f9429ca31ea7cfc26672b70e01a0b9263a9d4edf69a0080706ade87852f94970c DIST armadillo-12.0.1.tar.xz 6802568 BLAKE2B c6025fe3bcabfa6d08efd864c4b9b129c84e8941b7cb237b76ed83f74062c06cdbb98bdf09796f3340fbdbb37a36f82826a53e778dbc589af9e868a2348bd7f3 SHA512 b1b9fbce6bdacc3340ab190605aba77e821629e0a51e0c6277840eaf803d037a778b9243c02c5b55d67976c203808a5fc34894f3928b707685f6d8695ef0bc0d +DIST armadillo-12.4.0.tar.xz 6803968 BLAKE2B ca45b2284b5a31c745b2ad924235af24f855039cc81c3300c83e5e932ee4cda233731b53623303c1c739feae9b007f8f6309c09debe79923e3876e8145015152 SHA512 a9f8cd19384eed787787b9e189901a1800e6e1dd06917f4f13e8a215c83f317de3e5b0ae8625783f88d9a7b0ab25f5c7784ccf0493c08a9ee3ea7fdfbbe36195 EBUILD armadillo-10.2.0-r1.ebuild 3486 BLAKE2B 1e0881133134ee033ee0a853687d57faa8dfd4ad487f73253d6f1565e9756fc4ab0c08036d7c973c499a76762413e05cd782e051fad11608b75012940d86947e SHA512 56f72e40cf88c609f40b68e2ba51b29c669f7a81844348b5fa664c985e115874c8fff4949c1345f876bbe49a83225a0ffd8f56428a74971a6e2c804f26ddea95 EBUILD armadillo-10.8.2.ebuild 3498 BLAKE2B 592ca8f284e12eb260363a66d2b5ed5e5cfeca6545a4235c08a7e77393c47cbc803e98123d1d80a57e3db789e4d023923ab9a02e9a3f822f77e7d5a73fd260ec SHA512 66870c2c6e892f89edc5c07ba7d2d9a04698948a057e58f14f50d641b04b98922c63c16a569b24f22cce8324a790d1a1876a033edb51a9a20d05e5c948aed3ce EBUILD armadillo-11.4.0.ebuild 3583 BLAKE2B 14ebbb0d13a2e739ff18bfda2b6b46fce4bf934c860b8881c3e869ec771aea5727780eac33488d5dc9066edfd6fb0deaa80c80bf97b08cec237569fe4ed7cc62 SHA512 a3049b2052fdd340891db090bb3234d1cb1611b49ecc4f13336d174ee9fe5f6315fc2c2219f5ca966231a80b678edec71dbaa6dc87290abcb4dbc0ef48ed8b29 EBUILD armadillo-12.0.1.ebuild 3583 BLAKE2B 4ebac0def757818a94be154546afd2987e78cfaa7fc1b016c74a52dd23323a3c49e1fd6b8f2afa0d8304f5c7164f8f434ee054ba69863412de076d87a0d433d4 SHA512 8fc47ab9a6aec9a504c5d512f102c915995c58daa192fbbef50b514ddde4660bc1a820277d598f7f996cf9e271928ff684f2dbbb4dc8a62953d8ff3f0a36c0c9 +EBUILD armadillo-12.4.0.ebuild 3355 BLAKE2B 82f0f66a16ff9132876da8d40b0c875f222dc466571b8022941aa8ef39f21caa90abbaa54dc04add765867594dfe20089d9749ebdfe5579b69ff2fabda5a30df SHA512 965bf00799c20307cf64142571b246d02481fa5b9c909f156dccd266a5717818569b72eba61a325ae402412f7b700ff7b0df18eff66c7a1e833d11f1f4a51c80 MISC metadata.xml 1456 BLAKE2B 52019d7f250025250936fe57ef43e3f1d999eb3eb88949606f6c14e33b99615d3cf33e1073215b805259f2118f571052d40558ee60bddff524475b721b040a37 SHA512 be4692d066e500becba90262b74f17dc97d3c32248bf91aee1ffe2321a0611968855e8806da51f61b5f7e1e32efb541895b29630a302f756ea338aa62cf819c0 diff --git a/sci-libs/armadillo/armadillo-12.4.0.ebuild b/sci-libs/armadillo/armadillo-12.4.0.ebuild new file mode 100644 index 000000000000..40bee284647b --- /dev/null +++ b/sci-libs/armadillo/armadillo-12.4.0.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_IN_SOURCE_BUILD=1 + +inherit cmake toolchain-funcs multilib + +DESCRIPTION="Streamlined C++ linear algebra library" +HOMEPAGE="https://arma.sourceforge.net" +SRC_URI="mirror://sourceforge/arma/${P}.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0/12" +KEYWORDS="~amd64 ~arm ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="arpack blas doc examples lapack mkl superlu test" +RESTRICT="!test? ( test )" +REQUIRED_USE="test? ( arpack lapack superlu )" + +# atlas? ( sci-libs/atlas[lapack] ) + +RDEPEND=" + dev-libs/boost + arpack? ( sci-libs/arpack ) + blas? ( virtual/blas ) + lapack? ( virtual/lapack ) + superlu? ( >=sci-libs/superlu-5.2 ) +" + +DEPEND="${RDEPEND} + arpack? ( virtual/pkgconfig ) + blas? ( virtual/pkgconfig ) + lapack? ( virtual/pkgconfig ) + mkl? ( sci-libs/mkl ) +" +PDEPEND="${RDEPEND} + mkl? ( sci-libs/mkl ) +" + +PATCHES=( + "${FILESDIR}/${PN}-12.0.1-extratests.patch" +) + +src_prepare() { + # avoid the automagic cmake macros... + sed -i -e 's/^ *include(ARMA_Find/# No automagic include(ARMA_Find/g' CMakeLists.txt || die + + # ... except for mkl, since without a license it's hard to figure out what to do there + if use mkl; then + sed -i -e 's/^# No automagic include(ARMA_FindMKL)/include(ARMA_FindMKL)/g' CMakeLists.txt || die + fi + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DINSTALL_LIB_DIR="${EPREFIX}/usr/$(get_libdir)" + ) + if use arpack; then + mycmakeargs+=( + -DARPACK_FOUND=ON + -DARPACK_LIBRARY="$($(tc-getPKG_CONFIG) --libs arpack)" + ) + else + mycmakeargs+=( + -DARPACK_FOUND=OFF + ) + 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 +# -DCBLAS_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags-only-I ${c} | sed 's/-I//')" +# -DCBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${c})" +# -DCLAPACK_FOUND=ON +# -DCLAPACK_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags-only-I ${l} | sed 's/-I//')" +# -DCLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${l})" +# ) +# fi + if use blas; then + mycmakeargs+=( + -DBLAS_FOUND=ON + -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" + ) + else + mycmakeargs+=( + -DBLAS_FOUND=OFF + ) + fi + if use lapack; then + mycmakeargs+=( + -DLAPACK_FOUND=ON + -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" + ) + else + mycmakeargs+=( + -DLAPACK_FOUND=OFF + ) + fi + if use superlu; then + mycmakeargs+=( + -DSuperLU_FOUND=ON + -DSuperLU_LIBRARY="$($(tc-getPKG_CONFIG) --libs superlu)" + -DSuperLU_INCLUDE_DIR="$($(tc-getPKG_CONFIG) --cflags-only-I superlu | awk '{print $1}' | sed 's/-I//')" + ) + else + mycmakeargs+=( + -DSuperLU_FOUND=OFF + ) + fi + + cmake_src_configure +} + +src_test() { + cmake_src_test || die + + pushd tests2 > /dev/null + emake \ + CXX="$(tc-getCXX)" \ + CXX_FLAGS="-I../include ${CXXFLAGS} -DARMA_USE_BLAS -DARMA_USE_LAPACK" \ + LIB_FLAGS="-L.. -larmadillo $($(tc-getPKG_CONFIG) --libs blas lapack)" + LD_LIBRARY_PATH="..:${LD_LIBRARY_PATH}" ./main || die + emake clean + popd > /dev/null +} + +src_install() { + cmake_src_install + + dodoc README.md + use doc && dodoc *pdf *html + + if use examples; then + docinto examples + dodoc -r examples/* + docompress -x /usr/share/doc/${PF}/examples + fi +} |