summaryrefslogtreecommitdiff
path: root/dev-python/llvmlite
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/llvmlite
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/llvmlite')
-rw-r--r--dev-python/llvmlite/Manifest14
-rw-r--r--dev-python/llvmlite/files/llvmlite-0.15.0-use-system-six.patch50
-rw-r--r--dev-python/llvmlite/llvmlite-0.12.1.ebuild45
-rw-r--r--dev-python/llvmlite/llvmlite-0.15.0.ebuild45
-rw-r--r--dev-python/llvmlite/llvmlite-0.16.0.ebuild49
-rw-r--r--dev-python/llvmlite/llvmlite-0.19.0.ebuild54
-rw-r--r--dev-python/llvmlite/llvmlite-0.20.0.ebuild54
-rw-r--r--dev-python/llvmlite/metadata.xml21
8 files changed, 332 insertions, 0 deletions
diff --git a/dev-python/llvmlite/Manifest b/dev-python/llvmlite/Manifest
new file mode 100644
index 000000000000..80c4d23645ff
--- /dev/null
+++ b/dev-python/llvmlite/Manifest
@@ -0,0 +1,14 @@
+AUX llvmlite-0.15.0-use-system-six.patch 1274 SHA256 b05dd74c09c3fa05fa82b35feb9e63c2919cf54b1492265c12b401f6e875f979 SHA512 5db6b819e0a9e0d6b7963272ef7fd9c9fee778cb4c2d577325de6602e7a283a98752e870b83df4978d063c84b73045e2f65bc9aeb482dd487255efe24792db69 WHIRLPOOL c62bb164cef6ff3b652ca2ea4bed7946d8fe704bf012bb037ae86d0052c1dae95c4debaf5520b92592bfae9abbdc1fa8596657c92022cb33ed1076a4e812c27d
+DIST llvmlite-0.12.1.tar.gz 88271 SHA256 3ce71beebd4cbc7a49abe4eadfc99725477fd43caeb7405650ebb746c7a1d0df SHA512 f5b448f0ae3d84a0d3438dd7bb4c7f87055e551191c4fefb6282539029d25e8c5e1cca9dec5b90c0d99ec0a720719133b2ccf8b9551aa818c3b4626cc522d8d9 WHIRLPOOL 82b3e60520eda83d0e4082d75ca377bd34c9baf7c67688814e6dd3a7ae687b1eacf7ddd9758254e0c61f39ea5af77c847a15f1f8071cf030d9dd07bb2b1020a5
+DIST llvmlite-0.15.0.tar.gz 95009 SHA256 c855835537eda61f3a0d19aedc44f006d5084a2d322aee8ffa87aa06bb800dc4 SHA512 db49ed82eae989e7e7abbd72f1c1da5129887f7fce447c684085f98ae2aaf47d24e73b79c5916802edbb8dc55dda92efeac833cb903300560b1aa89f2aeb5dca WHIRLPOOL 66336fa610ae2706c9281f5e7febc8e76e0cacf8cbc151952f6978adb104bcc6b98ac65d9661c7289f258e1e63a1e6e4a139f93efc45cdfd2a26f50c35bc03fb
+DIST llvmlite-0.16.0.tar.gz 95284 SHA256 ef3bae32482f91742d91571b5225a6943804291eb9405b98090a7b50942ec5e9 SHA512 97a251ef9d840fc5a25bd673c644207750f2e653ccad5850dec0a7f1bc77170c6ce85d5cd663ab5c109cb1b51ced9545493d35ef81dfe04a3696b5a0c37fa768 WHIRLPOOL ab629a507c2cc27756109162469a0eed8f4dbb059b7c3957df65e059c6e613581fed6380b58686812ed5378a9d2ebe5f754e6de1a5132c89a323b221da203e91
+DIST llvmlite-0.19.0.tar.gz 97109 SHA256 fbaeb3d584e0f6bac82a33776e9b5f0b5b4a3415a03edeff5d66f6176f0edbe2 SHA512 93551bbab519021abdc66ca099b9090b3af54b048adbce8d16f3700c066bbc4f5c24e5234a8a1ac4bfcdf8bf74d0ac52bb7023251ac948af6ef99fbd5a5324c8 WHIRLPOOL ee6170c09ac897862fee4705b8131f6dfb97a980c8aec73a9316f7d0d57dfeb4a0e3bd629f536cfeb51df682b4838b1c4e267ff3ebaf54f2f5db7193062014f5
+DIST llvmlite-0.20.0.tar.gz 96753 SHA256 b2f174848df16bb9195a07fec102110a06d018da736bd9b3570a54d44c797c29 SHA512 c2e0918e7acfba68922f60889180ec660da13ea199c9e8dfb3ac075c295baeb8c90784a6acc3c463cdd696f8f61c42226548d38db5bd8c4397a23cfa7c7ff764 WHIRLPOOL 8eae219cce74a106ddf48b771b210589775a4fea37f8267ed7e496b078d92503fe955edc371326cf3261d9707461f996585209cd30183cc81f5b6f204b1aa293
+EBUILD llvmlite-0.12.1.ebuild 1083 SHA256 39ac0812575ebe7b5982bb09ccfdabb67a199d590440d809b992427b94342c91 SHA512 304d08d1a6842102692a288fc0cdb47a88f94ef07a05e1903d6acc07950eb2a936a206355c244bd9628c564a9da6bb8d42f2fefe9472782cae9022a08f37a660 WHIRLPOOL 67b18d4cee415fd6b7a9090366fd1ac8fbcb2e17dbadec401f74fe69ce8c3639c61aed78bd5dca961376737df3c94b6151c3e6538f17bc9e5c400e868ccfd104
+EBUILD llvmlite-0.15.0.ebuild 972 SHA256 fbbc62a674b8a8195c5fa779ecac4894f97afe192591a7f171bf5a21482a812f SHA512 3d44e8322b75d9005413c580075b05e26c9bdaadd3b36fc31da80d3cd9db6091905bae3cf1215cb63c0017d66ae02775391c873129a223acef6c5013de804137 WHIRLPOOL 35ba0fb8f956e9a405816e5c580f9cac2b4425ae40c22d5201ec1438e872e23c086f6887167618326c36489386cd0c0b9de4cf89308f4524d1b0661b57361c32
+EBUILD llvmlite-0.16.0.ebuild 1198 SHA256 8ca92924a3329997a792c0461d8fa1b218e2d0340e8d1d59e4be835385b2d568 SHA512 79b761d1c155eaa10b123575908b66d78797e7265c78a8bfdd81963fc53396f6e47ffdb39d57f64b781ab2d6e55a3fd628093bc68827ea2845a107f9262ef40d WHIRLPOOL ef0dfa9b77f99b9d2f5ed2daa6fe7e5f3be55d22aeae8d22e6964a2ad02cf0471896ca50d659066b4291e184a4ea7734fddbde10b0129d2baf66a9eb729da0f4
+EBUILD llvmlite-0.19.0.ebuild 1288 SHA256 b2b39bcf270ca32b60657ce67bab39149c0d794969e7c4b8ba055ef3d055df02 SHA512 81f241338e6d2e249b8ee7a9b9dbc184f47ed6c461259437f664400f49b2ebcd45c5434dffbd8781f0f6b34e93a8ceaf1394353df5ccb67a19158c72ff5d0db4 WHIRLPOOL a66d0054a971135320b512f2e7a59445d36bf9d5a54ead9398c96c69517c7679dbcf8ca5e2398a073882f439799df5f324eef2cf0366643c767e298b4895985e
+EBUILD llvmlite-0.20.0.ebuild 1288 SHA256 b2b39bcf270ca32b60657ce67bab39149c0d794969e7c4b8ba055ef3d055df02 SHA512 81f241338e6d2e249b8ee7a9b9dbc184f47ed6c461259437f664400f49b2ebcd45c5434dffbd8781f0f6b34e93a8ceaf1394353df5ccb67a19158c72ff5d0db4 WHIRLPOOL a66d0054a971135320b512f2e7a59445d36bf9d5a54ead9398c96c69517c7679dbcf8ca5e2398a073882f439799df5f324eef2cf0366643c767e298b4895985e
+MISC ChangeLog 4292 SHA256 c4e0b1bd3172db58479173e6fb626184125b92b64c3cfe01fa608fc5c8e10d55 SHA512 40c271840595f5a6758cfc4773eba185ade60d708e71a93095eda51cc00bc402bc9fa1d24b6124875a17b27d288b16bf858da3ccc67cbd772419ee8b3e7af95c WHIRLPOOL 865ef80c6f0b921bf36e9c513e9a536a028cb0ca2e32f53c77a18560982b7f3668f8b61bb25e295fc41366e481352246cd86a0e2df67c91ada4871838d7b6e83
+MISC ChangeLog-2015 1246 SHA256 2553bf87a635b787f38e4f9bd8a9aeddf1f25b13765eb2dee53ea0c39d2f3de4 SHA512 9d9beda83216e2d06d377249c2a97c591e393930da2891dcb6260ecbdccc390d47461e67c919d74a9fffa9be0c2f45804013582aa8abd901a84ea95d6c0d093f WHIRLPOOL a24eb7e0ef4438ab06473e63ac46f59465208b5a2117c155a24f8f8fb2fcccc0ef09134250a00a6ab3d675212ef1fec9e8abaa0d48fc39da00468937edc20200
+MISC metadata.xml 792 SHA256 5516cba431a5716f0a44f2af171e87bab77084987c051f239ea9b2b241f7e90c SHA512 8dab7bc4b6d33f9a3c458dde08e07fe22680238185e8f144ada7ce7374ecb3fbd38149f67d2a11cba7a816384c556edf618e45ec331e6054b97aee60c529a35a WHIRLPOOL 51402fc235b08509617f606cc96ec5a000041de31966b54edbb4742d1a9b85bf82ac190c074d41243f82c25873953e3deeaf96ebc7ef1c92df0304e54d713f77
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 000000000000..f7cfeae404ad
--- /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.12.1.ebuild b/dev-python/llvmlite/llvmlite-0.12.1.ebuild
new file mode 100644
index 000000000000..52f240ea76f0
--- /dev/null
+++ b/dev-python/llvmlite/llvmlite-0.12.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DISTUTILS_IN_SOURCE_BUILD="1"
+RESTRICT="test"
+
+DESCRIPTION="Python wrapper around the llvm C++ library"
+HOMEPAGE="https://pypi.python.org/pypi/llvmlite"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc examples"
+
+RDEPEND="
+ =sys-devel/llvm-3.7*
+ $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 python3_3)
+ "
+DEPEND="${RDEPEND}
+ dev-util/cmake"
+
+python_prepare_all() {
+ sed -i -e 's/-flto$/-flto -fPIC/' \
+ -e 's/-static-libstdc++ //' ffi/Makefile.linux || die
+
+ # disable test using installed instance to read version info
+ sed -e 's:test_version:_&:' -i llvmlite/tests/test_binding.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ "${PYTHON}" -m "llvmlite.tests" || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use examples && local EXAMPLES=( examples/. )
+ distutils-r1_python_install_all
+}
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 000000000000..9649c7db2954
--- /dev/null
+++ b/dev-python/llvmlite/llvmlite-0.15.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/llvmlite-0.16.0.ebuild b/dev-python/llvmlite/llvmlite-0.16.0.ebuild
new file mode 100644
index 000000000000..47ce82f48703
--- /dev/null
+++ b/dev-python/llvmlite/llvmlite-0.16.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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.9*
+ sys-libs/zlib:0=
+ virtual/python-enum34[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+PATCHES=(
+ "${FILESDIR}"/llvmlite-0.15.0-use-system-six.patch
+)
+
+python_prepare_all() {
+ # remove -static-libstdc++, it makes no sense with shared LLVM
+ # add -fPIC, needed to link against shared libraries
+ # disable -flto, we do not force it against user's wishes
+ sed -e 's/-static-libstdc++/-fPIC/' \
+ -e '/^(CXX|LD)_FLTO_FLAGS/d' \
+ -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/llvmlite-0.19.0.ebuild b/dev-python/llvmlite/llvmlite-0.19.0.ebuild
new file mode 100644
index 000000000000..1f4d10f64b16
--- /dev/null
+++ b/dev-python/llvmlite/llvmlite-0.19.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1 llvm
+
+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"
+
+LLVM_MAX_SLOT=4
+
+RDEPEND="
+ dev-python/six[${PYTHON_USEDEP}]
+ sys-devel/llvm:${LLVM_MAX_SLOT}
+ sys-libs/zlib:0=
+ virtual/python-enum34[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+PATCHES=(
+ "${FILESDIR}"/llvmlite-0.15.0-use-system-six.patch
+)
+
+python_prepare_all() {
+ # disable -flto, we do not force it against user's wishes
+ # add -fPIC, needed to link against shared libraries
+ # plus use those vars to force our CXXFLAGS/LDFLAGS in...
+ export CXX_FLTO_FLAGS="${CXXFLAGS} -fPIC"
+ export LD_FLTO_FLAGS="${LDFLAGS} -fPIC"
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ "${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/dev-python/llvmlite/llvmlite-0.20.0.ebuild b/dev-python/llvmlite/llvmlite-0.20.0.ebuild
new file mode 100644
index 000000000000..1f4d10f64b16
--- /dev/null
+++ b/dev-python/llvmlite/llvmlite-0.20.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1 llvm
+
+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"
+
+LLVM_MAX_SLOT=4
+
+RDEPEND="
+ dev-python/six[${PYTHON_USEDEP}]
+ sys-devel/llvm:${LLVM_MAX_SLOT}
+ sys-libs/zlib:0=
+ virtual/python-enum34[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+PATCHES=(
+ "${FILESDIR}"/llvmlite-0.15.0-use-system-six.patch
+)
+
+python_prepare_all() {
+ # disable -flto, we do not force it against user's wishes
+ # add -fPIC, needed to link against shared libraries
+ # plus use those vars to force our CXXFLAGS/LDFLAGS in...
+ export CXX_FLTO_FLAGS="${CXXFLAGS} -fPIC"
+ export LD_FLTO_FLAGS="${LDFLAGS} -fPIC"
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ "${EPYTHON}" runtests.py -v || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -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 000000000000..3f12f0b34215
--- /dev/null
+++ b/dev-python/llvmlite/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>llvm@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <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>