parent
86cfcc8e93
commit
c2d1fc6db9
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,72 @@
|
||||
# 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 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 ~riscv ~x86"
|
||||
|
||||
# botocore is x.(y+2).(z-1)
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(( $(ver_cut 3-) - 1 ))"
|
||||
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.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
!app-admin/awscli-bin
|
||||
"
|
||||
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 +1 @@
|
||||
DIST exo-1.59.2.tar.gz 5614063 BLAKE2B 358b3fa7935c092e5942d2864b4f25a6d78689558fbd4d11b7bacab29a2d93907e21e098f45896a2f2bca923d6f2addcc5fd04aa2aed56826ca78184dcc0c724 SHA512 7e935ff794a6c7e3236a6f2557f5a9c1d2662e7333d137bbbb866d4d1b889dc07b604643ffebaf20da4fa97bfe09fc1e84f57159c38edc2e4ea902a51b7cf680
|
||||
DIST exo-1.59.3.tar.gz 5505533 BLAKE2B a49e7118f9c8b201a3baeeeb8735ada48bb541cd8be266bee9fc0e59825db00559869a29087bd20a711db5b3d1c91b6437119c1b5a49d9080044fef48b9ba836 SHA512 50146ad59c495235da44be5d7043ca45cba782b1a0a84e6f1ad3b85e1064c52e50d8696622d689a6e1b5f0e70b1f91e2a34aa5c9ba77a9b59e6552acb511282e
|
||||
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST cpio-2.12.tar.bz2 1258605 BLAKE2B 4b6d42a1d8aaeaa980cab5894b2e264451e96a108f2c3aa89d3e6fde0bff338e026ee233ebd7c8cf41f3c926d42d38b866778244db774055736ca8792889e160 SHA512 0cd4da5f2fbca179ab4e666a5f878414c086a5f98bce4c76273f21d9b2a6fe422d901b5d453826c5f81bbe363aa015047a1e99779ad1a451c8feca6205c63120
|
||||
DIST cpio-2.13-CVE-2021-38185.patch.xz 7844 BLAKE2B e338950e03c3eed3b4288435c9c75af8f0c3497b43680be4ee347e628db7cfac616b437a848094bf82cfc2c7f29d59b388bf0f6368b3b99770022e3f9533be11 SHA512 4d2cafefcd1ae9d86cb5171de2896799713490dfd9ed27d3dce0886fa4588c8df2b16ad8508a5dbb9155c9de6e40b6d1083bdb4774d967193a270a1dcbe37a33
|
||||
DIST cpio-2.13.tar.bz2 1354559 BLAKE2B 45d77723acb55f15c8574ab5a2fdff6fb1767629d177dd3416b0268e9f82ee6bdd11b4fa591ef020efccbdc3f4918cf77263169da1a0f6422dfe1a9712295778 SHA512 459398e69f7f48201c04d1080218c50f75edcf114ffcbb236644ff6fcade5fcc566929bdab2ebe9be5314828d6902e43b348a8adf28351df978c8989590e93a3
|
||||
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A file archival tool which can also read and write tar files"
|
||||
HOMEPAGE="https://www.gnu.org/software/cpio/cpio.html"
|
||||
SRC_URI="mirror://gnu/cpio/${P}.tar.bz2"
|
||||
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-CVE-2021-38185.patch.xz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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="nls"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.12-non-gnu-compilers.patch #275295
|
||||
"${WORKDIR}"/${P}-CVE-2021-38185.patch
|
||||
"${FILESDIR}"/${PN}-2.13-sysmacros-glibc-2.26.patch
|
||||
"${FILESDIR}"/${PN}-2.13-fix-no-absolute-filenames-revert-CVE-2015-1197-handling.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Drop after 2.13 (only here for CVE patch)
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable nls)
|
||||
--bindir="${EPREFIX}"/bin
|
||||
--with-rmt="${EPREFIX}"/usr/sbin/rmt
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
https://sources.debian.org/patches/cpio/2.13%2Bdfsg-7.1/revert-CVE-2015-1197-handling.patch/
|
||||
https://bugs.gentoo.org/700020
|
||||
|
||||
From: Chris Lamb <lamby@debian.org>
|
||||
Date: Sat, 1 Feb 2020 13:36:37 +0100
|
||||
Subject: Fix a regression in handling of CVE-2015-1197 &
|
||||
--no-absolute-filenames.
|
||||
|
||||
See:
|
||||
|
||||
* https://bugs.debian.org/946267
|
||||
* https://bugs.debian.org/946469
|
||||
|
||||
This reverts (most of): https://git.savannah.gnu.org/cgit/cpio.git/diff/?id=45b0ee2b407913c533f7ded8d6f8cbeec16ff6ca&id2=3177d660a4c62a6acb538b0f7c54ba423698889a
|
||||
--- a/src/copyin.c
|
||||
+++ b/src/copyin.c
|
||||
@@ -646,8 +646,6 @@ copyin_link (struct cpio_file_stat *file_hdr, int in_file_des)
|
||||
link_name = xstrdup (file_hdr->c_tar_linkname);
|
||||
}
|
||||
|
||||
- cpio_safer_name_suffix (link_name, true, !no_abs_paths_flag, false);
|
||||
-
|
||||
res = UMASKED_SYMLINK (link_name, file_hdr->c_name,
|
||||
file_hdr->c_mode);
|
||||
if (res < 0 && create_dir_flag)
|
||||
--- a/tests/testsuite
|
||||
+++ b/tests/testsuite
|
||||
@@ -2787,7 +2787,7 @@ read at_status <"$at_status_file"
|
||||
#AT_START_14
|
||||
at_fn_group_banner 14 'CVE-2015-1197.at:17' \
|
||||
"CVE-2015-1197 (--no-absolute-filenames for symlinks)" ""
|
||||
-at_xfail=no
|
||||
+at_xfail=yes
|
||||
(
|
||||
$as_echo "14. $at_setup_line: testing $at_desc ..."
|
||||
$at_traceon
|
||||
|
||||
--- a/tests/CVE-2015-1197.at
|
||||
+++ b/tests/CVE-2015-1197.at
|
||||
@@ -15,6 +15,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
AT_SETUP([CVE-2015-1197 (--no-absolute-filenames for symlinks)])
|
||||
+AT_XFAIL_IF([true])
|
||||
AT_CHECK([
|
||||
tempdir=$(pwd)/tmp
|
||||
mkdir $tempdir
|
@ -0,0 +1,12 @@
|
||||
--- a/am/ax_compile_check_rettype.m4
|
||||
+++ b/am/ax_compile_check_rettype.m4
|
||||
@@ -70,6 +70,7 @@ AC_CACHE_VAL(AC_CV_NAME,
|
||||
[for ac_type in char short int long "long long" $4
|
||||
do
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
$3
|
||||
]], [[switch (0) case 0: case (sizeof ($1($2)) == sizeof ($ac_type)):;]])], [AC_CV_NAME=$ac_type])
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
DIST createrepo_c-0.16.2.tar.gz 601935 BLAKE2B 8b9f279d97744e9eeb68cfcc7e9a229ab5a4d8cfca74a2a3d444915eaae7a6d2fa113e517fdcd72b69d0343e541ccce8020f50162e4800c54ba989cea8d5756e SHA512 c63abc8aa6c65584b51a0aa337e261fe5d9a52d72287874f86531caa8133718290a4f44aa765979fa319973c4ba0681437a26f84f64bd5bf781c86a6daa8a39b
|
||||
DIST createrepo_c-0.20.1.tar.gz 614968 BLAKE2B 8eb35c121e1beaa960310d10bfe616799b3a6b13d99f1e8c9d4077975cc929c9f786dec7d26a17d7efbd1859e2e7d8a614147c36a0a82c87f1c1c1a652afa6f3 SHA512 54a2cc7c7cd3f3b9a0c23cd8c136ae1331e7fa7cc995189088e7e6f2276c78b2b84e21c2a2b93f4528b5e9e4018dd6525262c8aaba3bc8a1412a51dfafd101f7
|
||||
|
@ -0,0 +1,42 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="C implementation of createrepo"
|
||||
HOMEPAGE="https://github.com/rpm-software-management/createrepo_c"
|
||||
SRC_URI="https://github.com/rpm-software-management/createrepo_c/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
# Notes: Help with enabling the python support would be great
|
||||
|
||||
DEPEND="app-arch/bzip2:=
|
||||
app-arch/rpm
|
||||
dev-db/sqlite:3
|
||||
dev-libs/glib:2
|
||||
dev-libs/libxml2
|
||||
dev-libs/openssl:=
|
||||
net-misc/curl
|
||||
sys-apps/file
|
||||
sys-libs/zlib:="
|
||||
RDEPEND="${DEPEND}
|
||||
app-arch/lzma"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.20.1-Include-rpm-rpmstring.h-for-rasprintf.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
# Other than for python (where tests are failing) we have special no-in-tree dependencies.
|
||||
local mycmakeargs=(
|
||||
-DENABLE_DRPM=OFF
|
||||
-DENABLE_PYTHON=OFF
|
||||
-DWITH_ZCHUNK=OFF
|
||||
-DWITH_LIBMODULEMD=OFF
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
https://github.com/rpm-software-management/createrepo_c/pull/328
|
||||
|
||||
From cddd4c161523cf4340aa59f832d130e7c34ffd14 Mon Sep 17 00:00:00 2001
|
||||
From: Sam James <sam@gentoo.org>
|
||||
Date: Wed, 19 Oct 2022 03:10:06 +0100
|
||||
Subject: [PATCH] Include <rpm/rpmstring.h> for rasprintf
|
||||
|
||||
Fixes build with Clang 16.
|
||||
|
||||
Bug: https://bugs.gentoo.org/875698
|
||||
--- a/src/xml_file.c
|
||||
+++ b/src/xml_file.c
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <assert.h>
|
||||
+#include <rpm/rpmstring.h>
|
||||
#include "xml_file.h"
|
||||
#include <errno.h>
|
||||
#include "error.h"
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST extract-xiso-2.7.1.tar.gz 207518 BLAKE2B bf99e2555e85344db318bdedf0e6dfb80b5f8cd079dc2083ba94e06c62032235d88296909a1aa887180ce94ce9d80a6b39aab25ed99b04741951aed79c2e8cdb SHA512 a7153d96fa7cfb01dfa385a0984d94dc0fa5ac14ce9f7e2d50287b7e1edbb6a4ba84b6b874aa2628b1a82f23b30687958e411699487896cc48787f48e0e012c6
|
||||
DIST extract-xiso-2.7.1_p202204252159.tar.gz 26979 BLAKE2B e313f78a6c835cbb87467a4509c576e589e05103c5723ecf224b85e5ca6f55cbdcf290c98bc03a745e2a24b2eca3368aea7dffe894300312e2b6287873258f9b SHA512 459a69a95f9680fb4659e30a777694b1ea37087742885e2d06338eab985d9d5734b4571fe7222d1e11489457d584b9da999c2bfb455f3d5eadcf36c8e4c8d844
|
||||
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
MY_PV=${PV/_beta/b}
|
||||
|
||||
DESCRIPTION="Tool for extracting and creating optimised Xbox ISO images"
|
||||
HOMEPAGE="https://sourceforge.net/projects/extract-xiso"
|
||||
if [[ ${PV} == *_p* ]] ; then
|
||||
SRC_URI="https://github.com/XboxDev/extract-xiso/archive/refs/tags/build-$(ver_cut 5).tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}"/${PN}-build-$(ver_cut 5)
|
||||
else
|
||||
SRC_URI="mirror://sourceforge/extract-xiso/${P}.tar.gz"
|
||||
S="${WORKDIR}"/${PN}
|
||||
fi
|
||||
|
||||
LICENSE="BSD-4"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
Binary file not shown.
@ -0,0 +1,19 @@
|
||||
From 29a7c52bbf58b9465bbda3f2aa76849e30282a85 Mon Sep 17 00:00:00 2001
|
||||
From: Sam James <sam@gentoo.org>
|
||||
Date: Wed, 19 Oct 2022 03:43:04 +0100
|
||||
Subject: [PATCH] Fix -Wimplicit-int
|
||||
|
||||
Bug: https://bugs.gentoo.org/874951
|
||||
--- a/cpmask.c
|
||||
+++ b/cpmask.c
|
||||
@@ -126,8 +126,8 @@ static u8 cp_key[] =
|
||||
0x03, 0x01, 0x04, 0x19, 0x0c, 0x0f, 0x0e, 0x12, 0x07, 0x0b, 0x18, 0x11, 0x1a
|
||||
};
|
||||
|
||||
-static cp_table_lu1[MAX_CP_WIDTH];
|
||||
-static cp_table_lu2[MAX_CP_WIDTH];
|
||||
+static UI cp_table_lu1[MAX_CP_WIDTH];
|
||||
+static UI cp_table_lu2[MAX_CP_WIDTH];
|
||||
|
||||
/* this is a bottleneck */
|
||||
static void
|
Binary file not shown.
@ -0,0 +1,527 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
PYTHON_REQ_USE='ncurses,xml(+),threads(+)'
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic multilib python-single-r1 readme.gentoo-r1 toolchain-funcs
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
REPO="xen.git"
|
||||
EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
|
||||
S="${WORKDIR}/${REPO}"
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
|
||||
SEABIOS_VER="1.14.0"
|
||||
EDK2_COMMIT="7b4a99be8a39c12d3a7fc4b8db9f0eab4ac688d5"
|
||||
EDK2_OPENSSL_VERSION="1_1_1j"
|
||||
EDK2_SOFTFLOAT_COMMIT="b64af41c3276f97f0e181920400ee056b9c88037"
|
||||
EDK2_BROTLI_COMMIT="666c3280cc11dc433c303d79a83d4ffbdd12cc8d"
|
||||
IPXE_COMMIT="3c040ad387099483102708bb1839110bc788cefb"
|
||||
|
||||
XEN_GENTOO_PATCHSET_NUM=2
|
||||
XEN_GENTOO_PATCHSET_BASE=4.16.1
|
||||
XEN_PRE_PATCHSET_NUM=0
|
||||
XEN_PRE_VERSION_BASE=4.16.2
|
||||
|
||||
XEN_BASE_PV="${PV}"
|
||||
if [[ -n "${XEN_PRE_VERSION_BASE}" ]]; then
|
||||
XEN_BASE_PV="${XEN_PRE_VERSION_BASE}"
|
||||
fi
|
||||
|
||||
SRC_URI="
|
||||
https://downloads.xenproject.org/release/xen/${XEN_BASE_PV}/xen-${XEN_BASE_PV}.tar.gz
|
||||
https://www.seabios.org/downloads/seabios-${SEABIOS_VER}.tar.gz
|
||||
ipxe? ( https://xenbits.xen.org/xen-extfiles/ipxe-git-${IPXE_COMMIT}.tar.gz )
|
||||
ovmf? ( https://github.com/tianocore/edk2/archive/${EDK2_COMMIT}.tar.gz -> edk2-${EDK2_COMMIT}.tar.gz
|
||||
https://github.com/openssl/openssl/archive/OpenSSL_${EDK2_OPENSSL_VERSION}.tar.gz
|
||||
https://github.com/ucb-bar/berkeley-softfloat-3/archive/${EDK2_SOFTFLOAT_COMMIT}.tar.gz -> berkeley-softfloat-${EDK2_SOFTFLOAT_COMMIT}.tar.gz
|
||||
https://github.com/google/brotli/archive/${EDK2_BROTLI_COMMIT}.tar.gz -> brotli-${EDK2_BROTLI_COMMIT}.tar.gz
|
||||
)
|
||||
"
|
||||
|
||||
if [[ -n "${XEN_PRE_PATCHSET_NUM}" ]]; then
|
||||
XEN_UPSTREAM_PATCHES_TAG="$(ver_cut 1-3)-pre-patchset-${XEN_PRE_PATCHSET_NUM}"
|
||||
XEN_UPSTREAM_PATCHES_NAME="xen-upstream-patches-${XEN_UPSTREAM_PATCHES_TAG}"
|
||||
SRC_URI+=" https://gitweb.gentoo.org/proj/xen-upstream-patches.git/snapshot/${XEN_UPSTREAM_PATCHES_NAME}.tar.bz2"
|
||||
XEN_UPSTREAM_PATCHES_DIR="${WORKDIR}/${XEN_UPSTREAM_PATCHES_NAME}"
|
||||
fi
|
||||
if [[ -n "${XEN_GENTOO_PATCHSET_NUM}" ]]; then
|
||||
XEN_GENTOO_PATCHES_TAG="$(ver_cut 1-3 ${XEN_GENTOO_PATCHSET_BASE})-gentoo-patchset-${XEN_GENTOO_PATCHSET_NUM}"
|
||||
XEN_GENTOO_PATCHES_NAME="xen-gentoo-patches-${XEN_GENTOO_PATCHES_TAG}"
|
||||
SRC_URI+=" https://gitweb.gentoo.org/proj/xen-gentoo-patches.git/snapshot/${XEN_GENTOO_PATCHES_NAME}.tar.bz2"
|
||||
XEN_GENTOO_PATCHES_DIR="${WORKDIR}/${XEN_GENTOO_PATCHES_NAME}"
|
||||
fi
|
||||
fi
|
||||
|
||||
DESCRIPTION="Xen tools including QEMU and xl"
|
||||
HOMEPAGE="https://xenproject.org"
|
||||
DOCS=( README )
|
||||
|
||||
S="${WORKDIR}/xen-$(ver_cut 1-3 ${XEN_BASE_PV})"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/$(ver_cut 1-2)"
|
||||
# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
|
||||
# >=dev-lang/ocaml-4 stable
|
||||
# Masked in profiles/eapi-5-files instead
|
||||
IUSE="api debug doc +hvm +ipxe lzma ocaml ovmf pygrub python +qemu +qemu-traditional +rombios screen selinux sdl static-libs system-ipxe system-qemu system-seabios systemd zstd"
|
||||
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
ipxe? ( rombios )
|
||||
ovmf? ( hvm )
|
||||
pygrub? ( python )
|
||||
rombios? ( hvm )
|
||||
system-ipxe? ( rombios )
|
||||
?? ( ipxe system-ipxe )
|
||||
?? ( qemu system-qemu )"
|
||||
|
||||
COMMON_DEPEND="
|
||||
lzma? ( app-arch/xz-utils )
|
||||
qemu? (
|
||||
dev-libs/glib:2
|
||||
sys-libs/pam
|
||||
)
|
||||
zstd? ( app-arch/zstd )
|
||||
app-arch/bzip2
|
||||
app-arch/zstd
|
||||
dev-libs/libnl:3
|
||||
dev-libs/lzo:2
|
||||
dev-libs/yajl
|
||||
sys-apps/util-linux
|
||||
sys-fs/e2fsprogs
|
||||
sys-libs/ncurses
|
||||
sys-libs/zlib
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
sys-apps/iproute2[-minimal]
|
||||
net-misc/bridge-utils
|
||||
screen? (
|
||||
app-misc/screen
|
||||
app-admin/logrotate
|
||||
)
|
||||
selinux? ( sec-policy/selinux-xen )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-misc/pax-utils
|
||||
>=sys-kernel/linux-headers-4.11
|
||||
x11-libs/pixman
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
')
|
||||
x86? ( sys-devel/dev86
|
||||
system-ipxe? ( sys-firmware/ipxe[qemu] )
|
||||
sys-power/iasl )
|
||||
api? ( dev-libs/libxml2
|
||||
net-misc/curl )
|
||||
|
||||
ovmf? (
|
||||
!arm? ( !arm64? ( dev-lang/nasm ) )
|
||||
$(python_gen_impl_dep sqlite)
|
||||
)
|
||||
!amd64? ( >=sys-apps/dtc-1.4.0 )
|
||||
amd64? ( sys-power/iasl
|
||||
system-seabios? ( sys-firmware/seabios )
|
||||
system-ipxe? ( sys-firmware/ipxe[qemu] )
|
||||
rombios? ( sys-devel/bin86 sys-devel/dev86 ) )
|
||||
arm64? ( sys-power/iasl
|
||||
rombios? ( sys-devel/bin86 sys-devel/dev86 ) )
|
||||
doc? (
|
||||
app-text/ghostscript-gpl
|
||||
app-text/pandoc
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
')
|
||||
dev-texlive/texlive-latexextra
|
||||
media-gfx/transfig
|
||||
)
|
||||
hvm? ( x11-base/xorg-proto )
|
||||
qemu? (
|
||||
app-arch/snappy:=
|
||||
dev-util/meson
|
||||
sdl? (
|
||||
media-libs/libsdl[X]
|
||||
media-libs/libsdl2[X]
|
||||
)
|
||||
)
|
||||
system-qemu? ( app-emulation/qemu[xen] )
|
||||
ocaml? ( dev-ml/findlib
|
||||
dev-lang/ocaml[ocamlopt] )
|
||||
python? ( >=dev-lang/swig-4.0.0 )"
|
||||
|
||||
BDEPEND="dev-lang/perl
|
||||
sys-devel/bison
|
||||
sys-devel/gettext"
|
||||
|
||||
# hvmloader is used to bootstrap a fully virtualized kernel
|
||||
# Approved by QA team in bug #144032
|
||||
QA_WX_LOAD="
|
||||
usr/libexec/xen/boot/hvmloader
|
||||
usr/libexec/xen/boot/ovmf.bin
|
||||
usr/libexec/xen/boot/xen-shim
|
||||
usr/share/qemu-xen/qemu/hppa-firmware.img
|
||||
usr/share/qemu-xen/qemu/opensbi-riscv32-generic-fw_dynamic.elf
|
||||
usr/share/qemu-xen/qemu/opensbi-riscv64-generic-fw_dynamic.elf
|
||||
usr/share/qemu-xen/qemu/s390-ccw.img
|
||||
usr/share/qemu-xen/qemu/u-boot.e500
|
||||
"
|
||||
|
||||
QA_EXECSTACK="
|
||||
usr/share/qemu-xen/qemu/hppa-firmware.img
|
||||
"
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/libexec/xen/bin/elf2dmp
|
||||
usr/libexec/xen/bin/ivshmem-client
|
||||
usr/libexec/xen/bin/ivshmem-server
|
||||
usr/libexec/xen/bin/qemu-edid
|
||||
usr/libexec/xen/bin/qemu-img
|
||||
usr/libexec/xen/bin/qemu-io
|
||||
usr/libexec/xen/bin/qemu-keymap
|
||||
usr/libexec/xen/bin/qemu-nbd
|
||||
usr/libexec/xen/bin/qemu-pr-helper
|
||||
usr/libexec/xen/bin/qemu-storage-daemon
|
||||
usr/libexec/xen/bin/qemu-system-i386
|
||||
usr/libexec/xen/bin/virtfs-proxy-helper
|
||||
usr/libexec/xen/boot/ovmf.bin
|
||||
usr/libexec/xen/boot/xen-shim
|
||||
usr/libexec/xen/libexec/qemu-pr-helper
|
||||
usr/libexec/xen/libexec/virtfs-proxy-helper
|
||||
usr/libexec/xen/libexec/virtiofsd
|
||||
usr/libexec/xen/libexec/xen-bridge-helper
|
||||
usr/share/qemu-xen/qemu/s390-ccw.img
|
||||
usr/share/qemu-xen/qemu/s390-netboot.img
|
||||
usr/share/qemu-xen/qemu/u-boot.e500
|
||||
"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup() {
|
||||
python_setup
|
||||
export "CONFIG_LOMOUNT=y"
|
||||
|
||||
#bug 522642, disable compile tools/tests
|
||||
export "CONFIG_TESTS=n"
|
||||
|
||||
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
||||
if use x86 && use amd64; then
|
||||
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
||||
elif use x86; then
|
||||
export XEN_TARGET_ARCH="x86_32"
|
||||
elif use amd64 ; then
|
||||
export XEN_TARGET_ARCH="x86_64"
|
||||
elif use arm; then
|
||||
export XEN_TARGET_ARCH="arm32"
|
||||
elif use arm64; then
|
||||
export XEN_TARGET_ARCH="arm64"
|
||||
else
|
||||
die "Unsupported architecture!"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
|
||||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
||||
pushd tools/firmware/ > /dev/null
|
||||
ln -s seabios-dir-remote seabios-dir || die
|
||||
popd > /dev/null
|
||||
|
||||
if [[ -v XEN_UPSTREAM_PATCHES_DIR ]]; then
|
||||
eapply "${XEN_UPSTREAM_PATCHES_DIR}"
|
||||
fi
|
||||
|
||||
if [[ -v XEN_GENTOO_PATCHES_DIR ]]; then
|
||||
eapply "${XEN_GENTOO_PATCHES_DIR}"
|
||||
fi
|
||||
|
||||
# Rename qemu-bridge-helper to xen-bridge-helper to avoid file
|
||||
# collisions with app-emulation/qemu.
|
||||
sed -i 's/qemu-bridge-helper/xen-bridge-helper/g' \
|
||||
tools/qemu-xen/include/net/net.h \
|
||||
tools/qemu-xen/meson.build \
|
||||
tools/qemu-xen/qemu-bridge-helper.c \
|
||||
tools/qemu-xen/qemu-options.hx \
|
||||
|| die
|
||||
mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
|
||||
|
||||
if use ovmf; then
|
||||
mv ../edk2-${EDK2_COMMIT} tools/firmware/ovmf-dir-remote || die
|
||||
rm -r tools/firmware/ovmf-dir-remote/CryptoPkg/Library/OpensslLib/openssl || die
|
||||
rm -r tools/firmware/ovmf-dir-remote/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 || die
|
||||
rm -r tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli || die
|
||||
rm -r tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli || die
|
||||
mv ../openssl-OpenSSL_${EDK2_OPENSSL_VERSION} tools/firmware/ovmf-dir-remote/CryptoPkg/Library/OpensslLib/openssl || die
|
||||
mv ../berkeley-softfloat-3-${EDK2_SOFTFLOAT_COMMIT} tools/firmware/ovmf-dir-remote/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 || die
|
||||
cp -r ../brotli-${EDK2_BROTLI_COMMIT} tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli || die
|
||||
cp -r ../brotli-${EDK2_BROTLI_COMMIT} tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli || die
|
||||
cp tools/firmware/ovmf-makefile tools/firmware/ovmf-dir-remote/Makefile || die
|
||||
|
||||
# Bug #816987
|
||||
pushd tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli > /dev/null
|
||||
eapply "${XEN_GENTOO_PATCHES_DIR}/ovmf/${PN}-4.15.1-brotli-gcc11.patch"
|
||||
popd > /dev/null
|
||||
|
||||
pushd tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli > /dev/null
|
||||
eapply "${XEN_GENTOO_PATCHES_DIR}/ovmf/${PN}-4.15.1-brotli-gcc11.patch"
|
||||
popd > /dev/null
|
||||
fi
|
||||
|
||||
# ipxe
|
||||
if use ipxe; then
|
||||
cp "${DISTDIR}/ipxe-git-${IPXE_COMMIT}.tar.gz" tools/firmware/etherboot/ipxe.tar.gz || die
|
||||
|
||||
# gcc 11
|
||||
cp "${XEN_GENTOO_PATCHES_DIR}/ipxe/${PN}-4.15.0-ipxe-gcc11.patch" tools/firmware/etherboot/patches/ipxe-gcc11.patch || die
|
||||
echo ipxe-gcc11.patch >> tools/firmware/etherboot/patches/series || die
|
||||
fi
|
||||
|
||||
# Fix texi2html build error with new texi2html, qemu.doc.html
|
||||
sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
|
||||
|
||||
# Drop .config, fixes to gcc-4.6
|
||||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
||||
|
||||
# drop flags
|
||||
unset CFLAGS
|
||||
unset LDFLAGS
|
||||
unset ASFLAGS
|
||||
unset CPPFLAGS
|
||||
|
||||
if ! use pygrub; then
|
||||
sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
|
||||
fi
|
||||
|
||||
if ! use python; then
|
||||
sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
|
||||
fi
|
||||
|
||||
if ! use hvm; then
|
||||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
||||
# Bug 351648
|
||||
elif ! use x86 && ! has x86 $(get_all_abis); then
|
||||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
||||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
||||
export CPATH="${WORKDIR}"/extra-headers
|
||||
fi
|
||||
|
||||
if use qemu; then
|
||||
if use sdl; then
|
||||
sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
|
||||
tools/Makefile || die
|
||||
else
|
||||
sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
|
||||
tools/qemu-xen-traditional/xen-setup || die
|
||||
sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
|
||||
tools/Makefile || die
|
||||
fi
|
||||
else
|
||||
# Don't bother with qemu, only needed for fully virtualised guests
|
||||
sed -i '/SUBDIRS-$(CONFIG_QEMU_XEN)/s/^/#/g' tools/Makefile || die
|
||||
fi
|
||||
|
||||
# Reset bash completion dir; Bug 472438
|
||||
sed -e "s;^BASH_COMPLETION_DIR :=.*;BASH_COMPLETION_DIR := $(get_bashcompdir);" \
|
||||
-i config/Paths.mk.in || die
|
||||
|
||||
# xencommons, Bug #492332, sed lighter weight than patching
|
||||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
||||
-i tools/hotplug/Linux/init.d/xencommons.in || die
|
||||
|
||||
# fix bashishm
|
||||
sed -e '/Usage/s/\$//g' \
|
||||
-i tools/hotplug/Linux/init.d/xendriverdomain.in || die
|
||||
|
||||
# respect multilib, usr/lib/libcacard.so.0.0.0
|
||||
sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
|
||||
-i tools/qemu-xen/configure || die
|
||||
|
||||
#bug 518136, don't build 32bit exactuable for nomultilib profile
|
||||
if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
|
||||
sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
|
||||
fi
|
||||
|
||||
# uncomment lines in xl.conf
|
||||
sed -e 's:^#autoballoon=:autoballoon=:' \
|
||||
-e 's:^#lockfile=:lockfile=:' \
|
||||
-e 's:^#vif.default.script=:vif.default.script=:' \
|
||||
-i tools/examples/xl.conf || die
|
||||
|
||||
# disable capstone (Bug #673474)
|
||||
sed -e "s:\$\$source/configure:\0 --disable-capstone:" \
|
||||
-i tools/Makefile || die
|
||||
|
||||
# disable glusterfs
|
||||
sed -e "s:\$\$source/configure:\0 --disable-glusterfs:" \
|
||||
-i tools/Makefile || die
|
||||
|
||||
# disable jpeg automagic
|
||||
sed -e "s:\$\$source/configure:\0 --disable-vnc-jpeg:" \
|
||||
-i tools/Makefile || die
|
||||
|
||||
# disable png automagic
|
||||
sed -e "s:\$\$source/configure:\0 --disable-vnc-png:" \
|
||||
-i tools/Makefile || die
|
||||
|
||||
# disable docker (Bug #732970)
|
||||
sed -e "s:\$\$source/configure:\0 --disable-containers:" \
|
||||
-i tools/Makefile || die
|
||||
|
||||
# disable abi-dumper (Bug #791172)
|
||||
sed -e 's/$(ABI_DUMPER) /echo /g' \
|
||||
-i tools/libs/libs.mk || die
|
||||
|
||||
# Remove -Werror
|
||||
find . -type f \( -name Makefile -o -name "*.mk" \) \
|
||||
-exec sed -i \
|
||||
-e 's/-Werror //g' \
|
||||
-e '/^CFLAGS *+= -Werror$/d' \
|
||||
-e 's/, "-Werror"//' \
|
||||
{} + || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)"
|
||||
--libexecdir="${EPREFIX}/usr/libexec"
|
||||
--localstatedir="${EPREFIX}/var"
|
||||
--disable-golang
|
||||
--disable-werror
|
||||
--disable-xen
|
||||
--enable-tools
|
||||
--enable-docs
|
||||
$(use_enable api xenapi)
|
||||
$(use_enable ipxe)
|
||||
$(usex system-ipxe '--with-system-ipxe=/usr/share/ipxe' '')
|
||||
$(use_enable ocaml ocamltools)
|
||||
$(use_enable ovmf)
|
||||
$(use_enable rombios)
|
||||
$(use_enable systemd)
|
||||
--with-xenstored=$(usex ocaml 'oxenstored' 'xenstored')
|
||||
)
|
||||
|
||||
use system-seabios && myconf+=( --with-system-seabios=/usr/share/seabios/bios.bin )
|
||||
use system-qemu && myconf+=( --with-system-qemu=/usr/bin/qemu-system-x86_64 )
|
||||
use amd64 && myconf+=( $(use_enable qemu-traditional) )
|
||||
tc-ld-disable-gold # Bug 669570
|
||||
econf ${myconf[@]}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myopt
|
||||
use debug && myopt="${myopt} debug=y"
|
||||
use python && myopt="${myopt} XENSTAT_PYTHON_BINDINGS=y"
|
||||
|
||||
if test-flag-CC -fno-strict-overflow; then
|
||||
append-flags -fno-strict-overflow
|
||||
fi
|
||||
|
||||
# bug #845099
|
||||
if use ipxe; then
|
||||
local -x NO_WERROR=1
|
||||
fi
|
||||
|
||||
emake \
|
||||
HOSTCC="$(tc-getBUILD_CC)" \
|
||||
HOSTCXX="$(tc-getBUILD_CXX)" \
|
||||
CC="$(tc-getCC)" \
|
||||
CXX="$(tc-getCXX)" \
|
||||
LD="$(tc-getLD)" \
|
||||
AR="$(tc-getAR)" \
|
||||
OBJDUMP="$(tc-getOBJDUMP)" \
|
||||
RANLIB="$(tc-getRANLIB)" \
|
||||
build-tools ${myopt}
|
||||
|
||||
if use doc; then
|
||||
emake -C docs build
|
||||
else
|
||||
emake -C docs man-pages
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Override auto-detection in the build system, bug #382573
|
||||
export INITD_DIR=/tmp/init.d
|
||||
export CONFIG_LEAF_DIR=../tmp/default
|
||||
|
||||
# Let the build system compile installed Python modules.
|
||||
local PYTHONDONTWRITEBYTECODE
|
||||
export PYTHONDONTWRITEBYTECODE
|
||||
|
||||
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
|
||||
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
||||
|
||||
# Created at runtime
|
||||
rm -rv "${ED}/var/run" || die
|
||||
|
||||
# Fix the remaining Python shebangs.
|
||||
python_fix_shebang "${D}"
|
||||
|
||||
# Remove RedHat-specific stuff
|
||||
rm -rf "${D}"/tmp || die
|
||||
|
||||
if use doc; then
|
||||
emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
||||
dodoc -r docs/{pdf,txt}
|
||||
else
|
||||
emake -C docs DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-man-pages # Bug 668032
|
||||
fi
|
||||
dodoc ${DOCS[@]}
|
||||
|
||||
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
||||
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
||||
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
||||
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
||||
newinitd "${FILESDIR}"/xenstored.initd-r1 xenstored
|
||||
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
||||
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
||||
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
||||
newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
|
||||
newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
|
||||
newinitd "${FILESDIR}"/xen-watchdog.initd xen-watchdog
|
||||
|
||||
if use screen; then
|
||||
cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
|
||||
cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
|
||||
keepdir /var/log/xen-consoles
|
||||
fi
|
||||
|
||||
# For -static-libs wrt Bug 384355
|
||||
if ! use static-libs; then
|
||||
rm -f "${D}"/usr/$(get_libdir)/*.a "${D}"/usr/$(get_libdir)/ocaml/*/*.a
|
||||
fi
|
||||
|
||||
# for xendomains
|
||||
keepdir /etc/xen/auto
|
||||
|
||||
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
||||
find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
||||
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
||||
|
||||
keepdir /var/lib/xen/dump
|
||||
keepdir /var/lib/xen/xenpaging
|
||||
keepdir /var/lib/xenstored
|
||||
keepdir /var/log/xen
|
||||
|
||||
if use python; then
|
||||
python_domodule "${S}/tools/libs/stat/bindings/swig/python/xenstat.py"
|
||||
python_domodule "${S}/tools/libs/stat/bindings/swig/python/_xenstat.so"
|
||||
fi
|
||||
|
||||
python_optimize
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
DIST xen-4.15.3.tar.gz 40793144 BLAKE2B 33932d855a0502cfe2768a7c8ae19d7da285d70b4970d96fd703daf0ee24a77ad47a3d1b4bcf5f465aa81aa7eb7f9295bce96302b2149ca208fa662cd966d6af SHA512 c25903cc263891885ec76500488405226c8e025bb461d2bf0d590b9bd2d7ca5c2693de7ecc38b3655bfd6793cc96314826559f14a09cc139de8cfdbeb914cbd3
|
||||
DIST xen-4.16.2.tar.gz 44995249 BLAKE2B a221d1e4578ab6eb3250754b3b0f36fb30133c1c83246532ebb9648c3d025b3f5132227371b5d3dd82099594f4ee738227480528ee944b8de6231d9c89892d15 SHA512 b6cd036c1073798dffa167ca14c954fbdfb4c0ef99662f7c435e7e5de687d1bde8856ff6bd030d0d2e661bd17ab631551f01b2cc728cad7e70b59aaa6e692783
|
||||
DIST xen-gentoo-patches-4.16.1-gentoo-patchset-2.tar.bz2 5403 BLAKE2B 7fa3b4aa123b2deed260d02b8d34a35dd205207038edb92569278b25c6fe32e0f0e3857c07755553e047f0eb0d9fe7f8b0816e0f3d7f68aee7929afaf6611dfd SHA512 9e7d25640b24235acf756b031b8b7cee582dded65fe7b94a706c990232e9704d574036c3a9605f285e8e9534578d100a3f38719b27b22775f17ef8f68287997e
|
||||
DIST xen-upstream-patches-4.15.4-pre-patchset-0.1.tar.bz2 28980 BLAKE2B 5bdabed3bce4306fe5f656a965d1e537608c03b4706dc801a0b0b9649d001b875b1a2543c68c6b459483991570f0fbf2490a97ea1776761c9f61e9876f240fdf SHA512 4f6bbf0dab57ad58292f32fab55294b2eedd0442be7f62341a2df922a1d21880fe33cc29956ccbbb8b4aee4c10b38d4aa090e4db9496d6e0f5256e60999cad7d
|
||||
DIST xen-upstream-patches-4.15.4-pre-patchset-1.tar.bz2 68066 BLAKE2B ee6aac9aa8988423fd1594fa09c54678ee8d089abfff27913fdbe4f60c1f2a038e06cca5d03924595036bd9ca9be8a7f61ed5d7662e6534b05a45da24c88babd SHA512 65c7c900ca91f7444cdc03fa0902e8d58d68cd755cfa2d16cf1df76b657328e374fec0da3ceb734aefa10cfa874a46de5f731c3827ab4f815b4eabc305ed497f
|
||||
DIST xen-upstream-patches-4.16.3-pre-patchset-0.tar.bz2 36580 BLAKE2B 7a16b452fda7cf00321c70c239f30fbff72204d5b021aba23e1e08b2d8dee0f1180a18301b5935f4d35dc54533e2e253f047681b837de187a2a174191a168c3c SHA512 5e7328c8cd7ce98cdff47033a76705395419c1322d5212206aa1255d19aeb2fd3d097e71d39137ab97aeab0b9f991e1660b92a6ddb08f02c9407ceaa24aa9ec0
|
||||
|
@ -0,0 +1,174 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit flag-o-matic mount-boot python-any-r1 toolchain-funcs
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
|
||||
SRC_URI=""
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm -x86"
|
||||
|
||||
XEN_GENTOO_PATCHSET_NUM=2
|
||||
XEN_GENTOO_PATCHSET_BASE=4.16.1
|
||||
XEN_PRE_PATCHSET_NUM=0
|
||||
XEN_PRE_VERSION_BASE=4.16.2
|
||||
|
||||
XEN_BASE_PV="${PV}"
|
||||
if [[ -n "${XEN_PRE_VERSION_BASE}" ]]; then
|
||||
XEN_BASE_PV="${XEN_PRE_VERSION_BASE}"
|
||||
fi
|
||||
|
||||
SRC_URI="https://downloads.xenproject.org/release/xen/${XEN_BASE_PV}/xen-${XEN_BASE_PV}.tar.gz"
|
||||
|
||||
if [[ -n "${XEN_PRE_PATCHSET_NUM}" ]]; then
|
||||
XEN_UPSTREAM_PATCHES_TAG="$(ver_cut 1-3)-pre-patchset-${XEN_PRE_PATCHSET_NUM}"
|
||||
XEN_UPSTREAM_PATCHES_NAME="xen-upstream-patches-${XEN_UPSTREAM_PATCHES_TAG}"
|
||||
SRC_URI+=" https://gitweb.gentoo.org/proj/xen-upstream-patches.git/snapshot/${XEN_UPSTREAM_PATCHES_NAME}.tar.bz2"
|
||||
XEN_UPSTREAM_PATCHES_DIR="${WORKDIR}/${XEN_UPSTREAM_PATCHES_NAME}"
|
||||
fi
|
||||
if [[ -n "${XEN_GENTOO_PATCHSET_NUM}" ]]; then
|
||||
XEN_GENTOO_PATCHES_TAG="$(ver_cut 1-3 ${XEN_GENTOO_PATCHSET_BASE})-gentoo-patchset-${XEN_GENTOO_PATCHSET_NUM}"
|
||||
XEN_GENTOO_PATCHES_NAME="xen-gentoo-patches-${XEN_GENTOO_PATCHES_TAG}"
|
||||
SRC_URI+=" https://gitweb.gentoo.org/proj/xen-gentoo-patches.git/snapshot/${XEN_GENTOO_PATCHES_NAME}.tar.bz2"
|
||||
XEN_GENTOO_PATCHES_DIR="${WORKDIR}/${XEN_GENTOO_PATCHES_NAME}"
|
||||
fi
|
||||
fi
|
||||
|
||||
DESCRIPTION="The Xen virtual machine monitor"
|
||||
HOMEPAGE="https://xenproject.org"
|
||||
|
||||
S="${WORKDIR}/xen-$(ver_cut 1-3 ${XEN_BASE_PV})"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+boot-symlinks debug efi flask"
|
||||
REQUIRED_USE="arm? ( debug )"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
efi? ( >=sys-devel/binutils-2.22[multitarget] )
|
||||
!efi? ( >=sys-devel/binutils-2.22 )
|
||||
flask? ( sys-apps/checkpolicy )"
|
||||
RDEPEND=""
|
||||
PDEPEND="~app-emulation/xen-tools-${PV}"
|
||||
|
||||
# no tests are available for the hypervisor
|
||||
# prevent the silliness of /usr/lib/debug/usr/lib/debug files
|
||||
# prevent stripping of the debug info from the /usr/lib/debug/xen-syms
|
||||
RESTRICT="test splitdebug strip"
|
||||
|
||||
# Approved by QA team in bug #144032
|
||||
QA_WX_LOAD="boot/xen-syms-${PV}"
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
if [[ -z ${XEN_TARGET_ARCH} ]]; then
|
||||
if use amd64; then
|
||||
export XEN_TARGET_ARCH="x86_64"
|
||||
elif use arm; then
|
||||
export XEN_TARGET_ARCH="arm32"
|
||||
elif use arm64; then
|
||||
export XEN_TARGET_ARCH="arm64"
|
||||
else
|
||||
die "Unsupported architecture!"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if [[ -v XEN_UPSTREAM_PATCHES_DIR ]]; then
|
||||
eapply "${XEN_UPSTREAM_PATCHES_DIR}"
|
||||
fi
|
||||
|
||||
if [[ -v XEN_GENTOO_PATCHES_DIR ]]; then
|
||||
eapply "${XEN_GENTOO_PATCHES_DIR}"
|
||||
fi
|
||||
|
||||
# Symlinks do not work on fat32 volumes # 829765
|
||||
if ! use boot-symlinks || use efi; then
|
||||
eapply "${XEN_GENTOO_PATCHES_DIR}"/no-boot-symlinks/${PN}-4.16-no-symlinks.patch
|
||||
fi
|
||||
|
||||
# Workaround new gcc-11 options
|
||||
sed -e '/^CFLAGS/s/-Werror//g' -i xen/Makefile || die
|
||||
|
||||
# Drop .config
|
||||
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
||||
|
||||
if use efi; then
|
||||
export EFI_VENDOR="gentoo"
|
||||
export EFI_MOUNTPOINT="/boot"
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
xen_make() {
|
||||
# Setting clang to either 'y' or 'n' tells Xen's build system
|
||||
# whether or not clang is used.
|
||||
local clang=n
|
||||
if tc-is-clang; then
|
||||
clang=y
|
||||
fi
|
||||
|
||||
# Send raw LDFLAGS so that --as-needed works
|
||||
emake \
|
||||
V=1 \
|
||||
LDFLAGS="$(raw-ldflags)" \
|
||||
HOSTCC="$(tc-getBUILD_CC)" \
|
||||
HOSTCXX="$(tc-getBUILD_CXX)" \
|
||||
CC="$(tc-getCC)" \
|
||||
CXX="$(tc-getCXX)" \
|
||||
LD="$(tc-getLD)" \
|
||||
AR="$(tc-getAR)" \
|
||||
OBJDUMP="$(tc-getOBJDUMP)" \
|
||||
RANLIB="$(tc-getRANLIB)" \
|
||||
clang="${clang}" \
|
||||
"$@"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cd xen || die
|
||||
|
||||
touch gentoo-config || die
|
||||
if use arm; then
|
||||
echo "CONFIG_EARLY_PRINTK=sun7i" >> gentoo-config || die
|
||||
fi
|
||||
if use debug; then
|
||||
cat <<-EOF >> gentoo-config || die
|
||||
CONFIG_DEBUG=y
|
||||
CONFIG_CRASH_DEBUG=y
|
||||
EOF
|
||||
fi
|
||||
if use flask; then
|
||||
echo "CONFIG_XSM=y" >> gentoo-config || die
|
||||
fi
|
||||
|
||||
# remove flags
|
||||
unset CFLAGS
|
||||
|
||||
tc-ld-disable-gold # Bug 700374
|
||||
|
||||
xen_make KCONFIG_ALLCONFIG=gentoo-config alldefconfig
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
xen_make -C xen
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# The 'make install' doesn't 'mkdir -p' the subdirs
|
||||
if use efi; then
|
||||
mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
|
||||
fi
|
||||
|
||||
xen_make DESTDIR="${D}" -C xen install
|
||||
|
||||
# make install likes to throw in some extra EFI bits if it built
|
||||
use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST dasel-1.24.3-deps.tar.xz 20531068 BLAKE2B 6cd947a88c54e46300432c2f87c0ef757a53739e0755af48f4596a87ba46faf12c967145a0f263e13abb8f01ffe10c51b45f641de348fc02e7af39417b709d1d SHA512 27696cd5a5c93b3e29ba12fd2730c04047dc752ef17a32db73e7cbc8e5d38d914705720da9ff0ffb0c8d3fb383b5070eb552b24a4e72e72ebad70c2e1085cab3
|
||||
DIST dasel-1.26.1.tar.gz 3054446 BLAKE2B 760f03ee0feb1b6e0e0da9a92922f13bb3786b90ab01bda040d2be2cf10ed5d8a8c2db69ac146ac2ec64f6c4503eaaa87d32c73068f27ebc9ce87045052b4af3 SHA512 07efcf0bf31573decc856a8b41842af9658dc1a3b968510b8e4c642ec8cfe24e97de64b6ef2c296da7d5623ca47e92d42e3f7bb927a8a25e54f97546fac279f0
|
||||
DIST dasel-1.27.1.tar.gz 3055281 BLAKE2B fde309780c2eef80e1efb52eafe1f5c1fc9c6824f88ed5d902564f4831f6628cf03501d52b7f2605be8ee7d5eb84898d752bac1077e3c06243ffe5b1f1eb4527 SHA512 de9a68cd158262d7d216fe54bc05b7bbaed671dbdee2f3c8055957434903364491c79c00e009e357f1650f2d3f2558ccd609b15f5320026b536eb23cb74482bd
|
||||
DIST dasel-1.27.3.tar.gz 3056021 BLAKE2B 2145f501f837cd16aaa7cc16074e446e07cbb8b6b7ce043c644badbe758d255c9e42f408ca818e6241feb91f22eaa1e8e7fbf74b84275b7eba576687e877b1aa SHA512 51e5f770f75e34f72692adf0987bcb965dd2100ac3e251c035cf62479462e22f982640bab6adac3c12bebac6987f7852f53cceb2c0c4d6dd009befe843cc1aec
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 2021-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="Query, update and convert data structures from the command line"
|
||||
HOMEPAGE="https://github.com/TomWright/dasel"
|
||||
SRC_URI="https://github.com/TomWright/dasel/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~zmedico/dist/dasel-1.24.3-deps.tar.xz"
|
||||
|
||||
LICENSE="MIT Apache-2.0 BSD BSD-2 ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
CGO_ENABLED=0 go build -o bin/dasel -ldflags="-X 'github.com/tomwright/dasel/internal.Version=${PV}'" ./cmd/dasel || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/dasel
|
||||
dodoc CHANGELOG.md README.md
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,111 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
GCONF_DEBUG="no"
|
||||
|
||||
PYTHON_COMPAT=( python3_{8,9,10} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
ANTLR_VERSION=4.9.1
|
||||
|
||||
inherit gnome2 flag-o-matic python-single-r1 cmake
|
||||
|
||||
MY_P="${PN}-community-${PV}-src"
|
||||
|
||||
DESCRIPTION="MySQL Workbench"
|
||||
HOMEPAGE="https://www.mysql.com/products/workbench/"
|
||||
SRC_URI="https://cdn.mysql.com/Downloads/MySQLGUITools/${MY_P}.tar.gz
|
||||
https://www.antlr.org/download/antlr-${ANTLR_VERSION}-complete.jar"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="debug doc"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# glibc: deprecated mutex functions, removed in 2.36.0
|
||||
CDEPEND="${PYTHON_DEPS}
|
||||
app-crypt/libsecret
|
||||
dev-libs/glib:2
|
||||
dev-cpp/antlr-cpp:4
|
||||
dev-cpp/atkmm:*
|
||||
dev-cpp/pangomm:1.4
|
||||
>=dev-cpp/glibmm-2.14:2
|
||||
dev-cpp/gtkmm:3.0
|
||||
dev-libs/atk
|
||||
>=net-libs/libssh-0.8.5[server]
|
||||
x11-libs/pango
|
||||
x11-libs/gtk+:3
|
||||
gnome-base/libglade:2.0
|
||||
>=x11-libs/cairo-1.5.12[glib,svg(+)]
|
||||
>=dev-libs/rapidjson-1.1.0
|
||||
dev-libs/libsigc++:2
|
||||
dev-libs/boost[nls]
|
||||
>=dev-cpp/ctemplate-0.95
|
||||
>=dev-libs/libxml2-2.6.2:2
|
||||
dev-libs/libzip
|
||||
dev-libs/libpcre[cxx]
|
||||
>=sci-libs/gdal-1.11.1-r1
|
||||
virtual/opengl
|
||||
|| ( sys-fs/e2fsprogs dev-libs/ossp-uuid )
|
||||
dev-libs/tinyxml[stl]
|
||||
>=dev-db/mysql-connector-c++-8.0.27-r1
|
||||
dev-db/vsqlite++
|
||||
|| ( dev-db/libiodbc dev-db/unixODBC )
|
||||
dev-python/pexpect
|
||||
>=dev-python/paramiko-1.7.4
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
app-admin/sudo
|
||||
>=sys-apps/net-tools-1.60_p20120127084908"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
dev-lang/swig
|
||||
virtual/jre
|
||||
virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}"/"${MY_P}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-6.2.5-wbcopytables.patch"
|
||||
"${FILESDIR}/${PN}-8.0.19-mysql-connector-8.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${PN}-community-${PV}-src.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
## remove hardcoded CXXFLAGS
|
||||
sed -i -e 's/-O0 -g3//' ext/scintilla/gtk/CMakeLists.txt || die
|
||||
## And avoid -Werror
|
||||
sed -i -e 's/-Werror//' CMakeLists.txt || die
|
||||
## Fix doc install directory
|
||||
sed -i -e "/WB_INSTALL_DOC_DIR/ s/mysql-workbench/${P}/ ; /WB_INSTALL_DOC_DIR/ s/-community//" CMakeLists.txt || die
|
||||
|
||||
## package is very fragile...
|
||||
strip-flags
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if has_version dev-db/libiodbc ; then
|
||||
IODBC="-DIODBC_CONFIG_PATH=/usr/bin/iodbc-config"
|
||||
fi
|
||||
|
||||
append-cxxflags -std=c++11
|
||||
ANTLR_JAR_PATH="${DISTDIR}/antlr-${ANTLR_VERSION}-complete.jar"
|
||||
local mycmakeargs=(
|
||||
-DWITH_ANTLR_JAR=${ANTLR_JAR_PATH}
|
||||
-DLIB_INSTALL_DIR="/usr/$(get_libdir)"
|
||||
-DIODBC_INCLUDE_PATH="/usr/include/iodbc"
|
||||
${IODBC}
|
||||
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
|
||||
-DPYTHON_LIBRARY="$(python_get_library_path)"
|
||||
-DMySQL_CONFIG_PATH="/usr/bin/mysql_config"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,23 @@
|
||||
From: Eric Joldasov <bratishkaerik@getgoogleoff.me>
|
||||
Fix building with Clang 16
|
||||
Upstream PR https://github.com/ziglang/zig/pull/13121
|
||||
|
||||
--- a/src/stage1/parse_f128.c
|
||||
+++ b/src/stage1/parse_f128.c
|
||||
@@ -983,14 +983,14 @@ static int isspace(int c)
|
||||
return c == ' ' || (unsigned)c-'\t' < 5;
|
||||
}
|
||||
|
||||
-static inline float128_t makeInf128() {
|
||||
+static inline float128_t makeInf128(void) {
|
||||
union ldshape ux;
|
||||
ux.i2.hi = 0x7fff000000000000UL;
|
||||
ux.i2.lo = 0x0UL;
|
||||
return ux.f;
|
||||
}
|
||||
|
||||
-static inline float128_t makeNaN128() {
|
||||
+static inline float128_t makeNaN128(void) {
|
||||
uint64_t rand = 0UL;
|
||||
union ldshape ux;
|
||||
ux.i2.hi = 0x7fff000000000000UL | (rand & 0xffffffffffffUL);
|
Binary file not shown.
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
inherit cmake llvm llvm.org python-any-r1
|
||||
|
||||
DESCRIPTION="OpenCL C library"
|
||||
HOMEPAGE="https://libclc.llvm.org/"
|
||||
|
||||
LICENSE="Apache-2.0-with-LLVM-exceptions || ( MIT BSD )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_r600 video_cards_radeonsi"
|
||||
IUSE="${IUSE_VIDEO_CARDS}"
|
||||
REQUIRED_USE="|| ( ${IUSE_VIDEO_CARDS} )"
|
||||
|
||||
LLVM_MAX_SLOT=15
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
|| (
|
||||
sys-devel/clang:15
|
||||
sys-devel/clang:14
|
||||
sys-devel/clang:13
|
||||
)
|
||||
"
|
||||
|
||||
LLVM_COMPONENTS=( libclc )
|
||||
llvm.org_set_globals
|
||||
|
||||
llvm_check_deps() {
|
||||
has_version -b "sys-devel/clang:${LLVM_SLOT}"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# we do not need llvm_pkg_setup
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local libclc_targets=()
|
||||
|
||||
use video_cards_nvidia && libclc_targets+=(
|
||||
"nvptx--"
|
||||
"nvptx64--"
|
||||
"nvptx--nvidiacl"
|
||||
"nvptx64--nvidiacl"
|
||||
)
|
||||
use video_cards_r600 && libclc_targets+=(
|
||||
"r600--"
|
||||
)
|
||||
use video_cards_radeonsi && libclc_targets+=(
|
||||
"amdgcn--"
|
||||
"amdgcn-mesa-mesa3d"
|
||||
"amdgcn--amdhsa"
|
||||
)
|
||||
# TODO: spirv
|
||||
[[ ${#libclc_targets[@]} ]] || die "libclc target missing!"
|
||||
|
||||
libclc_targets=${libclc_targets[*]}
|
||||
local mycmakeargs=(
|
||||
-DLIBCLC_TARGETS_TO_BUILD="${libclc_targets// /;}"
|
||||
-DLLVM_CONFIG="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST libgusb-0.3.10.tar.xz 42972 BLAKE2B 4c49aa15cbbbb56d5ee5b896adb3e34b45332cd846933fd3aa86a645e7d897418d0e7a30d9972980e6527f1e60fc6e579f5df119708a12b3e504ff695c94d922 SHA512 66bd7c292cb9df2799b02acd48dc4b07794e7339ea1bd6473ea512dfec1b8e7e58abbd40f16a2a4805240cc8df4aec050335edb4f4178ad12ac5275438b8ae59
|
||||
DIST libgusb-0.4.1.tar.xz 50384 BLAKE2B e6613758bb24710ce8326e12a6fb6a8708135c0c826a7b8f87fa95df5dba04bf5155c2daf42713d5f74478ca457f795c2f553acbdef1a8b1df0019f7832b019f SHA512 de0a74d75b00699e6b113c0ec334f7385e892317b2814047f7990fed361d78d6acdb2148ded9e602cf3537ff87e8c10017da2315923db4cb3f5c29f75418e9b8
|
||||
DIST libgusb-0.4.2.tar.xz 48440 BLAKE2B 6241271efe40a8653e417ffcbd9b7ba0463c5a1e289a39fb8aab6b6c70da75973af1bcb8afba0a6c3a1535a7015e7d0f121f22ca1dddcd74d57722af3c95c312 SHA512 c3e8e7a21f1e2f355cda5dddbde7235f9c48d4ff96c2d012e48df5bd7e1216ed41f3cc81f4a215ceead8b6e8cf0d04a85916043adfd074e543c041dbe63acd48
|
||||
|
@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit meson-multilib python-any-r1 vala
|
||||
|
||||
DESCRIPTION="GObject wrapper for libusb"
|
||||
HOMEPAGE="https://github.com/hughsie/libgusb"
|
||||
SRC_URI="https://people.freedesktop.org/~hughsient/releases/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
IUSE="gtk-doc +introspection test +vala"
|
||||
REQUIRED_USE="
|
||||
gtk-doc? ( introspection )
|
||||
vala? ( introspection )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.44.0:2[${MULTILIB_USEDEP}]
|
||||
virtual/libusb:1[udev,${MULTILIB_USEDEP}]
|
||||
>=dev-libs/json-glib-1.1.1[${MULTILIB_USEDEP}]
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.54:= )
|
||||
sys-apps/hwdata
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( >=dev-util/umockdev-0.17.7[${MULTILIB_USEDEP}] )"
|
||||
BDEPEND="
|
||||
$(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]')
|
||||
gtk-doc? ( dev-util/gi-docgen )
|
||||
vala? ( $(vala_depend) )
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version "dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use vala && vala_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
-Ddefault_library=shared
|
||||
$(meson_use test tests)
|
||||
$(meson_native_use_bool vala vapi)
|
||||
-Dusb_ids="${EPREFIX}"/usr/share/hwdata/usb.ids
|
||||
$(meson_native_use_bool gtk-doc docs)
|
||||
$(meson_native_use_bool introspection)
|
||||
$(meson_feature test umockdev)
|
||||
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
if use gtk-doc; then
|
||||
mkdir -p "${ED}"/usr/share/gtk-doc/ || die
|
||||
mv "${ED}"/usr/share/{doc,gtk-doc}/libgusb || die
|
||||
fi
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
https://github.com/libtom/libtompoly/pull/4
|
||||
|
||||
From 62f0b57e577cb3ec371042e60eb82ffcd0ae6bd0 Mon Sep 17 00:00:00 2001
|
||||
From: Sam James <sam@gentoo.org>
|
||||
Date: Wed, 19 Oct 2022 02:21:00 +0100
|
||||
Subject: [PATCH] Fix -Wimplicit-function-declaration
|
||||
|
||||
Causes build failures with Clang 16.
|
||||
|
||||
Bug: https://bugs.gentoo.org/875527
|
||||
--- a/pb_add.c
|
||||
+++ b/pb_add.c
|
||||
@@ -10,6 +10,7 @@
|
||||
* Tom St Denis, tomstdenis@iahu.ca, http://poly.libtomcrypt.org
|
||||
*/
|
||||
#include <tompoly.h>
|
||||
+#include <math.h>
|
||||
|
||||
int pb_add(pb_poly *a, pb_poly *b, pb_poly *c)
|
||||
{
|
||||
@@ -17,7 +18,7 @@ int pb_add(pb_poly *a, pb_poly *b, pb_poly *c)
|
||||
pb_poly *tmp;
|
||||
|
||||
/* grow c to be the max size */
|
||||
- y = MAX(a->used, b->used);
|
||||
+ y = fmax(a->used, b->used);
|
||||
if (c->alloc < y) {
|
||||
if ((err = pb_grow(c, y)) != MP_OKAY) {
|
||||
return err;
|
||||
@@ -28,7 +29,7 @@ int pb_add(pb_poly *a, pb_poly *b, pb_poly *c)
|
||||
characteristic = mp_iszero(&(c->characteristic));
|
||||
|
||||
/* add the terms */
|
||||
- z = MIN(a->used, b->used);
|
||||
+ z = fmin(a->used, b->used);
|
||||
for (x = 0; x < z; x++) {
|
||||
if ((err = mp_add(&(a->terms[x]), &(b->terms[x]), &(c->terms[x]))) != MP_OKAY) {
|
||||
return err;
|
||||
--- a/pb_clear.c
|
||||
+++ b/pb_clear.c
|
||||
@@ -10,6 +10,7 @@
|
||||
* Tom St Denis, tomstdenis@iahu.ca, http://poly.libtomcrypt.org
|
||||
*/
|
||||
#include <tompoly.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
void pb_clear(pb_poly *a)
|
||||
{
|
||||
--- a/pb_grow.c
|
||||
+++ b/pb_grow.c
|
||||
@@ -10,6 +10,8 @@
|
||||
* Tom St Denis, tomstdenis@iahu.ca, http://poly.libtomcrypt.org
|
||||
*/
|
||||
#include <tompoly.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
|
||||
int pb_grow(pb_poly *a, int size)
|
||||
{
|
||||
--- a/pb_init.c
|
||||
+++ b/pb_init.c
|
||||
@@ -10,6 +10,7 @@
|
||||
* Tom St Denis, tomstdenis@iahu.ca, http://poly.libtomcrypt.org
|
||||
*/
|
||||
#include <tompoly.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
/* initialize a */
|
||||
int pb_init(pb_poly *a, mp_int *characteristic)
|
||||
--- a/pb_init_size.c
|
||||
+++ b/pb_init_size.c
|
||||
@@ -10,6 +10,7 @@
|
||||
* Tom St Denis, tomstdenis@iahu.ca, http://poly.libtomcrypt.org
|
||||
*/
|
||||
#include <tompoly.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
/* initialize a */
|
||||
int pb_init_size(pb_poly *a, mp_int *characteristic, int size)
|
||||
--- a/pb_shrink.c
|
||||
+++ b/pb_shrink.c
|
||||
@@ -10,6 +10,7 @@
|
||||
* Tom St Denis, tomstdenis@iahu.ca, http://poly.libtomcrypt.org
|
||||
*/
|
||||
#include <tompoly.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
int pb_shrink(pb_poly *a)
|
||||
{
|
||||
--- a/pb_sub.c
|
||||
+++ b/pb_sub.c
|
||||
@@ -10,6 +10,7 @@
|
||||
* Tom St Denis, tomstdenis@iahu.ca, http://poly.libtomcrypt.org
|
||||
*/
|
||||
#include <tompoly.h>
|
||||
+#include <math.h>
|
||||
|
||||
int pb_sub(pb_poly *a, pb_poly *b, pb_poly *c)
|
||||
{
|
||||
@@ -17,7 +18,7 @@ int pb_sub(pb_poly *a, pb_poly *b, pb_poly *c)
|
||||
pb_poly *tmp;
|
||||
|
||||
/* grow c to be the max size */
|
||||
- y = MAX(a->used, b->used);
|
||||
+ y = fmax(a->used, b->used);
|
||||
if (c->alloc < y) {
|
||||
if ((err = pb_grow(c, y)) != MP_OKAY) {
|
||||
return err;
|
||||
@@ -28,7 +29,7 @@ int pb_sub(pb_poly *a, pb_poly *b, pb_poly *c)
|
||||
characteristic = mp_iszero(&(c->characteristic));
|
||||
|
||||
/* sub the terms */
|
||||
- z = MIN(a->used, b->used);
|
||||
+ z = fmin(a->used, b->used);
|
||||
for (x = 0; x < z; x++) {
|
||||
if ((err = mp_sub(&(a->terms[x]), &(b->terms[x]), &(c->terms[x]))) != MP_OKAY) {
|
||||
return err;
|
Binary file not shown.
@ -0,0 +1,115 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
inherit cmake llvm llvm.org python-any-r1
|
||||
|
||||
DESCRIPTION="OCaml bindings for LLVM"
|
||||
HOMEPAGE="https://llvm.org/"
|
||||
|
||||
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="debug test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/ocaml-4.00.0:0=
|
||||
dev-ml/ocaml-ctypes:=
|
||||
~sys-devel/llvm-${PV}:=[debug?]
|
||||
!sys-devel/llvm[ocaml(-)]
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-lang/perl
|
||||
dev-ml/findlib
|
||||
>=dev-util/cmake-3.16
|
||||
"
|
||||
|
||||
LLVM_COMPONENTS=( llvm cmake third-party )
|
||||
LLVM_USE_TARGETS=llvm
|
||||
llvm.org_set_globals
|
||||
|
||||
pkg_setup() {
|
||||
LLVM_MAX_SLOT=${LLVM_MAJOR} llvm_pkg_setup
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local libdir=$(get_libdir)
|
||||
local mycmakeargs=(
|
||||
-DLLVM_LIBDIR_SUFFIX=${libdir#lib}
|
||||
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
-DLLVM_BUILD_LLVM_DYLIB=ON
|
||||
-DLLVM_LINK_LLVM_DYLIB=ON
|
||||
-DLLVM_OCAML_OUT_OF_TREE=ON
|
||||
|
||||
# cheap hack: LLVM combines both anyway, and the only difference
|
||||
# is that the former list is explicitly verified at cmake time
|
||||
-DLLVM_TARGETS_TO_BUILD=""
|
||||
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
|
||||
-DLLVM_BUILD_TESTS=$(usex test)
|
||||
|
||||
# disable various irrelevant deps and settings
|
||||
-DLLVM_ENABLE_FFI=OFF
|
||||
-DLLVM_ENABLE_TERMINFO=OFF
|
||||
-DHAVE_HISTEDIT_H=NO
|
||||
-DLLVM_ENABLE_ASSERTIONS=$(usex debug)
|
||||
-DLLVM_ENABLE_EH=ON
|
||||
-DLLVM_ENABLE_RTTI=ON
|
||||
|
||||
-DLLVM_HOST_TRIPLE="${CHOST}"
|
||||
|
||||
-DPython3_EXECUTABLE="${PYTHON}"
|
||||
|
||||
# disable go bindings
|
||||
-DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND
|
||||
|
||||
# TODO: ocamldoc
|
||||
)
|
||||
|
||||
use test && mycmakeargs+=(
|
||||
-DLLVM_LIT_ARGS="$(get_lit_flags)"
|
||||
)
|
||||
|
||||
# LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
|
||||
# also: custom rules for OCaml do not work for CPPFLAGS
|
||||
use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG"
|
||||
cmake_src_configure
|
||||
|
||||
local llvm_libdir=$(llvm-config --libdir)
|
||||
# an ugly hack; TODO: figure out a way to pass -L to ocaml...
|
||||
cd "${BUILD_DIR}/${libdir}" || die
|
||||
ln -s "${llvm_libdir}"/*.so . || die
|
||||
|
||||
if use test; then
|
||||
local llvm_bindir=$(llvm-config --bindir)
|
||||
# Force using system-installed tools.
|
||||
sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \
|
||||
"${BUILD_DIR}"/test/lit.site.cfg.py || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_build ocaml_all
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# respect TMPDIR!
|
||||
local -x LIT_PRESERVES_TMP=1
|
||||
cmake_build check-llvm-bindings-ocaml
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="${D}" \
|
||||
cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die
|
||||
|
||||
dodoc bindings/ocaml/README.txt
|
||||
}
|
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST astroid-2.12.10.gh.tar.gz 435902 BLAKE2B eccabfbbda11edc958b0e5d5870f5df88cb267249d4d440e470515b75cda992ce9e7fd3dd50b9165ca40c6643053b0df0aeb754ec3b0461ea8a1ce45b0065ceb SHA512 55c3013a1672c4ce82f44ea85e4ac16881f0ea0a2f25b6457044e3c824699e13d46f5007f7410ca8d9a7d69c6690c8c41a187c9650fd4d4b7e9a7aa31e21add3
|
||||
DIST astroid-2.12.11.gh.tar.gz 436132 BLAKE2B ba3aa5766e669d1b509856cd8eb8cb90f6483b8459e6a2511945c4c54f28d86179b3420d6bfa26f54cf459926114d34dd2fe7d775f356eda17f995be860672a3 SHA512 1e8e364bcebce90d06f90494e2a029bfeae89a0dd3120400fa6ff5098ca05ec7c7f520336cc3b174ac007c81e272d774385c35f94762789b767d38e603c7d41d
|
||||
DIST astroid-2.12.12.gh.tar.gz 437277 BLAKE2B a1f549db526b1012e76e1da480e779a35971e8985f452eaf5ce1bc6735c5210db5c2282685dbaa2f1720a1e1fa6cf6f2152fbb8c782243cd11e09acc427774da SHA512 61047c1aa31b5b0a80c604194a91341c474062e2f1094316ff9b03641ecfe3ddf25b4a3b26356561f9c16d8b5599694ecef275ce5846792a18bcc0a7ad3e720f
|
||||
DIST astroid-2.12.8.gh.tar.gz 434545 BLAKE2B 3ad3ff1a7e1a0c9433387b4167041adcc405e9b6d0fc0a850073960db9e7458d0b6989e3a0f78679ba4730f1da2fe9d35de3f984d2c79532d9f96c2a726b1f0e SHA512 76052caaef27f983751e3abfb44c38ad497a4d2d659521ee55c99080c9cacea90cf3603d6468b01cc9b127cd8318157faae56bb151c6449145c70545719c6c51
|
||||
|
@ -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} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Abstract Syntax Tree for logilab packages"
|
||||
HOMEPAGE="
|
||||
https://github.com/PyCQA/astroid/
|
||||
https://pypi.org/project/astroid/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/PyCQA/astroid/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
# Version specified in pyproject.toml
|
||||
RDEPEND="
|
||||
>=dev-python/lazy-object-proxy-1.4.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/typing-extensions-3.10[${PYTHON_USEDEP}]
|
||||
<dev-python/wrapt-2[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# no clue why it's broken
|
||||
tests/unittest_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part
|
||||
tests/unittest_brain_dataclasses.py::test_pydantic_field
|
||||
tests/unittest_brain.py::SixBrainTest::test_from_imports
|
||||
tests/unittest_regrtest.py::NonRegressionTests::test_numpy_distutils
|
||||
# some problem with warnings (our options?)
|
||||
tests/unittest_decorators.py::TestDeprecationDecorators::test_deprecated_default_argument_values_one_arg
|
||||
tests/unittest_decorators.py::TestDeprecationDecorators::test_deprecated_default_argument_values_two_args
|
||||
tests/unittest_scoped_nodes.py::test_deprecation_of_doc_attribute
|
||||
)
|
||||
|
||||
# Faker causes sys.path_importer_cache keys to be overwritten
|
||||
# with PosixPaths
|
||||
epytest -p no:faker
|
||||
}
|
@ -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.6.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,72 @@
|
||||
# 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="
|
||||
https://github.com/boto/botocore/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.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}]
|
||||
)
|
||||
"
|
||||
|
||||
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
|
||||
# fails on unrelated warnings
|
||||
tests/unit/test_client.py::TestAutoGeneratedClient::test_BOTO_DISABLE_COMMONNAME
|
||||
tests/unit/test_client.py::TestClientErrors::test_BOTO_DISABLE_COMMONNAME
|
||||
)
|
||||
|
||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)"
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
# 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
|
||||
|
||||
DESCRIPTION="CloudFormation Linter"
|
||||
HOMEPAGE="
|
||||
https://github.com/aws-cloudformation/cfn-lint/
|
||||
https://pypi.org/project/cfn-lint/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aws-cloudformation/cfn-lint/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/aws-sam-translator-1.53.0[${PYTHON_USEDEP}]
|
||||
dev-python/jsonpatch[${PYTHON_USEDEP}]
|
||||
>=dev-python/jschema_to_python-1.2.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-3.0[${PYTHON_USEDEP}]
|
||||
dev-python/junit-xml[${PYTHON_USEDEP}]
|
||||
dev-python/networkx[${PYTHON_USEDEP}]
|
||||
>dev-python/pyyaml-5.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.15.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sarif_om-1.0.4[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# TODO
|
||||
test/unit/module/test_template.py::TestTemplate::test_build_graph
|
||||
# requires git repo
|
||||
test/unit/module/maintenance/test_update_documentation.py::TestUpdateDocumentation::test_update_docs
|
||||
# Internet
|
||||
test/unit/module/formatters/test_formatters.py::TestFormatters::test_sarif_formatter
|
||||
test/unit/module/maintenance/test_update_resource_specs.py::TestUpdateResourceSpecs::test_update_resource_specs_python_2
|
||||
test/unit/module/maintenance/test_update_resource_specs.py::TestUpdateResourceSpecs::test_update_resource_specs_python_3
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# unpin the deps
|
||||
sed -e 's:~=[0-9.]*::' -i setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
inherit llvm.org python-r1
|
||||
|
||||
DESCRIPTION="Python bindings for sys-devel/clang"
|
||||
HOMEPAGE="https://llvm.org/"
|
||||
|
||||
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# The module is opening libclang.so directly, and doing some blasphemy
|
||||
# on top of it.
|
||||
DEPEND="
|
||||
>=sys-devel/clang-${PV}:*
|
||||
!sys-devel/llvm:0[clang(-),python(-)]
|
||||
!sys-devel/clang:0[python(-)]
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
test? (
|
||||
sys-devel/clang:${LLVM_MAJOR}
|
||||
)
|
||||
"
|
||||
|
||||
LLVM_COMPONENTS=( clang/bindings/python )
|
||||
llvm.org_set_globals
|
||||
|
||||
python_test() {
|
||||
# tests rely on results from a specific clang version, so override
|
||||
# the search path
|
||||
local -x CLANG_LIBRARY_PATH=${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/$(get_libdir)
|
||||
"${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
python_foreach_impl python_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_foreach_impl python_domodule clang
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST google-api-python-client-2.63.0.gh.tar.gz 34736367 BLAKE2B 4657dd86a62def7d2858cefd63d8c8b23b36a38f65aa3e76f4436eb4d3334321fbda9530684b2d001883ba0345ef7de6d8447a86208023a3e77dae59269ef255 SHA512 a8253904fc9db8687be7a04356e9e11202073ce05c77f770d51ed973e0c87db32c4b39750e1a48d813186530dfeae0f76452df7241686d6a64afbdff35626387
|
||||
DIST google-api-python-client-2.64.0.gh.tar.gz 36028133 BLAKE2B 8e9abadddda17d078210c9cdf5e18db02199bae1ee6f7e5364002266ca9795100fefd8dbbfbaecd5c9e2b74e5125e42535e23f9735fb83b8fe5bc1adae1fe815 SHA512 a525d26224e7b4b647bf5fde82434fbe0e221ff55591b1564b0a3af5e1d49492b3ea157d75bec0328bda754318b9d5e57d78b4d8d532afad2e3b8cbfc650f876
|
||||
DIST google-api-python-client-2.65.0.gh.tar.gz 36079173 BLAKE2B 32e60989dbc6e02ed2bd128772a71c24670d16da09ca4e5be6d4f56ebf16c94ccac120e233b4efb5fb9c9b8c464d052129eb6305a57fb61f732ca9d593f1297c SHA512 3b215e290c9a63aca914c08478342ab41ef760c135d3d5a13387be52a2993b814568c86cad752de6afe16fb3097989f4d7df06f4c9ce9c453fb7d0cb55f17053
|
||||
|
@ -0,0 +1,53 @@
|
||||
# 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="Google API Client for Python"
|
||||
HOMEPAGE="
|
||||
https://github.com/googleapis/google-api-python-client/
|
||||
https://pypi.org/project/google-api-python-client/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/googleapis/google-api-python-client/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.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-2.3.1[${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 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
|
||||
)
|
||||
|
||||
epytest tests
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
DIST hatch-hatchling-v1.10.0.gh.tar.gz 256897 BLAKE2B 87a15624018d9919f29304f44520649465514bc594d266c152d28c08b99635b6f2d9b2f0ef68604e4d497860162cf9224d68ac78c22291fb80585a341a5d9704 SHA512 afb7f634f819cb3b914ede5c818a587f4a75f3a2c8e753f265f973e9b7d9c53e030dfdfdc862fb5b44cbdfd2564b1b863e3f12d7b7a31b4b62f7e316267de9c7
|
||||
DIST hatch-hatchling-v1.11.0.gh.tar.gz 364776 BLAKE2B 75cb39a336317b6c3a9168b5c994ad26fb303b75c7dcba8b2c92e7e6ffddfad6068b1336b203ce7944573df7a19ab920c6da5bbf12ac158e9c57bf196304bc7b SHA512 9e8b05058c61dd58a2ed3537ba9f007661804cce855648218ab717e184ea66ed307be53af8af449181ef0f9aa4e04afe2bc6ff6169934a84f33d804ddb70091b
|
||||
DIST hatch-hatchling-v1.11.1.gh.tar.gz 367624 BLAKE2B 006f9f9ab266eba7b7e489d4359a9ddb17a6e079c31e189662da8c4d090884eeae4bf108301d5c315d823e92cb813841e41211cc55618f4ee9109bccdde61e1e SHA512 7bdf5a2930950503dbe534f6ead724ed84420193ba55137600a5b98a085e94588e333bb5a14ad944746dc400522ebbea4849718686420fd6ed7de3d6e8852d8e
|
||||
DIST hatch-hatchling-v1.8.1.gh.tar.gz 1525669 BLAKE2B d1c33648eb202d57448f4f01d724361bce0db2ca25b1445f2c5bdec5f517f0ddfa961d07ff6d76ba7f326d1feae524a1f6600b563ad6f8bd504c7d00e1b1316d SHA512 d1878085adfd00e4efe7bbd5d70bf76e2d34bd42f0ef4dfc813088025dcc9d180605013a0acd9e24b3da86087dcf9bbb37be76528001034282f7a30a6ccbc20b
|
||||
DIST hatch-hatchling-v1.9.0.gh.tar.gz 252859 BLAKE2B 7fe0e06b26808ab47c8deead09744c32b2806327944ca799fe1b919ffe34227b7f51c0c5c7a7cad5b3a08b61acc10a0f9528048f3a4a45cf53efece64005fe9d SHA512 b99de517e6a049910e119fea9de667dc87782ff6400a8b730bb402c6337176f39a8e956d69e71561e413b80710b651421eb320d2b1b747b1818c97607c456c78
|
||||
|
@ -0,0 +1,77 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=standalone
|
||||
PYTHON_TESTED=( pypy3 python3_{8..11} )
|
||||
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
TAG=${P/-/-v}
|
||||
MY_P=hatch-${TAG}
|
||||
DESCRIPTION="Modern, extensible Python build backend"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/hatchling/
|
||||
https://github.com/pypa/hatch/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/pypa/hatch/archive/${TAG}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}/backend
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
# deps are listed in backend/src/hatchling/ouroboros.py
|
||||
RDEPEND="
|
||||
>=dev-python/editables-0.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-21.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pathspec-0.10.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pluggy-1.0.0[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/tomli-1.2.2[${PYTHON_USEDEP}]
|
||||
' 3.8 3.9 3.10)
|
||||
"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/atomicwrites[${PYTHON_USEDEP}]
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/httpx[${PYTHON_USEDEP}]
|
||||
dev-python/platformdirs[${PYTHON_USEDEP}]
|
||||
dev-python/rich[${PYTHON_USEDEP}]
|
||||
dev-python/tomli-w[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
' "${PYTHON_TESTED[@]}")
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
|
||||
einfo "Skipping tests on ${EPYTHON}"
|
||||
return
|
||||
fi
|
||||
|
||||
local -x EPYTEST_DESELECT=(
|
||||
# these run pip to install stuff
|
||||
tests/backend/dep/test_core.py::test_dependency_found
|
||||
tests/backend/dep/test_core.py::test_extra_met
|
||||
tests/backend/dep/test_core.py::test_extra_no_dependencies
|
||||
tests/backend/dep/test_core.py::test_extra_unmet
|
||||
tests/backend/dep/test_core.py::test_unknown_extra
|
||||
tests/backend/dep/test_core.py::test_version_unmet
|
||||
)
|
||||
|
||||
# top-level "tests" directory contains tests both for hatch
|
||||
# and hatchling
|
||||
cd "${WORKDIR}/${MY_P}" || die
|
||||
local -x PYTHONPATH="src:${PYTHONPATH}"
|
||||
epytest tests/backend
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
# 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 llvm.org
|
||||
|
||||
DESCRIPTION="A stand-alone install of the LLVM suite testing tool"
|
||||
HOMEPAGE="https://llvm.org/"
|
||||
|
||||
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Tests require 'FileCheck' and 'not' utilities (from llvm)
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
sys-devel/llvm
|
||||
)
|
||||
"
|
||||
|
||||
LLVM_COMPONENTS=( llvm/utils/lit )
|
||||
llvm.org_set_globals
|
||||
|
||||
# TODO: move the manpage generation here (from sys-devel/llvm)
|
||||
|
||||
src_prepare() {
|
||||
cd "${WORKDIR}" || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -x LIT_PRESERVES_TMP=1
|
||||
local litflags=$(get_lit_flags)
|
||||
./lit.py ${litflags//;/ } tests || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST more-itertools-8.14.0.tar.gz 102642 BLAKE2B 8315bf1d5c2096ae2365a8212bed790b1e443e31a17a3a094f3bbf2b85feb71ba15a79489473a53af6680db3d8dacc54849769db8ef43ded6c5b3f44767c4213 SHA512 a85ad9359ddd65caa81b743ff342c3917420d57ffc53b130eaa2d049fc90b55e0e00f12c878b49eb5f882b62e3a3b2a4ea04677c4e959958eab89aa5dd26eb0d
|
||||
DIST more-itertools-9.0.0.tar.gz 104237 BLAKE2B 523fe14889862edc2f05da79156914e12984d62168df46630fbe3169ebbe48ba66e018a65bd17dfad54676e5334335dbcda5c442556970442ccc2a792940bcc4 SHA512 a1e73a7a3e4530d070d639baa01c08d91ca11cdab6fec36131764001c2b78f1649e19ddf78ee3c1295f2f9d9951ea7483a4fd1f7c12d5655c3b696db7de35c1e
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_PEP517=flit
|
||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="More routines for operating on iterables, beyond itertools"
|
||||
HOMEPAGE="
|
||||
https://github.com/more-itertools/more-itertools/
|
||||
https://pypi.org/project/more-itertools/
|
||||
"
|
||||
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 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
distutils_enable_sphinx docs \
|
||||
dev-python/sphinx_rtd_theme
|
||||
distutils_enable_tests unittest
|
@ -1,2 +1 @@
|
||||
DIST oauthlib-3.2.1.tar.gz 176109 BLAKE2B 69da6e8ae0efac3928b0e8ee0be1eb57f0871b4a9361f7347a0abfabf183f82bf8431d0247168531dd5fb12c6df2e8a55e5f95f3df1da2d3c8931a6b1751fe4c SHA512 87fa320f3a660337a2d4da03c4b5f2345f7e907c1acf8fff93cf13095ceb699e282dc458fb03350b0da371c7b2af875925e808bccab6d8549f7ce2847e69aba3
|
||||
DIST oauthlib-3.2.2.tar.gz 177352 BLAKE2B 98c128eb0ec2a24f45fd63826eb2253e2e90afb37c1954a9d21f0046168bfff8d52a24b230b60f4d756e4730c0cc05b3484d2cb6ac3eb2d710ee113dea6598c9 SHA512 c147b96e0ab0d1a8845f525e80831cfd04495134dd1f17fd95eac62f3a95c91e6dca9d38e34206537d77f3c12dd5b553252239318ba39546979c350e96536b8b
|
||||
|
@ -1,26 +0,0 @@
|
||||
# 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
|
||||
|
||||
DESCRIPTION="Spec-compliant and thorough implementation of the OAuth request-signing logic"
|
||||
HOMEPAGE="https://github.com/oauthlib/oauthlib https://pypi.org/project/oauthlib/"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ppc64 ~riscv x86"
|
||||
|
||||
# optional extras hard set as RDEPs. See setup.py
|
||||
RDEPEND="
|
||||
>=dev-python/pyjwt-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/blinker[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests unittest
|
@ -1 +1,2 @@
|
||||
DIST patiencediff-0.2.3.tar.gz 28903 BLAKE2B 83a5dffc11e02b759e8fda540453055d3f2fa03db098c2b323c965b39b121e5bc7e9b3fb0a7f5f1eff76aba81223350def2823469d2a3ceedb54824ae22a32c0 SHA512 4211aa824a8f0e4e5c9fa788ab532bc163684381fc143a089250b16ae70229efabdd1b2e4e50fdd8d36f3363526b80cf687030c435bd9b87e12624fc1fc6b786
|
||||
DIST patiencediff-0.2.6.tar.gz 29124 BLAKE2B f43e7fbbdef316f9ededb680f9c3c20eaab7e988489ba6dfc6038deb91cced5727b9461dbfd30f11b81a12aa238e27df1697abe84d323461da3029daf9fbfce1 SHA512 033c4da38a12cfcd180535635dc84ce6da14fe4f8ae9fc7665fc0b711759fe5a5440d73ed2c7f8f4edf967c9dea9046163b5b48d32ee59d0f4cc01256c7c9055
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 2021-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="Python implementation of the patiencediff algorithm"
|
||||
HOMEPAGE="
|
||||
https://github.com/breezy-team/patiencediff/
|
||||
https://pypi.org/project/patiencediff/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
|
||||
eunittest
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST progressbar2-4.0.0.tar.gz 663046 BLAKE2B 1616f1b9c5f720f370dc9eb02ba37cf83391c853a525fca523fb33af1b580f38647b835a83558674a78dacc33bf7652cb9af8799ad13763f62d33417abaa35cf SHA512 b9b9dabb3093e42bc6f40c0e284caae2d29ebfa450db379c214a5ae39e7ccb8c690655da21a44882d0b68f24d83f55a3342671087a25ada168bce9d236685666
|
||||
DIST progressbar2-4.1.1.tar.gz 638622 BLAKE2B f9e73c29aac68f3f12c978e29990382dd2a31f668159f9198c162901b2e4ae1e52943fb0a3259fadb8aa62e45e57c0f867923e064953c6f9ddc5ff2c62a5dea1 SHA512 4df7652584c867589448ea8765ba2da99ce5e4c9cfc27268ff850dfe41efa6342a6a44f19384c5c54ef8c79432db35a755958ed9561cf2d37f98fc661a42099f
|
||||
|
@ -0,0 +1,34 @@
|
||||
# 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="Text progressbar library for python"
|
||||
HOMEPAGE="https://progressbar-2.readthedocs.io/ https://pypi.org/project/progressbar2/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/python-utils-3.0.0[${PYTHON_USEDEP}]
|
||||
!dev-python/progressbar
|
||||
"
|
||||
BDEPEND="
|
||||
test? ( dev-python/freezegun[${PYTHON_USEDEP}] )"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '/cov/d' pytest.ini || die
|
||||
default
|
||||
}
|
||||
|
||||
python_test() {
|
||||
PYTHONDONTWRITEBYTECODE=1 epytest tests
|
||||
}
|
@ -1,2 +1,4 @@
|
||||
DIST psutil-5.9.1-tests-r2.patch.xz 3516 BLAKE2B 6a16d6f89fdeb06c7aa0d9d986eba84deae5f8d2bb829c2509744f954f9b274d8a70a00f94127f1880cea71f8d7e7b85097517f8516ee6ef14f17522ee9297b2 SHA512 b69efb32cd0229056ff9fbbde963f0f01f6bf1d0820f028527f464e38a9bd4211a55bd725cc8962a20608c12c28edb24b2063f5f58b53fdb6b001fe2f95da103
|
||||
DIST psutil-5.9.1.tar.gz 479090 BLAKE2B 88f35a9134d942fa56b5fbc79753e82245c3bfdb1f640dbf3b56815b89d872517f9ee3a3945532ebd1a399c3307e160ac80394766c3b2cc7e3fb36ffdd555eef SHA512 1ddb119a10243d17d808417817ec8659d22447f12a4bbc0366c13f6587a4b0b59f4e74f6ac5d1e1a908bb5fd287be630466d32beabcb5008f6a19c24a1557c27
|
||||
DIST psutil-5.9.3-tests-r1.patch.xz 3648 BLAKE2B df56e3b11da307fdd4441284d1a7928c928b36c512ef05d313ac71e76545eabaca1f6a1ea9dab301c86005ef4c9af9622e0d1c6d7be858b92b0dce9d6031440d SHA512 0d8b35fe76b1caf1265ab4ecf182c92b71714be9612418c945f39c58f384979ed36e47bdf11b11a8cf2fc3925fed60abadf4f3eaea083f6bcd6d2cddb81fb5f9
|
||||
DIST psutil-5.9.3.tar.gz 483579 BLAKE2B c1b5c77483a1e280cc68aa3ae5ca39fcc3992f3c07a591bbe92278050e9517a9e9c0e17338f2932f5ec680a19c4f6958e21e4b9b02158041e76dd877b5311c21 SHA512 d226364b416823783058f19c06dae4ac1ea03f061646f01ea6953ded8fbb89aed92aa743c9e55181e4d57101f7dbbb78336043e1fc7a3bd62ff82b19f0a4efae
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue