1
0
flewkey-overlay/dev-python/llvmlite/llvmlite-9999.ebuild
Ryan Fox 887033b98a
dev-python/llvmlite: add 0.39.1
I pilfered some patches from the Gentoo Science Overlay. They make other
improvements too, and I should include them here, but my standards are
low.
2023-01-16 03:38:11 -08:00

36 lines
840 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/numba/llvmlite.git"
else
SRC_URI="https://github.com/numba/llvmlite/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
KEYWORDS="~amd64"
fi
DESCRIPTION="Lightweight LLVM bindings for Python"
HOMEPAGE="https://llvmlite.pydata.org/"
LICENSE="BSD-2"
SLOT="0"
RESTRICT="test"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND="sys-devel/llvm:14"
# It's bad practice to ship unreleased patches, but this is too convenient.
PATCHES=( "${FILESDIR}/${P}-830.patch" )
python_compile() {
export "LLVM_CONFIG=${EPREFIX}/usr/lib/llvm/14/bin/llvm-config"
distutils-r1_python_compile
}