From 8c85c09f7c327b69cd2f078cabbba6eac16a9c3e Mon Sep 17 00:00:00 2001 From: Michael Schubert Date: Tue, 16 Jul 2024 12:24:03 +0000 Subject: [PATCH 1/2] dev-python/llvmlite: add ebuild Signed-off-by: Michael Schubert --- dev-python/llvmlite/Manifest | 1 + dev-python/llvmlite/llvmlite-0.43.0.ebuild | 43 ++++++++++++++++++++++ dev-python/llvmlite/metadata.xml | 16 ++++++++ 3 files changed, 60 insertions(+) create mode 100644 dev-python/llvmlite/Manifest create mode 100644 dev-python/llvmlite/llvmlite-0.43.0.ebuild create mode 100644 dev-python/llvmlite/metadata.xml diff --git a/dev-python/llvmlite/Manifest b/dev-python/llvmlite/Manifest new file mode 100644 index 00000000000..749cdba9fb1 --- /dev/null +++ b/dev-python/llvmlite/Manifest @@ -0,0 +1 @@ +DIST llvmlite-0.43.0.gh.tar.gz 265174 BLAKE2B ea2c692897476b47328c076020fb582e3c01b8cd0fdcb0c0e28e4c8db7e51096b0f4220492bf7ecb8b5cdeabd6ef17c699070dad272b5ec2f29295159f138fe5 SHA512 a77c3c3ed31b6e71b2b3d39ff82f0a9993a6968c947c422c47a897d25f28b62e7304873dae31089db2655c3d7d4780f79786b7d62dfa07c61ba6da9ef1417ad9 diff --git a/dev-python/llvmlite/llvmlite-0.43.0.ebuild b/dev-python/llvmlite/llvmlite-0.43.0.ebuild new file mode 100644 index 00000000000..5d7dfc9280e --- /dev/null +++ b/dev-python/llvmlite/llvmlite-0.43.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) +inherit distutils-r1 llvm + +DESCRIPTION="Python wrapper around the llvm C++ library" +HOMEPAGE="https://llvmlite.pydata.org/" +SRC_URI="https://github.com/numba/llvmlite/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples debug" + +DISTUTILS_EXT=1 +LLVM_MAX_SLOT=15 + +RDEPEND=" + sys-devel/llvm:${LLVM_MAX_SLOT} + sys-libs/zlib:0= +" +DEPEND="${RDEPEND}" + +distutils_enable_tests pytest + +python_test() { + LD_LIBRARY_PATH="${EPREFIX}/usr/lib/llvm/${LLVM_MAX_SLOT}/lib64" \ + "${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + dosym "${EPREFIX}/usr/lib/llvm/${LLVM_MAX_SLOT}/lib64/libLLVM-${LLVM_MAX_SLOT}.so" \ + /usr/lib/$EPYTHON/site-packages/llvmlite/binding/libLLVM-${LLVM_MAX_SLOT}.so + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} diff --git a/dev-python/llvmlite/metadata.xml b/dev-python/llvmlite/metadata.xml new file mode 100644 index 00000000000..577d11886e6 --- /dev/null +++ b/dev-python/llvmlite/metadata.xml @@ -0,0 +1,16 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + mschu.dev@gmail.com + Michael Schubert + + + numba/llvmlite + llvmlite + + From 85109c2a894d4677608d7468283d7a42a238bf7e Mon Sep 17 00:00:00 2001 From: Michael Schubert Date: Tue, 16 Jul 2024 12:24:14 +0000 Subject: [PATCH 2/2] dev-python/numba: add ebuild Signed-off-by: Michael Schubert --- dev-python/numba/Manifest | 1 + dev-python/numba/metadata.xml | 16 ++++++++++++++++ dev-python/numba/numba-0.60.0.ebuild | 25 +++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 dev-python/numba/Manifest create mode 100644 dev-python/numba/metadata.xml create mode 100644 dev-python/numba/numba-0.60.0.ebuild diff --git a/dev-python/numba/Manifest b/dev-python/numba/Manifest new file mode 100644 index 00000000000..9198c4da59c --- /dev/null +++ b/dev-python/numba/Manifest @@ -0,0 +1 @@ +DIST numba-0.60.0.gh.tar.gz 2774501 BLAKE2B aaf5350221eac3c66551756bf8ac0d657b476ede74e4f80430192b16b143a119cbd11337727b4caa6515fab83bdfe06d44d9224c0d5b9b0800ccbd791041833a SHA512 8680906c77b03b82249489418adb44f7817d6f9051241fffe52045dd1e0b59ed990cbdbbf5837bcf2b69e702174f393ec6011e352ec33f993ca0c599eceeb1f6 diff --git a/dev-python/numba/metadata.xml b/dev-python/numba/metadata.xml new file mode 100644 index 00000000000..f9fcc54ef97 --- /dev/null +++ b/dev-python/numba/metadata.xml @@ -0,0 +1,16 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + mschu.dev@gmail.com + Michael Schubert + + + numba/numba + numba + + diff --git a/dev-python/numba/numba-0.60.0.ebuild b/dev-python/numba/numba-0.60.0.ebuild new file mode 100644 index 00000000000..8f4d2600a78 --- /dev/null +++ b/dev-python/numba/numba-0.60.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) +inherit distutils-r1 + +DISTUTILS_EXT=1 + +DESCRIPTION="NumPy aware dynamic Python compiler using LLVM" +HOMEPAGE="https://numba.pydata.org/" +SRC_URI="https://github.com/numba/numba/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="debug" + +RDEPEND="dev-python/llvmlite" +DEPEND="${RDEPEND}" + +RESTRICT="test" # "from numba.core.typeconv import _typeconv" fails but works after install +distutils_enable_tests pytest