-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Schubert <[email protected]>
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST llvmlite-0.44.0.gh.tar.gz 285270 BLAKE2B 701ebb4835b333eeccaf9d74596d394006804b279e03bf8484a06d9333056a02d8128eb615cf1fb56205e387839e14ac91e927cfb7ae5547c57b6946abccc1d4 SHA512 4e4cb492957a853d63204ebed8a4ffb404f973ec373680897ea1ea3abc74caf36821d82c28de0fefce93767b59c55a5aff7bb136f9aa65b0bc4c41054815ec33 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright 1999-2025 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
DISTUTILS_EXT=1 | ||
DISTUTILS_USE_PEP517=setuptools | ||
PYTHON_COMPAT=( python3_{10..13} ) | ||
LLVM_COMPAT=( 16 ) | ||
inherit cmake distutils-r1 llvm-r1 | ||
|
||
DESCRIPTION="Python wrapper around the llvm C++ library" | ||
HOMEPAGE="https://github.com/numba/llvmlite" | ||
SRC_URI="https://github.com/numba/llvmlite/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" | ||
|
||
LICENSE="BSD" | ||
SLOT="0" | ||
KEYWORDS="~amd64" | ||
|
||
RDEPEND=" | ||
sys-libs/zlib:0= | ||
$(llvm_gen_dep 'llvm-core/llvm:${LLVM_SLOT}=') | ||
" | ||
DEPEND="${RDEPEND}" | ||
|
||
distutils_enable_tests pytest | ||
|
||
python_compile() { | ||
LLVM_CONFIG="$(get_llvm_prefix)/bin/llvm-config" distutils-r1_python_compile | ||
} | ||
|
||
python_test() { | ||
LD_LIBRARY_PATH="$(get_llvm_prefix)/lib64" \ | ||
"${EPYTHON}" runtests.py -v || die "tests failed for ${EPYTHON}" | ||
} | ||
|
||
python_install() { | ||
distutils-r1_python_install | ||
dosym "$(get_llvm_prefix)/lib64/libLLVM-${LLVM_SLOT}.so" \ | ||
/usr/lib/$EPYTHON/site-packages/llvmlite/binding/libLLVM-${LLVM_SLOT}.so | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="project"> | ||
<email>[email protected]</email> | ||
<name>Gentoo Science Project</name> | ||
</maintainer> | ||
<maintainer type="person"> | ||
<email>[email protected]</email> | ||
<name>Michael Schubert</name> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="github">numba/llvmlite</remote-id> | ||
<remote-id type="pypi">llvmlite</remote-id> | ||
</upstream> | ||
</pkgmetadata> |