parent
c7d5fed1ca
commit
34f1aa2f6a
Binary file not shown.
Binary file not shown.
@ -0,0 +1,71 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||
|
||||
MY_P=aws-cli-${PV}
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="
|
||||
https://github.com/aws/aws-cli/
|
||||
https://pypi.org/project/awscli/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
# botocore is x.(y+2).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(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}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests 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() {
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||
}
|
||||
|
||||
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
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
DIST consul-1.12.0-deps.tar.xz 252403904 BLAKE2B 742eaeaf4c24276de9b66d8d6b8f3b51d836d41b8466e7be23a00e3787132f8a0ffad7bf6e8c288797d8de52885ec4c72f43206022d6d4d2a1b89febd878531d SHA512 11087675a0d353c94576609986a7ddf777e8454e90161e35f80f1592ea3af48477684ec63d1ed870db71066a58c21977b7e9d58a5408c65fee213d64f152671a
|
||||
DIST consul-1.12.0.tar.gz 23969785 BLAKE2B 57a13905917bac77793be26fb5ac7e668233400e1f9c8eceace3463018cd8fee06b6f5a3753c8eeb250c276f8c95afd63b3b6ae1a7d847dc5adaa11880e52f53 SHA512 c83a5b9e68f46e5f458fb607f60d80fa7bc2dd46000c60bd9838fb03ea925ec5f0c0a4336f9052f70f805b41b4dd8fc872f5f6e883de5da29a87f5273507f31e
|
||||
DIST consul-1.12.1.tar.gz 24196810 BLAKE2B b82929de9228adaaf1bbf3a4269dd09e17b51f769d0bf040b86949dd8648e1f0b813e5cc5d5e9704b964ef5185074f58ac7347e049be6bc493cc96e4b977e22b SHA512 33925b20a81c7ab9873e5dfc24c26d14c86494c03de0a4030304bf4ac0169b59843337ef05f0564fa69de9dba08e350774e7ae62c6914769d8f0d4cb625e4910
|
||||
DIST consul-1.9.17-deps.tar.xz 214799320 BLAKE2B c9fe5511156d50d4155ed6050186af894b7efc29e2f311ff542f79d298769b2dc55ee1bba12ca5ba5b81eddb6959a1d7a5e55aeb533827d5e924d3a72853a418 SHA512 be9f417e721372b8eaffe8b908f1ca1d1299c897f032cfb8b7ea8b62f7c2689011c5079a450fb5eed2e4e5454f0ad6a5e3859c91bd67166193334d100968f093
|
||||
DIST consul-1.9.17.tar.gz 29480703 BLAKE2B c233eab63ea515f886234395100e47910c1acdefa0b29af5bbc96d6c078dae41e0cd4150e1f6f17daac972b3e66d3abe43b594a0c37bff790e43f0f3c0a20da2 SHA512 c859fbede7294884befd0c70469febed5a4269b21cb351f8619d13e3b29f9b8bdd8d18e9611ef34908fc54bd38f2fd0bbc6e96d4e08ab23da952c3db537fb92c
|
||||
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit go-module systemd
|
||||
|
||||
DESCRIPTION="A tool for service discovery, monitoring and configuration"
|
||||
HOMEPAGE="https://www.consul.io"
|
||||
GIT_COMMIT="e57f76ae5cce9e70738aadb16f1e47d7c4c257f4"
|
||||
|
||||
SRC_URI="https://github.com/hashicorp/consul/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~zmedico/dist/consul-1.12.0-deps.tar.xz"
|
||||
|
||||
LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT"
|
||||
RESTRICT+=" test"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
BDEPEND="dev-go/gox"
|
||||
COMMON_DEPEND="
|
||||
acct-group/consul
|
||||
acct-user/consul"
|
||||
DEPEND="${COMMON_DEPEND}"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
src_compile() {
|
||||
# The dev target sets causes build.sh to set appropriate XC_OS
|
||||
# and XC_ARCH, and skips generation of an unused zip file,
|
||||
# avoiding a dependency on app-arch/zip.
|
||||
GIT_DESCRIBE="v${PV}" \
|
||||
GIT_DIRTY="" \
|
||||
GIT_COMMIT="${GIT_COMMIT}" \
|
||||
emake dev-build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/consul
|
||||
|
||||
keepdir /etc/consul.d
|
||||
insinto /etc/consul.d
|
||||
doins "${FILESDIR}/"*.json.example
|
||||
|
||||
keepdir /var/log/consul
|
||||
fowners consul:consul /var/log/consul
|
||||
|
||||
newinitd "${FILESDIR}/consul.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/consul.confd" "${PN}"
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/consul.service"
|
||||
}
|
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST elasticsearch-6.8.23.tar.gz 149672445 BLAKE2B dd7b080f1496f3a20755c183befae74194eab05b04c6f77679e9dad6067eef5222a4c7ce43d6267f1233a7bf864c6f8b23d5caf52278e1fe5f48f465e6603113 SHA512 73258b400cd194768058105a74ca0e811962ccf81bed8c4d3a824d4e5b97a8178a31150e60602fa1e04c6764b139980eb45ae6f246864702120653b45120b597
|
||||
DIST elasticsearch-7.17.3-no-jdk-linux-x86_64.tar.gz 167378547 BLAKE2B 4bacb075e94587351bb4638da15644ed372ec1ad2b72e1c9b84c511e84666f6b79ccc8519ce5fede119e6c134ac500a1209578f18a26fd8566646e870a17f9ba SHA512 f2d5953710adfe31f1e30a0fdf4c091c0493f613a83927ddec4bbc74d2eccb839e1ffa6d44636ad0ad9c07613915847cc7a68fc87e465a8a851c96e023917bf1
|
||||
DIST elasticsearch-8.2.0-linux-x86_64.tar.gz 529729465 BLAKE2B e176a047e49b343673c6f20e45d6ff96650e4ebb6b0d9d09450e4fb435ac56e22527be32c4327b5667ce6b4dbd6824477fc445c1db3e78a42e9c6bd01a1f5934 SHA512 f5e48538a835d61b7321133158c988b536945451f783964a10f50a0208aa46c013c2e55b86a5f4ec06c7ac61700c0f41d47124c91e4bf93b24ad3f150933a77d
|
||||
DIST elasticsearch-oss-6.8.23.tar.gz 68573265 BLAKE2B 80366fdc4eaaf45161a36da112397938a82d08d842d82dd5a9311abf63ca20afb93ecc06387c6852bbb1a861306382d6e7c2314e67635b6f2e75cdc183057ad8 SHA512 14dbb2809b06499373c3ec5035d829d62255c2c93103618fbfe3d7d03cecf8847f654e83c78f765f23224126ff18ed713b959857e8ecf435c475b11bcd143d3f
|
||||
|
@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Free and Open, Distributed, RESTful Search Engine"
|
||||
HOMEPAGE="https://www.elastic.co/elasticsearch/"
|
||||
SRC_URI="https://artifacts.elastic.co/downloads/${PN}/${P}-linux-x86_64.tar.gz"
|
||||
LICENSE="Apache-2.0 BSD-2 Elastic-2.0 LGPL-3 MIT public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-env.patch"
|
||||
)
|
||||
|
||||
DEPEND="acct-group/elasticsearch
|
||||
acct-user/elasticsearch"
|
||||
|
||||
RDEPEND="acct-group/elasticsearch
|
||||
acct-user/elasticsearch
|
||||
sys-libs/zlib
|
||||
virtual/jre:17"
|
||||
|
||||
QA_PREBUILT="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
|
||||
QA_PRESTRIPPED="usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/\(bin\|lib\)/.*"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm -rf jdk || die
|
||||
sed -i -e "s:logs/:/var/log/${PN}/:g" config/jvm.options || die
|
||||
rm LICENSE.txt NOTICE.txt || die
|
||||
rmdir logs || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /etc/${PN}
|
||||
keepdir /etc/${PN}/scripts
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r config/.
|
||||
rm -r config || die
|
||||
|
||||
fowners -R root:${PN} /etc/${PN}
|
||||
fperms -R 2750 /etc/${PN}
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r .
|
||||
|
||||
keepdir /usr/share/${PN}/plugins
|
||||
|
||||
exeinto /usr/share/${PN}/bin
|
||||
doexe ${FILESDIR}/elasticsearch-systemd-pre-exec
|
||||
|
||||
fperms -R +x /usr/share/${PN}/bin
|
||||
fperms -R +x /usr/share/${PN}/modules/x-pack-ml/platform/linux-x86_64/bin
|
||||
|
||||
keepdir /var/{lib,log}/${PN}
|
||||
fowners ${PN}:${PN} /var/{lib,log}/${PN}
|
||||
fperms 0750 /var/{lib,log}/${PN}
|
||||
|
||||
insinto /etc/sysctl.d
|
||||
newins "${FILESDIR}/${PN}.sysctl.d" ${PN}.conf
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.conf.4" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.init.8" ${PN}
|
||||
|
||||
systemd_install_serviced "${FILESDIR}/${PN}.service.conf"
|
||||
systemd_newunit "${FILESDIR}"/${PN}.service.4 ${PN}.service
|
||||
|
||||
newtmpfiles "${FILESDIR}"/${PN}.tmpfiles.d ${PN}.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Elasticsearch will choke on our keep file and dodir will not preserve the empty dir
|
||||
rm /usr/share/${PN}/plugins/.keep* || die
|
||||
tmpfiles_process /usr/lib/tmpfiles.d/${PN}.conf
|
||||
if [ ! systemd_is_booted ]; then
|
||||
elog "You may create multiple instances of ${PN} by"
|
||||
elog "symlinking the init script:"
|
||||
elog "ln -sf /etc/init.d/${PN} /etc/init.d/${PN}.instance"
|
||||
elog
|
||||
elog "Please make sure you put elasticsearch.yml, log4j2.properties and scripts"
|
||||
elog "from /etc/${PN} into the configuration directory of the instance:"
|
||||
elog "/etc/${PN}/instance"
|
||||
elog
|
||||
fi
|
||||
ewarn "Please make sure you have proper permissions on /etc/${PN}"
|
||||
ewarn "prior to keystore generation or you may experience startup failures."
|
||||
ewarn "chown root:${PN} /etc/${PN} && chmod 2750 /etc/${PN}"
|
||||
ewarn "chown root:${PN} /etc/${PN}/${PN}.keystore && chmod 0660 /etc/${PN}/${PN}.keystore"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
Since ES 8.0.0 upstream stopped distributing a 'no-JDK' package.
|
||||
This requires us to set `ES_JAVA_HOME` else it fails to find the
|
||||
JDK that we unbundled and will not start.
|
||||
--- a/bin/elasticsearch-env
|
||||
+++ b/bin/elasticsearch-env
|
||||
@@ -36,6 +36,18 @@ ES_HOME=`dirname "$ES_HOME"`
|
||||
ES_CLASSPATH="$ES_HOME/lib/*"
|
||||
LAUNCHERS_CLASSPATH="$ES_CLASSPATH:$ES_HOME/lib/launchers/*"
|
||||
|
||||
+# Set our JVM in a Gentoo-specific manner
|
||||
+if [ -z "$ES_JAVA_HOME" ]; then
|
||||
+ GENTOO_VM=$(depend-java-query --get-vm virtual/jre:17)
|
||||
+ if [ ! -z "$GENTOO_VM" ]; then
|
||||
+ ES_JAVA_HOME=$(java-config-2 --select-vm=${GENTOO_VM} --jre-home)
|
||||
+ else
|
||||
+ echo "Unable to automatically detect a supported Java 17 VM. Elasticsearch is unlikely to launch."
|
||||
+ echo "Please ensure that you have installed an appropriate Java VM using portage"
|
||||
+ echo "OR pass the ES_JAVA_HOME environment variable."
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
# now set the path to java
|
||||
if [ ! -z "$ES_JAVA_HOME" ]; then
|
||||
JAVA="$ES_JAVA_HOME/bin/java"
|
@ -0,0 +1,67 @@
|
||||
[Unit]
|
||||
Description=Elasticsearch
|
||||
Documentation=https://www.elastic.co
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
RuntimeDirectory=elasticsearch
|
||||
PrivateTmp=true
|
||||
Environment=ES_HOME=/usr/share/elasticsearch
|
||||
Environment=ES_PATH_CONF=/etc/elasticsearch
|
||||
|
||||
WorkingDirectory=/usr/share/elasticsearch
|
||||
|
||||
ExecStartPre=+"/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec"
|
||||
|
||||
User=elasticsearch
|
||||
Group=elasticsearch
|
||||
|
||||
ExecStart=/usr/share/elasticsearch/bin/elasticsearch \
|
||||
-p ${PID_DIR}/elasticsearch.pid \
|
||||
-Epath.logs=${LOG_DIR} \
|
||||
-Epath.data=${DATA_DIR} \
|
||||
--quiet
|
||||
|
||||
# StandardOutput is configured to redirect to journalctl since
|
||||
# some error messages may be logged in standard output before
|
||||
# elasticsearch logging system is initialized. Elasticsearch
|
||||
# stores its logs in /var/log/elasticsearch and does not use
|
||||
# journalctl by default. If you also want to enable journalctl
|
||||
# logging, you can simply remove the "quiet" option from ExecStart.
|
||||
StandardOutput=journal
|
||||
StandardError=inherit
|
||||
|
||||
# Specifies the maximum file descriptor number that can be opened by this process
|
||||
LimitNOFILE=65535
|
||||
|
||||
# Specifies the maximum number of processes
|
||||
LimitNPROC=4096
|
||||
|
||||
# Specifies the maximum size of virtual memory
|
||||
LimitAS=infinity
|
||||
|
||||
# Specifies the maximum file size
|
||||
LimitFSIZE=infinity
|
||||
|
||||
# Disable timeout logic and wait until process is stopped
|
||||
TimeoutStopSec=0
|
||||
|
||||
# SIGTERM signal is used to stop the Java process
|
||||
KillSignal=SIGTERM
|
||||
|
||||
# Send the signal only to the JVM rather than its control group
|
||||
KillMode=process
|
||||
|
||||
# Java process is never killed
|
||||
SendSIGKILL=no
|
||||
|
||||
# When a JVM receives a SIGTERM signal it exits with code 143
|
||||
SuccessExitStatus=143
|
||||
|
||||
# Allow a slow startup before the systemd notifier module kicks in to extend the timeout
|
||||
TimeoutStartSec=75
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,10 +0,0 @@
|
||||
diff --git a/requirements/base.txt b/requirements/base.txt
|
||||
index fb2ab61..17e3516 100644
|
||||
--- a/requirements/base.txt
|
||||
+++ b/requirements/base.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
kaptan>=0.5.10
|
||||
libtmux>=0.8,<0.9
|
||||
-click>=7,<8
|
||||
+click>=7
|
||||
colorama>=0.3.9
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST heimdall-1.4.2.tar.gz 5486693 BLAKE2B 213bfa5bb7ede8d418847916a5ec16c17e4dec7fcb07de296d96e16c929634167afb57e13cee0e8a6e42fbbddcd2f2e0f5069cfbc3e8c3b5721d2d303ef48407 SHA512 c554662f9ccb763a8e9867a0c563618879d2533af985d44db3c237d3ee51add44c1681d13b1a83b72b30ba6e5b32d7c2f9c02b31114c67c5fbe01cbb010acfe7
|
||||
DIST heimdall-2.0.1.tar.gz 83642 BLAKE2B 29cd784a4ea4c25f9670d27c306ca95d60d7ad8a11175d2ee835a0cf1e7fc5eb179aa4e49c5e05e280ed5ce475a9e66e56b48444dd4b3b93ea8cb173e3d18060 SHA512 f6df4551702a7ad7688018d60569b8b94f20be4f78a9b4bf5f6e89396ed43cd7519617ef1f420b41bbfeec8b51ae636759a7b90443d3d5945cd8744b43e2d0ef
|
||||
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake udev
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
SRC_URI="https://git.sr.ht/~grimler/Heimdall/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
S="${WORKDIR}/Heimdall-v${PV}"
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://git.sr.ht/~grimler/Heimdall"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Tool suite used to flash firmware onto Samsung devices"
|
||||
HOMEPAGE="https://git.sr.ht/~grimler/Heimdall https://glassechidna.com.au/heimdall/ https://github.com/Benjamin-Dobell/Heimdall"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="gui"
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib
|
||||
virtual/libusb:1=
|
||||
gui? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DDISABLE_FRONTEND=$(usex !gui)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${BUILD_DIR}"/bin/heimdall
|
||||
use gui && dobin "${BUILD_DIR}"/bin/heimdall-frontend
|
||||
udev_dorules heimdall/60-heimdall.rules
|
||||
dodoc README.md Linux/README
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
}
|
@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<remote-id type="github">Benjamin-Dobell/Heimdall</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>duje.mihanovic@skole.hr</email>
|
||||
<name>Duje Mihanović</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
Binary file not shown.
@ -1,11 +0,0 @@
|
||||
diff -ur qpdfview-0.4.18.orig/sources/model.h qpdfview-0.4.18/sources/model.h
|
||||
--- a/sources/model.h 2019-07-24 21:18:33.000000000 +0200
|
||||
+++ b/sources/model.h 2020-05-29 11:44:33.012891583 +0200
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <QtPlugin>
|
||||
#include <QWidget>
|
||||
#include <QVector>
|
||||
+#include <QPainterPath>
|
||||
|
||||
class QAbstractItemModel;
|
||||
class QColor;
|
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST timescaledb-2.5.2.tar.gz 2773859 BLAKE2B 918768e21ea43de2678c2ce12c5ea9faa9794eb48d4f1003c898d5510330d25c319b30323692facff78f95ee417a4cd4ec0e78363de17c4746aeb3f42c0b5bba SHA512 28cc4b4a786c62651aa9e499bb82bbc079307ed237a8c2478d5fbd4d6aaa9bb43bf3c1df971f76921d25112761a79dc9dec31d663fa31caca38b0c822f2026b0
|
||||
DIST timescaledb-2.6.0.tar.gz 2863860 BLAKE2B 14b7bbfcfe1ca874ef24a7d31f3855f78cde0be57022251e1b1eb141819e19af45a2269123583a2d97c08c778aed38d9662cd4a6ff9c44281a605b8c0faed1ec SHA512 b076a44e3b30e99986dba710079cdc1a38b59a9d65ecd9f78fa16f3b762f253d7a9236a34a4d7e7beb29c1051113ea8877973e07ed3116012c9d2175a77e2edc
|
||||
DIST timescaledb-2.6.1.tar.gz 2876847 BLAKE2B 6053e69fd6f7b86287c0ae54966a9e7528cf371d2952b6edfe80c0c616c4fcaccf04fa1f3af5f7ed787e85b7b12ac00e709664552c79561f7b4e503891cb5dd4 SHA512 edcc84c37af9670c1a7bf527f5c430405e9b04e9a35e676d04e7ac70b20184032f992d05545a180b50ac2346b076aac4fc98348c355006345394910978864a8f
|
||||
DIST timescaledb-2.7.0.tar.gz 2962972 BLAKE2B 37a0c3c7f51936d888492b7be59d2abc635bead3681a0414c5b7bfaca6b70a162638d5f9cf8368bfd49e2a8a03bbcdbf4fde853466edebbbc8a38d57ef567674 SHA512 fb07e06be36c2a59fbbaa77c7cbc3b564ce26b8f508211ec10b19b2e9bf08afed2e734b9a578b97ed99af95936a8f722cbc4cf2b5c6952df739e777ea96bf414
|
||||
|
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
POSTGRES_COMPAT=( 12 13 14 )
|
||||
POSTGRES_USEDEP="ssl"
|
||||
|
||||
inherit postgres-multi cmake
|
||||
|
||||
DESCRIPTION="Open-source time-series SQL database"
|
||||
HOMEPAGE="https://www.timescale.com/"
|
||||
SRC_URI="https://github.com/timescale/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
IUSE="proprietary-extensions"
|
||||
LICENSE="POSTGRESQL Apache-2.0 proprietary-extensions? ( timescale )"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
SLOT=0
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="${POSTGRES_DEP}"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
CMAKE_IN_SOURCE_BUILD=yes
|
||||
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
||||
BUILD_DIR=${WORKDIR}/${P}
|
||||
|
||||
src_prepare() {
|
||||
postgres-multi_src_prepare
|
||||
postgres-multi_foreach cmake_src_prepare
|
||||
}
|
||||
|
||||
timescale_configure() {
|
||||
local CMAKE_USE_DIR=$BUILD_DIR
|
||||
local mycmakeargs=( "-DPG_CONFIG=/usr/bin/pg_config${MULTIBUILD_VARIANT}" "-DREGRESS_CHECKS=OFF" )
|
||||
|
||||
# licensing is tied to features, this useflag disables the non-apache2 licensed bits
|
||||
if ! use proprietary-extensions ; then
|
||||
mycmakeargs+=("-DAPACHE_ONLY=ON")
|
||||
fi
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
postgres-multi_foreach timescale_configure
|
||||
}
|
||||
|
||||
timescale_src_compile() {
|
||||
local CMAKE_USE_DIR=$BUILD_DIR
|
||||
cmake_src_compile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
postgres-multi_foreach timescale_src_compile
|
||||
}
|
||||
|
||||
timescale_src_install() {
|
||||
local CMAKE_USE_DIR=$BUILD_DIR
|
||||
cmake_src_install
|
||||
}
|
||||
|
||||
src_install() {
|
||||
postgres-multi_foreach timescale_src_install
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,18 +0,0 @@
|
||||
--- a/src/test/java/jakarta/mail/util/FactoryFinderTest.java
|
||||
+++ b/src/test/java/jakarta/mail/util/FactoryFinderTest.java
|
||||
@@ -23,6 +23,7 @@ import static org.junit.Assert.fail;
|
||||
import java.util.ServiceConfigurationError;
|
||||
|
||||
import org.junit.Test;
|
||||
+import org.junit.Ignore;
|
||||
|
||||
public class FactoryFinderTest {
|
||||
|
||||
@@ -39,6 +40,7 @@ public class FactoryFinderTest {
|
||||
assertEquals(DummyStreamProvider.class, impl.getClass());
|
||||
}
|
||||
|
||||
+ @Ignore
|
||||
@Test
|
||||
public void doesNotExist() {
|
||||
try {
|
Binary file not shown.
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Elixir programming language"
|
||||
HOMEPAGE="https://elixir-lang.org"
|
||||
SRC_URI="https://github.com/elixir-lang/elixir/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 ErlPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/erlang-22:0=[ssl]
|
||||
"
|
||||
# 'mix' tool collides with sci-biology/phylip, bug #537514
|
||||
RDEPEND="${DEPEND}
|
||||
!!sci-biology/phylip
|
||||
"
|
||||
DEPEND+="
|
||||
test? ( dev-vcs/git )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.9.1-disable-network-tests.patch
|
||||
"${FILESDIR}"/${PN}-1.10.3-no-Q.patch
|
||||
"${FILESDIR}"/${PN}-1.10.3-epmd-daemon.patch
|
||||
)
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" install
|
||||
dodoc README.md CHANGELOG.md CODE_OF_CONDUCT.md
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
From 830cc58f8a10598f4caa337ca97be51741945499 Mon Sep 17 00:00:00 2001
|
||||
From: Ralf Jung <post@ralfj.de>
|
||||
Date: Sun, 3 Apr 2022 20:00:03 -0400
|
||||
Subject: [PATCH] rustup
|
||||
|
||||
gyakovlev: changed paths and removed irrelevant bits
|
||||
---
|
||||
rust-version | 2 +-
|
||||
src/helpers.rs | 4 ++--
|
||||
src/machine.rs | 2 +-
|
||||
src/shims/env.rs | 2 +-
|
||||
src/shims/foreign_items.rs | 4 ++--
|
||||
src/shims/posix/foreign_items.rs | 2 +-
|
||||
6 files changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/helpers.rs b/src/helpers.rs
|
||||
index 3ffb983aa..7a63bb03d 100644
|
||||
--- a/src/tools/miri/src/helpers.rs
|
||||
+++ b/src/tools/miri/src/helpers.rs
|
||||
@@ -510,7 +510,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
||||
let this = self.eval_context_mut();
|
||||
let target = &this.tcx.sess.target;
|
||||
let target_os = &target.os;
|
||||
- let last_error = if target.families.contains(&"unix".to_owned()) {
|
||||
+ let last_error = if target.families.iter().any(|f| f == "unix") {
|
||||
this.eval_libc(match err_kind {
|
||||
ConnectionRefused => "ECONNREFUSED",
|
||||
ConnectionReset => "ECONNRESET",
|
||||
@@ -534,7 +534,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
||||
)
|
||||
}
|
||||
})?
|
||||
- } else if target.families.contains(&"windows".to_owned()) {
|
||||
+ } else if target.families.iter().any(|f| f == "windows") {
|
||||
// FIXME: we have to finish implementing the Windows equivalent of this.
|
||||
this.eval_windows(
|
||||
"c",
|
||||
diff --git a/src/machine.rs b/src/machine.rs
|
||||
index e9ed50724..b4b07a61a 100644
|
||||
--- a/src/tools/miri/src/machine.rs
|
||||
+++ b/src/tools/miri/src/machine.rs
|
||||
@@ -227,7 +227,7 @@ impl MemoryExtra {
|
||||
pub fn init_extern_statics<'tcx, 'mir>(
|
||||
this: &mut MiriEvalContext<'mir, 'tcx>,
|
||||
) -> InterpResult<'tcx> {
|
||||
- match this.tcx.sess.target.os.as_str() {
|
||||
+ match this.tcx.sess.target.os.as_ref() {
|
||||
"linux" => {
|
||||
// "environ"
|
||||
Self::add_extern_static(
|
||||
diff --git a/src/shims/env.rs b/src/shims/env.rs
|
||||
index c2050647a..822bef56c 100644
|
||||
--- a/src/tools/miri/src/shims/env.rs
|
||||
+++ b/src/src/tools/miri/shims/env.rs
|
||||
@@ -41,7 +41,7 @@ impl<'tcx> EnvVars<'tcx> {
|
||||
mut excluded_env_vars: Vec<String>,
|
||||
forwarded_env_vars: Vec<String>,
|
||||
) -> InterpResult<'tcx> {
|
||||
- let target_os = ecx.tcx.sess.target.os.as_str();
|
||||
+ let target_os = ecx.tcx.sess.target.os.as_ref();
|
||||
// HACK: Exclude `TERM` var to avoid terminfo trying to open the termcap file.
|
||||
// This is (a) very slow and (b) does not work on Windows.
|
||||
excluded_env_vars.push("TERM".to_owned());
|
||||
diff --git a/src/shims/foreign_items.rs b/src/shims/foreign_items.rs
|
||||
index ecffd310d..d9e4d9382 100644
|
||||
--- a/src/tools/miri/src/shims/foreign_items.rs
|
||||
+++ b/src/tools/miri/src/shims/foreign_items.rs
|
||||
@@ -46,7 +46,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
||||
fn min_align(&self, size: u64, kind: MiriMemoryKind) -> Align {
|
||||
let this = self.eval_context_ref();
|
||||
// List taken from `libstd/sys_common/alloc.rs`.
|
||||
- let min_align = match this.tcx.sess.target.arch.as_str() {
|
||||
+ let min_align = match this.tcx.sess.target.arch.as_ref() {
|
||||
"x86" | "arm" | "mips" | "powerpc" | "powerpc64" | "asmjs" | "wasm32" => 8,
|
||||
"x86_64" | "aarch64" | "mips64" | "s390x" | "sparc64" => 16,
|
||||
arch => bug!("Unsupported target architecture: {}", arch),
|
||||
@@ -695,7 +695,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
||||
}
|
||||
|
||||
// Platform-specific shims
|
||||
- _ => match this.tcx.sess.target.os.as_str() {
|
||||
+ _ => match this.tcx.sess.target.os.as_ref() {
|
||||
"linux" | "macos" => return shims::posix::foreign_items::EvalContextExt::emulate_foreign_item_by_name(this, link_name, abi, args, dest, ret),
|
||||
"windows" => return shims::windows::foreign_items::EvalContextExt::emulate_foreign_item_by_name(this, link_name, abi, args, dest, ret),
|
||||
target => throw_unsup_format!("the target `{}` is not supported", target),
|
||||
diff --git a/src/shims/posix/foreign_items.rs b/src/shims/posix/foreign_items.rs
|
||||
index 02fb7089c..36bf53059 100644
|
||||
--- a/src/tools/miri/src/shims/posix/foreign_items.rs
|
||||
+++ b/src/tools/miri/src/shims/posix/foreign_items.rs
|
||||
@@ -462,7 +462,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
||||
|
||||
// Platform-specific shims
|
||||
_ => {
|
||||
- match this.tcx.sess.target.os.as_str() {
|
||||
+ match this.tcx.sess.target.os.as_ref() {
|
||||
"linux" => return shims::posix::linux::foreign_items::EvalContextExt::emulate_foreign_item_by_name(this, link_name, abi, args, dest, ret),
|
||||
"macos" => return shims::posix::macos::foreign_items::EvalContextExt::emulate_foreign_item_by_name(this, link_name, abi, args, dest, ret),
|
||||
_ => unreachable!(),
|
@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 638f39f7e..791477c41 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -787,7 +787,7 @@ else()
|
||||
set(ZIG1_RELEASE_ARG -OReleaseFast --strip)
|
||||
endif()
|
||||
if(ZIG_SINGLE_THREADED)
|
||||
- set(ZIG1_SINGLE_THREADED_ARG "-fsingle-threaded")
|
||||
+ set(ZIG1_SINGLE_THREADED_ARG "--single-threaded")
|
||||
else()
|
||||
set(ZIG1_SINGLE_THREADED_ARG "")
|
||||
endif()
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST gnulib-5293ada82e1ea38e9e5cdd3724c73204d703f07b.tar.xz 4721720 BLAKE2B d0c70f4f33cbc3b7fcbef6ebe67d4ebac2a89fe8e9b1598fa00f0292ce2bc528ed6f5be123072c43c52f1234266bb6fb96b7881839ff884a39d2bce58a9f3ad7 SHA512 0f1822fb579649c3cd09ca8e69334d425f2024d780a98d7bbf38d26f36f174036fa066635513485ddd6e2ad485c7060ae9b101c1595891307a382e6aa9bc4226
|
||||
DIST gnulib-9f48fb992a3d7e96610c4ce8be969cff2d61a01b.tar.xz 4711472 BLAKE2B 901fd3b3388210f090825829d1de43395819ee907574e2cf7c6586c93ef72afd26e68abc7ae27d1e462a703f1d3bedf37ffcf4d8924fed32a95bc94ae83399d5 SHA512 04ab346648a23a4f58dc2d818955ae145bc9c21c3b24a1719cdf48bb8116e3765de675bcf19747d64d43432db1bb406f403168f973f24811f9d126deadea7e7f
|
||||
DIST gnulib-b451121ab45497e78cb6f612c8673a9705193391.tar.xz 4104308 BLAKE2B 099ebb4f4a7745e5b7367f48d8d9cc11d3ac1c03b59aed2801f684fb6433e3dc1efd6b801a864308f440edd6068c7d1bb1763887bcabe2da4f927f5507fa7f89 SHA512 ed97c589b8a39b1d41c0e2e6c0bafda4df99191b8aaae3feb5f46dffee5787d16ad2c4ca62bf50e2964f36691ef446f67540657b1b0cfc5c775acb88816fffb5
|
||||
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
GIT_TAG="5293ada82e1ea38e9e5cdd3724c73204d703f07b"
|
||||
|
||||
DESCRIPTION="Library of common routines intended to be shared"
|
||||
HOMEPAGE="https://www.gnu.org/software/gnulib"
|
||||
SRC_URI="https://git.savannah.gnu.org/cgit/${PN}.git/snapshot/${PN}-${GIT_TAG}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc"
|
||||
|
||||
S="${WORKDIR}/${PN}-${GIT_TAG}"
|
||||
|
||||
src_compile() {
|
||||
if use doc; then
|
||||
emake -C doc info html
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README ChangeLog
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins -r build-aux
|
||||
doins -r doc
|
||||
doins -r lib
|
||||
doins -r m4
|
||||
doins -r modules
|
||||
doins -r tests
|
||||
doins -r top
|
||||
|
||||
# install the real script
|
||||
exeinto /usr/share/${PN}
|
||||
doexe gnulib-tool
|
||||
|
||||
# create and install the wrapper
|
||||
dosym ../share/${PN}/gnulib-tool /usr/bin/gnulib-tool
|
||||
}
|
@ -1,4 +1,2 @@
|
||||
DIST libbsd-0.11.3.tar.xz 399712 BLAKE2B 1af04b8fcbc0bfa59fba549639d61a33ac934fe7ee42b506d1b0452e0b836b0bfdd3d8739de90465be46fe6a9d326a2d11bcf72280aa19ccba81db5da6d63d89 SHA512 a7015ea1ffa3766b1a4690526a25231898ad8275149b31fb6801082450172249997c36165626d101ffce53b59767a46676eebc0806426922fe4e773a0376c1f5
|
||||
DIST libbsd-0.11.5.tar.xz 409972 BLAKE2B 00c89ad1be351e7851538eac2744f5aef87b5937330d514d17af8a20a04bc6eab0e2bda61d0080da1d1439306b3b191ab68b4bc4cd8558ff0adfe402bfbf5b52 SHA512 c52c19eddd53630aca14f9f6221f7b84aa9cc798b4bb91e867822b161793313aab872ac1c0350d29312a72fee6e2061f3910ff918b724ec171d8c9de5837c841
|
||||
DIST libbsd-0.11.6.tar.xz 416600 BLAKE2B 23f7a5ea765af559e0e63946014650074d4d33f9e6655afbe6f08fd38265408a9fe3cccff0d0827d08817354deee92e4c6fd5536fd6f08857813e8847989d15c SHA512 9dbbfb84340fc69f59667241701d81d176439ce168f123344805898a269f7bd0e98abf8c7fc12d9bf539d1effb19424d93b647cc9120f693327e736d339e6075
|
||||
DIST libbsd-0.11.6.tar.xz.asc 833 BLAKE2B 895dee6d441da5e5b5b202dc2b5ea3635ba93352fdcd979fc3e58939dbd327b516b107d4e3c12d18dc824b6bc9793886e2a168add313d50884b1bd38d4f5f001 SHA512 29d77e53d251c641b00924c9c42b69b66eeb160ef0534e84a4ad1afd9009f87bda82f1b91d271efe37c676295add3fab01ce55aa6cd96aa0c5f34f9837b870cd
|
||||
|
@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit multilib-minimal
|
||||
|
||||
DESCRIPTION="Library to provide useful functions commonly found on BSD systems"
|
||||
HOMEPAGE="https://libbsd.freedesktop.org/wiki/ https://gitlab.freedesktop.org/libbsd/libbsd"
|
||||
SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz"
|
||||
|
||||
LICENSE="BSD BSD-2 BSD-4 ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND="app-crypt/libmd[${MULTILIB_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-kernel/linux-headers-3.17
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
local f="${EROOT}/usr/$(get_libdir)/${PN}.a"
|
||||
if ! has_version ${CATEGORY}/${PN}; then
|
||||
if [[ -e ${f} ]]; then
|
||||
eerror "${m}"
|
||||
die "You need to remove ${f} by hand or re-emerge sys-libs/glibc first."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# The build system will install libbsd-ctor.a despite of USE="-static-libs"
|
||||
# which is correct, see:
|
||||
# https://gitlab.freedesktop.org/libbsd/libbsd/commit/c5b959028734ca2281250c85773d9b5e1d259bc8
|
||||
ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit multilib-minimal
|
||||
|
||||
DESCRIPTION="Library to provide useful functions commonly found on BSD systems"
|
||||
HOMEPAGE="https://libbsd.freedesktop.org/wiki/ https://gitlab.freedesktop.org/libbsd/libbsd"
|
||||
SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz"
|
||||
|
||||
LICENSE="BSD BSD-2 BSD-4 ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND="app-crypt/libmd[${MULTILIB_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-kernel/linux-headers-3.17
|
||||
"
|
||||
|
||||
multilib_src_configure() {
|
||||
# The build system will install libbsd-ctor.a despite of USE="-static-libs"
|
||||
# which is correct, see:
|
||||
# https://gitlab.freedesktop.org/libbsd/libbsd/commit/c5b959028734ca2281250c85773d9b5e1d259bc8
|
||||
ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
DIST simdjson-1.0.0.tar.gz 1546728 BLAKE2B 6b70416404776b4fcc30cd3ab07b8048899bbe3497af779504a685bc2459424e82bd40bf100d7ed8ccfa05e871a0a1edd9eebd11294cdc3d1780797d7f79ba1e SHA512 dbf8abfeec5c079f4d87e8bf31d1af27601f7f0578ebb8ad28a25f496b4b771b68a75f9a11f61706c539d54c36a493a2d2819bd15427c3b7f7a0b36811177f17
|
||||
DIST simdjson-1.0.2.tar.gz 1551616 BLAKE2B 534e312de977b82604595ccf889348545ed355fb9cfb6f618d42236122578f6102ce7bcd31204c3013dbeeff17c35effaff62531a7e17e5e83ac07150b1456ab SHA512 04a3bee2d847680aa1f55115007ceec01652bebb8d5187cfbca0af81bedff355cbac949862a82e3060071da1a58b62d5b028bcd91562b962756aa5cab614f073
|
||||
DIST simdjson-1.1.0.tar.gz 1555845 BLAKE2B 6dfd4e938b9f1f6a6314f39929b74a7e822fbb37510914eb3db0660b9bbf68ef0b2fb4c45aa2e1246f6530d3848d0055220d4c5ead3093f97956a6154b22a899 SHA512 f8718bd039e1a25f0b95880b957c43e6eba6eada6bb7f58cedde37669a46b15b3ff9f4c4ea775e1cf949657642ef0472fa8bac5bdc98882df63e7f292fb5a723
|
||||
DIST simdjson-2.0.0.tar.gz 1607351 BLAKE2B 536e02e134c6424d13c58983b65ecd328019a93cf7e04d65eec281c46f125985094a56d2c7031cbbabb62957089986d75b45161539c18de02e9c7c01daf92517 SHA512 2cf20799189171fa3bcac5b51a660635e4e3c8688c6cbfc527a17860b24abe534085b4918e916bcb23d0bc26f949301141b6bbf8bee6d4199c2c93cba2156b05
|
||||
DIST simdjson-2.0.1.tar.gz 1608085 BLAKE2B 89730a8bc6ad914fb2797c59a0c16c7b4e8a6500f32fb980f0dd91792a0106d273be14f0e1d022c925a0c7303bd25d7a8387f4169c40ec5a3433d80c31943df8 SHA512 09c72669fbd73e92e54f4c6e21e59533dae60db655de087264be4f0a6dd305e63961ca55973d47081a4310c2bc1afa7304d1528cae65fe5b237d659604c7d716
|
||||
DIST simdjson-data-1.0.0.tar.gz 6635706 BLAKE2B 563376147f18d590a176a5a0398365db1a3e677b773c018f335efa7fff05ac22ac5dc37613792082a32e6c9b91a773a590f7dfd15efa5ba660f9142b128b28a7 SHA512 168198404b11b8c76ff4f53645d7b5a88a5c72b4a5b6646b4410859ec3416ae9b37fc59f7d2f014ccc785615ea5c31dc00b145dbb1a7acb701b94029dd4ea1e1
|
||||
DIST simdjson-data-1.0.2.tar.gz 6635706 BLAKE2B 563376147f18d590a176a5a0398365db1a3e677b773c018f335efa7fff05ac22ac5dc37613792082a32e6c9b91a773a590f7dfd15efa5ba660f9142b128b28a7 SHA512 168198404b11b8c76ff4f53645d7b5a88a5c72b4a5b6646b4410859ec3416ae9b37fc59f7d2f014ccc785615ea5c31dc00b145dbb1a7acb701b94029dd4ea1e1
|
||||
DIST simdjson-data-1.1.0.tar.gz 6635706 BLAKE2B 563376147f18d590a176a5a0398365db1a3e677b773c018f335efa7fff05ac22ac5dc37613792082a32e6c9b91a773a590f7dfd15efa5ba660f9142b128b28a7 SHA512 168198404b11b8c76ff4f53645d7b5a88a5c72b4a5b6646b4410859ec3416ae9b37fc59f7d2f014ccc785615ea5c31dc00b145dbb1a7acb701b94029dd4ea1e1
|
||||
DIST simdjson-data-2.0.0.tar.gz 6635706 BLAKE2B 563376147f18d590a176a5a0398365db1a3e677b773c018f335efa7fff05ac22ac5dc37613792082a32e6c9b91a773a590f7dfd15efa5ba660f9142b128b28a7 SHA512 168198404b11b8c76ff4f53645d7b5a88a5c72b4a5b6646b4410859ec3416ae9b37fc59f7d2f014ccc785615ea5c31dc00b145dbb1a7acb701b94029dd4ea1e1
|
||||
DIST simdjson-data-2.0.1.tar.gz 6635706 BLAKE2B 563376147f18d590a176a5a0398365db1a3e677b773c018f335efa7fff05ac22ac5dc37613792082a32e6c9b91a773a590f7dfd15efa5ba660f9142b128b28a7 SHA512 168198404b11b8c76ff4f53645d7b5a88a5c72b4a5b6646b4410859ec3416ae9b37fc59f7d2f014ccc785615ea5c31dc00b145dbb1a7acb701b94029dd4ea1e1
|
||||
|
@ -1,33 +0,0 @@
|
||||
From: Laurent Bercot <ska-skaware@skarnet.org>
|
||||
Date: Mon, 24 Jan 2022 11:44:29 +0000
|
||||
Subject: [PATCH] Apply user-provided CPPFLAGS, CFLAGS and LDFLAGS during
|
||||
autodetection
|
||||
|
||||
Backported-from: d9f541c2b3af (" Apply user-provided CPPFLAGS, CFLAGS and LDFLAGS during autodetection")
|
||||
See-also: http://skarnet.org/lists/skaware/1656.html
|
||||
---
|
||||
diff --git a/configure b/configure
|
||||
index 55f34f8..49b3678 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -99,7 +99,7 @@ stripdir () {
|
||||
tryflag () {
|
||||
echo "Checking whether compiler accepts $2 ..."
|
||||
echo "typedef int x;" > "$tmpc"
|
||||
- if $CC_AUTO "$2" -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
|
||||
+ if $CC_AUTO $CPPFLAGS_POST $CFLAGS_POST "$2" -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
|
||||
echo " ... yes"
|
||||
eval "$1=\"\${$1} \$2\""
|
||||
eval "$1=\${$1# }"
|
||||
@@ -113,7 +113,7 @@ tryflag () {
|
||||
tryldflag () {
|
||||
echo "Checking whether linker accepts $2 ..."
|
||||
echo "typedef int x;" > "$tmpc"
|
||||
- if $CC_AUTO -nostdlib "$2" -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
|
||||
+ if $CC_AUTO $CPPFLAGS_POST $CFLAGS_POST $LDFLAGS_POST -nostdlib "$2" -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
|
||||
echo " ... yes"
|
||||
eval "$1=\"\${$1} \$2\""
|
||||
eval "$1=\${$1# }"
|
||||
--
|
||||
2.34.1
|
||||
|
Binary file not shown.
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="The AWS SDK for Python"
|
||||
HOMEPAGE="
|
||||
https://github.com/boto/boto3/
|
||||
https://pypi.org/project/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/boto3/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.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}]
|
||||
dev-python/pytest-xdist[${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} -n "$(makeopts_jobs)"
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="Low-level, data-driven core of boto 3"
|
||||
HOMEPAGE="
|
||||
https://github.com/boto/botocore/
|
||||
https://pypi.org/project/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-2[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/botocore-1.26.0-py311.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
|
||||
)
|
||||
|
||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)"
|
||||
}
|
@ -1 +1,3 @@
|
||||
DIST bottle-0.12.19.tar.gz 73142 BLAKE2B e59d7a507d3401869ba4953a48274062fc56226afa2f7aad596b4ef4352e4a79cea2d224dfe32d7ce014e4f4a3ba088d0e7a0886f64a84bb6b78571e953fa3c3 SHA512 e5d2f6a32d1b89ae3cc9607456c0614db2b58882c6d36273d695c51d3d77b1858cac4d914dbf19bca3b74be68c197aa6473f162e40d9b7ae2af3a084a28c2637
|
||||
DIST bottle-0.12.20.tar.gz 74235 BLAKE2B 8d6c03ac9a0330fa13e474fcb6bb985d663d3c4c1c2cd6ca24a1224efd3072d4897efafc095af13f8231b99d705ae252fbed29ebe8e18dc5c9db7318a9c749c7 SHA512 149355d39ac1370a3b6c1999756ac2c7eb98ef04cf99df7099a6c84112e1ff06a0cac4612843750499633a136ea2ddfb1a5d594ba03d7ee63cf7cae9aceba823
|
||||
DIST bottle-0.12.21.tar.gz 74229 BLAKE2B 88674389d2c087a7416443d031995ee923a98b790eb85d81b625f11b2fb0baee35d90a3ee2dba5b9d4744a343a34396a50edef0f85a2d6f4f0f4da95bae31b5b SHA512 3d621f6684f439a4a5718ad25e8b45eb0d1100cd565ec5b797adf67141e01d835cde671e687f5515cb6eab69bb465e9c7d004131634609266c2e1b69b0adbf43
|
||||
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="A fast and simple micro-framework for small web-applications"
|
||||
HOMEPAGE="
|
||||
https://bottlepy.org/
|
||||
https://github.com/bottlepy/bottle/
|
||||
https://pypi.org/project/bottle/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/bottle-0.12.8-py3.5-backport.patch
|
||||
"${FILESDIR}"/bottle-0.12.19-py311.patch
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i -e '/scripts/d' setup.py || die
|
||||
|
||||
# Remove test file requring connection to network
|
||||
rm test/test_server.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" test/testall.py || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Templating support" dev-python/mako
|
||||
elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)"
|
||||
elog "we do as most other distros and do not install the script anymore."
|
||||
elog "If you do want/have to call it directly rather than through your app,"
|
||||
elog "please use the following instead:"
|
||||
elog ' `python -m bottle`'
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="A fast and simple micro-framework for small web-applications"
|
||||
HOMEPAGE="
|
||||
https://bottlepy.org/
|
||||
https://github.com/bottlepy/bottle/
|
||||
https://pypi.org/project/bottle/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/bottle-0.12.8-py3.5-backport.patch
|
||||
"${FILESDIR}"/bottle-0.12.19-py311.patch
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i -e '/scripts/d' setup.py || die
|
||||
|
||||
# Remove test file requring connection to network
|
||||
rm test/test_server.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" test/testall.py || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Templating support" dev-python/mako
|
||||
elog "Due to problems with bottle.py being in /usr/bin (see bug #474874)"
|
||||
elog "we do as most other distros and do not install the script anymore."
|
||||
elog "If you do want/have to call it directly rather than through your app,"
|
||||
elog "please use the following instead:"
|
||||
elog ' `python -m bottle`'
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST dask-2022.04.2.gh.tar.gz 8657501 BLAKE2B e0c78d91927d4f2391e377d10c93b87ebc8bed764be77e3e8afb55935819772442e9bd9eb6221b639eb8376de0107b361b43bd37ed85cbe548d4b0c99d5e5f68 SHA512 b252a19fb08e089153e31ea23bbb75d37cc9fbf96c530495e884b9e3768d23b7dfe71a16341a8c414c414298cc6958aa41f22af07cabb392816dc4590b86b278
|
||||
DIST dask-2022.05.0.gh.tar.gz 8658529 BLAKE2B 0b09ef38137d9c395384549fd8a3b0218ad1761ccb1816f8fc4f4af7328215716603e3f41b8cc3bf7044ff42b72eee277147b3bd03da48467cccc88f239bb2bd SHA512 15605321143f354ffb9c890823f5751131d942cc16c523b2d00bdcc752ddc5243525f7cda138091604c8f2f9c5b4a309b1efc95f483b753673df98cc8a81ce81
|
||||
DIST dask-2022.05.1.gh.tar.gz 8674295 BLAKE2B bf2043e8409a745ea735bb742e9ff0d6aa0f4acd8d7a9898682a32f2831254d15ff6bd3dd3eac22129a41f118b1136893fe2a614b54396b2d0838be7bbda022d SHA512 da10756e27c631c695bd45353cc31c348b4d61d690790fb6dc27a98f1bea2d9cd248e54966ff1e44fc4c3c1b27834284a2dc0816a90a5c77bf421027c5b0bdb2
|
||||
DIST dask-2022.05.2.gh.tar.gz 8721528 BLAKE2B 42b83ca6fe58b014d3aa90cc99dc4b9b631d6b5bb3243a2a2bd1bcfc6f9ffe5d545b7bcc43edfd3299273e105f7355fbaa9490043a12a8c303773d0e08e63d8c SHA512 1d6ce8db1c83ac22f081beec8667f35acda48578263c637ee294934c729d16a7aca4259e0dde6fed6f2dc9924490589610fc3fc4225dfe07552b15b6af20d8d5
|
||||
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Task scheduling and blocked algorithms for parallel processing"
|
||||
HOMEPAGE="
|
||||
https://dask.org/
|
||||
https://github.com/dask/dask/
|
||||
https://pypi.org/project/dask/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/dask/dask/archive/${PV}.tar.gz -> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/cloudpickle-0.2.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/fsspec-0.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/numpy-1.15.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pandas-0.25.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/partd-0.3.10[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/toolz-0.8.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/toolz[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/moto[${PYTHON_USEDEP}]
|
||||
dev-python/numexpr[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
|
||||
dev-python/scipy[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# another test relying on -Werror
|
||||
"dask/array/tests/test_overlap.py::test_map_overlap_no_depth[None]"
|
||||
# TODO
|
||||
dask/array/tests/test_reductions.py::test_mean_func_does_not_warn
|
||||
dask/tests/test_config.py::test__get_paths
|
||||
)
|
||||
|
||||
python_test() {
|
||||
epytest -p no:flaky -m "not network"
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST exceptiongroup-1.0.0rc5.gh.tar.gz 16454 BLAKE2B 55af4d2240e4a5567f5669d15e8507c454d47c1f7d8f72212afeecfa37e0c4a6b36f9176a87a48d3f9edf0628a8c99863670d24aca3770dd88abaa463784c731 SHA512 dd5ee895b4531524c4f0dfaedf818ac76a1b6fe74cd75bbce824b6a0d2b981673ffd6ba36f71b5dacf3e17c89d196a258400d04a64c71f28c221d7fb0f934ab7
|
||||
DIST exceptiongroup-1.0.0rc6.gh.tar.gz 17184 BLAKE2B 75a1a07d683cbd4d23c25156f4ff3fbda3f08e7df3be67320b08e995f469a9cbd66ca90391fb586972c5c601aff60d44eba3ec5c2d3cccbc791a0482600caea2 SHA512 f74fe5b5df5c7ceb09076db4b7327e2a22202f61fbbfcaeef4f2ce7fb0725a8f57756473db6b2d92d3ee044e26c7ad135d8366944e0858439c4a77ed8b5b7362
|
||||
DIST exceptiongroup-1.0.0rc7.gh.tar.gz 17323 BLAKE2B fc96a1a7978c4ac403132fbb9fba57cd61e8078e1d99e7103e37d7273737c2d8fbf84441a9cfc3c21a355713b13ec78f9befedcc05a74d9bb954ca80965dc789 SHA512 272675f3322f904b6270689696b2a770d8a96f195d8b142986f574e9c67735865afbde8bba0c5bdd43d299fc1f44a3360d273f9b15097efdcfa46f21f40d62bf
|
||||
|
@ -1,34 +0,0 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=flit_scm
|
||||
PYTHON_COMPAT=( pypy3 python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=${P/_}
|
||||
DESCRIPTION="Backport of PEP 654 (exception groups)"
|
||||
HOMEPAGE="
|
||||
https://github.com/agronholm/exceptiongroup/
|
||||
https://pypi.org/project/exceptiongroup/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/agronholm/exceptiongroup/archive/${PV/_}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="MIT PSF-2.4"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV/_}
|
||||
|
||||
python_test() {
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=flit_scm
|
||||
PYTHON_COMPAT=( pypy3 python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=${P/_}
|
||||
DESCRIPTION="Backport of PEP 654 (exception groups)"
|
||||
HOMEPAGE="
|
||||
https://github.com/agronholm/exceptiongroup/
|
||||
https://pypi.org/project/exceptiongroup/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/agronholm/exceptiongroup/archive/${PV/_}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="MIT PSF-2.4"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV/_}
|
||||
|
||||
python_test() {
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=python-api-core-${PV}
|
||||
DESCRIPTION="Core Library for Google Client Libraries"
|
||||
HOMEPAGE="
|
||||
https://github.com/googleapis/python-api-core/
|
||||
https://pypi.org/project/google-api-core/
|
||||
https://googleapis.dev/python/google-api-core/latest/index.html
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/googleapis/python-api-core/archive/v${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/googleapis-common-protos-1.56.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/google-auth-1.25.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/protobuf-python-3.15.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.18.0[${PYTHON_USEDEP}]
|
||||
<dev-python/requests-3[${PYTHON_USEDEP}]
|
||||
!dev-python/namespace-google
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/proto-plus[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# failing due to missing grpcio-status
|
||||
tests/asyncio/test_grpc_helpers_async.py::test_wrap_unary_errors
|
||||
tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_raised
|
||||
tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_read
|
||||
tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_aiter
|
||||
tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_write
|
||||
tests/unit/test_grpc_helpers.py::test_wrap_unary_errors
|
||||
tests/unit/test_grpc_helpers.py::test_wrap_stream_errors_invocation
|
||||
tests/unit/test_grpc_helpers.py::test_wrap_stream_errors_iterator_initialization
|
||||
tests/unit/test_grpc_helpers.py::test_wrap_stream_errors_during_iteration
|
||||
)
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
find "${BUILD_DIR}" -name '*.pth' -delete || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
rm -r google || die
|
||||
distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_write_namespace google
|
||||
epytest -p no:aiohttp -p no:trio tests
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST googleapis-common-protos-1.56.0.tar.gz 132706 BLAKE2B a0adf6527c24aaa30922800a80ef4af8abf3d83c4639c227a859c92e02d248f44b408f98820387a51b310dedf005872cb0fa7824bd27ac6309f31f85810edd40 SHA512 ef6ed067457aad3b46d81bacbb66abe3b36b0640290e0047ef7c6d612dfd8bf865dad47c77275f0d5a1e03cd4e5dca32d08f44c7a7bfe7b264ee59e5c5bb9a27
|
||||
DIST googleapis-common-protos-1.56.1.tar.gz 109702 BLAKE2B ac54a63164a64a125a7dece77a8a9219d922860d6dce9a1057b4dd2f015e2efc6719c224473cee358280028f016fd171e05c8ec6377cdcb216318230ea42df02 SHA512 155698770a790df0ed92144cc0b79373ccdab2bff7109633df5f4f66e75f4f1c312f2ec7248c173f4750416619c65cf6bb7cfc33abfe7530c5d5d7fe2b3cec2c
|
||||
DIST googleapis-common-protos-1.56.2.tar.gz 109718 BLAKE2B 6aeb43927f5c2b0332dbc478d47b06d49490b666158b35b5e58ccd3290939d903865f60ff11f396f9f329bb64382aa636d87ebd06cefcb66d465a0551843178f SHA512 814dddc95fa5bde437c124ff8b66c281f98cae6c0143d473b9194a1367ccaf7915c21450f79f372be5fdb3c4fb41c9d717e57244f2dbd1e819b927b8d86e8d2f
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python classes generated from the common protos in the googleapis repository"
|
||||
HOMEPAGE="
|
||||
https://github.com/googleapis/python-api-common-protos/
|
||||
https://pypi.org/project/googleapis-common-protos/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/protobuf-python-4[${PYTHON_USEDEP}]
|
||||
>=dev-python/protobuf-python-3.15.0[${PYTHON_USEDEP}]
|
||||
!dev-python/namespace-google
|
||||
"
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
find "${BUILD_DIR}" -name '*.pth' -delete || die
|
||||
}
|
||||
|
||||
# no tests as this is all generated code
|
@ -1 +1,2 @@
|
||||
DIST apache-libcloud-3.5.1.tar.bz2 1859270 BLAKE2B c2e49a79ac4feccb5285d9bf55a4a6e8486d32968216b68e8c8f5b049ef5fa8caae853b4e4cc31ec2c323aedf3de275ab79758b1a055d7f20bbde994c58ba882 SHA512 22d6facf344687bfcfd32e53ede12227882f55bf54ffcf75d5584652c4cd257905c56e359d9c6b050635faa2305c344a6dfdc17007eb41143ccff772bd31d91e
|
||||
DIST apache-libcloud-3.6.0.tar.bz2 1873596 BLAKE2B 7ca67d0a84d1af9a216882efb35ff48f4a795eacf34132b78429e0158b1093b3eec316541a52673e61edfc5bfcb326052ee874fe59b1e4a65b407bdaccf38774 SHA512 3a4b4ecf35194e70b6cb70f0619238e1c0140891c08438d4b1ef308fffc9dfb973a5c1534b6ee7864797925b7f7be77eb79a2c4d621627d8042da3927b3f2ff4
|
||||
|
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
PYTHON_REQ_USE="ssl(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Unified Interface to the Cloud - python support libs"
|
||||
HOMEPAGE="https://libcloud.apache.org/"
|
||||
SRC_URI="mirror://apache/${PN}/apache-${P}.tar.bz2"
|
||||
S="${WORKDIR}/apache-${P}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="examples"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.5.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/cryptography-2.6.1[${PYTHON_USEDEP}]
|
||||
dev-python/lockfile[${PYTHON_USEDEP}]
|
||||
dev-python/requests-mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# Needs network access
|
||||
libcloud/test/compute/test_ovh.py::OvhTests::test_list_nodes_invalid_region
|
||||
libcloud/test/test_connection.py::BaseConnectionClassTestCase::test_connection_timeout_raised
|
||||
libcloud/test/test_connection.py::ConnectionClassTestCase::test_retry_on_all_default_retry_exception_classes
|
||||
# TODO
|
||||
libcloud/test/compute/test_ssh_client.py::ParamikoSSHClientTests::test_key_file_non_pem_format_error
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if use examples; then
|
||||
mkdir examples || die
|
||||
mv example_*.py examples || die
|
||||
fi
|
||||
|
||||
# needed for tests
|
||||
cp libcloud/test/secrets.py-dist libcloud/test/secrets.py || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use examples && dodoc -r examples
|
||||
distutils-r1_src_install
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
diff -dup -r lockfile-0.12.2/test/compliancetest.py lockfile-0.12.2.new/test/compliancetest.py
|
||||
--- lockfile-0.12.2/test/compliancetest.py 2015-11-25 19:29:13.000000000 +0100
|
||||
+++ lockfile-0.12.2.new/test/compliancetest.py 2022-05-27 07:55:43.720523461 +0200
|
||||
@@ -6,15 +6,13 @@ import lockfile
|
||||
|
||||
|
||||
class ComplianceTest(object):
|
||||
- def __init__(self):
|
||||
- self.saved_class = lockfile.LockFile
|
||||
-
|
||||
def _testfile(self):
|
||||
"""Return platform-appropriate file. Helper for tests."""
|
||||
import tempfile
|
||||
return os.path.join(tempfile.gettempdir(), 'trash-%s' % os.getpid())
|
||||
|
||||
def setup(self):
|
||||
+ self.saved_class = lockfile.LockFile
|
||||
lockfile.LockFile = self.class_to_test
|
||||
|
||||
def teardown(self):
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Platform-independent file locking module"
|
||||
HOMEPAGE="
|
||||
https://launchpad.net/pylockfile/
|
||||
https://pypi.org/project/lockfile/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
BDEPEND="
|
||||
>dev-python/pbr-1.8[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-pytest.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx doc/source --no-autodoc
|
@ -1,2 +1 @@
|
||||
DIST nbconvert-6.4.5.tar.gz 906309 BLAKE2B 5aee22eb9ce6bb36e04cc3b3db5460041b0a2dfb4afeb1e4787e941d6815f22b7621104ca6d14cb0977c5d09f9a0fade8a5787416b5f55ca1b09149730560bf7 SHA512 9a32eceaff065016baea9fc79478aeb8981f55a2cd47889e640815f2bf924df201d9ce72a4b615d533bcadbd681900678d30de61f777ae4f12bd9fce62d73622
|
||||
DIST nbconvert-6.5.0.tar.gz 908377 BLAKE2B a91c6c93e9e33f90c5c7f19743e20aa6cf88e5dd29be4ee777744d96037dddd15294858776c8391d79f5436e929fb1b623a3f11f6c4cbcf60728dba2204b6e2e SHA512 4e0d26d581435525f819c05207890cc7cbeaff786a16c354f0356c9bc50111a724a92b7e15445a0cf0ebf1e1c2f0ff064a2c8722267f66dd8677ad82b5e61714
|
||||
|
@ -0,0 +1,339 @@
|
||||
From 6e5ba41803cc8c3192f001b3ede9b74454220bda Mon Sep 17 00:00:00 2001
|
||||
From: Tiago de Paula <tiagodepalves@gmail.com>
|
||||
Date: Mon, 9 May 2022 09:39:31 -0300
|
||||
Subject: [PATCH] Update to Mistune 2.0.2 (#1764)
|
||||
|
||||
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
|
||||
---
|
||||
nbconvert/filters/markdown_mistune.py | 212 ++++++++++++++------------
|
||||
setup.py | 2 +-
|
||||
2 files changed, 119 insertions(+), 95 deletions(-)
|
||||
|
||||
diff --git a/nbconvert/filters/markdown_mistune.py b/nbconvert/filters/markdown_mistune.py
|
||||
index 382a5388..636e1e8c 100644
|
||||
--- a/nbconvert/filters/markdown_mistune.py
|
||||
+++ b/nbconvert/filters/markdown_mistune.py
|
||||
@@ -21,7 +21,7 @@ except ImportError:
|
||||
from cgi import escape as html_escape
|
||||
|
||||
import bs4
|
||||
-import mistune
|
||||
+from mistune import BlockParser, HTMLRenderer, InlineParser, Markdown
|
||||
from pygments import highlight
|
||||
from pygments.formatters import HtmlFormatter
|
||||
from pygments.lexers import get_lexer_by_name
|
||||
@@ -34,158 +34,183 @@ class InvalidNotebook(Exception):
|
||||
pass
|
||||
|
||||
|
||||
-class MathBlockGrammar(mistune.BlockGrammar):
|
||||
- """This defines a single regex comprised of the different patterns that
|
||||
- identify math content spanning multiple lines. These are used by the
|
||||
- MathBlockLexer.
|
||||
+class MathBlockParser(BlockParser):
|
||||
+ """This acts as a pass-through to the MathInlineParser. It is needed in
|
||||
+ order to avoid other block level rules splitting math sections apart.
|
||||
"""
|
||||
|
||||
- multi_math_str = "|".join(
|
||||
- [r"^\$\$.*?\$\$", r"^\\\\\[.*?\\\\\]", r"^\\begin\{([a-z]*\*?)\}(.*?)\\end\{\1\}"]
|
||||
+ MULTILINE_MATH = re.compile(
|
||||
+ r"(?<!\\)[$]{2}.*?(?<!\\)[$]{2}|"
|
||||
+ r"\\\\\[.*?\\\\\]|"
|
||||
+ r"\\begin\{([a-z]*\*?)\}.*?\\end\{\1\}",
|
||||
+ re.DOTALL,
|
||||
)
|
||||
- multiline_math = re.compile(multi_math_str, re.DOTALL)
|
||||
|
||||
+ RULE_NAMES = ("multiline_math",) + BlockParser.RULE_NAMES
|
||||
|
||||
-class MathBlockLexer(mistune.BlockLexer):
|
||||
- """This acts as a pass-through to the MathInlineLexer. It is needed in
|
||||
- order to avoid other block level rules splitting math sections apart.
|
||||
- """
|
||||
+ # Regex for header that doesn't require space after '#'
|
||||
+ AXT_HEADING = re.compile(r" {0,3}(#{1,6})(?!#+)\s*([^\n]*?)$")
|
||||
|
||||
- default_rules = ["multiline_math"] + mistune.BlockLexer.default_rules
|
||||
+ def parse_multiline_math(self, m, state):
|
||||
+ """Pass token through mutiline math."""
|
||||
+ return {"type": "multiline_math", "text": m.group(0)}
|
||||
|
||||
- def __init__(self, rules=None, **kwargs):
|
||||
- if rules is None:
|
||||
- rules = MathBlockGrammar()
|
||||
- super().__init__(rules, **kwargs)
|
||||
|
||||
- def parse_multiline_math(self, m):
|
||||
- """Add token to pass through mutiline math."""
|
||||
- self.tokens.append({"type": "multiline_math", "text": m.group(0)})
|
||||
+def _dotall(pattern):
|
||||
+ """Make the '.' special character match any character inside the pattern, including a newline.
|
||||
|
||||
-
|
||||
-class MathInlineGrammar(mistune.InlineGrammar):
|
||||
- """This defines different ways of declaring math objects that should be
|
||||
- passed through to mathjax unaffected. These are used by the MathInlineLexer.
|
||||
+ This is implemented with the inline flag `(?s:...)` and is equivalent to using `re.DOTALL` when
|
||||
+ it is the only pattern used. It is necessary since `mistune>=2.0.0`, where the pattern is passed
|
||||
+ to the undocumented `re.Scanner`.
|
||||
"""
|
||||
-
|
||||
- inline_math = re.compile(r"^\$(.+?)\$|^\\\\\((.+?)\\\\\)", re.DOTALL)
|
||||
- block_math = re.compile(r"^\$\$(.*?)\$\$|^\\\\\[(.*?)\\\\\]", re.DOTALL)
|
||||
- latex_environment = re.compile(r"^\\begin\{([a-z]*\*?)\}(.*?)\\end\{\1\}", re.DOTALL)
|
||||
- text = re.compile(r"^[\s\S]+?(?=[\\<!\[_*`~$]|https?://| {2,}\n|$)")
|
||||
+ return f"(?s:{pattern})"
|
||||
|
||||
|
||||
-class MathInlineLexer(mistune.InlineLexer):
|
||||
- r"""This interprets the content of LaTeX style math objects using the rules
|
||||
- defined by the MathInlineGrammar.
|
||||
+class MathInlineParser(InlineParser):
|
||||
+ r"""This interprets the content of LaTeX style math objects.
|
||||
|
||||
In particular this grabs ``$$...$$``, ``\\[...\\]``, ``\\(...\\)``, ``$...$``,
|
||||
and ``\begin{foo}...\end{foo}`` styles for declaring mathematics. It strips
|
||||
delimiters from all these varieties, and extracts the type of environment
|
||||
in the last case (``foo`` in this example).
|
||||
"""
|
||||
- default_rules = [
|
||||
- "block_math",
|
||||
- "inline_math",
|
||||
+ BLOCK_MATH_TEX = _dotall(r"(?<!\\)\$\$(.*?)(?<!\\)\$\$")
|
||||
+ BLOCK_MATH_LATEX = _dotall(r"(?<!\\)\\\\\[(.*?)(?<!\\)\\\\\]")
|
||||
+ INLINE_MATH_TEX = _dotall(r"(?<![$\\])\$(.+?)(?<![$\\])\$")
|
||||
+ INLINE_MATH_LATEX = _dotall(r"(?<!\\)\\\\\((.*?)(?<!\\)\\\\\)")
|
||||
+ LATEX_ENVIRONMENT = _dotall(r"\\begin\{([a-z]*\*?)\}(.*?)\\end\{\1\}")
|
||||
+
|
||||
+ # The order is important here
|
||||
+ RULE_NAMES = (
|
||||
+ "block_math_tex",
|
||||
+ "block_math_latex",
|
||||
+ "inline_math_tex",
|
||||
+ "inline_math_latex",
|
||||
"latex_environment",
|
||||
- ] + mistune.InlineLexer.default_rules
|
||||
-
|
||||
- def __init__(self, renderer, rules=None, **kwargs):
|
||||
- if rules is None:
|
||||
- rules = MathInlineGrammar()
|
||||
- super().__init__(renderer, rules, **kwargs)
|
||||
-
|
||||
- def output_inline_math(self, m):
|
||||
- return self.renderer.inline_math(m.group(1) or m.group(2))
|
||||
-
|
||||
- def output_block_math(self, m):
|
||||
- return self.renderer.block_math(m.group(1) or m.group(2) or "")
|
||||
-
|
||||
- def output_latex_environment(self, m):
|
||||
- return self.renderer.latex_environment(m.group(1), m.group(2))
|
||||
-
|
||||
-
|
||||
-class MarkdownWithMath(mistune.Markdown):
|
||||
- def __init__(self, renderer, **kwargs):
|
||||
- if "inline" not in kwargs:
|
||||
- kwargs["inline"] = MathInlineLexer
|
||||
- if "block" not in kwargs:
|
||||
- kwargs["block"] = MathBlockLexer
|
||||
- super().__init__(renderer, **kwargs)
|
||||
-
|
||||
- def output_multiline_math(self):
|
||||
- return self.inline(self.token["text"])
|
||||
-
|
||||
-
|
||||
-class IPythonRenderer(mistune.Renderer):
|
||||
- def block_code(self, code, lang):
|
||||
- if lang:
|
||||
+ ) + InlineParser.RULE_NAMES
|
||||
+
|
||||
+ def parse_block_math_tex(self, m, state):
|
||||
+ # sometimes the Scanner keeps the final '$$', so we use the
|
||||
+ # full matched string and remove the math markers
|
||||
+ text = m.group(0)[2:-2]
|
||||
+ return "block_math", text
|
||||
+
|
||||
+ def parse_block_math_latex(self, m, state):
|
||||
+ text = m.group(1)
|
||||
+ return "block_math", text
|
||||
+
|
||||
+ def parse_inline_math_tex(self, m, state):
|
||||
+ text = m.group(1)
|
||||
+ return "inline_math", text
|
||||
+
|
||||
+ def parse_inline_math_latex(self, m, state):
|
||||
+ text = m.group(1)
|
||||
+ return "inline_math", text
|
||||
+
|
||||
+ def parse_latex_environment(self, m, state):
|
||||
+ name, text = m.group(1), m.group(2)
|
||||
+ return "latex_environment", name, text
|
||||
+
|
||||
+
|
||||
+class MarkdownWithMath(Markdown):
|
||||
+ def __init__(self, renderer, block=None, inline=None, plugins=None):
|
||||
+ if block is None:
|
||||
+ block = MathBlockParser()
|
||||
+ if inline is None:
|
||||
+ inline = MathInlineParser(renderer, hard_wrap=False)
|
||||
+ super().__init__(renderer, block, inline, plugins)
|
||||
+
|
||||
+ def render(self, s):
|
||||
+ """Compatibility method with `mistune==0.8.4`."""
|
||||
+ return self.parse(s)
|
||||
+
|
||||
+
|
||||
+class IPythonRenderer(HTMLRenderer):
|
||||
+ def __init__(
|
||||
+ self,
|
||||
+ escape=True,
|
||||
+ allow_harmful_protocols=True,
|
||||
+ embed_images=False,
|
||||
+ exclude_anchor_links=False,
|
||||
+ anchor_link_text="¶",
|
||||
+ path="",
|
||||
+ attachments=None,
|
||||
+ ):
|
||||
+ super().__init__(escape, allow_harmful_protocols)
|
||||
+ self.embed_images = embed_images
|
||||
+ self.exclude_anchor_links = exclude_anchor_links
|
||||
+ self.anchor_link_text = anchor_link_text
|
||||
+ self.path = path
|
||||
+ if attachments is not None:
|
||||
+ self.attachments = attachments
|
||||
+ else:
|
||||
+ self.attachments = {}
|
||||
+
|
||||
+ def block_code(self, code, info=None):
|
||||
+ if info:
|
||||
try:
|
||||
+ lang = info.strip().split(None, 1)[0]
|
||||
lexer = get_lexer_by_name(lang, stripall=True)
|
||||
except ClassNotFound:
|
||||
code = lang + "\n" + code
|
||||
lang = None
|
||||
|
||||
if not lang:
|
||||
- return "\n<pre><code>%s</code></pre>\n" % mistune.escape(code)
|
||||
+ return super().block_code(code)
|
||||
|
||||
formatter = HtmlFormatter()
|
||||
return highlight(code, lexer, formatter)
|
||||
|
||||
def block_html(self, html):
|
||||
- embed_images = self.options.get("embed_images", False)
|
||||
-
|
||||
- if embed_images:
|
||||
+ if self.embed_images:
|
||||
html = self._html_embed_images(html)
|
||||
|
||||
return super().block_html(html)
|
||||
|
||||
def inline_html(self, html):
|
||||
- embed_images = self.options.get("embed_images", False)
|
||||
-
|
||||
- if embed_images:
|
||||
+ if self.embed_images:
|
||||
html = self._html_embed_images(html)
|
||||
|
||||
return super().inline_html(html)
|
||||
|
||||
- def header(self, text, level, raw=None):
|
||||
- html = super().header(text, level, raw=raw)
|
||||
- if self.options.get("exclude_anchor_links"):
|
||||
+ def heading(self, text, level):
|
||||
+ html = super().heading(text, level)
|
||||
+ if self.exclude_anchor_links:
|
||||
return html
|
||||
- anchor_link_text = self.options.get("anchor_link_text", "¶")
|
||||
- return add_anchor(html, anchor_link_text=anchor_link_text)
|
||||
+ return add_anchor(html, anchor_link_text=self.anchor_link_text)
|
||||
|
||||
def escape_html(self, text):
|
||||
return html_escape(text)
|
||||
|
||||
+ def multiline_math(self, text):
|
||||
+ return text
|
||||
+
|
||||
def block_math(self, text):
|
||||
- return "$$%s$$" % self.escape_html(text)
|
||||
+ return f"$${self.escape_html(text)}$$"
|
||||
|
||||
def latex_environment(self, name, text):
|
||||
- name = self.escape_html(name)
|
||||
- text = self.escape_html(text)
|
||||
- return rf"\begin{{{name}}}{text}\end{{{name}}}"
|
||||
+ name, text = self.escape_html(name), self.escape_html(text)
|
||||
+ return f"\\begin{{{name}}}{text}\\end{{{name}}}"
|
||||
|
||||
def inline_math(self, text):
|
||||
- return "$%s$" % self.escape_html(text)
|
||||
+ return f"${self.escape_html(text)}$"
|
||||
|
||||
- def image(self, src, title, text):
|
||||
+ def image(self, src, text, title):
|
||||
"""Rendering a image with title and text.
|
||||
|
||||
:param src: source link of the image.
|
||||
- :param title: title text of the image.
|
||||
:param text: alt text of the image.
|
||||
+ :param title: title text of the image.
|
||||
"""
|
||||
- attachments = self.options.get("attachments", {})
|
||||
attachment_prefix = "attachment:"
|
||||
- embed_images = self.options.get("embed_images", False)
|
||||
|
||||
if src.startswith(attachment_prefix):
|
||||
name = src[len(attachment_prefix) :]
|
||||
|
||||
- if name not in attachments:
|
||||
+ if name not in self.attachments:
|
||||
raise InvalidNotebook(f"missing attachment: {name}")
|
||||
|
||||
- attachment = attachments[name]
|
||||
+ attachment = self.attachments[name]
|
||||
# we choose vector over raster, and lossless over lossy
|
||||
preferred_mime_types = ["image/svg+xml", "image/png", "image/jpeg"]
|
||||
for preferred_mime_type in preferred_mime_types:
|
||||
@@ -197,13 +222,13 @@ class IPythonRenderer(mistune.Renderer):
|
||||
data = attachment[mime_type]
|
||||
src = "data:" + mime_type + ";base64," + data
|
||||
|
||||
- elif embed_images:
|
||||
+ elif self.embed_images:
|
||||
base64_url = self._src_to_base64(src)
|
||||
|
||||
if base64_url is not None:
|
||||
src = base64_url
|
||||
|
||||
- return super().image(src, title, text)
|
||||
+ return super().image(src, text, title)
|
||||
|
||||
def _src_to_base64(self, src):
|
||||
"""Turn the source file into a base64 url.
|
||||
@@ -211,8 +236,7 @@ class IPythonRenderer(mistune.Renderer):
|
||||
:param src: source link of the file.
|
||||
:return: the base64 url or None if the file was not found.
|
||||
"""
|
||||
- path = self.options.get("path", "")
|
||||
- src_path = os.path.join(path, src)
|
||||
+ src_path = os.path.join(self.path, src)
|
||||
|
||||
if not os.path.exists(src_path):
|
||||
return None
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 7220a875..2dfa2534 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -245,7 +245,7 @@ setup_args["install_requires"] = [
|
||||
"jupyter_core>=4.7",
|
||||
"jupyterlab_pygments",
|
||||
"MarkupSafe>=2.0",
|
||||
- "mistune>=0.8.1,<2",
|
||||
+ "mistune>=2.0.2",
|
||||
"nbclient>=0.5.0",
|
||||
"nbformat>=5.1",
|
||||
"packaging",
|
||||
--
|
||||
2.35.1
|
||||
|
@ -1,3 +1,4 @@
|
||||
DIST Nuitka-0.7.7.tar.gz 3785340 BLAKE2B e856bcb3ecf69ecaa447ea73219f544bfceae8ee3a480fbd13b0a763efb8c8ec3c856a6142cff6a91273a88fc0aec15a6bb6c28fab1d9ca0c4dfeca229c11b68 SHA512 124e2d405b1104d0ba42a69b20a5c6168bb0643a13a4de789279401e09c30091853a8e464d9c4877a01f93a5a63934617cf52678994d0ae179560cd21d5b196e
|
||||
DIST Nuitka-0.8.1.tar.gz 3831036 BLAKE2B 3215344e0d46da8bee8a9c3246d2a6a8be86882a446f4e6d84ad924db821c051cd7d428f3e5372af69049e36ffc4a5b0e812f2ae3ea311b2759fbe42f87e2d6d SHA512 69c84d962ec03fb8dbd086c50076f656a99563985cc1750fcb0aebfde50ed68e6982ce2b0f2c3ce84151e9ea2d0cd679370a52c1f1dd0b8f943fc5f5938f9e15
|
||||
DIST Nuitka-0.8.2.tar.gz 3828013 BLAKE2B b5f3b59ea641714a9e437b29dc4b8db6b9f9c09d9b326b5eccc8e302bc5d205e561069c353c337ebd0d81434338244ae27caffb0e246ace0e809ebed0ae28e45 SHA512 7156745a83c9fd18a9564883e8ed7972002b19026d790b864a1383e8a131eb2adf271f403190909e2586ea3a7eb2d28bc3e469770fbae0d392617b26b3e63d25
|
||||
DIST Nuitka-0.8.tar.gz 3829530 BLAKE2B 051be63639e491fb26e7ef36b7e034715d0dd0e39417b59c30b0c5628e78d6c655978a2198d7192b431f176a24060fa899fb9c17ff6dc02fedb64865ad37af5a SHA512 f4eef21a32b68d52363ede1f68afa0247bf61a142fc86763f28805ca3a611195bb87bd1229a31a4d0ce47bbae7f70cc18580ebab528772f0908f122d8341bc6c
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1 flag-o-matic optfeature
|
||||
|
||||
DESCRIPTION="Python to native compiler"
|
||||
HOMEPAGE="https://www.nuitka.net"
|
||||
SRC_URI="https://nuitka.net/releases/${P^}.tar.gz"
|
||||
S="${WORKDIR}/${P^}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~loong ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="dev-util/scons[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
test? ( dev-util/ccache )
|
||||
"
|
||||
|
||||
DOCS=( Changelog.pdf Developer_Manual.pdf README.pdf )
|
||||
|
||||
distutils-r1_src_prepare() {
|
||||
# remove vendored version of SCons that is Python2 only
|
||||
# this should be removed when upstream removes support for Python2
|
||||
rm -vR "${PN}/build/inline_copy/lib/scons-2.3.2/SCons" || die
|
||||
eapply_user
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
doman doc/nuitka3.1 doc/nuitka3-run.1
|
||||
}
|
||||
|
||||
python_test() {
|
||||
append-ldflags -Wl,--no-warn-search-mismatch
|
||||
./tests/basics/run_all.py search || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "support for stand-alone executables" app-admin/chrpath
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue