parent
88a5069c98
commit
6a65270349
Binary file not shown.
Binary file not shown.
@ -0,0 +1,58 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit bash-completion-r1 distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||||
|
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||||
|
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/aws-cli-${PV}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
|
|
||||||
|
# botocore is x.(y+1).z
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(ver_cut 3-)"
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
dev-python/colorama[${PYTHON_USEDEP}]
|
||||||
|
dev-python/docutils[${PYTHON_USEDEP}]
|
||||||
|
dev-python/rsa[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests --install pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
# strip overzealous upper bounds on requirements
|
||||||
|
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
distutils_install_for_testing
|
||||||
|
# integration tests require AWS credentials and Internet access
|
||||||
|
epytest tests/{functional,unit}
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
newbashcomp bin/aws_bash_completer aws
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins bin/aws_zsh_completer.sh _aws
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||||
|
}
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST glean-1.18.2.tar.gz 67642 BLAKE2B b346fc63b361e7c7bf0b8fc100da4a047004950aff3e17fce96d47ae5a7887828a09f4b107f2af1afcf9d866e5bc0857049ddd2d9c49413e9fe4b61d1de99fd3 SHA512 de80c06952ebbbc24c8cf198f61be788fb32974652c8253787ed5a165e26bb162b48c84836779420bb7c331edeb50a7796f5a2ff578d2e612068c5fbadd343c7
|
DIST glean-1.18.2.tar.gz 67642 BLAKE2B b346fc63b361e7c7bf0b8fc100da4a047004950aff3e17fce96d47ae5a7887828a09f4b107f2af1afcf9d866e5bc0857049ddd2d9c49413e9fe4b61d1de99fd3 SHA512 de80c06952ebbbc24c8cf198f61be788fb32974652c8253787ed5a165e26bb162b48c84836779420bb7c331edeb50a7796f5a2ff578d2e612068c5fbadd343c7
|
||||||
|
DIST glean-1.19.0.tar.gz 68806 BLAKE2B 14569fafe05ee0abd626c8302d54721d321b1c69bd0e72bb850c2fab7d7c49a0c5f27c20e4542e5c32a818d51f1fc29e8a14ff730ebbc4619399e710e6b9f9d4 SHA512 a4d063a921f6dac51d2e610121d359f289817cf57a52fadd6b8fd2c8c7f761433920c5d43b415edcaf3c4956bb67b3c19274aa6ec061b057a6bcb975d2662cd0
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{7,8,9,10} )
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Simple program to write static config from config-drive"
|
||||||
|
HOMEPAGE="https://opendev.org/opendev/glean"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="dev-python/pbr[${PYTHON_USEDEP}]"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
distutils-r1_src_install
|
||||||
|
newinitd "${FILESDIR}/${PN}.initd" ${PN}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,219 @@
|
|||||||
|
https://bugs.gentoo.org/831161
|
||||||
|
Backport of https://github.com/scribusproject/scribus/commit/80405ce
|
||||||
|
|
||||||
|
From: Jean Ghali <jghali@libertysurf.fr>
|
||||||
|
Date: Mon, 10 Jan 2022 20:38:51 +0000
|
||||||
|
Subject: [PATCH] Rename byte() to to_byte() in order to avoid potential
|
||||||
|
conflict with std::byte in c++17 mode
|
||||||
|
--- a/scribus/third_party/prc/oPRCFile.cc
|
||||||
|
+++ b/scribus/third_party/prc/oPRCFile.cc
|
||||||
|
@@ -76,3 +76,3 @@
|
||||||
|
// Map [0,1] to [0,255]
|
||||||
|
-inline uint8_t byte(double r)
|
||||||
|
+inline uint8_t to_byte(double r)
|
||||||
|
{
|
||||||
|
@@ -451,5 +451,5 @@
|
||||||
|
{
|
||||||
|
- tess->rgba_vertices.push_back(byte(lit->color.red));
|
||||||
|
- tess->rgba_vertices.push_back(byte(lit->color.green));
|
||||||
|
- tess->rgba_vertices.push_back(byte(lit->color.blue));
|
||||||
|
+ tess->rgba_vertices.push_back(to_byte(lit->color.red));
|
||||||
|
+ tess->rgba_vertices.push_back(to_byte(lit->color.green));
|
||||||
|
+ tess->rgba_vertices.push_back(to_byte(lit->color.blue));
|
||||||
|
}
|
||||||
|
@@ -595,19 +595,19 @@
|
||||||
|
{
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[1].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[1].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[1].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[1].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[1].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[1].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[1].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[1].A));
|
||||||
|
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[2].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[2].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[2].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[2].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[2].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[2].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[2].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[2].A));
|
||||||
|
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].A));
|
||||||
|
}
|
||||||
|
@@ -622,19 +622,19 @@
|
||||||
|
{
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[0].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[0].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[0].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[0].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[0].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[0].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[0].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[0].A));
|
||||||
|
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[2].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[2].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[2].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[2].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[2].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[2].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[2].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[2].A));
|
||||||
|
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].A));
|
||||||
|
}
|
||||||
|
@@ -646,19 +646,19 @@
|
||||||
|
{
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[3].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[3].A));
|
||||||
|
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[1].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[1].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[1].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[1].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[1].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[1].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[1].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[1].A));
|
||||||
|
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[0].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[0].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[0].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[0].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[0].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[0].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[0].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[0].A));
|
||||||
|
}
|
||||||
|
@@ -1650,17 +1650,17 @@
|
||||||
|
{
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][0]].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][0]].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][0]].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][0]].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][0]].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][0]].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][0]].A));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][0]].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].A));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][2]].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][2]].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][2]].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][2]].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][2]].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][2]].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][2]].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][2]].A));
|
||||||
|
}
|
||||||
|
@@ -1794,33 +1794,33 @@
|
||||||
|
// first triangle
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][0]].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][0]].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][0]].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][0]].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][0]].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][0]].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][0]].A));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][0]].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].A));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][3]].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][3]].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][3]].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][3]].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][3]].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][3]].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][3]].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][3]].A));
|
||||||
|
// second triangle
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][1]].A));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][2]].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][2]].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][2]].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][1]].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][2]].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][2]].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][2]].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][2]].A));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][3]].R));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][3]].G));
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][3]].B));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][2]].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][3]].R));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][3]].G));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][3]].B));
|
||||||
|
if(tessFace->is_rgba)
|
||||||
|
- tessFace->rgba_vertices.push_back(byte(C[CI[i][3]].A));
|
||||||
|
+ tessFace->rgba_vertices.push_back(to_byte(C[CI[i][3]].A));
|
||||||
|
}
|
||||||
|
@@ -1912,7 +1912,7 @@
|
||||||
|
{
|
||||||
|
- tess->rgba_vertices.push_back(byte(C[CI[i]].R));
|
||||||
|
- tess->rgba_vertices.push_back(byte(C[CI[i]].G));
|
||||||
|
- tess->rgba_vertices.push_back(byte(C[CI[i]].B));
|
||||||
|
+ tess->rgba_vertices.push_back(to_byte(C[CI[i]].R));
|
||||||
|
+ tess->rgba_vertices.push_back(to_byte(C[CI[i]].G));
|
||||||
|
+ tess->rgba_vertices.push_back(to_byte(C[CI[i]].B));
|
||||||
|
if(tess->is_rgba)
|
||||||
|
- tess->rgba_vertices.push_back(byte(C[CI[i]].A));
|
||||||
|
+ tess->rgba_vertices.push_back(to_byte(C[CI[i]].A));
|
||||||
|
}
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST eix-0.36.0.tar.xz 640820 BLAKE2B 952e6a354cc5fd1145ef36fed6047bc6f10dd7a51166028581e3b392be66b5df07eabb96cba362dc4f7a50fbe19e6ccb3744d30928c4763a91af21ad02cee38d SHA512 891e343b01d3887cbc7e61933b43e79949ff702dcd8ada2f15ff57a628dc6ebc9a4b6817d3aa3d814474db3131aefcbbf56cec2520868dcb2182cbee780125b5
|
DIST eix-0.36.0.tar.xz 640820 BLAKE2B 952e6a354cc5fd1145ef36fed6047bc6f10dd7a51166028581e3b392be66b5df07eabb96cba362dc4f7a50fbe19e6ccb3744d30928c4763a91af21ad02cee38d SHA512 891e343b01d3887cbc7e61933b43e79949ff702dcd8ada2f15ff57a628dc6ebc9a4b6817d3aa3d814474db3131aefcbbf56cec2520868dcb2182cbee780125b5
|
||||||
|
DIST eix-0.36.1.tar.xz 640084 BLAKE2B 10014bb847d71b803967354f3a415dc1c74ad37385b7b440f0c162c573453042d06bbc575582831ffc0aad6b0f7abeedbcb4e23b869505d4f85d6bd6b7cfbba4 SHA512 915a364b0f63124c53e43eb35165ce553f6eadaf8708f0c075dc2f4871fe83378cd0c8650d5605c1f87c512563fdd62f28efdc586b358fc7cd63ae42a404981d
|
||||||
|
@ -0,0 +1,103 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit autotools bash-completion-r1 tmpfiles
|
||||||
|
|
||||||
|
DESCRIPTION="Search and query ebuilds"
|
||||||
|
HOMEPAGE="https://github.com/vaeth/eix/"
|
||||||
|
SRC_URI="https://github.com/vaeth/eix/releases/download/v${PV}/${P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="debug doc nls sqlite"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
nls? ( virtual/libintl )
|
||||||
|
sqlite? ( >=dev-db/sqlite-3:= )"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
>=app-shells/push-2.0-r1
|
||||||
|
>=app-shells/quoter-3.0_p2-r1"
|
||||||
|
BDEPEND="
|
||||||
|
app-arch/xz-utils
|
||||||
|
nls? ( sys-devel/gettext )"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# remove stale cache file to prevent collisions
|
||||||
|
local old_cache=${EROOT}/var/cache/${PN}
|
||||||
|
if [[ -f ${old_cache} ]]; then
|
||||||
|
rm "${old_cache}" || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
sed -i -e "s:/:${EPREFIX}/:" tmpfiles.d/eix.conf || die
|
||||||
|
|
||||||
|
sed -e "/eixf_source=/s:push.sh:cat \"${EPREFIX}/usr/share/push/push.sh\":" \
|
||||||
|
-e "/eixf_source=/s:quoter_pipe.sh:cat \"${EPREFIX}/usr/share/quoter/quoter_pipe.sh\":" \
|
||||||
|
-i src/eix-functions.sh.in || die
|
||||||
|
sed -e "s:'\$(bindir)/eix-functions.sh':cat \\\\\"${EPREFIX}/usr/share/eix/eix-functions\\\\\":" \
|
||||||
|
-i src/Makefile.am || die
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=(
|
||||||
|
$(use_enable debug paranoic-asserts)
|
||||||
|
$(use_enable nls)
|
||||||
|
$(use_with doc extra-doc)
|
||||||
|
$(use_with sqlite)
|
||||||
|
--without-protobuf
|
||||||
|
|
||||||
|
# default configuration
|
||||||
|
$(use_with prefix always-accept-keywords)
|
||||||
|
--with-dep-default
|
||||||
|
--with-required-use-default
|
||||||
|
|
||||||
|
# paths
|
||||||
|
--with-portage-rootpath="${ROOTPATH}"
|
||||||
|
--with-eprefix-default="${EPREFIX}"
|
||||||
|
|
||||||
|
# build a single executable with symlinks
|
||||||
|
--disable-separate-binaries
|
||||||
|
--disable-separate-tools
|
||||||
|
|
||||||
|
# used purely to control/disrespect *FLAGS
|
||||||
|
--disable-debugging
|
||||||
|
--disable-new_dialect
|
||||||
|
--disable-optimization
|
||||||
|
--disable-strong-optimization
|
||||||
|
--disable-security
|
||||||
|
--disable-nopie-security
|
||||||
|
--disable-strong-security
|
||||||
|
)
|
||||||
|
|
||||||
|
econf "${myconf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
dobashcomp bash/eix
|
||||||
|
dotmpfiles tmpfiles.d/eix.conf
|
||||||
|
|
||||||
|
rm -r "${ED}"/usr/bin/eix-functions.sh || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
tmpfiles_process eix.conf
|
||||||
|
|
||||||
|
local obs=${EROOT}/var/cache/eix.previous
|
||||||
|
if [[ -f ${obs} ]]; then
|
||||||
|
ewarn "Found obsolete ${obs}, please remove it"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
if [[ ! -n ${REPLACED_BY_VERSION} ]]; then
|
||||||
|
rm -rf "${EROOT}/var/cache/${PN}" || die
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST platformio-5.2.3.tar.gz 252483 BLAKE2B f60b83f6647333d42b5d864ea468c8104dcd5a83085a6d52f456a21792d9c94641a60f698c2a606ddd7d7b3a588723831f35ac0d3027cb0ff8b8226dabe3b62c SHA512 c11f58a984b15a3363cd29bf9a0234c1ffc772cc153310d420037416bb8834cb2b74899ccb465d69db862cc088cfcb17dcbc7d919f690b6e836dec982d5b136b
|
|
||||||
DIST platformio-5.2.4.tar.gz 254337 BLAKE2B e29b69a514b5f3bc6faefb15dd4e3195152d74b763961c35c33cd9e44bcd430920dc2f4d553244c2ac1bb83d745c006c67d2d52973fa07562c8b98d8e74a2ac3 SHA512 f90c1f5d9dcada99c610003b26ccaa4e08c214757d0c26daeea3cae006a02179aea1eb0bc656751913d0b2c4161195b1afe9ab0eaab5ad594ff986f6b56728f8
|
DIST platformio-5.2.4.tar.gz 254337 BLAKE2B e29b69a514b5f3bc6faefb15dd4e3195152d74b763961c35c33cd9e44bcd430920dc2f4d553244c2ac1bb83d745c006c67d2d52973fa07562c8b98d8e74a2ac3 SHA512 f90c1f5d9dcada99c610003b26ccaa4e08c214757d0c26daeea3cae006a02179aea1eb0bc656751913d0b2c4161195b1afe9ab0eaab5ad594ff986f6b56728f8
|
||||||
|
@ -1,73 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8,9,10} )
|
|
||||||
DISTUTILS_SINGLE_IMPL=1
|
|
||||||
|
|
||||||
inherit distutils-r1 udev
|
|
||||||
|
|
||||||
DESCRIPTION="An open source ecosystem for IoT development"
|
|
||||||
HOMEPAGE="https://platformio.org/"
|
|
||||||
SRC_URI="https://github.com/platformio/platformio-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
S="${WORKDIR}"/${PN}-core-${PV}
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
=dev-python/aiofiles-0.7.0*[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/bottle-0.13[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/click-7.1.2[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/click-9[${PYTHON_USEDEP}]
|
|
||||||
dev-python/colorama[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pyserial-3[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/pyserial-4[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/requests-2.4[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/requests-3[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/semantic_version-2.8.1[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/semantic_version-3[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/tabulate-0.8.3[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/tabulate-1[${PYTHON_USEDEP}]
|
|
||||||
dev-python/twisted[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pyelftools-0.25[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/pyelftools-1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/marshmallow-2.20.5[${PYTHON_USEDEP}]
|
|
||||||
dev-python/starlette[${PYTHON_USEDEP}]
|
|
||||||
=dev-python/uvicorn-0.15*[${PYTHON_USEDEP}]
|
|
||||||
dev-python/wsproto[${PYTHON_USEDEP}]
|
|
||||||
dev-python/zeroconf[${PYTHON_USEDEP}]
|
|
||||||
')
|
|
||||||
virtual/udev"
|
|
||||||
DEPEND="virtual/udev"
|
|
||||||
BDEPEND="test? ( $(python_gen_cond_dep 'dev-python/jsondiff[${PYTHON_USEDEP}]') )"
|
|
||||||
|
|
||||||
# This list could be refined a bit to have individual tests which need network
|
|
||||||
# (within EPYTEST_DESELECT) but so many need it that it doesn't seem worth it right now.
|
|
||||||
EPYTEST_IGNORE=(
|
|
||||||
# Requires network access
|
|
||||||
tests/test_builder.py
|
|
||||||
tests/package/test_manager.py
|
|
||||||
tests/package/test_manifest.py
|
|
||||||
tests/commands/test_platform.py
|
|
||||||
tests/commands/test_test.py
|
|
||||||
tests/commands/test_ci.py
|
|
||||||
tests/commands/test_init.py
|
|
||||||
tests/commands/test_lib.py
|
|
||||||
tests/commands/test_lib_complex.py
|
|
||||||
tests/commands/test_boards.py
|
|
||||||
tests/commands/test_check.py
|
|
||||||
tests/test_ino2cpp.py
|
|
||||||
tests/test_maintenance.py
|
|
||||||
tests/test_misc.py
|
|
||||||
)
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
distutils-r1_src_install
|
|
||||||
udev_dorules scripts/99-platformio-udev.rules
|
|
||||||
}
|
|
Binary file not shown.
@ -1,40 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
JAVA_PKG_IUSE="doc source examples"
|
|
||||||
MAVEN_ID="javassist:javassist:3.18.2"
|
|
||||||
|
|
||||||
inherit java-pkg-2 java-ant-2
|
|
||||||
|
|
||||||
DESCRIPTION="Javassist makes Java bytecode manipulation simple"
|
|
||||||
HOMEPAGE="http://www.csg.is.titech.ac.jp/~chiba/javassist/"
|
|
||||||
SRC_URI="https://github.com/jboss-javassist/javassist/archive/rel_${PV//./_}_ga_build.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="3"
|
|
||||||
KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND=">=virtual/jre-1.6"
|
|
||||||
DEPEND=">=virtual/jdk-1.6
|
|
||||||
app-arch/unzip"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-rel_${PV//./_}_ga_build"
|
|
||||||
|
|
||||||
EANT_DOC_TARGET="javadocs"
|
|
||||||
JAVA_ANT_REWRITE_CLASSPATH=y
|
|
||||||
EANT_NEEDS_TOOLS="yes"
|
|
||||||
|
|
||||||
java_prepare() {
|
|
||||||
find -name "*.jar" -delete || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
java-pkg_dojar ${PN}.jar
|
|
||||||
dohtml Readme.html
|
|
||||||
use doc && java-pkg_dojavadoc html
|
|
||||||
use source && java-pkg_dosrc src/main/javassist
|
|
||||||
use examples && java-pkg_doexamples sample/*
|
|
||||||
}
|
|
@ -1,97 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit java-vm-2
|
|
||||||
|
|
||||||
abi_uri() {
|
|
||||||
echo "${2-$1}? (
|
|
||||||
https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}U-jre_${1}_linux_hotspot_${MY_PV//+/_}.tar.gz
|
|
||||||
)"
|
|
||||||
}
|
|
||||||
|
|
||||||
MY_PV=${PV/_p/+}
|
|
||||||
SLOT=${MY_PV%%[.+]*}
|
|
||||||
|
|
||||||
SRC_URI="
|
|
||||||
$(abi_uri x64 amd64)
|
|
||||||
"
|
|
||||||
|
|
||||||
DESCRIPTION="Prebuilt Java JRE binaries provided by AdoptOpenJDK"
|
|
||||||
HOMEPAGE="https://adoptopenjdk.net"
|
|
||||||
LICENSE="GPL-2-with-classpath-exception"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
IUSE="alsa cups +gentoo-vm headless-awt selinux"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
media-libs/fontconfig:1.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>net-libs/libnet-1.1
|
|
||||||
>=sys-apps/baselayout-java-0.1.0-r1
|
|
||||||
>=sys-libs/glibc-2.2.5:*
|
|
||||||
sys-libs/zlib
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
selinux? ( sec-policy/selinux-java )
|
|
||||||
!headless-awt? (
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXrender
|
|
||||||
x11-libs/libXtst
|
|
||||||
)"
|
|
||||||
|
|
||||||
RESTRICT="preserve-libs splitdebug"
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
|
|
||||||
S="${WORKDIR}/jdk-${MY_PV}-jre"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dest="/opt/${P}"
|
|
||||||
local ddest="${ED%/}/${dest#/}"
|
|
||||||
|
|
||||||
# Not sure why they bundle this as it's commonly available and they
|
|
||||||
# only do so on x86_64. It's needed by libfontmanager.so. IcedTea
|
|
||||||
# also has an explicit dependency while Oracle seemingly dlopens it.
|
|
||||||
rm -vf lib/libfreetype.so || die
|
|
||||||
|
|
||||||
# Oracle and IcedTea have libjsoundalsa.so depending on
|
|
||||||
# libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
|
|
||||||
if ! use alsa ; then
|
|
||||||
rm -v lib/libjsound.* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use headless-awt ; then
|
|
||||||
rm -v lib/lib*{[jx]awt,splashscreen}* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -v lib/security/cacerts || die
|
|
||||||
dosym ../../../../etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
|
|
||||||
|
|
||||||
dodir "${dest}"
|
|
||||||
cp -pPR * "${ddest}" || die
|
|
||||||
|
|
||||||
# provide stable symlink
|
|
||||||
dosym "${P}" "/opt/${PN}-${SLOT}"
|
|
||||||
|
|
||||||
use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
|
|
||||||
java-vm_set-pax-markings "${ddest}"
|
|
||||||
java-vm_revdep-mask
|
|
||||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
java-vm-2_pkg_postinst
|
|
||||||
|
|
||||||
if use gentoo-vm ; then
|
|
||||||
ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JRE"
|
|
||||||
ewarn "recognised by the system. This will almost certainly break things."
|
|
||||||
else
|
|
||||||
ewarn "The experimental gentoo-vm USE flag has not been enabled so this JRE"
|
|
||||||
ewarn "will not be recognised by the system. For example, simply calling"
|
|
||||||
ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo"
|
|
||||||
ewarn "fully supports Java 11. This JRE must therefore be invoked using its"
|
|
||||||
ewarn "absolute location under ${EPREFIX}/opt/${P}."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,97 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit java-vm-2
|
|
||||||
|
|
||||||
abi_uri() {
|
|
||||||
echo "${2-$1}? (
|
|
||||||
https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}U-jre_${1}_linux_hotspot_${MY_PV//+/_}.tar.gz
|
|
||||||
)"
|
|
||||||
}
|
|
||||||
|
|
||||||
MY_PV=${PV/_p/+}
|
|
||||||
SLOT=${MY_PV%%[.+]*}
|
|
||||||
|
|
||||||
SRC_URI="
|
|
||||||
$(abi_uri x64 amd64)
|
|
||||||
"
|
|
||||||
|
|
||||||
DESCRIPTION="Prebuilt Java JRE binaries provided by Eclipse Temurin"
|
|
||||||
HOMEPAGE="https://adoptium.net"
|
|
||||||
LICENSE="GPL-2-with-classpath-exception"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
IUSE="alsa cups +gentoo-vm headless-awt selinux"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
media-libs/fontconfig:1.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>net-libs/libnet-1.1
|
|
||||||
>=sys-apps/baselayout-java-0.1.0-r1
|
|
||||||
>=sys-libs/glibc-2.2.5:*
|
|
||||||
sys-libs/zlib
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
selinux? ( sec-policy/selinux-java )
|
|
||||||
!headless-awt? (
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXrender
|
|
||||||
x11-libs/libXtst
|
|
||||||
)"
|
|
||||||
|
|
||||||
RESTRICT="preserve-libs splitdebug"
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
|
|
||||||
S="${WORKDIR}/jdk-${MY_PV}-jre"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dest="/opt/${P}"
|
|
||||||
local ddest="${ED%/}/${dest#/}"
|
|
||||||
|
|
||||||
# Not sure why they bundle this as it's commonly available and they
|
|
||||||
# only do so on x86_64. It's needed by libfontmanager.so. IcedTea
|
|
||||||
# also has an explicit dependency while Oracle seemingly dlopens it.
|
|
||||||
rm -vf lib/libfreetype.so || die
|
|
||||||
|
|
||||||
# Oracle and IcedTea have libjsoundalsa.so depending on
|
|
||||||
# libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
|
|
||||||
if ! use alsa ; then
|
|
||||||
rm -v lib/libjsound.* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use headless-awt ; then
|
|
||||||
rm -v lib/lib*{[jx]awt,splashscreen}* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -v lib/security/cacerts || die
|
|
||||||
dosym ../../../../etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
|
|
||||||
|
|
||||||
dodir "${dest}"
|
|
||||||
cp -pPR * "${ddest}" || die
|
|
||||||
|
|
||||||
# provide stable symlink
|
|
||||||
dosym "${P}" "/opt/${PN}-${SLOT}"
|
|
||||||
|
|
||||||
use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
|
|
||||||
java-vm_set-pax-markings "${ddest}"
|
|
||||||
java-vm_revdep-mask
|
|
||||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
java-vm-2_pkg_postinst
|
|
||||||
|
|
||||||
if use gentoo-vm ; then
|
|
||||||
ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JRE"
|
|
||||||
ewarn "recognised by the system. This will almost certainly break things."
|
|
||||||
else
|
|
||||||
ewarn "The experimental gentoo-vm USE flag has not been enabled so this JRE"
|
|
||||||
ewarn "will not be recognised by the system. For example, simply calling"
|
|
||||||
ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo"
|
|
||||||
ewarn "fully supports Java 11. This JRE must therefore be invoked using its"
|
|
||||||
ewarn "absolute location under ${EPREFIX}/opt/${P}."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,97 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit java-vm-2
|
|
||||||
|
|
||||||
abi_uri() {
|
|
||||||
echo "${2-$1}? (
|
|
||||||
https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}U-jre_${1}_linux_hotspot_${MY_PV//+/_}.tar.gz
|
|
||||||
)"
|
|
||||||
}
|
|
||||||
|
|
||||||
MY_PV=${PV/_p/+}
|
|
||||||
SLOT=${MY_PV%%[.+]*}
|
|
||||||
|
|
||||||
SRC_URI="
|
|
||||||
$(abi_uri x64 amd64)
|
|
||||||
"
|
|
||||||
|
|
||||||
DESCRIPTION="Prebuilt Java JRE binaries provided by AdoptOpenJDK"
|
|
||||||
HOMEPAGE="https://adoptopenjdk.net"
|
|
||||||
LICENSE="GPL-2-with-classpath-exception"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
IUSE="alsa cups +gentoo-vm headless-awt selinux"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
media-libs/fontconfig:1.0
|
|
||||||
media-libs/freetype:2
|
|
||||||
>net-libs/libnet-1.1
|
|
||||||
>=sys-apps/baselayout-java-0.1.0-r1
|
|
||||||
>=sys-libs/glibc-2.2.5:*
|
|
||||||
sys-libs/zlib
|
|
||||||
alsa? ( media-libs/alsa-lib )
|
|
||||||
cups? ( net-print/cups )
|
|
||||||
selinux? ( sec-policy/selinux-java )
|
|
||||||
!headless-awt? (
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXi
|
|
||||||
x11-libs/libXrender
|
|
||||||
x11-libs/libXtst
|
|
||||||
)"
|
|
||||||
|
|
||||||
RESTRICT="preserve-libs splitdebug"
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
|
|
||||||
S="${WORKDIR}/jdk-${MY_PV}-jre"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local dest="/opt/${P}"
|
|
||||||
local ddest="${ED%/}/${dest#/}"
|
|
||||||
|
|
||||||
# Not sure why they bundle this as it's commonly available and they
|
|
||||||
# only do so on x86_64. It's needed by libfontmanager.so. IcedTea
|
|
||||||
# also has an explicit dependency while Oracle seemingly dlopens it.
|
|
||||||
rm -vf lib/libfreetype.so || die
|
|
||||||
|
|
||||||
# Oracle and IcedTea have libjsoundalsa.so depending on
|
|
||||||
# libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
|
|
||||||
if ! use alsa ; then
|
|
||||||
rm -v lib/libjsound.* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use headless-awt ; then
|
|
||||||
rm -v lib/lib*{[jx]awt,splashscreen}* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -v lib/security/cacerts || die
|
|
||||||
dosym ../../../../etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
|
|
||||||
|
|
||||||
dodir "${dest}"
|
|
||||||
cp -pPR * "${ddest}" || die
|
|
||||||
|
|
||||||
# provide stable symlink
|
|
||||||
dosym "${P}" "/opt/${PN}-${SLOT}"
|
|
||||||
|
|
||||||
use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
|
|
||||||
java-vm_set-pax-markings "${ddest}"
|
|
||||||
java-vm_revdep-mask
|
|
||||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
java-vm-2_pkg_postinst
|
|
||||||
|
|
||||||
if use gentoo-vm ; then
|
|
||||||
ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JRE"
|
|
||||||
ewarn "recognised by the system. This will almost certainly break things."
|
|
||||||
else
|
|
||||||
ewarn "The experimental gentoo-vm USE flag has not been enabled so this JRE"
|
|
||||||
ewarn "will not be recognised by the system. For example, simply calling"
|
|
||||||
ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo"
|
|
||||||
ewarn "fully supports Java 11. This JRE must therefore be invoked using its"
|
|
||||||
ewarn "absolute location under ${EPREFIX}/opt/${P}."
|
|
||||||
fi
|
|
||||||
}
|
|
Binary file not shown.
@ -0,0 +1,214 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit multilib prefix rust-toolchain toolchain-funcs verify-sig multilib-minimal
|
||||||
|
|
||||||
|
MY_P="rust-${PV}"
|
||||||
|
# curl -L static.rust-lang.org/dist/channel-rust-${PV}.toml 2>/dev/null | grep "xz_url.*rust-src"
|
||||||
|
MY_SRC_URI="${RUST_TOOLCHAIN_BASEURL%/}/2022-01-13/rust-src-${PV}.tar.xz"
|
||||||
|
|
||||||
|
DESCRIPTION="Systems programming language from Mozilla"
|
||||||
|
HOMEPAGE="https://www.rust-lang.org/"
|
||||||
|
SRC_URI="$(rust_all_arch_uris ${MY_P})
|
||||||
|
rust-src? ( ${MY_SRC_URI} )
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
|
||||||
|
SLOT="stable"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
||||||
|
IUSE="clippy cpu_flags_x86_sse2 doc prefix rls rust-src rustfmt"
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND=">=app-eselect/eselect-rust-20190311"
|
||||||
|
BDEPEND="
|
||||||
|
prefix? ( dev-util/patchelf )
|
||||||
|
verify-sig? ( sec-keys/openpgp-keys-rust )
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRED_USE="x86? ( cpu_flags_x86_sse2 )"
|
||||||
|
|
||||||
|
QA_PREBUILT="
|
||||||
|
opt/${P}/bin/.*
|
||||||
|
opt/${P}/lib/.*.so
|
||||||
|
opt/${P}/libexec/.*
|
||||||
|
opt/${P}/lib/rustlib/.*/bin/.*
|
||||||
|
opt/${P}/lib/rustlib/.*/lib/.*
|
||||||
|
"
|
||||||
|
|
||||||
|
# An rmeta file is custom binary format that contains the metadata for the crate.
|
||||||
|
# rmeta files do not support linking, since they do not contain compiled object files.
|
||||||
|
# so we can safely silence the warning for this QA check.
|
||||||
|
QA_EXECSTACK="opt/${P}/lib/rustlib/*/lib*.rlib:lib.rmeta"
|
||||||
|
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/rust.asc"
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv7* ]]; then
|
||||||
|
die "${CHOST} is not supported by upstream Rust. You must use a hard float version."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
# sadly rust-src tarball does not have corresponding .asc file
|
||||||
|
# so do partial verification
|
||||||
|
if use verify-sig; then
|
||||||
|
for f in ${A}; do
|
||||||
|
if [[ -f ${DISTDIR}/${f}.asc ]]; then
|
||||||
|
verify-sig_verify_detached "${DISTDIR}/${f}" "${DISTDIR}/${f}.asc"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
default_src_unpack
|
||||||
|
|
||||||
|
mv "${WORKDIR}/${MY_P}-$(rust_abi)" "${S}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
patchelf_for_bin() {
|
||||||
|
local filetype=$(file -b ${1})
|
||||||
|
if [[ ${filetype} == *ELF*interpreter* ]]; then
|
||||||
|
einfo "${1}'s interpreter changed"
|
||||||
|
patchelf ${1} --set-interpreter ${2} || die
|
||||||
|
elif [[ ${filetype} == *script* ]]; then
|
||||||
|
hprefixify ${1}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
if multilib_is_native_abi; then
|
||||||
|
|
||||||
|
# start native abi install
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
local analysis std
|
||||||
|
analysis="$(grep 'analysis' ./components)"
|
||||||
|
std="$(grep 'std' ./components)"
|
||||||
|
local components="rustc,cargo,${std}"
|
||||||
|
use doc && components="${components},rust-docs"
|
||||||
|
use clippy && components="${components},clippy-preview"
|
||||||
|
use rls && components="${components},rls-preview,${analysis}"
|
||||||
|
use rustfmt && components="${components},rustfmt-preview"
|
||||||
|
# Rust component 'rust-src' is extracted from separate archive
|
||||||
|
if use rust-src; then
|
||||||
|
einfo "Combining rust and rust-src installers"
|
||||||
|
mv -v "${WORKDIR}/rust-src-${PV}/rust-src" "${S}" || die
|
||||||
|
echo rust-src >> ./components || die
|
||||||
|
components="${components},rust-src"
|
||||||
|
fi
|
||||||
|
./install.sh \
|
||||||
|
--components="${components}" \
|
||||||
|
--disable-verify \
|
||||||
|
--prefix="${ED}/opt/${P}" \
|
||||||
|
--mandir="${ED}/opt/${P}/man" \
|
||||||
|
--disable-ldconfig \
|
||||||
|
|| die
|
||||||
|
|
||||||
|
if use prefix; then
|
||||||
|
local interpreter=$(patchelf --print-interpreter ${EPREFIX}/bin/bash)
|
||||||
|
ebegin "Changing interpreter to ${interpreter} for Gentoo prefix at ${ED}/opt/${P}/bin"
|
||||||
|
find "${ED}/opt/${P}/bin" -type f -print0 | \
|
||||||
|
while IFS= read -r -d '' filename; do
|
||||||
|
patchelf_for_bin ${filename} ${interpreter} \; || die
|
||||||
|
done
|
||||||
|
eend $?
|
||||||
|
fi
|
||||||
|
|
||||||
|
local symlinks=(
|
||||||
|
cargo
|
||||||
|
rustc
|
||||||
|
rustdoc
|
||||||
|
rust-gdb
|
||||||
|
rust-gdbgui
|
||||||
|
rust-lldb
|
||||||
|
)
|
||||||
|
|
||||||
|
use clippy && symlinks+=( clippy-driver cargo-clippy )
|
||||||
|
use rls && symlinks+=( rls )
|
||||||
|
use rustfmt && symlinks+=( rustfmt cargo-fmt )
|
||||||
|
|
||||||
|
einfo "installing eselect-rust symlinks and paths"
|
||||||
|
local i
|
||||||
|
for i in "${symlinks[@]}"; do
|
||||||
|
# we need realpath on /usr/bin/* symlink return version-appended binary path.
|
||||||
|
# so /usr/bin/rustc should point to /opt/rust-bin-<ver>/bin/rustc-<ver>
|
||||||
|
local ver_i="${i}-bin-${PV}"
|
||||||
|
ln -v "${ED}/opt/${P}/bin/${i}" "${ED}/opt/${P}/bin/${ver_i}"
|
||||||
|
dosym "../../opt/${P}/bin/${ver_i}" "/usr/bin/${ver_i}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# symlinks to switch components to active rust in eselect
|
||||||
|
dosym "../../../opt/${P}/lib" "/usr/lib/rust/lib-bin-${PV}"
|
||||||
|
dosym "../../../opt/${P}/man" "/usr/lib/rust/man-bin-${PV}"
|
||||||
|
dosym "../../opt/${P}/lib/rustlib" "/usr/lib/rustlib-bin-${PV}"
|
||||||
|
dosym "../../../opt/${P}/share/doc/rust" "/usr/share/doc/${P}"
|
||||||
|
|
||||||
|
# musl logic can be improved a bit, but fine as is for now
|
||||||
|
cat <<-_EOF_ > "${T}/50${P}"
|
||||||
|
LDPATH="${EPREFIX}/usr/lib/rust/lib"
|
||||||
|
MANPATH="${EPREFIX}/usr/lib/rust/man"
|
||||||
|
$(use amd64 && usex elibc_musl 'CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-C target-feature=-crt-static"' '')
|
||||||
|
$(use arm64 && usex elibc_musl 'CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-C target-feature=-crt-static"' '')
|
||||||
|
_EOF_
|
||||||
|
doenvd "${T}/50${P}"
|
||||||
|
|
||||||
|
# note: eselect-rust adds EROOT to all paths below
|
||||||
|
cat <<-_EOF_ > "${T}/provider-${P}"
|
||||||
|
/usr/bin/cargo
|
||||||
|
/usr/bin/rustdoc
|
||||||
|
/usr/bin/rust-gdb
|
||||||
|
/usr/bin/rust-gdbgui
|
||||||
|
/usr/bin/rust-lldb
|
||||||
|
/usr/lib/rustlib
|
||||||
|
/usr/lib/rust/lib
|
||||||
|
/usr/lib/rust/man
|
||||||
|
/usr/share/doc/rust
|
||||||
|
_EOF_
|
||||||
|
|
||||||
|
if use clippy; then
|
||||||
|
echo /usr/bin/clippy-driver >> "${T}/provider-${P}"
|
||||||
|
echo /usr/bin/cargo-clippy >> "${T}/provider-${P}"
|
||||||
|
fi
|
||||||
|
if use rls; then
|
||||||
|
echo /usr/bin/rls >> "${T}/provider-${P}"
|
||||||
|
fi
|
||||||
|
if use rustfmt; then
|
||||||
|
echo /usr/bin/rustfmt >> "${T}/provider-${P}"
|
||||||
|
echo /usr/bin/cargo-fmt >> "${T}/provider-${P}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
insinto /etc/env.d/rust
|
||||||
|
doins "${T}/provider-${P}"
|
||||||
|
popd >/dev/null || die
|
||||||
|
#end native abi install
|
||||||
|
|
||||||
|
else
|
||||||
|
local rust_target
|
||||||
|
rust_target="$(rust_abi $(get_abi_CHOST ${v##*.}))"
|
||||||
|
dodir "/opt/${P}/lib/rustlib"
|
||||||
|
cp -vr "${WORKDIR}/rust-${PV}-${rust_target}/rust-std-${rust_target}/lib/rustlib/${rust_target}"\
|
||||||
|
"${ED}/opt/${P}/lib/rustlib" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# BUG: installs x86_64 binary on other arches
|
||||||
|
rm -f "${ED}/opt/${P}/lib/rustlib/"*/bin/rust-llvm-dwp || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
eselect rust update
|
||||||
|
|
||||||
|
elog "Rust installs a helper script for calling GDB now,"
|
||||||
|
elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV}."
|
||||||
|
|
||||||
|
if has_version app-editors/emacs; then
|
||||||
|
elog "install app-emacs/rust-mode to get emacs support for rust."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if has_version app-editors/gvim || has_version app-editors/vim; then
|
||||||
|
elog "install app-vim/rust-vim to get vim support for rust."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
eselect rust cleanup
|
||||||
|
}
|
@ -0,0 +1,691 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{7..10} )
|
||||||
|
|
||||||
|
inherit bash-completion-r1 check-reqs estack flag-o-matic llvm multiprocessing \
|
||||||
|
multilib multilib-build python-any-r1 rust-toolchain toolchain-funcs verify-sig
|
||||||
|
|
||||||
|
if [[ ${PV} = *beta* ]]; then
|
||||||
|
betaver=${PV//*beta}
|
||||||
|
BETA_SNAPSHOT="${betaver:0:4}-${betaver:4:2}-${betaver:6:2}"
|
||||||
|
MY_P="rustc-beta"
|
||||||
|
SLOT="beta/${PV}"
|
||||||
|
SRC="${BETA_SNAPSHOT}/rustc-beta-src.tar.xz -> rustc-${PV}-src.tar.xz"
|
||||||
|
else
|
||||||
|
ABI_VER="$(ver_cut 1-2)"
|
||||||
|
SLOT="stable/${ABI_VER}"
|
||||||
|
MY_P="rustc-${PV}"
|
||||||
|
SRC="${MY_P}-src.tar.xz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RUST_STAGE0_VERSION="1.$(($(ver_cut 2) - 1)).0"
|
||||||
|
|
||||||
|
DESCRIPTION="Systems programming language from Mozilla"
|
||||||
|
HOMEPAGE="https://www.rust-lang.org/"
|
||||||
|
|
||||||
|
SRC_URI="
|
||||||
|
https://static.rust-lang.org/dist/${SRC}
|
||||||
|
verify-sig? ( https://static.rust-lang.org/dist/${SRC}.asc )
|
||||||
|
!system-bootstrap? ( $(rust_all_arch_uris rust-${RUST_STAGE0_VERSION}) )
|
||||||
|
"
|
||||||
|
|
||||||
|
# keep in sync with llvm ebuild of the same version as bundled one.
|
||||||
|
ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430
|
||||||
|
NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore )
|
||||||
|
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
|
||||||
|
LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/(-)?}
|
||||||
|
|
||||||
|
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
|
||||||
|
|
||||||
|
IUSE="clippy cpu_flags_x86_sse2 debug doc miri nightly parallel-compiler rls rustfmt rust-src system-bootstrap system-llvm test wasm ${ALL_LLVM_TARGETS[*]}"
|
||||||
|
|
||||||
|
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||||
|
# we need to *really* make sure we're not pulling more than one slot
|
||||||
|
# simultaneously.
|
||||||
|
|
||||||
|
# How to use it:
|
||||||
|
# List all the working slots in LLVM_VALID_SLOTS, newest first.
|
||||||
|
LLVM_VALID_SLOTS=( 13 )
|
||||||
|
LLVM_MAX_SLOT="${LLVM_VALID_SLOTS[0]}"
|
||||||
|
|
||||||
|
# splitting usedeps needed to avoid CI/pkgcheck's UncheckableDep limitation
|
||||||
|
# (-) usedep needed because we may build with older llvm without that target
|
||||||
|
LLVM_DEPEND="|| ( "
|
||||||
|
for _s in ${LLVM_VALID_SLOTS[@]}; do
|
||||||
|
LLVM_DEPEND+=" ( "
|
||||||
|
for _x in ${ALL_LLVM_TARGETS[@]}; do
|
||||||
|
LLVM_DEPEND+="
|
||||||
|
${_x}? ( sys-devel/llvm:${_s}[${_x}(-)] )"
|
||||||
|
done
|
||||||
|
LLVM_DEPEND+=" )"
|
||||||
|
done
|
||||||
|
unset _s _x
|
||||||
|
LLVM_DEPEND+=" )
|
||||||
|
<sys-devel/llvm-$(( LLVM_MAX_SLOT + 1 )):=
|
||||||
|
wasm? ( sys-devel/lld )
|
||||||
|
"
|
||||||
|
|
||||||
|
# to bootstrap we need at least exactly previous version, or same.
|
||||||
|
# most of the time previous versions fail to bootstrap with newer
|
||||||
|
# for example 1.47.x, requires at least 1.46.x, 1.47.x is ok,
|
||||||
|
# but it fails to bootstrap with 1.48.x
|
||||||
|
# https://github.com/rust-lang/rust/blob/${PV}/src/stage0.txt
|
||||||
|
RUST_DEP_PREV="$(ver_cut 1).$(($(ver_cut 2) - 1))*"
|
||||||
|
RUST_DEP_CURR="$(ver_cut 1).$(ver_cut 2)*"
|
||||||
|
BOOTSTRAP_DEPEND="||
|
||||||
|
(
|
||||||
|
=dev-lang/rust-"${RUST_DEP_PREV}"
|
||||||
|
=dev-lang/rust-bin-"${RUST_DEP_PREV}"
|
||||||
|
=dev-lang/rust-"${RUST_DEP_CURR}"
|
||||||
|
=dev-lang/rust-bin-"${RUST_DEP_CURR}"
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="${PYTHON_DEPS}
|
||||||
|
app-eselect/eselect-rust
|
||||||
|
|| (
|
||||||
|
>=sys-devel/gcc-4.7
|
||||||
|
>=sys-devel/clang-3.5
|
||||||
|
)
|
||||||
|
system-bootstrap? ( ${BOOTSTRAP_DEPEND} )
|
||||||
|
!system-llvm? (
|
||||||
|
>=dev-util/cmake-3.13.4
|
||||||
|
dev-util/ninja
|
||||||
|
)
|
||||||
|
test? ( sys-devel/gdb )
|
||||||
|
verify-sig? ( sec-keys/openpgp-keys-rust )
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=app-arch/xz-utils-5.2
|
||||||
|
net-misc/curl:=[http2,ssl]
|
||||||
|
sys-libs/zlib:=
|
||||||
|
dev-libs/openssl:0=
|
||||||
|
elibc_musl? ( sys-libs/libunwind:= )
|
||||||
|
system-llvm? ( ${LLVM_DEPEND} )
|
||||||
|
"
|
||||||
|
|
||||||
|
# we need to block older versions due to layout changes.
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
app-eselect/eselect-rust
|
||||||
|
!<dev-lang/rust-1.47.0-r1
|
||||||
|
!<dev-lang/rust-bin-1.47.0-r1
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )
|
||||||
|
miri? ( nightly )
|
||||||
|
parallel-compiler? ( nightly )
|
||||||
|
rls? ( rust-src )
|
||||||
|
test? ( ${ALL_LLVM_TARGETS[*]} )
|
||||||
|
wasm? ( llvm_targets_WebAssembly )
|
||||||
|
x86? ( cpu_flags_x86_sse2 )
|
||||||
|
"
|
||||||
|
|
||||||
|
# we don't use cmake.eclass, but can get a warning
|
||||||
|
CMAKE_WARN_UNUSED_CLI=no
|
||||||
|
|
||||||
|
QA_FLAGS_IGNORED="
|
||||||
|
usr/lib/${PN}/${PV}/bin/.*
|
||||||
|
usr/lib/${PN}/${PV}/libexec/.*
|
||||||
|
usr/lib/${PN}/${PV}/lib/lib.*.so
|
||||||
|
usr/lib/${PN}/${PV}/lib/rustlib/.*/bin/.*
|
||||||
|
usr/lib/${PN}/${PV}/lib/rustlib/.*/lib/lib.*.so
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_SONAME="
|
||||||
|
usr/lib/${PN}/${PV}/lib/lib.*.so.*
|
||||||
|
usr/lib/${PN}/${PV}/lib/rustlib/.*/lib/lib.*.so
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_PRESTRIPPED="
|
||||||
|
usr/lib/rust/${PV}/lib/rustlib/.*/bin/rust-llvm-dwp
|
||||||
|
"
|
||||||
|
# An rmeta file is custom binary format that contains the metadata for the crate.
|
||||||
|
# rmeta files do not support linking, since they do not contain compiled object files.
|
||||||
|
# so we can safely silence the warning for this QA check.
|
||||||
|
QA_EXECSTACK="usr/lib/${PN}/${PV}/lib/rustlib/*/lib*.rlib:lib.rmeta"
|
||||||
|
|
||||||
|
# causes double bootstrap
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/rust.asc
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/1.55.0-ignore-broken-and-non-applicable-tests.patch
|
||||||
|
"${FILESDIR}"/1.49.0-gentoo-musl-target-specs.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}-src"
|
||||||
|
|
||||||
|
toml_usex() {
|
||||||
|
usex "${1}" true false
|
||||||
|
}
|
||||||
|
|
||||||
|
bootstrap_rust_version_check() {
|
||||||
|
# never call from pkg_pretend. eselect-rust may be not installed yet.
|
||||||
|
[[ ${MERGE_TYPE} == binary ]] && return
|
||||||
|
local rustc_wanted="$(ver_cut 1).$(($(ver_cut 2) - 1))"
|
||||||
|
local rustc_toonew="$(ver_cut 1).$(($(ver_cut 2) + 1))"
|
||||||
|
local rustc_version=( $(eselect --brief rust show 2>/dev/null) )
|
||||||
|
rustc_version=${rustc_version[0]#rust-bin-}
|
||||||
|
rustc_version=${rustc_version#rust-}
|
||||||
|
|
||||||
|
[[ -z "${rustc_version}" ]] && die "Failed to determine rust version, check 'eselect rust' output"
|
||||||
|
|
||||||
|
if ver_test "${rustc_version}" -lt "${rustc_wanted}" ; then
|
||||||
|
eerror "Rust >=${rustc_wanted} is required"
|
||||||
|
eerror "please run 'eselect rust' and set correct rust version"
|
||||||
|
die "selected rust version is too old"
|
||||||
|
elif ver_test "${rustc_version}" -ge "${rustc_toonew}" ; then
|
||||||
|
eerror "Rust <${rustc_toonew} is required"
|
||||||
|
eerror "please run 'eselect rust' and set correct rust version"
|
||||||
|
die "selected rust version is too new"
|
||||||
|
else
|
||||||
|
einfo "Using rust ${rustc_version} to build"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_build_checks() {
|
||||||
|
local M=4096
|
||||||
|
# multiply requirements by 1.5 if we are doing x86-multilib
|
||||||
|
if use amd64; then
|
||||||
|
M=$(( $(usex abi_x86_32 15 10) * ${M} / 10 ))
|
||||||
|
fi
|
||||||
|
M=$(( $(usex clippy 128 0) + ${M} ))
|
||||||
|
M=$(( $(usex miri 128 0) + ${M} ))
|
||||||
|
M=$(( $(usex rls 512 0) + ${M} ))
|
||||||
|
M=$(( $(usex rustfmt 256 0) + ${M} ))
|
||||||
|
# add 2G if we compile llvm and 256M per llvm_target
|
||||||
|
if ! use system-llvm; then
|
||||||
|
M=$(( 2048 + ${M} ))
|
||||||
|
local ltarget
|
||||||
|
for ltarget in ${ALL_LLVM_TARGETS[@]}; do
|
||||||
|
M=$(( $(usex ${ltarget} 256 0) + ${M} ))
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
M=$(( $(usex wasm 256 0) + ${M} ))
|
||||||
|
M=$(( $(usex debug 2 1) * ${M} ))
|
||||||
|
eshopts_push -s extglob
|
||||||
|
if is-flagq '-g?(gdb)?([1-9])'; then
|
||||||
|
M=$(( 15 * ${M} / 10 ))
|
||||||
|
fi
|
||||||
|
eshopts_pop
|
||||||
|
M=$(( $(usex system-bootstrap 0 1024) + ${M} ))
|
||||||
|
M=$(( $(usex doc 256 0) + ${M} ))
|
||||||
|
CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE}
|
||||||
|
}
|
||||||
|
|
||||||
|
llvm_check_deps() {
|
||||||
|
has_version -r "sys-devel/llvm:${LLVM_SLOT}[${LLVM_TARGET_USEDEPS// /,}]"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
pre_build_checks
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
pre_build_checks
|
||||||
|
python-any-r1_pkg_setup
|
||||||
|
|
||||||
|
export LIBGIT2_NO_PKG_CONFIG=1 #749381
|
||||||
|
|
||||||
|
use system-bootstrap && bootstrap_rust_version_check
|
||||||
|
|
||||||
|
if use system-llvm; then
|
||||||
|
llvm_pkg_setup
|
||||||
|
|
||||||
|
local llvm_config="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config"
|
||||||
|
export LLVM_LINK_SHARED=1
|
||||||
|
export RUSTFLAGS="${RUSTFLAGS} -Lnative=$("${llvm_config}" --libdir)"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if ! use system-bootstrap; then
|
||||||
|
local rust_stage0_root="${WORKDIR}"/rust-stage0
|
||||||
|
local rust_stage0="rust-${RUST_STAGE0_VERSION}-$(rust_abi)"
|
||||||
|
|
||||||
|
"${WORKDIR}/${rust_stage0}"/install.sh --disable-ldconfig \
|
||||||
|
--without=rust-docs --destdir="${rust_stage0_root}" --prefix=/ || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local rust_target="" rust_targets="" arch_cflags
|
||||||
|
|
||||||
|
# Collect rust target names to compile standard libs for all ABIs.
|
||||||
|
for v in $(multilib_get_enabled_abi_pairs); do
|
||||||
|
rust_targets="${rust_targets},\"$(rust_abi $(get_abi_CHOST ${v##*.}))\""
|
||||||
|
done
|
||||||
|
if use wasm; then
|
||||||
|
rust_targets="${rust_targets},\"wasm32-unknown-unknown\""
|
||||||
|
if use system-llvm; then
|
||||||
|
# un-hardcode rust-lld linker for this target
|
||||||
|
# https://bugs.gentoo.org/715348
|
||||||
|
sed -i '/linker:/ s/rust-lld/wasm-ld/' compiler/rustc_target/src/spec/wasm_base.rs || die
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
rust_targets="${rust_targets#,}"
|
||||||
|
|
||||||
|
local tools="\"cargo\","
|
||||||
|
if use clippy; then
|
||||||
|
tools="\"clippy\",$tools"
|
||||||
|
fi
|
||||||
|
if use miri; then
|
||||||
|
tools="\"miri\",$tools"
|
||||||
|
fi
|
||||||
|
if use rls; then
|
||||||
|
tools="\"rls\",\"analysis\",$tools"
|
||||||
|
fi
|
||||||
|
if use rustfmt; then
|
||||||
|
tools="\"rustfmt\",$tools"
|
||||||
|
fi
|
||||||
|
if use rust-src; then
|
||||||
|
tools="\"src\",$tools"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local rust_stage0_root
|
||||||
|
if use system-bootstrap; then
|
||||||
|
local printsysroot
|
||||||
|
printsysroot="$(rustc --print sysroot || die "Can't determine rust's sysroot")"
|
||||||
|
rust_stage0_root="${printsysroot}"
|
||||||
|
else
|
||||||
|
rust_stage0_root="${WORKDIR}"/rust-stage0
|
||||||
|
fi
|
||||||
|
# in case of prefix it will be already prefixed, as --print sysroot returns full path
|
||||||
|
[[ -d ${rust_stage0_root} ]] || die "${rust_stage0_root} is not a directory"
|
||||||
|
|
||||||
|
rust_target="$(rust_abi)"
|
||||||
|
|
||||||
|
cat <<- _EOF_ > "${S}"/config.toml
|
||||||
|
changelog-seen = 2
|
||||||
|
[llvm]
|
||||||
|
download-ci-llvm = false
|
||||||
|
optimize = $(toml_usex !debug)
|
||||||
|
release-debuginfo = $(toml_usex debug)
|
||||||
|
assertions = $(toml_usex debug)
|
||||||
|
ninja = true
|
||||||
|
targets = "${LLVM_TARGETS// /;}"
|
||||||
|
experimental-targets = ""
|
||||||
|
link-shared = $(toml_usex system-llvm)
|
||||||
|
[build]
|
||||||
|
build-stage = 2
|
||||||
|
test-stage = 2
|
||||||
|
doc-stage = 2
|
||||||
|
build = "${rust_target}"
|
||||||
|
host = ["${rust_target}"]
|
||||||
|
target = [${rust_targets}]
|
||||||
|
cargo = "${rust_stage0_root}/bin/cargo"
|
||||||
|
rustc = "${rust_stage0_root}/bin/rustc"
|
||||||
|
rustfmt = "${rust_stage0_root}/bin/rustfmt"
|
||||||
|
docs = $(toml_usex doc)
|
||||||
|
compiler-docs = false
|
||||||
|
submodules = false
|
||||||
|
python = "${EPYTHON}"
|
||||||
|
locked-deps = true
|
||||||
|
vendor = true
|
||||||
|
extended = true
|
||||||
|
tools = [${tools}]
|
||||||
|
verbose = 2
|
||||||
|
sanitizers = false
|
||||||
|
profiler = false
|
||||||
|
cargo-native-static = false
|
||||||
|
[install]
|
||||||
|
prefix = "${EPREFIX}/usr/lib/${PN}/${PV}"
|
||||||
|
sysconfdir = "etc"
|
||||||
|
docdir = "share/doc/rust"
|
||||||
|
bindir = "bin"
|
||||||
|
libdir = "lib"
|
||||||
|
mandir = "share/man"
|
||||||
|
[rust]
|
||||||
|
# https://github.com/rust-lang/rust/issues/54872
|
||||||
|
codegen-units-std = 1
|
||||||
|
optimize = true
|
||||||
|
debug = $(toml_usex debug)
|
||||||
|
debug-assertions = $(toml_usex debug)
|
||||||
|
debug-assertions-std = $(toml_usex debug)
|
||||||
|
debuginfo-level = $(usex debug 2 0)
|
||||||
|
debuginfo-level-rustc = $(usex debug 2 0)
|
||||||
|
debuginfo-level-std = $(usex debug 2 0)
|
||||||
|
debuginfo-level-tools = $(usex debug 2 0)
|
||||||
|
debuginfo-level-tests = 0
|
||||||
|
backtrace = true
|
||||||
|
incremental = false
|
||||||
|
default-linker = "$(tc-getCC)"
|
||||||
|
parallel-compiler = $(toml_usex parallel-compiler)
|
||||||
|
channel = "$(usex nightly nightly stable)"
|
||||||
|
description = "gentoo"
|
||||||
|
rpath = false
|
||||||
|
verbose-tests = true
|
||||||
|
optimize-tests = $(toml_usex !debug)
|
||||||
|
codegen-tests = true
|
||||||
|
dist-src = false
|
||||||
|
remap-debuginfo = true
|
||||||
|
lld = $(usex system-llvm false $(toml_usex wasm))
|
||||||
|
# only deny warnings if doc+wasm are NOT requested, documenting stage0 wasm std fails without it
|
||||||
|
# https://github.com/rust-lang/rust/issues/74976
|
||||||
|
# https://github.com/rust-lang/rust/issues/76526
|
||||||
|
deny-warnings = $(usex wasm $(usex doc false true) true)
|
||||||
|
backtrace-on-ice = true
|
||||||
|
jemalloc = false
|
||||||
|
[dist]
|
||||||
|
src-tarball = false
|
||||||
|
compression-formats = ["gz"]
|
||||||
|
_EOF_
|
||||||
|
|
||||||
|
for v in $(multilib_get_enabled_abi_pairs); do
|
||||||
|
rust_target=$(rust_abi $(get_abi_CHOST ${v##*.}))
|
||||||
|
arch_cflags="$(get_abi_CFLAGS ${v##*.})"
|
||||||
|
|
||||||
|
cat <<- _EOF_ >> "${S}"/config.env
|
||||||
|
CFLAGS_${rust_target}=${arch_cflags}
|
||||||
|
_EOF_
|
||||||
|
|
||||||
|
cat <<- _EOF_ >> "${S}"/config.toml
|
||||||
|
[target.${rust_target}]
|
||||||
|
ar = "$(tc-getAR)"
|
||||||
|
cc = "$(tc-getCC)"
|
||||||
|
cxx = "$(tc-getCXX)"
|
||||||
|
linker = "$(tc-getCC)"
|
||||||
|
ranlib = "$(tc-getRANLIB)"
|
||||||
|
_EOF_
|
||||||
|
# librustc_target/spec/linux_musl_base.rs sets base.crt_static_default = true;
|
||||||
|
if use elibc_musl; then
|
||||||
|
cat <<- _EOF_ >> "${S}"/config.toml
|
||||||
|
crt-static = false
|
||||||
|
_EOF_
|
||||||
|
fi
|
||||||
|
if use system-llvm; then
|
||||||
|
cat <<- _EOF_ >> "${S}"/config.toml
|
||||||
|
llvm-config = "$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config"
|
||||||
|
_EOF_
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if use wasm; then
|
||||||
|
cat <<- _EOF_ >> "${S}"/config.toml
|
||||||
|
[target.wasm32-unknown-unknown]
|
||||||
|
linker = "$(usex system-llvm lld rust-lld)"
|
||||||
|
_EOF_
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n ${I_KNOW_WHAT_I_AM_DOING_CROSS} ]]; then # whitespace intentionally shifted below
|
||||||
|
# experimental cross support
|
||||||
|
# discussion: https://bugs.gentoo.org/679878
|
||||||
|
# TODO: c*flags, clang, system-llvm, cargo.eclass target support
|
||||||
|
# it would be much better if we could split out stdlib
|
||||||
|
# complilation to separate ebuild and abuse CATEGORY to
|
||||||
|
# just install to /usr/lib/rustlib/<target>
|
||||||
|
|
||||||
|
# extra targets defined as a bash array
|
||||||
|
# spec format: <LLVM target>:<rust-target>:<CTARGET>
|
||||||
|
# best place would be /etc/portage/env/dev-lang/rust
|
||||||
|
# Example:
|
||||||
|
# RUST_CROSS_TARGETS=(
|
||||||
|
# "AArch64:aarch64-unknown-linux-gnu:aarch64-unknown-linux-gnu"
|
||||||
|
# )
|
||||||
|
# no extra hand holding is done, no target transformations, all
|
||||||
|
# values are passed as-is with just basic checks, so it's up to user to supply correct values
|
||||||
|
# valid rust targets can be obtained with
|
||||||
|
# rustc --print target-list
|
||||||
|
# matching cross toolchain has to be installed
|
||||||
|
# matching LLVM_TARGET has to be enabled for both rust and llvm (if using system one)
|
||||||
|
# only gcc toolchains installed with crossdev are checked for now.
|
||||||
|
|
||||||
|
# BUG: we can't pass host flags to cross compiler, so just filter for now
|
||||||
|
# BUG: this should be more fine-grained.
|
||||||
|
filter-flags '-mcpu=*' '-march=*' '-mtune=*'
|
||||||
|
|
||||||
|
local cross_target_spec
|
||||||
|
for cross_target_spec in "${RUST_CROSS_TARGETS[@]}";do
|
||||||
|
# extracts first element form <LLVM target>:<rust-target>:<CTARGET>
|
||||||
|
local cross_llvm_target="${cross_target_spec%%:*}"
|
||||||
|
# extracts toolchain triples, <rust-target>:<CTARGET>
|
||||||
|
local cross_triples="${cross_target_spec#*:}"
|
||||||
|
# extracts first element after before : separator
|
||||||
|
local cross_rust_target="${cross_triples%%:*}"
|
||||||
|
# extracts last element after : separator
|
||||||
|
local cross_toolchain="${cross_triples##*:}"
|
||||||
|
use llvm_targets_${cross_llvm_target} || die "need llvm_targets_${cross_llvm_target} target enabled"
|
||||||
|
command -v ${cross_toolchain}-gcc > /dev/null 2>&1 || die "need ${cross_toolchain} cross toolchain"
|
||||||
|
|
||||||
|
cat <<- _EOF_ >> "${S}"/config.toml
|
||||||
|
[target.${cross_rust_target}]
|
||||||
|
ar = "${cross_toolchain}-ar"
|
||||||
|
cc = "${cross_toolchain}-gcc"
|
||||||
|
cxx = "${cross_toolchain}-g++"
|
||||||
|
linker = "${cross_toolchain}-gcc"
|
||||||
|
ranlib = "${cross_toolchain}-ranlib"
|
||||||
|
_EOF_
|
||||||
|
if use system-llvm; then
|
||||||
|
cat <<- _EOF_ >> "${S}"/config.toml
|
||||||
|
llvm-config = "$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config"
|
||||||
|
_EOF_
|
||||||
|
fi
|
||||||
|
if [[ "${cross_toolchain}" == *-musl* ]]; then
|
||||||
|
cat <<- _EOF_ >> "${S}"/config.toml
|
||||||
|
musl-root = "$(${cross_toolchain}-gcc -print-sysroot)/usr"
|
||||||
|
_EOF_
|
||||||
|
fi
|
||||||
|
|
||||||
|
# append cross target to "normal" target list
|
||||||
|
# example 'target = ["powerpc64le-unknown-linux-gnu"]'
|
||||||
|
# becomes 'target = ["powerpc64le-unknown-linux-gnu","aarch64-unknown-linux-gnu"]'
|
||||||
|
|
||||||
|
rust_targets="${rust_targets},\"${cross_rust_target}\""
|
||||||
|
sed -i "/^target = \[/ s#\[.*\]#\[${rust_targets}\]#" config.toml || die
|
||||||
|
|
||||||
|
ewarn
|
||||||
|
ewarn "Enabled ${cross_rust_target} rust target"
|
||||||
|
ewarn "Using ${cross_toolchain} cross toolchain"
|
||||||
|
ewarn
|
||||||
|
if ! has_version -b 'sys-devel/binutils[multitarget]' ; then
|
||||||
|
ewarn "'sys-devel/binutils[multitarget]' is not installed"
|
||||||
|
ewarn "'strip' will be unable to strip cross libraries"
|
||||||
|
ewarn "cross targets will be installed with full debug information"
|
||||||
|
ewarn "enable 'multitarget' USE flag for binutils to be able to strip object files"
|
||||||
|
ewarn
|
||||||
|
ewarn "Alternatively llvm-strip can be used, it supports stripping any target"
|
||||||
|
ewarn "define STRIP=\"llvm-strip\" to use it (experimental)"
|
||||||
|
ewarn
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi # I_KNOW_WHAT_I_AM_DOING_CROSS
|
||||||
|
|
||||||
|
einfo "Rust configured with the following flags:"
|
||||||
|
echo
|
||||||
|
echo RUSTFLAGS="${RUSTFLAGS:-}"
|
||||||
|
echo RUSTFLAGS_BOOTSTRAP="${RUSTFLAGS_BOOTSTRAP:-}"
|
||||||
|
echo RUSTFLAGS_NOT_BOOTSTRAP="${RUSTFLAGS_NOT_BOOTSTRAP:-}"
|
||||||
|
env | grep "CARGO_TARGET_.*_RUSTFLAGS="
|
||||||
|
cat "${S}"/config.env || die
|
||||||
|
echo
|
||||||
|
einfo "config.toml contents:"
|
||||||
|
cat "${S}"/config.toml || die
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# we need \n IFS to have config.env with spaces loaded properly. #734018
|
||||||
|
(
|
||||||
|
IFS=$'\n'
|
||||||
|
env $(cat "${S}"/config.env) RUST_BACKTRACE=1\
|
||||||
|
"${EPYTHON}" ./x.py build -vv --config="${S}"/config.toml -j$(makeopts_jobs) || die
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# https://rustc-dev-guide.rust-lang.org/tests/intro.html
|
||||||
|
|
||||||
|
# those are basic and codegen tests.
|
||||||
|
local tests=(
|
||||||
|
codegen
|
||||||
|
codegen-units
|
||||||
|
compile-fail
|
||||||
|
incremental
|
||||||
|
mir-opt
|
||||||
|
pretty
|
||||||
|
run-make
|
||||||
|
)
|
||||||
|
|
||||||
|
# fails if llvm is not built with ALL targets.
|
||||||
|
# and known to fail with system llvm sometimes.
|
||||||
|
use system-llvm || tests+=( assembly )
|
||||||
|
|
||||||
|
# fragile/expensive/less important tests
|
||||||
|
# or tests that require extra builds
|
||||||
|
# TODO: instead of skipping, just make some nonfatal.
|
||||||
|
if [[ ${ERUST_RUN_EXTRA_TESTS:-no} != no ]]; then
|
||||||
|
tests+=(
|
||||||
|
rustdoc
|
||||||
|
rustdoc-js
|
||||||
|
rustdoc-js-std
|
||||||
|
rustdoc-ui
|
||||||
|
run-make-fulldeps
|
||||||
|
ui
|
||||||
|
ui-fulldeps
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
local i failed=()
|
||||||
|
einfo "rust_src_test: enabled tests ${tests[@]/#/src/test/}"
|
||||||
|
for i in "${tests[@]}"; do
|
||||||
|
local t="src/test/${i}"
|
||||||
|
einfo "rust_src_test: running ${t}"
|
||||||
|
if ! (
|
||||||
|
IFS=$'\n'
|
||||||
|
env $(cat "${S}"/config.env) RUST_BACKTRACE=1 \
|
||||||
|
"${EPYTHON}" ./x.py test -vv --config="${S}"/config.toml \
|
||||||
|
-j$(makeopts_jobs) --no-doc --no-fail-fast "${t}"
|
||||||
|
)
|
||||||
|
then
|
||||||
|
failed+=( "${t}" )
|
||||||
|
eerror "rust_src_test: ${t} failed"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ ${#failed[@]} -ne 0 ]]; then
|
||||||
|
eerror "rust_src_test: failure summary: ${failed[@]}"
|
||||||
|
die "aborting due to test failures"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
(
|
||||||
|
IFS=$'\n'
|
||||||
|
env $(cat "${S}"/config.env) DESTDIR="${D}" \
|
||||||
|
"${EPYTHON}" ./x.py install -vv --config="${S}"/config.toml -j$(makeopts_jobs) || die
|
||||||
|
)
|
||||||
|
|
||||||
|
# bug #689562, #689160
|
||||||
|
rm -v "${ED}/usr/lib/${PN}/${PV}/etc/bash_completion.d/cargo" || die
|
||||||
|
rmdir -v "${ED}/usr/lib/${PN}/${PV}"/etc{/bash_completion.d,} || die
|
||||||
|
newbashcomp src/tools/cargo/src/etc/cargo.bashcomp.sh cargo
|
||||||
|
|
||||||
|
local symlinks=(
|
||||||
|
cargo
|
||||||
|
rustc
|
||||||
|
rustdoc
|
||||||
|
rust-gdb
|
||||||
|
rust-gdbgui
|
||||||
|
rust-lldb
|
||||||
|
)
|
||||||
|
|
||||||
|
use clippy && symlinks+=( clippy-driver cargo-clippy )
|
||||||
|
use miri && symlinks+=( miri cargo-miri )
|
||||||
|
use rls && symlinks+=( rls )
|
||||||
|
use rustfmt && symlinks+=( rustfmt cargo-fmt )
|
||||||
|
|
||||||
|
einfo "installing eselect-rust symlinks and paths: ${symlinks[@]}"
|
||||||
|
local i
|
||||||
|
for i in "${symlinks[@]}"; do
|
||||||
|
# we need realpath on /usr/bin/* symlink return version-appended binary path.
|
||||||
|
# so /usr/bin/rustc should point to /usr/lib/rust/<ver>/bin/rustc-<ver>
|
||||||
|
# need to fix eselect-rust to remove this hack.
|
||||||
|
local ver_i="${i}-${PV}"
|
||||||
|
if [[ -f "${ED}/usr/lib/${PN}/${PV}/bin/${i}" ]]; then
|
||||||
|
einfo "Installing ${i} symlink"
|
||||||
|
ln -v "${ED}/usr/lib/${PN}/${PV}/bin/${i}" "${ED}/usr/lib/${PN}/${PV}/bin/${ver_i}" || die
|
||||||
|
else
|
||||||
|
ewarn "${i} symlink requested, but source file not found"
|
||||||
|
ewarn "please report this"
|
||||||
|
fi
|
||||||
|
dosym "../lib/${PN}/${PV}/bin/${ver_i}" "/usr/bin/${ver_i}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# symlinks to switch components to active rust in eselect
|
||||||
|
dosym "${PV}/lib" "/usr/lib/${PN}/lib-${PV}"
|
||||||
|
dosym "${PV}/libexec" "/usr/lib/${PN}/libexec-${PV}"
|
||||||
|
dosym "${PV}/share/man" "/usr/lib/${PN}/man-${PV}"
|
||||||
|
dosym "rust/${PV}/lib/rustlib" "/usr/lib/rustlib-${PV}"
|
||||||
|
dosym "../../lib/${PN}/${PV}/share/doc/rust" "/usr/share/doc/${P}"
|
||||||
|
|
||||||
|
newenvd - "50${P}" <<-_EOF_
|
||||||
|
LDPATH="${EPREFIX}/usr/lib/rust/lib"
|
||||||
|
MANPATH="${EPREFIX}/usr/lib/rust/man"
|
||||||
|
$(use amd64 && usex elibc_musl 'CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-C target-feature=-crt-static"' '')
|
||||||
|
$(use arm64 && usex elibc_musl 'CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-C target-feature=-crt-static"' '')
|
||||||
|
_EOF_
|
||||||
|
|
||||||
|
rm -rf "${ED}/usr/lib/${PN}/${PV}"/*.old || die
|
||||||
|
rm -rf "${ED}/usr/lib/${PN}/${PV}/doc"/*.old || die
|
||||||
|
|
||||||
|
# note: eselect-rust adds EROOT to all paths below
|
||||||
|
cat <<-_EOF_ > "${T}/provider-${P}"
|
||||||
|
/usr/bin/cargo
|
||||||
|
/usr/bin/rustdoc
|
||||||
|
/usr/bin/rust-gdb
|
||||||
|
/usr/bin/rust-gdbgui
|
||||||
|
/usr/bin/rust-lldb
|
||||||
|
/usr/lib/rustlib
|
||||||
|
/usr/lib/rust/lib
|
||||||
|
/usr/lib/rust/libexec
|
||||||
|
/usr/lib/rust/man
|
||||||
|
/usr/share/doc/rust
|
||||||
|
_EOF_
|
||||||
|
|
||||||
|
if use clippy; then
|
||||||
|
echo /usr/bin/clippy-driver >> "${T}/provider-${P}"
|
||||||
|
echo /usr/bin/cargo-clippy >> "${T}/provider-${P}"
|
||||||
|
fi
|
||||||
|
if use miri; then
|
||||||
|
echo /usr/bin/miri >> "${T}/provider-${P}"
|
||||||
|
echo /usr/bin/cargo-miri >> "${T}/provider-${P}"
|
||||||
|
fi
|
||||||
|
if use rls; then
|
||||||
|
echo /usr/bin/rls >> "${T}/provider-${P}"
|
||||||
|
fi
|
||||||
|
if use rustfmt; then
|
||||||
|
echo /usr/bin/rustfmt >> "${T}/provider-${P}"
|
||||||
|
echo /usr/bin/cargo-fmt >> "${T}/provider-${P}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
insinto /etc/env.d/rust
|
||||||
|
doins "${T}/provider-${P}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
eselect rust update
|
||||||
|
|
||||||
|
if has_version sys-devel/gdb || has_version dev-util/lldb; then
|
||||||
|
elog "Rust installs a helper script for calling GDB and LLDB,"
|
||||||
|
elog "for your convenience it is installed under /usr/bin/rust-{gdb,lldb}-${PV}."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if has_version app-editors/emacs; then
|
||||||
|
elog "install app-emacs/rust-mode to get emacs support for rust."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if has_version app-editors/gvim || has_version app-editors/vim; then
|
||||||
|
elog "install app-vim/rust-vim to get vim support for rust."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
eselect rust cleanup
|
||||||
|
}
|
Binary file not shown.
@ -1,3 +1 @@
|
|||||||
DIST libbpf-0.5.0.tar.gz 815083 BLAKE2B 9097d808f03cbbe61cd59b24347075e2937603f51350f83f8897123900c911392d7545af8135f39f749132c6518296f1a4d22d37c0c7b4371631f5c63a0dd9ac SHA512 3c578d3e6e93a306a1f182978e54f35fec8acfa51fad5d7de72c5003f10c266d7474e82d6dd045311fcaf8c18aa8cebe64a3336a458a9ea477e5a58e5111dd85
|
|
||||||
DIST libbpf-0.6.0.tar.gz 858210 BLAKE2B a6076ae7465eb9c99ff1b2c63a388ef2d15c71882d7de0b5279604ad7b91ef3fce583c88710126a9384d96a810775409daadb0adaea41dd9dfc12af183fa50d7 SHA512 923eac64dca015939cbbd51cb0a7daf609d9873d249d6e621d73776b51c52f6087f2a957976163474d359a471250b27b44ad93179948335e949a82ed9613ed43
|
|
||||||
DIST libbpf-0.6.1.tar.gz 858232 BLAKE2B 239e7bf47c24d09eb8e177e61d00bd834a0155c8773918246514858fe27688911f79dc4a22d02ab256c7c137010875f8d39d4fec9cecfd7a2b77e6b4df7610ea SHA512 5a8ca70c571fb306dd280f0526db48b78b13b57b4012f7bd3933d6e07d5e41e9370b2db6ed9bbc283c6dcbb21036810bf3093f462906b66557ce0d850c89083a
|
DIST libbpf-0.6.1.tar.gz 858232 BLAKE2B 239e7bf47c24d09eb8e177e61d00bd834a0155c8773918246514858fe27688911f79dc4a22d02ab256c7c137010875f8d39d4fec9cecfd7a2b77e6b4df7610ea SHA512 5a8ca70c571fb306dd280f0526db48b78b13b57b4012f7bd3933d6e07d5e41e9370b2db6ed9bbc283c6dcbb21036810bf3093f462906b66557ce0d850c89083a
|
||||||
|
@ -1,51 +0,0 @@
|
|||||||
# Copyright 2019-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit flag-o-matic toolchain-funcs
|
|
||||||
|
|
||||||
if [[ ${PV} =~ [9]{4,} ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/libbpf/libbpf.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P}/src"
|
|
||||||
|
|
||||||
DESCRIPTION="Stand-alone build of libbpf from the Linux kernel"
|
|
||||||
HOMEPAGE="https://github.com/libbpf/libbpf"
|
|
||||||
|
|
||||||
LICENSE="GPL-2 LGPL-2.1 BSD-2"
|
|
||||||
SLOT="0/${PV}"
|
|
||||||
IUSE="static-libs"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
sys-kernel/linux-headers
|
|
||||||
virtual/libelf"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/libbpf-9999-paths.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
append-cflags -fPIC
|
|
||||||
tc-export CC AR
|
|
||||||
export LIBSUBDIR="$(get_libdir)"
|
|
||||||
export V=1
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake \
|
|
||||||
DESTDIR="${D}" \
|
|
||||||
install install_uapi_headers
|
|
||||||
|
|
||||||
if ! use static-libs; then
|
|
||||||
find "${ED}" -name '*.a' -delete || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
insinto /usr/$(get_libdir)/pkgconfig
|
|
||||||
doins ${PN}.pc
|
|
||||||
}
|
|
@ -1,51 +0,0 @@
|
|||||||
# Copyright 2019-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit flag-o-matic toolchain-funcs
|
|
||||||
|
|
||||||
if [[ ${PV} =~ [9]{4,} ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/libbpf/libbpf.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/${P}/src"
|
|
||||||
|
|
||||||
DESCRIPTION="Stand-alone build of libbpf from the Linux kernel"
|
|
||||||
HOMEPAGE="https://github.com/libbpf/libbpf"
|
|
||||||
|
|
||||||
LICENSE="GPL-2 LGPL-2.1 BSD-2"
|
|
||||||
SLOT="0/$(ver_cut 1-2 ${PV})"
|
|
||||||
IUSE="static-libs"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
sys-kernel/linux-headers
|
|
||||||
virtual/libelf
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/libbpf-9999-paths.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
append-cflags -fPIC
|
|
||||||
tc-export CC AR
|
|
||||||
export LIBSUBDIR="$(get_libdir)" V=1
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake \
|
|
||||||
DESTDIR="${D}" \
|
|
||||||
install install_uapi_headers
|
|
||||||
|
|
||||||
if ! use static-libs; then
|
|
||||||
find "${ED}" -name '*.a' -delete || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
insinto /usr/$(get_libdir)/pkgconfig
|
|
||||||
doins ${PN}.pc
|
|
||||||
}
|
|
@ -1,9 +1,9 @@
|
|||||||
# Copyright 2019-2021 Gentoo Authors
|
# Copyright 2019-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=8
|
||||||
|
|
||||||
inherit cmake-utils
|
inherit cmake
|
||||||
|
|
||||||
DESCRIPTION="The pure C++ implementation of the MMTF API, decoder and encoder"
|
DESCRIPTION="The pure C++ implementation of the MMTF API, decoder and encoder"
|
||||||
HOMEPAGE="https://github.com/rcsb/mmtf-cpp"
|
HOMEPAGE="https://github.com/rcsb/mmtf-cpp"
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,59 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="The AWS SDK for Python"
|
||||||
|
HOMEPAGE="https://github.com/boto/boto3"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/boto/boto3"
|
||||||
|
inherit git-r3
|
||||||
|
BOTOCORE_PV=${PV}
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
# botocore is x.(y+3).z
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source \
|
||||||
|
'dev-python/guzzle_sphinx_theme'
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# don't lock versions to narrow ranges
|
||||||
|
sed -e '/botocore/ d' \
|
||||||
|
-e '/jmespath/ d' \
|
||||||
|
-e '/s3transfer/ d' \
|
||||||
|
-i setup.py || die
|
||||||
|
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
epytest tests/{functional,unit}
|
||||||
|
}
|
@ -0,0 +1,65 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Low-level, data-driven core of boto 3"
|
||||||
|
HOMEPAGE="https://github.com/boto/botocore"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/boto/botocore"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jmespath[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source \
|
||||||
|
'dev-python/guzzle_sphinx_theme'
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# unpin deps
|
||||||
|
sed -i -e "s:>=.*':':" setup.py || die
|
||||||
|
|
||||||
|
# unbundle deps
|
||||||
|
rm -r botocore/vendored || die
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# rely on bundled six
|
||||||
|
tests/functional/test_six_imports.py::test_no_bare_six_imports
|
||||||
|
tests/functional/test_six_threading.py::test_six_thread_safety
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_install_for_testing --via-venv
|
||||||
|
epytest tests/{functional,unit}
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST django-timezone-field-4.2.1.gh.tar.gz 23457 BLAKE2B 72452a21e6e086363da2ef40389d12b79860f66706e54fb9050ffe48f7fa6ad2908c75d4c7e17a79df339eac76492599dd4533ddca69a5b8757b46a36ed4b0fc SHA512 4c2da420c3aaffa23d8cdb66dbbe4b2ea8638de5a45d9e381bf9af980e52eba77fc03a2b8fee8497662199cdc9436d56543c0f6316e74ae5da68187a305c34a2
|
DIST django-timezone-field-4.2.1.gh.tar.gz 23457 BLAKE2B 72452a21e6e086363da2ef40389d12b79860f66706e54fb9050ffe48f7fa6ad2908c75d4c7e17a79df339eac76492599dd4533ddca69a5b8757b46a36ed4b0fc SHA512 4c2da420c3aaffa23d8cdb66dbbe4b2ea8638de5a45d9e381bf9af980e52eba77fc03a2b8fee8497662199cdc9436d56543c0f6316e74ae5da68187a305c34a2
|
||||||
|
DIST django-timezone-field-4.2.3.gh.tar.gz 23605 BLAKE2B d183fb57254a6a1c86ca57558b88d5429d1d4d368c2cbf2f7a7f4d5414432fd80c5ae1df30793da185d5347afe8535dd821e7e605fb0693f26619b319894a6a3 SHA512 1a72ee557b5b527d2aeae9033c765272ebdd017d9e05708734e9bcdf6355e2747e1ce920a542dbead2d8fc6043024ece24adb3b27ccd6d0f2c8e5b3eb907e012
|
||||||
|
@ -0,0 +1,36 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A Django app providing database and form fields for pytz timezone objects"
|
||||||
|
HOMEPAGE="https://github.com/mfogel/django-timezone-field"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/mfogel/django-timezone-field/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/django-2.2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytz[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/djangorestframework[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-django[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local -x DB_ENGINE=sqlite
|
||||||
|
epytest
|
||||||
|
}
|
@ -1,4 +1,2 @@
|
|||||||
DIST flit-3.4.0.tar.gz 120418 BLAKE2B e99eb67daa9a1d8e738ff9b917117edaf7372bbe267163f8af64967e43c3bed94893849e9752d36d3965e70c798dd3fb3b454131cee2d34697cc389f11aaea69 SHA512 18f1d1cb86508e76b4e37e6c1ca2c414400c86e9163bcc52fd3358220e5b4362da4001da7ce427926c62ad67ee86799ea8d08e858e5e17230941c529b9995ce5
|
|
||||||
DIST flit-3.5.0.tar.gz 122519 BLAKE2B 3c3eee652f090afd1c07e8a5cd1b154e7390ed621ab202ded3b4664d59ccfa2fd827928451f6d8928573d012cb9f6b44544c48540e03b2918d32ae3ba9169838 SHA512 e2239c209f735f11aeec8672aa14449fe4b6e1d2ed6523d661edb730f0b9f93b2794c6676bf878c09bd27966a9f8b9c19e6a7f14063c6efed4d8bc043b4cd2db
|
|
||||||
DIST flit-3.5.1.tar.gz 122689 BLAKE2B 49be251df549783114c6758fa688d00fe18ed88d215f91783ce78eda722ee3d8578d83781a1a5c9ee61dd001c82df010c879dc742a1829c2ba8bcf5edb930556 SHA512 00e884774c7f59dfb54d6db09f65ac0ed47f1dd23872d6913f3a41de7242fb3829b2edacd03d08e080635c0a515521333aa74e6d26a2faa5fc02e56454b2b37a
|
DIST flit-3.5.1.tar.gz 122689 BLAKE2B 49be251df549783114c6758fa688d00fe18ed88d215f91783ce78eda722ee3d8578d83781a1a5c9ee61dd001c82df010c879dc742a1829c2ba8bcf5edb930556 SHA512 00e884774c7f59dfb54d6db09f65ac0ed47f1dd23872d6913f3a41de7242fb3829b2edacd03d08e080635c0a515521333aa74e6d26a2faa5fc02e56454b2b37a
|
||||||
DIST flit-3.6.0.tar.gz 133365 BLAKE2B c4170eeded3c15a93c8e89b9483459247228136bc5ff32c6edb8cd9a4b5c3171fe381d0a1b4e325ed863457c2bce476efe3276455d5b9e4279a702dd35ed4512 SHA512 6506ecc73f9e0373e84b5b90a3d567f1edad6d95561886ff1f08f37addfc39006e75ab199c376a7d18452f6b8e2cbdd9e8f59a1fc96037702c3c682dc0b5a757
|
DIST flit-3.6.0.tar.gz 133365 BLAKE2B c4170eeded3c15a93c8e89b9483459247228136bc5ff32c6edb8cd9a4b5c3171fe381d0a1b4e325ed863457c2bce476efe3276455d5b9e4279a702dd35ed4512 SHA512 6506ecc73f9e0373e84b5b90a3d567f1edad6d95561886ff1f08f37addfc39006e75ab199c376a7d18452f6b8e2cbdd9e8f59a1fc96037702c3c682dc0b5a757
|
||||||
|
@ -1,42 +0,0 @@
|
|||||||
# Copyright 2019-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_USE_SETUPTOOLS=pyproject.toml
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Simplified packaging of Python modules"
|
|
||||||
HOMEPAGE="https://github.com/takluyver/flit https://flit.readthedocs.io/"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-python/docutils[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/flit_core-3.2.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/intreehooks[${PYTHON_USEDEP}]
|
|
||||||
dev-python/requests[${PYTHON_USEDEP}]
|
|
||||||
dev-python/requests_download[${PYTHON_USEDEP}]
|
|
||||||
dev-python/tomli[${PYTHON_USEDEP}]
|
|
||||||
dev-python/tomli-w[${PYTHON_USEDEP}]
|
|
||||||
"
|
|
||||||
BDEPEND="${RDEPEND}
|
|
||||||
sys-apps/grep
|
|
||||||
test? (
|
|
||||||
dev-python/responses[${PYTHON_USEDEP}]
|
|
||||||
dev-python/testpath[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/flit-3.2.0-tests.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
distutils_enable_sphinx doc \
|
|
||||||
dev-python/sphinxcontrib-github-alt \
|
|
||||||
dev-python/pygments-github-lexers \
|
|
@ -1,42 +0,0 @@
|
|||||||
# Copyright 2019-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_USE_SETUPTOOLS=pyproject.toml
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Simplified packaging of Python modules"
|
|
||||||
HOMEPAGE="https://github.com/takluyver/flit https://flit.readthedocs.io/"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-python/docutils[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/flit_core-3.2.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/intreehooks[${PYTHON_USEDEP}]
|
|
||||||
dev-python/requests[${PYTHON_USEDEP}]
|
|
||||||
dev-python/requests_download[${PYTHON_USEDEP}]
|
|
||||||
dev-python/tomli[${PYTHON_USEDEP}]
|
|
||||||
dev-python/tomli-w[${PYTHON_USEDEP}]
|
|
||||||
"
|
|
||||||
BDEPEND="${RDEPEND}
|
|
||||||
sys-apps/grep
|
|
||||||
test? (
|
|
||||||
dev-python/responses[${PYTHON_USEDEP}]
|
|
||||||
dev-python/testpath[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/flit-3.2.0-tests.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
distutils_enable_sphinx doc \
|
|
||||||
dev-python/sphinxcontrib-github-alt \
|
|
||||||
dev-python/pygments-github-lexers \
|
|
@ -1,3 +1,2 @@
|
|||||||
DIST gmpy2-2.1.0.tar.gz 258571 BLAKE2B 942786c9a2e1220ecad15e97c26cbea0b93c7719e5081f6defe7b71d43be0c4ce259355eb34fa013a0b90679022535a271f26425c615e65103d3a2705b27ec8e SHA512 0d62354a1446708548b8dfdc6d7f8000151eb5901251f87f935144f615fd586726617c7a2bd05b91dc3e2a0cfc8797cd81d60afb8c705da153b537345eaddb34
|
|
||||||
DIST gmpy2-2.1.1.tar.gz 258607 BLAKE2B 3c070d101066fb0ba5da61b8c1eacf6bbd334aed987161091f31bccc1e836430cb844e0fdcb5017718341761f54c0fc3290e37ace28a5c4fc07930a194e77256 SHA512 37a08b546476f1b49cdfdb04b3a6d4da266615f789eb03896d5e2dd326c91f0fb9523504414b0de30e7265840e2ef77362a5ff011906952100c8b1da4d88d709
|
DIST gmpy2-2.1.1.tar.gz 258607 BLAKE2B 3c070d101066fb0ba5da61b8c1eacf6bbd334aed987161091f31bccc1e836430cb844e0fdcb5017718341761f54c0fc3290e37ace28a5c4fc07930a194e77256 SHA512 37a08b546476f1b49cdfdb04b3a6d4da266615f789eb03896d5e2dd326c91f0fb9523504414b0de30e7265840e2ef77362a5ff011906952100c8b1da4d88d709
|
||||||
DIST gmpy2-2.1.2.tar.gz 258445 BLAKE2B 5fd89478bb7c48c317a7af74fd872e5a9c1141f8f23c110aba7298d1a325caa13e24f1a2e601d6b3c6f6af30d60505f9161a03def16df59dddabe611fb600ef4 SHA512 abfeb0d8a155235e3aa797ca7b34ab6947f0714273e9d381167a9f6273bad34689e1985c139080b146e072b5bfbb4fa2b937566a14f4b94cc09ed21b3f2082b7
|
DIST gmpy2-2.1.2.tar.gz 258445 BLAKE2B 5fd89478bb7c48c317a7af74fd872e5a9c1141f8f23c110aba7298d1a325caa13e24f1a2e601d6b3c6f6af30d60505f9161a03def16df59dddabe611fb600ef4 SHA512 abfeb0d8a155235e3aa797ca7b34ab6947f0714273e9d381167a9f6273bad34689e1985c139080b146e072b5bfbb4fa2b937566a14f4b94cc09ed21b3f2082b7
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
MY_PN="${PN}2"
|
|
||||||
MY_P="${MY_PN}-${PV/_beta/b}"
|
|
||||||
|
|
||||||
DESCRIPTION="Python bindings for GMP, MPC, MPFR and MPIR libraries"
|
|
||||||
HOMEPAGE="https://github.com/aleaxit/gmpy"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
||||||
S="${WORKDIR}"/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="LGPL-3+"
|
|
||||||
SLOT="2"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/mpc-1.0.2:=
|
|
||||||
>=dev-libs/mpfr-3.1.2:=
|
|
||||||
dev-libs/gmp:0=
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
# The tests program asks for input when running, disable that
|
|
||||||
"${FILESDIR}"/gmpy-2.1.0_beta5-test-input.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
distutils_enable_sphinx docs
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
cd test || die
|
|
||||||
"${EPYTHON}" runtests.py || die "tests failed under ${EPYTHON}"
|
|
||||||
}
|
|
@ -1 +1,2 @@
|
|||||||
DIST google-api-python-client-2.34.0.tar.gz 28469433 BLAKE2B aa2c8849b629fe489cf39cddd410a40a0af0bddfa5f370a4a41c1446aeadf69cd4592eeb1d76e6c63da9737906801aea9c8a4d706328b63a7bf5b34a43b83e00 SHA512 321dfdd3ba821beabc6c3a96575afd06c75a0c8e3db61b1ff5fa9db472e62de81b037c435a1051d6294c2a37e471bcaa068cd27ad7434a3416231d31931dd74e
|
DIST google-api-python-client-2.34.0.tar.gz 28469433 BLAKE2B aa2c8849b629fe489cf39cddd410a40a0af0bddfa5f370a4a41c1446aeadf69cd4592eeb1d76e6c63da9737906801aea9c8a4d706328b63a7bf5b34a43b83e00 SHA512 321dfdd3ba821beabc6c3a96575afd06c75a0c8e3db61b1ff5fa9db472e62de81b037c435a1051d6294c2a37e471bcaa068cd27ad7434a3416231d31931dd74e
|
||||||
|
DIST google-api-python-client-2.35.0.tar.gz 28553015 BLAKE2B 8ff92145f280e090b8f43c10e425dd4a8fe65b4cf565c5b5a0df2813cdb8ba1bcea50e37556efb9dd0b270a21fe11b7d6d1b445c8fdaa83326c7dc6230ee1fdb SHA512 4d0325b79250a26ae252568759e8345d31d692aa1d8f1d7aae623bb9a1a950efae654cd689d39f30450789c6d4fa9ca264111f8a9e798820cf6d0c3acba904f6
|
||||||
|
@ -0,0 +1,45 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..9} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Google API Client for Python"
|
||||||
|
HOMEPAGE="https://github.com/googleapis/google-api-python-client"
|
||||||
|
SRC_URI="https://github.com/googleapis/google-api-python-client/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/httplib2-0.15[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/httplib2-1[${PYTHON_USEDEP}]
|
||||||
|
dev-python/google-api-core[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/google-auth-1.35.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/google-auth-httplib2-0.1.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/uritemplate-3.0.0[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/uritemplate-5[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/oauth2client[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pandas[${PYTHON_USEDEP}]
|
||||||
|
dev-python/parameterized[${PYTHON_USEDEP}]
|
||||||
|
)"
|
||||||
|
|
||||||
|
distutils_enable_tests --install pytest
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# require Internet access (and credentials)
|
||||||
|
tests/test_discovery.py::DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive
|
||||||
|
tests/test_discovery.py::DiscoveryFromDocument::test_api_endpoint_override_from_client_options_mapping_object
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_install_for_testing
|
||||||
|
epytest tests
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="File identification library for Python"
|
||||||
|
HOMEPAGE="https://github.com/pre-commit/identify"
|
||||||
|
SRC_URI="https://github.com/pre-commit/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
|
||||||
|
|
||||||
|
RDEPEND="dev-python/ukkonen[${PYTHON_USEDEP}]"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
@ -0,0 +1,2 @@
|
|||||||
|
DIST installer-0.4.0-py2.py3-none-any.whl.zip 451433 BLAKE2B 933b7e63b3d0306213789d493d4df112df26b432d63ecd1f8f21449520c34bd2ad542aac25069043fbb535c44f988dca927625eafd0a5a20489fc3ce2bcf84a2 SHA512 cf303bb422e329a36007b361034144a232ba021d4013bb8678dc7c326544e74ec9a3b3fe8b9d3696433dbbe90d2ce4a0ae8967fb054bd5ed49321d470be729a8
|
||||||
|
DIST installer-0.4.0.gh.tar.gz 466643 BLAKE2B 635854b3461995cda3b7afa507ca3fe35cae8210e79de0bbd46938c8f103d7840ceca8bb388c2c9533efc78150691f980c478485ee33bafe0bae6c08a6aef8c4 SHA512 13537c479bc8ead8f8b45c8e5c5182e8b1b32c2889df8015be7f517f390a9efbea6fa167e0886dfade6621a8a2d822bfd662ee0238d3d86689619ca4d5483b26
|
@ -0,0 +1,47 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=manual
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A library for installing Python wheels"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/installer/
|
||||||
|
https://github.com/pradyunsg/installer/
|
||||||
|
https://installer.readthedocs.io/en/latest/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/pradyunsg/installer/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
https://files.pythonhosted.org/packages/py2.py3/${PN::1}/${PN}/${P}-py2.py3-none-any.whl
|
||||||
|
-> ${P}-py2.py3-none-any.whl.zip
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
# NB: newer git doesn't use mock anymore
|
||||||
|
BDEPEND="
|
||||||
|
app-arch/unzip
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
# do not use any build system to avoid circular deps
|
||||||
|
python_compile() { :; }
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local -x PYTHONPATH=src
|
||||||
|
epytest
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install() {
|
||||||
|
python_domodule src/installer "${WORKDIR}"/*.dist-info
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>python@gentoo.org</email>
|
||||||
|
<name>Python</name>
|
||||||
|
</maintainer>
|
||||||
|
<stabilize-allarches/>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="pypi">installer</remote-id>
|
||||||
|
<remote-id type="github">pradyunsg/installer</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
@ -1,4 +1,2 @@
|
|||||||
DIST ipykernel-6.4.2.tar.gz 121253 BLAKE2B 26f8f94df823dd7a4ac41cac574e70ae98eed64f88bbcd8ce600ce6dfe1c43c224d65b5d0f9586ad05829692142e37fbb685a5d577047791831f6138b8309556 SHA512 56f0a15a1f06628e8f74749e4bad4a65dcc78ba7ff45e4fa5802d232e427e4ec152a6b6697302488d2e05d6b0cfa0cbc106ea2a593ab43de9d9defa9c169d5a6
|
|
||||||
DIST ipykernel-6.5.0.tar.gz 122962 BLAKE2B fa36ea41d7f2dc8d0d75144f421ea2a72dd50dcda6c6a91f625f18c35ed2ebb950aadfb1715dd57a1fda77bfb49e360bca87f0bd8b9ee8380399d41691db2b9a SHA512 440407818ed6f388f10a727a9be1a2588bf8c9699d66e1b954a1f64575c08b5bddb3978dd13f5ab26220a210ce7177e2be0374d48d3968df681d2d5311ce42d1
|
|
||||||
DIST ipykernel-6.6.0.tar.gz 123747 BLAKE2B b1e836ac08e24baf3311e34e1323362bec94f8a59ba4cd824703f03370031226f9af41f864930c6fb59216d185e3c7e8798d6b91e88aa6ca0c214df33c6d7d37 SHA512 bf55e26a4bca0d02f4bbb87ce53a224d22a4765596f0f5d7a6d576bfa100436f676df59fa934e1d6ec66f8d802a1c7f787a9a31b906ecaa1ffd8a77fa3d96127
|
DIST ipykernel-6.6.0.tar.gz 123747 BLAKE2B b1e836ac08e24baf3311e34e1323362bec94f8a59ba4cd824703f03370031226f9af41f864930c6fb59216d185e3c7e8798d6b91e88aa6ca0c214df33c6d7d37 SHA512 bf55e26a4bca0d02f4bbb87ce53a224d22a4765596f0f5d7a6d576bfa100436f676df59fa934e1d6ec66f8d802a1c7f787a9a31b906ecaa1ffd8a77fa3d96127
|
||||||
DIST ipykernel-6.6.1.tar.gz 123915 BLAKE2B 136a3acdea6790d4666c3f5b0d040a91be405ff35e510456d920d0d2d2fb4f4076eb8e74089d08c42f0eba50caa48da929c1a684ad414919a67748f13d6fdf78 SHA512 bfe37f3d69c9b05f9bbbdec7f2103c353433b402474507a9d17c02f224e3a80eaea010b5a8bcebfd4410fbba661feae74107a4904c0af7835c6c1aa6bd0c1159
|
DIST ipykernel-6.6.1.tar.gz 123915 BLAKE2B 136a3acdea6790d4666c3f5b0d040a91be405ff35e510456d920d0d2d2fb4f4076eb8e74089d08c42f0eba50caa48da929c1a684ad414919a67748f13d6fdf78 SHA512 bfe37f3d69c9b05f9bbbdec7f2103c353433b402474507a9d17c02f224e3a80eaea010b5a8bcebfd4410fbba661feae74107a4904c0af7835c6c1aa6bd0c1159
|
||||||
|
@ -1,55 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
|
||||||
PYTHON_REQ_USE="threads(+)"
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="IPython Kernel for Jupyter"
|
|
||||||
HOMEPAGE="https://github.com/ipython/ipykernel"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 arm arm64 hppa ppc ppc64 ~riscv sparc x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-python/ipython_genutils[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/debugpy-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/debugpy-2.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/ipython-7.23.1[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/ipython-8.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/traitlets-4.1.0[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/traitlets-6.0[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/jupyter_client-8.0[${PYTHON_USEDEP}]
|
|
||||||
>=www-servers/tornado-4.2[${PYTHON_USEDEP}]
|
|
||||||
<www-servers/tornado-7.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/matplotlib-inline-0.1.0[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/matplotlib-inline-0.2.0[${PYTHON_USEDEP}]
|
|
||||||
"
|
|
||||||
# RDEPEND seems specifically needed in BDEPEND, at least jupyter
|
|
||||||
# bug #816486
|
|
||||||
BDEPEND="
|
|
||||||
${RDEPEND}
|
|
||||||
test? (
|
|
||||||
dev-python/flaky[${PYTHON_USEDEP}]
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}]
|
|
||||||
dev-python/nose_warnings_filters[${PYTHON_USEDEP}]
|
|
||||||
dev-python/ipyparallel[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
distutils-r1_src_install
|
|
||||||
# Use python3 in kernel.json configuration, bug #784764
|
|
||||||
sed -i -e '/python3.[0-9]\+/s//python3/' \
|
|
||||||
"${ED}"/usr/share/jupyter/kernels/python3/kernel.json || die
|
|
||||||
}
|
|
@ -1,62 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
|
||||||
PYTHON_REQ_USE="threads(+)"
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="IPython Kernel for Jupyter"
|
|
||||||
HOMEPAGE="https://github.com/ipython/ipykernel"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
<dev-python/importlib_metadata-5.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/argcomplete-1.12.3[${PYTHON_USEDEP}]
|
|
||||||
' python3_8 pypy3)
|
|
||||||
>=dev-python/debugpy-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/debugpy-2.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/ipython-7.23.1[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/ipython-8.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/traitlets-5.1.0[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/traitlets-6.0[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/jupyter_client-8.0[${PYTHON_USEDEP}]
|
|
||||||
>=www-servers/tornado-4.2[${PYTHON_USEDEP}]
|
|
||||||
<www-servers/tornado-7.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/matplotlib-inline-0.1.0[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/matplotlib-inline-0.2.0[${PYTHON_USEDEP}]
|
|
||||||
"
|
|
||||||
# RDEPEND seems specifically needed in BDEPEND, at least jupyter
|
|
||||||
# bug #816486
|
|
||||||
BDEPEND="
|
|
||||||
${RDEPEND}
|
|
||||||
test? (
|
|
||||||
dev-python/flaky[${PYTHON_USEDEP}]
|
|
||||||
dev-python/nose[${PYTHON_USEDEP}]
|
|
||||||
dev-python/nose_warnings_filters[${PYTHON_USEDEP}]
|
|
||||||
dev-python/ipyparallel[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-6.5.0-drop-pytest-cov.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
distutils-r1_src_install
|
|
||||||
# Use python3 in kernel.json configuration, bug #784764
|
|
||||||
sed -i -e '/python3.[0-9]\+/s//python3/' \
|
|
||||||
"${ED}"/usr/share/jupyter/kernels/python3/kernel.json || die
|
|
||||||
}
|
|
@ -1,2 +1 @@
|
|||||||
DIST isodate-0.6.0.tar.gz 28480 BLAKE2B a7499c736b67193ac73026df7a7c9d9bd5b743a5d556fe5e8ba0a62e8a5238d64afb88547a27e4bcbe706483e3e1e97eecd437e4e1c730c20652cff5926502fc SHA512 e977748e13ee2c94ab47bfc47113d152280e9acff6f70e773de73717392148dd2c111a7db2d9fa3679d37936c6ed9a23dc526cb00bd601df45459b6a244f9f7d
|
|
||||||
DIST isodate-0.6.1.tar.gz 28443 BLAKE2B 2b451e4dd9a9979feb930090cf045b21c984e962222edc59eff6f08a448258833ac5c368701ed2a703d48c1238122cbe7f628d136124920730bbd96fa04519dc SHA512 437e420ec7ee68dedded825f30d3289eeb0da526208443e5a8e50fe70f12309515e1285b21132d26e6d4c1683f90dfa1d401582042b5e4381fe7ab0e34af26b6
|
DIST isodate-0.6.1.tar.gz 28443 BLAKE2B 2b451e4dd9a9979feb930090cf045b21c984e962222edc59eff6f08a448258833ac5c368701ed2a703d48c1238122cbe7f628d136124920730bbd96fa04519dc SHA512 437e420ec7ee68dedded825f30d3289eeb0da526208443e5a8e50fe70f12309515e1285b21132d26e6d4c1683f90dfa1d401582042b5e4381fe7ab0e34af26b6
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue