public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/llvmlite/
Date: Mon, 11 May 2020 09:04:07 +0000 (UTC)	[thread overview]
Message-ID: <1589187835.9f0bcc23c30b0fc38fd15f57a9b7684873fd10c4.mgorny@gentoo> (raw)

commit:     9f0bcc23c30b0fc38fd15f57a9b7684873fd10c4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 11 06:34:20 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 11 09:03:55 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f0bcc23

dev-python/llvmlite: Bump to 0.32.1, permit LLVM 9

Thanks to Aisha Tammy for pointing out that this release actually works
with LLVM 9 even though upstream does not want to officially support
it.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/llvmlite/Manifest               |  1 +
 dev-python/llvmlite/llvmlite-0.32.1.ebuild | 66 ++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/dev-python/llvmlite/Manifest b/dev-python/llvmlite/Manifest
index aee8d21a2e8..1164e21cbb2 100644
--- a/dev-python/llvmlite/Manifest
+++ b/dev-python/llvmlite/Manifest
@@ -1,2 +1,3 @@
 DIST llvmlite-0.29.0.gh.tar.gz 196507 BLAKE2B d4870ca042d446857b7409c0c50c370458747ee744c24611e88da4bc8780c26125b2e8db3db7fe9d4f553f9aae5769b62effe1ac94cfaf234bab54d43c8086e9 SHA512 8735b46b1a3053b89306bf6e05c8c6c375d15371d33635f1d27e5533d7a78a85f773e04b7ed8d39ebab40a892c374839e1324665d81459cb797f760d6d2c81d1
 DIST llvmlite-0.30.0.gh.tar.gz 199354 BLAKE2B 71ba1b0572d115a28d838a7fa5daca136fb793d41cdebca5834d2977813b4a02837e99d8b1b48d0fa965c5d3bdfe7783314ecbd2a7e7075b82247ea5fa4f90a4 SHA512 e3a64a3170efe1bffb6eeb8d6cfdc5a9bf8cc9e123da0b317b6b8dd93dacd3a54d5117c22eca43226915e7ff2793ab66cdee00c5e6ada442d9c2f7fed6e40763
+DIST llvmlite-0.32.1.gh.tar.gz 194191 BLAKE2B 4d35ce0f4903a17285b6f6296f0260787cc102804f1144c1b329815d41ca7471e1942aaecac26f06aa76804cc1b8a77130063de22376c78f30819554e459716f SHA512 00ce075deb8048350f4d4ac23e2e8a629b7c12aefefe3855e430aaf5e2df8170cf97a043001397a84101a7d0065671b30eb327837b24f86dd36b855309c19bfa

diff --git a/dev-python/llvmlite/llvmlite-0.32.1.ebuild b/dev-python/llvmlite/llvmlite-0.32.1.ebuild
new file mode 100644
index 00000000000..a733f9617dc
--- /dev/null
+++ b/dev-python/llvmlite/llvmlite-0.32.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+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"
+S=${WORKDIR}/${P/_/}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples"
+
+LLVM_MAX_SLOT=9
+
+RDEPEND="
+	sys-devel/llvm:${LLVM_MAX_SLOT}
+	sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+	# test_version hardcodes permitted versions
+	# test_parse* relies on exact error message
+	sed -e 's:test_version:_&:' \
+		-e 's:test_parse_bitcode_error:_&:' \
+		-i llvmlite/tests/test_binding.py || die
+
+	distutils-r1_src_prepare
+}
+
+python_configure_all() {
+	# upstream's build system is just horrible, and they ignored the PR
+	# fixing it, so let's build the shared lib properly using implicit
+	# make rules
+
+	export LDLIBS=$(llvm-config --libs all)
+	export CXXFLAGS="$(llvm-config --cxxflags) -fPIC ${CXXFLAGS}"
+	export LDFLAGS="$(llvm-config --ldflags) ${LDFLAGS}"
+
+	local files=( ffi/*.cpp )
+	emake -f - <<EOF
+ffi/libllvmlite.so: ${files[*]/.cpp/.o}
+	\$(CXX) -shared \$(CXXFLAGS) \$(LDFLAGS) -o \$@ \$^ \$(LDLIBS)
+EOF
+
+	export LLVMLITE_SKIP_LLVM_VERSION_CHECK=1
+}
+
+python_test() {
+	"${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+	distutils-r1_python_install_all
+	if use examples; then
+		dodoc -r examples
+		docompress -x /usr/share/doc/${PF}/examples
+	fi
+}


             reply	other threads:[~2020-05-11  9:04 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-11  9:04 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-09-12 20:29 [gentoo-commits] repo/gentoo:master commit in: dev-python/llvmlite/ Michał Górny
2021-09-12 17:38 Sam James
2021-09-12  7:31 Sam James
2021-09-12  7:24 Agostino Sarubbo
2021-09-12  7:09 Agostino Sarubbo
2021-08-21  7:56 Michał Górny
2021-05-10 18:08 Michał Górny
2021-05-06 10:01 Sam James
2021-05-04 19:13 Sam James
2021-04-13  7:36 Agostino Sarubbo
2021-03-13  8:38 Michał Górny
2021-03-03 13:54 Sam James
2021-01-21  7:40 Agostino Sarubbo
2020-12-01 10:32 Michał Górny
2020-09-19  7:21 Michał Górny
2020-09-19  2:19 Sam James
2020-09-18  8:26 Agostino Sarubbo
2020-09-18  7:45 Agostino Sarubbo
2020-09-18  7:29 Agostino Sarubbo
2020-08-13  9:22 Michał Górny
2020-07-30 22:11 Michał Górny
2020-07-19  7:37 Agostino Sarubbo
2020-07-18 23:30 Sam James
2020-07-09 10:55 Michał Górny
2020-06-11  8:01 Michał Górny
2020-02-05 16:24 Michał Górny
2019-12-09 19:20 Michał Górny
2019-10-11 14:13 Michał Górny
2019-09-16 22:13 Aaron Bauman
2019-09-13 15:47 Mikle Kolyada
2019-09-10  7:10 Agostino Sarubbo
2019-09-10  7:06 Agostino Sarubbo
2019-09-09 19:02 Michał Górny
2019-06-02  7:20 Michał Górny
2019-05-30 11:37 Michał Górny
2019-05-30 11:37 Michał Górny
2019-05-30 11:37 Michał Górny
2019-05-22 12:47 Michał Górny
2019-05-13 17:36 Aaron Bauman
2019-05-11 11:25 Mikle Kolyada
2019-03-13  7:37 Michał Górny
2019-02-02 10:31 Michał Górny
2019-01-17 21:09 Mikle Kolyada
2018-12-30  9:53 Michał Górny
2018-12-30  9:49 Michał Górny
2018-12-29 19:12 Thomas Deutschmann
2018-12-26 13:34 Michał Górny
2018-11-28  9:04 Michał Górny
2018-09-19 14:39 Michał Górny
2018-09-19 14:39 Michał Górny
2018-09-11  7:25 Michał Górny
2018-09-11  7:25 Michał Górny
2018-07-21  5:55 Michał Górny
2018-07-21  0:06 Mikle Kolyada
2018-07-07  5:31 Michał Górny
2018-07-07  5:31 Michał Górny
2018-06-26 17:17 Mike Gilbert
2018-06-01 18:38 Michał Górny
2018-04-25 14:36 Michał Górny
2018-04-11 16:19 Michał Górny
2018-03-29 10:19 Michał Górny
2018-02-16 12:20 Michał Górny
2018-01-29  1:06 Thomas Deutschmann
2018-01-17 22:14 Mikle Kolyada
2017-12-29 18:54 Mikle Kolyada
2017-12-28 18:45 Thomas Deutschmann
2017-12-09  8:36 Michał Górny
2017-11-29 17:50 Michał Górny
2017-09-16  8:11 Michał Górny
2017-07-22  6:37 Michał Górny
2017-07-21  0:23 Sebastien Fabbro
2017-04-22 21:36 Michał Górny
2017-04-22 21:36 Michał Górny
2017-04-10 17:36 Michał Górny
2017-04-10 17:36 Michał Górny
2016-12-26 10:55 Aaron Bauman
2016-11-15 14:32 Michał Górny
2016-09-02 20:53 Patrick Lauer
2016-07-21 13:15 Patrick Lauer
2016-06-08 13:46 Patrick Lauer
2016-05-19  4:13 Benda XU
2016-04-06  5:29 Patrick Lauer
2016-03-05 10:33 Patrick Lauer
2016-03-05 10:33 Patrick Lauer
2015-11-20 14:11 Benda XU

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1589187835.9f0bcc23c30b0fc38fd15f57a9b7684873fd10c4.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox