public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/llvmlite/files/, dev-python/llvmlite/
@ 2017-01-07  1:01 Sebastien Fabbro
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastien Fabbro @ 2017-01-07  1:01 UTC (permalink / raw
  To: gentoo-commits

commit:     df761291cf90f6b009a0753fae0e1470cdc1ad27
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  7 01:00:00 2017 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Sat Jan  7 01:00:55 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df761291

dev-python/llvmlite: version bump

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-python/llvmlite/Manifest                       |  1 +
 .../files/llvmlite-0.15.0-use-system-six.patch     | 50 ++++++++++++++++++++++
 dev-python/llvmlite/llvmlite-0.15.0.ebuild         | 46 ++++++++++++++++++++
 dev-python/llvmlite/metadata.xml                   |  7 +++
 4 files changed, 104 insertions(+)

diff --git a/dev-python/llvmlite/Manifest b/dev-python/llvmlite/Manifest
index cf44e12..82580d7 100644
--- a/dev-python/llvmlite/Manifest
+++ b/dev-python/llvmlite/Manifest
@@ -2,6 +2,7 @@ DIST llvmlite-0.10.0.tar.gz 92000 SHA256 b6b55e19ae2be38770299e9c73e6ae07d770e4f
 DIST llvmlite-0.11.0.tar.gz 87648 SHA256 93cfee5bb9e4d16e42d8986b480191a4c1f149a5818c654d58ae142449f382bd SHA512 6bd801dc01b7949a8206234076579cb9a41b6803039759c16cc346054b9d7e9c6bdb73b77f861564ea23e92cc01da2036bdba5ad5fcfc54e9265181318cc8005 WHIRLPOOL 65387cf24ebb2ce9e257a4a8ce16914a108cd4c2548f44d99d326c43c058441a7ef21aa37279adf6c93fb27fb9378b987794e9efc81175d84943c41b04382e24
 DIST llvmlite-0.12.1.tar.gz 88271 SHA256 3ce71beebd4cbc7a49abe4eadfc99725477fd43caeb7405650ebb746c7a1d0df SHA512 f5b448f0ae3d84a0d3438dd7bb4c7f87055e551191c4fefb6282539029d25e8c5e1cca9dec5b90c0d99ec0a720719133b2ccf8b9551aa818c3b4626cc522d8d9 WHIRLPOOL 82b3e60520eda83d0e4082d75ca377bd34c9baf7c67688814e6dd3a7ae687b1eacf7ddd9758254e0c61f39ea5af77c847a15f1f8071cf030d9dd07bb2b1020a5
 DIST llvmlite-0.13.0.tar.gz 92200 SHA256 f852be3391acb2e77ef484c5d0ff90e7cf2821dcf9575e358a1f08c274c582eb SHA512 0a416bc1cda0f2d773ceda602ab4fa87a308e3941316f1c66520cb08448c088383b92bcef4459211666573d2e251e4e23e4647091045fd7d8269dbe8ca912f3f WHIRLPOOL edd26c3dfeb95d050f408f7fcc5e2bf5195712eff12220c022b0af00770b2276998853b8877b4c484452e9eb80df987fce548663f39285d1b030d6010164f338
+DIST llvmlite-0.15.0.tar.gz 95009 SHA256 c855835537eda61f3a0d19aedc44f006d5084a2d322aee8ffa87aa06bb800dc4 SHA512 db49ed82eae989e7e7abbd72f1c1da5129887f7fce447c684085f98ae2aaf47d24e73b79c5916802edbb8dc55dda92efeac833cb903300560b1aa89f2aeb5dca WHIRLPOOL 66336fa610ae2706c9281f5e7febc8e76e0cacf8cbc151952f6978adb104bcc6b98ac65d9661c7289f258e1e63a1e6e4a139f93efc45cdfd2a26f50c35bc03fb
 DIST llvmlite-0.5.0.tar.gz 74434 SHA256 616b0f16366dd1eec197b7067f4618c6c5183db852e7f4203862c0343ebdd31c SHA512 aec69c841a8166896a6632a4204a53df1f19a42514c335a3dc21a9c7e7610c110a5d00b293d7013dfe497cc7c1e3ffbaedf0a80ee16970f5f33f0043bacd6aec WHIRLPOOL 737a53017e160a04f371e87abf24eb923f17b101d3b2394c276ae0d47787c617aa496428b268ee86301a2ed33a0a93b0b5d3fbc0fb293e295d38742d8a5b98e8
 DIST llvmlite-0.6.0.tar.gz 74834 SHA256 0ed6bbf850578dc99c06be3060a1067ea4993474392137760d1c020f7188a236 SHA512 7db3f774d7cff903e4a5a476eee3efd1c6f107443433ab47543eae4e28918a385534225a23e0cd000cfab65b5ebeb0a5c38d6b963090ee0943c65fb61879fc7b WHIRLPOOL 3bed14fef8defac3f217b9ecdb5a2b4d1c68cd9e19078292cc792f375345a87b4daf63ee9c6429954d5156e7c73b5ea85b3bff54c60f78fbc982067411f2eb40
 DIST llvmlite-0.8.0.tar.gz 80497 SHA256 a10d8d5e597c6a54ec418baddd31a51a0b7937a895d75b240d890aead946081c SHA512 d960dd2635d670b3ed2a79f81e5c3ada4fe0a03ac39e8f94a16a83fb62013ecbbce1a430ac48c8e6abd8fa34c37938d4ec7a0b949bd8c490f391c8dc29ce221c WHIRLPOOL 569cf60ae6b6efe63aa1af322d53cb983a4d29550557ba465ff26dbcc49bab598365cc592931cabca5f2e99b979ebb4f101d698a1c457a1ef1fa11eb89184c31

diff --git a/dev-python/llvmlite/files/llvmlite-0.15.0-use-system-six.patch b/dev-python/llvmlite/files/llvmlite-0.15.0-use-system-six.patch
new file mode 100644
index 00000000..f7cfeae
--- /dev/null
+++ b/dev-python/llvmlite/files/llvmlite-0.15.0-use-system-six.patch
@@ -0,0 +1,50 @@
+Description: use packaged six instead of stripped module
+Author: Daniel Stender <debian@danielstender.com>
+Forwarded: not-needed
+Last-Update: 2016-21-06
+
+--- a/llvmlite/binding/ffi.py
++++ b/llvmlite/binding/ffi.py
+@@ -3,7 +3,7 @@ import os
+ 
+ from .common import _decode_string, _is_shutting_down
+ from ..utils import get_library_name
+-from ..six import PY2
++from six import PY2
+ 
+ 
+ def _make_opaque_ref(name):
+--- a/llvmlite/ir/values.py
++++ b/llvmlite/ir/values.py
+@@ -7,7 +7,7 @@ from __future__ import print_function, absolute_import
+ 
+ import string
+ 
+-from .. import six
++import six
+ from . import types, _utils
+ from ._utils import _StrCaching, _StringReferenceCaching, _HasMetadata
+ 
+--- a/llvmlite/tests/customize.py
++++ b/llvmlite/tests/customize.py
+@@ -12,7 +12,7 @@ import unittest
+ import warnings
+ from unittest import result, runner, signals
+ 
+-from ..six import StringIO
++from six import StringIO
+ 
+ 
+ # "unittest.main" is really the TestProgram class!
+--- a/llvmlite/tests/test_binding.py
++++ b/llvmlite/tests/test_binding.py
+@@ -12,7 +12,8 @@ import subprocess
+ import sys
+ import unittest
+ 
+-from llvmlite import six, ir
++from llvmlite import ir
++import six
+ from llvmlite import binding as llvm
+ from llvmlite.binding import ffi
+ from . import TestCase

diff --git a/dev-python/llvmlite/llvmlite-0.15.0.ebuild b/dev-python/llvmlite/llvmlite-0.15.0.ebuild
new file mode 100644
index 00000000..66cb23b
--- /dev/null
+++ b/dev-python/llvmlite/llvmlite-0.15.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python wrapper around the llvm C++ library"
+HOMEPAGE="http://llvmlite.pydata.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples"
+
+RDEPEND="
+	dev-python/six[${PYTHON_USEDEP}]
+	=sys-devel/llvm-3.8*
+	sys-libs/zlib:0=
+	virtual/python-enum34[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+	dev-python/setuptools[${PYTHON_USEDEP}]
+"
+PATCHES=(
+	"${FILESDIR}"/${P}-use-system-six.patch
+)
+
+python_prepare_all() {
+	sed -e 's/-flto$/-flto -fPIC/' \
+		-i ffi/Makefile.linux || die
+	distutils-r1_python_prepare_all
+}
+
+python_test() {
+	"${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+	use examples && local EXAMPLES=( examples/. )
+	distutils-r1_python_install_all
+}

diff --git a/dev-python/llvmlite/metadata.xml b/dev-python/llvmlite/metadata.xml
index 2cf298c..54effc7 100644
--- a/dev-python/llvmlite/metadata.xml
+++ b/dev-python/llvmlite/metadata.xml
@@ -5,7 +5,14 @@
     <email>python@gentoo.org</email>
     <name>Python</name>
   </maintainer>
+  <longdescription>
+    llvmlite uses the LLVM library for JIT (just-in-time) compilation of
+    Python code into native machine instructions during runtime. Instead
+    of exposing large parts of the LLVM C++ API for direct calls into the
+    LLVM library, llvmlite follows a lightweight multi-layered approach.
+  </longdescription>
   <upstream>
     <remote-id type="pypi">llvmlite</remote-id>
+    <remote-id type="github">numba/llvmlite</remote-id>
   </upstream>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/llvmlite/files/, dev-python/llvmlite/
@ 2020-05-01  8:54 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2020-05-01  8:54 UTC (permalink / raw
  To: gentoo-commits

commit:     243e4816f562279a2fa56613c91c92f66324236c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May  1 08:34:25 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May  1 08:53:33 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=243e4816

dev-python/llvmlite: Remove old (LLVM 7)

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

 dev-python/llvmlite/Manifest                       |  1 -
 .../llvmlite/files/llvmlite-0.28.0-llvm710.patch   | 59 --------------------
 dev-python/llvmlite/llvmlite-0.28.0.ebuild         | 63 ----------------------
 3 files changed, 123 deletions(-)

diff --git a/dev-python/llvmlite/Manifest b/dev-python/llvmlite/Manifest
index aa63505e0fa..aee8d21a2e8 100644
--- a/dev-python/llvmlite/Manifest
+++ b/dev-python/llvmlite/Manifest
@@ -1,3 +1,2 @@
-DIST llvmlite-0.28.0.gh.tar.gz 191141 BLAKE2B 23c86c28311a4e8c7f9c209a7ed7816ad5002c26f9fda7a47cf2b54c4578db28ed0781b54a716726db8a7c1abce79a79a99c3f5bf4be2a61d547eb74d06cb507 SHA512 c00c767c80a507975a055088ca4328766c992e7267219dea54376daf5eb11397532b243352976d3569185149007650d5e94839b61aa55502e1991f72b1ba492a
 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

diff --git a/dev-python/llvmlite/files/llvmlite-0.28.0-llvm710.patch b/dev-python/llvmlite/files/llvmlite-0.28.0-llvm710.patch
deleted file mode 100644
index db06adb41c1..00000000000
--- a/dev-python/llvmlite/files/llvmlite-0.28.0-llvm710.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From 3845caca60120a8f9a094833e44bc4184b1d6827 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Sun, 21 Apr 2019 13:56:00 +0200
-Subject: [PATCH] Permit building against LLVM 7.1.0
-
-Restrict building to any 7.* version rather than 7.0.*, as 7.1.0 has
-been released that is API-compatible with 7.0.*.
----
- README.rst                     | 2 +-
- ffi/build.py                   | 4 ++--
- llvmlite/tests/test_binding.py | 3 ++-
- 3 files changed, 5 insertions(+), 4 deletions(-)
-
-diff --git a/README.rst b/README.rst
-index 2462e3f..8e551eb 100644
---- a/README.rst
-+++ b/README.rst
-@@ -70,7 +70,7 @@ Historical compatibility table:
- =================  ========================
- llvmlite versions  compatible LLVM versions
- =================  ========================
--0.27.0 - ...       7.0.x
-+0.27.0 - ...       7.y.x
- 0.23.0 - 0.26.0    6.0.x
- 0.21.0 - 0.22.0    5.0.x
- 0.17.0 - 0.20.0    4.0.x
-diff --git a/ffi/build.py b/ffi/build.py
-index 7d5247d..a87e857 100755
---- a/ffi/build.py
-+++ b/ffi/build.py
-@@ -109,9 +109,9 @@ def main_posix(kind, library_ext):
- 
-     out = out.decode('latin1')
-     print(out)
--    if not out.startswith('7.0.'):
-+    if not out.startswith('7.'):
-         msg = (
--            "Building llvmlite requires LLVM 7.0.x. Be sure to "
-+            "Building llvmlite requires LLVM 7.y.x. Be sure to "
-             "set LLVM_CONFIG to the right executable path.\n"
-             "Read the documentation at http://llvmlite.pydata.org/ for more "
-             "information about building llvmlite.\n"
-diff --git a/llvmlite/tests/test_binding.py b/llvmlite/tests/test_binding.py
-index 335c30d..134f356 100644
---- a/llvmlite/tests/test_binding.py
-+++ b/llvmlite/tests/test_binding.py
-@@ -339,7 +339,8 @@ class TestMisc(BaseTest):
- 
-     def test_version(self):
-         major, minor, patch = llvm.llvm_version_info
--        self.assertEqual((major, minor), (7, 0))
-+        self.assertEqual(major, 7)
-+        self.assertIn(minor, (0, 1))
-         self.assertIn(patch, range(10))
- 
-     def test_check_jit_execution(self):
--- 
-2.21.0
-

diff --git a/dev-python/llvmlite/llvmlite-0.28.0.ebuild b/dev-python/llvmlite/llvmlite-0.28.0.ebuild
deleted file mode 100644
index ccc4a40f973..00000000000
--- a/dev-python/llvmlite/llvmlite-0.28.0.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python{3_6,3_7} )
-
-inherit distutils-r1 llvm
-
-DESCRIPTION="Python wrapper around the llvm C++ library"
-HOMEPAGE="http://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 arm64 x86 ~amd64-linux ~x86-linux"
-IUSE="examples"
-
-LLVM_MAX_SLOT=7
-
-RDEPEND="
-	dev-python/six[${PYTHON_USEDEP}]
-	sys-devel/llvm:${LLVM_MAX_SLOT}
-	sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}
-	dev-python/setuptools[${PYTHON_USEDEP}]
-"
-
-S=${WORKDIR}/${P/_/}
-
-PATCHES=(
-	"${FILESDIR}"/llvmlite-0.15.0-use-system-six.patch
-	"${FILESDIR}"/llvmlite-0.28.0-llvm710.patch
-)
-
-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
-}
-
-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
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-01  8:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-01  8:54 [gentoo-commits] repo/gentoo:master commit in: dev-python/llvmlite/files/, dev-python/llvmlite/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2017-01-07  1:01 Sebastien Fabbro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox