diff options
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/Manifest.gz | bin | 43589 -> 43592 bytes | |||
-rw-r--r-- | sci-libs/dmlc-core/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/dmlc-core/dmlc-core-0.5.ebuild | 105 | ||||
-rw-r--r-- | sci-libs/scikit-optimize/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/scikit-optimize/scikit-optimize-0.9.0.ebuild | 4 |
5 files changed, 110 insertions, 3 deletions
diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz Binary files differindex bde5cab01cf1..34475be39902 100644 --- a/sci-libs/Manifest.gz +++ b/sci-libs/Manifest.gz diff --git a/sci-libs/dmlc-core/Manifest b/sci-libs/dmlc-core/Manifest index 11a4da14c74b..bc119893e76f 100644 --- a/sci-libs/dmlc-core/Manifest +++ b/sci-libs/dmlc-core/Manifest @@ -1,4 +1,6 @@ AUX dmlc-core-install-dirs.patch 1206 BLAKE2B df1f1520f3e6b21ef7dc30d6f2d73f888c639bdbbfe824ed89a5a7a9fa7b9dabb94704d6ba1ee9a95274b66b5160c560538cdb252804cfdeb304f7b8727cddb5 SHA512 ceee3e6f6f02e4a96167f12ffb50cbbc3bfbf07d025acb002139072ac73cf02adcd9c8f7a7b371055a68a61a104bf16ad95d7a3769edc3ad2dc63be36ff45ff5 +DIST dmlc-core-0.5.tar.gz 256340 BLAKE2B 1a2fd548c704e89adbba397b9f4306ad9439b969755bfd4fa24aad2e58855882dbe69b9c0550b830f8a81dfa41139e22c7ceed0ed707608e31fea1868b707ad4 SHA512 e8292bf71f9d7e31f17add69c984473f8f4d51768c5ac1451dceb9ff3c3e607dd85eea7fb3999f00cf34e962c5956ef1426713b7d8baa5fdbc3aa88e58bed66d DIST dmlc-core-0_p20170719.tar.gz 160242 BLAKE2B 2752968c831b5468cb926fbd2783098d1d66f5dd7f06b1abf138e165c637a3c16d477b04b709a05826528ee8e35ed61b563bdaae958fb91c78591dd57761a5f4 SHA512 2e2d79800839652772f07deb5ea3aa470cc5a18d2d0e480b8f4a1598aca72443546a438f3309708268cc49cf2d65684c3366cfc6c33c085baf1b804b4c04f02e +EBUILD dmlc-core-0.5.ebuild 2481 BLAKE2B b79d93a5cc68775b9eb0d7fecab04bb69b603cdc9eea82b8210f7ffda79d9a68596fde621058d6fa348dcbb3c0cc6e3720170301dae7c3b5d42de5bf1e314d05 SHA512 2c01a5db92b8043288225cc11bef7a904a1ddc2f26624dc1247a271d48a544fcf5d4f66b15de981391d7be7997ca6ed52c35667768d45c451791bb1b283e6a92 EBUILD dmlc-core-0_p20170719-r1.ebuild 2260 BLAKE2B 9d594bd7f58f7070d32480a5512859f65afbbdd355d558e9f13e05c622f2871ad75a5159b04c5f34ad6d2f352bb0326395e859e095b719511cd4def2129ed01a SHA512 cfd9d3b3a14be0a225db85ed00b19c7b0ac846af424a6de43807385095745fd5146719142b4a8eec58256c5bba9c0aa8feae09d9e22a4d4411d40510f1d93254 MISC metadata.xml 703 BLAKE2B 62473feed3c698cf3f2155aaad65ca27c504f6009932d0b402848f4c0192448ef74f1a8a789fbb97f7970f49eb4b8279535e539d2fe5a68dd97714f45ba500a7 SHA512 4328a90286999ba528b6d4c46d69d46ebb973ff41528b97560ec6759281cefbd271ef89f9344c22779321ca7e89e8f4a462ac344fd5e1624b971bcc1d4c215a6 diff --git a/sci-libs/dmlc-core/dmlc-core-0.5.ebuild b/sci-libs/dmlc-core/dmlc-core-0.5.ebuild new file mode 100644 index 000000000000..ae6cb41b64e6 --- /dev/null +++ b/sci-libs/dmlc-core/dmlc-core-0.5.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +DESCRIPTION="Common bricks library for building distributed machine learning" +HOMEPAGE="https://github.com/dmlc/dmlc-core" + +if [[ ${PV} == *9999* ]] ; then + EGIT_REPO_URI="https://github.com/dmlc/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/dmlc/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz" + + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +# hdfs needs big java hdfs not yet in portage +# azure not yet in portage +IUSE="cpu_flags_x86_sse2 doc openmp s3 test" +RESTRICT="!test? ( test )" + +RDEPEND="s3? ( net-misc/curl[ssl] )" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-doc/doxygen[dot] ) + test? ( dev-cpp/gtest )" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + cmake_src_prepare + + sed -e '/-O3/d' -e '/check_cxx_compiler_flag("-msse2"/d' \ + -e '/check_cxx.*SSE2/d' \ + -i CMakeLists.txt || die + + # All these hacks below to allow testing + sed -e 's|-O3||' -e 's|-std=c++11|-std=c++14|' \ + -e "s|-lm|-lm -L\"${BUILD_DIR}\" -ldmlc|g" \ + -i Makefile || die + sed -e "s|libdmlc.a||g" \ + -e "/^GTEST_LIB=/s|=.*|=/usr/$(get_libdir)|" \ + -e "/^GTEST_INC=/s|=.*|=/usr/include|" \ + -i test/dmlc_test.mk test/unittest/dmlc_unittest.mk || die + # Don't ever download gtest + sed -e 's/^if (NOT GTEST_FOUND)$/if (FALSE)/' \ + -i test/unittest/CMakeLists.txt || die + cat <<-EOF > config.mk + USE_SSE=$(usex cpu_flags_x86_sse2 1 0) + WITH_FPIC=1 + USE_OPENMP=$(usex openmp 1 0) + USE_S3=$(usex s3 1 0) + BUILD_TEST=$(usex test 1 0) + DMLC_CFLAGS=${CXXFLAGS} + DMLC_LDFLAGS=${LDFLAGS} + EOF +} + +src_configure() { + local mycmakeargs=( + -DGOOGLE_TEST=$(usex test) + -DSUPPORT_MSSE2=$(usex cpu_flags_x86_sse2) + -DUSE_CXX14_IF_AVAILABLE=YES # Newer gtest needs C++14 or later + -DUSE_S3=$(usex s3) + -DUSE_OPENMP=$(usex openmp) + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + use doc && emake doxygen + use test && emake test +} + +src_test() { + DMLC_UNIT_TEST_LITTLE_ENDIAN=$([[ $(tc-endian) == little ]] && echo 1 || echo 0) \ + LD_LIBRARY_PATH="${BUILD_DIR}" \ + test/unittest/dmlc_unittest || die + + cmake_src_test +} + +src_install() { + cmake_src_install + + if use doc; then + dodoc -r doc/doxygen/html + docompress -x /usr/share/doc/${PF}/html + fi +} diff --git a/sci-libs/scikit-optimize/Manifest b/sci-libs/scikit-optimize/Manifest index a7255753ea35..cda2e9e7d06e 100644 --- a/sci-libs/scikit-optimize/Manifest +++ b/sci-libs/scikit-optimize/Manifest @@ -1,5 +1,5 @@ DIST scikit-optimize-0.8.1.tar.gz 278751 BLAKE2B c53b921ed47a2146510a041e34129918cc1b9118e8ae3614f39cc16c87ba5a749e268b9694ade9d95132ec4fb11777f2ef2ec509b1be59c8864ff7b6edde2250 SHA512 8ffacb62869810e1812bdbd2f9f3fe83cad2be03cd795ae2e9aa4e1143ed613c3901ae06be85aecd63c1e3e5b4805e88331d2d8848cc9953988fddfbe62a0287 DIST scikit-optimize-0.9.0.tar.gz 275570 BLAKE2B ab481bf1cfc2b8c7cff213ae0ce2fa937de8f6269b491cf63ae115eea5c936c8a5c26b7fb339fa6cd2927c5105068635c008d6dc8b3f99b4b5d3abfed1a1c5a2 SHA512 a4c1bd589686dbbabcc5de38a4eb581c040cc2c3f83bc250ddcbe66314f03fc68b7b12d7679049da34c42445b446e1af3873f7ce90bec2a5361f0077ff3e9b74 EBUILD scikit-optimize-0.8.1.ebuild 638 BLAKE2B 05871d63159b7c2c23a7101c5382e04611bca8cea499d77e6d62147c1f6b06506e279e094dd0f12f4ae345705a7af958ecbcc64f4a30e631e65e3bb4ba49275a SHA512 745f474e616199ca4cd10771bea10b8019b031052e25597a60c637fe0a760b0e75a79ccba41791ca7b75efff4230c8d4f4768eb8a4670402f1a2216c1dd7fae5 -EBUILD scikit-optimize-0.9.0.ebuild 837 BLAKE2B 773b6161a015711c6c0823281837e75567d99cb945b5b852aba5c58f6510157e34ef1ff6280ad9a60cf17183b67d2143cfd6539f0f9b8f7ed3ec5f210ebe6506 SHA512 d87e88a646a2c8bad1fedff7d78aedce2ec62284d512bc04a28b427081782630cf9a997a3a358a787bfcb0d7605b0e4c0032e9e4545f66c2bb76226bd93aad59 +EBUILD scikit-optimize-0.9.0.ebuild 810 BLAKE2B 4547d60f4efbb1a35da5b878ee2de8ba956dbb84ddad8d23f8deb9c61b9b47221aa169b42b96d582c6aca9ffdb8027ea99d1631704cc90aa458a45e5e166b73d SHA512 8c31bc0322d7ba807a3cf09a59d33b877e043cbf8be6aa841165166a8729d25b68e507a8525b51e47c617a74316e79bb1213a7e80db96c7f160cd3dcd835ebcd MISC metadata.xml 415 BLAKE2B 3bfa58da8f117a7b62399a17e5259dbfb0e74b9b9acd16e4515bcceaafc2928733f047f229c58bc437907cddf3b8a93c9576a9645e0c910129900072bed94aff SHA512 6343c76ca9a28f321c3fd8c94dfbb912f305ce43025ab6d666ed0aa5a496f08f258e1ab4e11c14844baa3c04c63a43c1d79bc8067a0d02a4eccf0e37c0c686f7 diff --git a/sci-libs/scikit-optimize/scikit-optimize-0.9.0.ebuild b/sci-libs/scikit-optimize/scikit-optimize-0.9.0.ebuild index 1644aadae338..644fcd2382dc 100644 --- a/sci-libs/scikit-optimize/scikit-optimize-0.9.0.ebuild +++ b/sci-libs/scikit-optimize/scikit-optimize-0.9.0.ebuild @@ -3,12 +3,12 @@ EAPI=8 +PYPI_NO_NORMALIZE=1 PYTHON_COMPAT=( python3_{9..11} ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="Sequential model-based optimization library" HOMEPAGE="https://scikit-optimize.github.io/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" |