parent
e4e21098f3
commit
2ce36ba099
Binary file not shown.
Binary file not shown.
@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
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 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~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.7.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() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# broken xdist (signal() works only in main thread)
|
||||
tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking
|
||||
tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success
|
||||
tests/unit/test_compat.py::TestIgnoreUserSignals
|
||||
tests/unit/test_help.py::TestHelpPager::test_can_handle_ctrl_c
|
||||
tests/unit/test_help.py::TestHelpPager::test_can_render_contents
|
||||
tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignore
|
||||
)
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit} -p xdist -n "$(makeopts_jobs)"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST podman-4.5.0.tar.gz 17423692 BLAKE2B ba28e77626bb4bcdb85b20031e12cf93f2eb3174b678cb8e99557df13e2cdf377ea402eb373a51ea44302f878f8e1cdedda14a2f3ad8c9e88895754fc50c272e SHA512 8a699dc01fc3d7c4a9e5ef4f166170303fc30e0f6695c61f763944e1cb755e75896108e0c4166d184fe49e3a6859f045aa3883047ebba9290e851fc128d77cac
|
||||
DIST podman-4.7.0.tar.gz 20554573 BLAKE2B a98e52ec9fe48d5b70489ed6bd6961877cf67735048425ad30fe9de3e163f8266d6510c37b0c43effa90cc8ce1b39bdc46c5add90dabd8f78c79602824f132a6 SHA512 4cab8698a819cd42de4cb588978c94c91b0c85693db2476aa6d20d7f4e4a7674d417703f70bdbb5a0e94b678fd585ae03a95ff0e5b7eb2682d9f400b92915742
|
||||
DIST podman-4.7.1.tar.gz 20557503 BLAKE2B f34cc0e2c9bd46d8f538c51b7353b36aea3380233f998467f26aeee6c35850bc26ca25234d39426ae7e4951fb40bc9cf1b8218b1db92fc95bb4ce0f221827dbf SHA512 cb89a687900bdc8ab9aec01d11c4e3062d8735122aa03639fa6eeecde10ea4bc3633381bce1e65955bf112d4fda330182f81d81054916b1eca8b7354c0f55c14
|
||||
|
@ -0,0 +1,124 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module tmpfiles linux-info
|
||||
|
||||
DESCRIPTION="A tool for managing OCI containers and pods with Docker-compatible CLI"
|
||||
HOMEPAGE="https://github.com/containers/podman/ https://podman.io/"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/containers/podman.git"
|
||||
else
|
||||
SRC_URI="https://github.com/containers/podman/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
IUSE="apparmor btrfs cgroup-hybrid wrapper +fuse +init +rootless +seccomp selinux systemd"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
app-crypt/gpgme:=
|
||||
>=app-containers/conmon-2.0.0
|
||||
>=app-containers/containers-common-0.56.0
|
||||
dev-libs/libassuan:=
|
||||
dev-libs/libgpg-error:=
|
||||
sys-apps/shadow:=
|
||||
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
btrfs? ( sys-fs/btrfs-progs )
|
||||
cgroup-hybrid? ( >=app-containers/runc-1.0.0_rc6 )
|
||||
!cgroup-hybrid? ( app-containers/crun )
|
||||
wrapper? ( !app-containers/docker-cli )
|
||||
fuse? ( sys-fs/fuse-overlayfs )
|
||||
init? ( app-containers/catatonit )
|
||||
rootless? ( app-containers/slirp4netns )
|
||||
seccomp? ( sys-libs/libseccomp:= )
|
||||
selinux? ( sec-policy/selinux-podman sys-libs/libselinux:= )
|
||||
systemd? ( sys-apps/systemd:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-go/go-md2man
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/seccomp-toggle-4.7.0.patch"
|
||||
)
|
||||
|
||||
CONFIG_CHECK="
|
||||
~USER_NS
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use btrfs && CONFIG_CHECK+=" ~BTRFS_FS"
|
||||
linux-info_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
local file
|
||||
for file in apparmor_tag btrfs_installed_tag btrfs_tag systemd_tag; do
|
||||
[[ -f hack/"${file}".sh ]] || die
|
||||
done
|
||||
|
||||
local feature
|
||||
for feature in apparmor systemd; do
|
||||
cat <<-EOF > hack/"${feature}"_tag.sh || die
|
||||
#!/usr/bin/env bash
|
||||
$(usex ${feature} "echo ${feature}" echo)
|
||||
EOF
|
||||
done
|
||||
|
||||
echo -e "#!/usr/bin/env bash\n echo" > hack/btrfs_installed_tag.sh || die
|
||||
cat <<-EOF > hack/btrfs_tag.sh || die
|
||||
#!/usr/bin/env bash
|
||||
$(usex btrfs echo 'echo exclude_graphdriver_btrfs btrfs_noversion')
|
||||
EOF
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export PREFIX="${EPREFIX}/usr"
|
||||
emake BUILDFLAGS="-v -work -x" GOMD2MAN="go-md2man" BUILD_SECCOMP="$(usex seccomp)" all $(usev wrapper docker-docs)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install install.completions $(usev wrapper install.docker-full)
|
||||
|
||||
insinto /etc/cni/net.d
|
||||
doins cni/87-podman-bridge.conflist
|
||||
|
||||
newconfd "${FILESDIR}"/podman.confd podman
|
||||
newinitd "${FILESDIR}"/podman.initd podman
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/podman.logrotated" podman
|
||||
|
||||
keepdir /var/lib/containers
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
PODMAN_ROOTLESS_UPGRADE=false
|
||||
if use rootless; then
|
||||
has_version 'app-containers/podman[rootless]' || PODMAN_ROOTLESS_UPGRADE=true
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process podman.conf $(usev wrapper podman-docker.conf)
|
||||
|
||||
local want_newline=false
|
||||
if [[ ${PODMAN_ROOTLESS_UPGRADE} == true ]] ; then
|
||||
${want_newline} && elog ""
|
||||
elog "For rootless operation, you need to configure subuid/subgid"
|
||||
elog "for user running podman. In case subuid/subgid has only been"
|
||||
elog "configured for root, run:"
|
||||
elog "usermod --add-subuids 1065536-1131071 <user>"
|
||||
elog "usermod --add-subgids 1065536-1131071 <user>"
|
||||
want_newline=true
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -0,0 +1,90 @@
|
||||
Avoid nettle-sys failure with either new pkgconf or >=nettle-3.9.0?
|
||||
|
||||
https://bugs.gentoo.org/913729
|
||||
--- a/Cargo.lock
|
||||
+++ b/Cargo.lock
|
||||
@@ -131,9 +131,9 @@ checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a"
|
||||
|
||||
[[package]]
|
||||
name = "bindgen"
|
||||
-version = "0.57.0"
|
||||
+version = "0.63.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "fd4865004a46a0aafb2a0a5eb19d3c9fc46ee5f063a6cfc605c69ac9ecf5263d"
|
||||
+checksum = "36d860121800b2a9a94f9b5604b332d5cffb234ce17609ea479d723dbc9d3885"
|
||||
dependencies = [
|
||||
"bitflags 1.3.2",
|
||||
"cexpr",
|
||||
@@ -146,6 +146,7 @@ dependencies = [
|
||||
"regex",
|
||||
"rustc-hash",
|
||||
"shlex",
|
||||
+ "syn 1.0.105",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -303,9 +304,9 @@ checksum = "a20104e2335ce8a659d6dd92a51a767a0c062599c73b343fd152cb401e828c3d"
|
||||
|
||||
[[package]]
|
||||
name = "cexpr"
|
||||
-version = "0.4.0"
|
||||
+version = "0.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "f4aedb84272dbe89af497cf81375129abda4fc0a9e7c5d317498c15cc30c0d27"
|
||||
+checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
|
||||
dependencies = [
|
||||
"nom",
|
||||
]
|
||||
@@ -1642,6 +1643,12 @@ version = "0.3.16"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
|
||||
|
||||
+[[package]]
|
||||
+name = "minimal-lexical"
|
||||
+version = "0.2.1"
|
||||
+source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
+checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
||||
+
|
||||
[[package]]
|
||||
name = "miniz_oxide"
|
||||
version = "0.6.2"
|
||||
@@ -1695,9 +1702,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "nettle-sys"
|
||||
-version = "2.1.0"
|
||||
+version = "2.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "b13b685c7883e3a32196ccf3ce594947ec37ace43d74e157de7ca03d3fe62d17"
|
||||
+checksum = "b5e81c347b9002da0b6b0c4060993c280e99eb14b42ecf65a2fefcd6eb3d8a73"
|
||||
dependencies = [
|
||||
"bindgen",
|
||||
"cc",
|
||||
@@ -1736,12 +1743,12 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "nom"
|
||||
-version = "5.1.2"
|
||||
+version = "7.1.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "ffb4262d26ed83a1c0a33a38fe2bb15797329c85770da05e6b828ddb782627af"
|
||||
+checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
||||
dependencies = [
|
||||
"memchr",
|
||||
- "version_check",
|
||||
+ "minimal-lexical",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2697,9 +2704,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "shlex"
|
||||
-version = "0.1.1"
|
||||
+version = "1.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2"
|
||||
+checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380"
|
||||
|
||||
[[package]]
|
||||
name = "signature"
|
@ -0,0 +1,427 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Autogenerated by pycargoebuild 0.6.2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
addr2line@0.19.0
|
||||
adler@1.0.2
|
||||
aead@0.5.2
|
||||
ahash@0.8.3
|
||||
aho-corasick@0.7.20
|
||||
android_system_properties@0.1.5
|
||||
anyhow@1.0.66
|
||||
ascii-canvas@3.0.0
|
||||
async-trait@0.1.63
|
||||
atty@0.2.14
|
||||
autocfg@1.1.0
|
||||
backtrace@0.3.67
|
||||
base64@0.13.1
|
||||
base64@0.21.0
|
||||
bindgen@0.63.0
|
||||
bit-set@0.5.3
|
||||
bit-vec@0.6.3
|
||||
bitflags@1.3.2
|
||||
bitflags@2.3.2
|
||||
block-buffer@0.10.4
|
||||
block-buffer@0.9.0
|
||||
block-padding@0.3.3
|
||||
botan-sys@0.10.1
|
||||
botan@0.10.1
|
||||
buffered-reader@1.2.0
|
||||
bumpalo@3.11.1
|
||||
byteorder@1.4.3
|
||||
bytes@1.3.0
|
||||
bzip2-sys@0.1.11+1.0.8
|
||||
bzip2@0.4.3
|
||||
capnp-futures@0.14.2
|
||||
capnp-rpc@0.14.1
|
||||
capnp@0.14.11
|
||||
cc@1.0.78
|
||||
cexpr@0.6.0
|
||||
cfg-if@0.1.10
|
||||
cfg-if@1.0.0
|
||||
chrono@0.4.23
|
||||
cipher@0.2.5
|
||||
cipher@0.4.4
|
||||
clang-sys@1.4.0
|
||||
clap@4.0.32
|
||||
clap_complete@4.0.7
|
||||
clap_derive@4.0.21
|
||||
clap_lex@0.3.0
|
||||
clap_mangen@0.2.6
|
||||
cmac@0.7.2
|
||||
codespan-reporting@0.11.1
|
||||
core-foundation-sys@0.8.3
|
||||
core-foundation@0.9.3
|
||||
cpufeatures@0.2.5
|
||||
crc32fast@1.3.2
|
||||
crossbeam-channel@0.5.8
|
||||
crossbeam-deque@0.8.2
|
||||
crossbeam-epoch@0.9.13
|
||||
crossbeam-queue@0.3.8
|
||||
crossbeam-utils@0.8.14
|
||||
crossbeam@0.8.2
|
||||
crunchy@0.2.2
|
||||
crypto-common@0.1.6
|
||||
ctor@0.1.26
|
||||
ctr@0.9.2
|
||||
curve25519-dalek@3.2.1
|
||||
cxx-build@1.0.83
|
||||
cxx@1.0.83
|
||||
cxxbridge-flags@1.0.83
|
||||
cxxbridge-macro@1.0.83
|
||||
daemonize@0.5.0
|
||||
darling@0.20.1
|
||||
darling_core@0.20.1
|
||||
darling_macro@0.20.1
|
||||
data-encoding@2.3.3
|
||||
dbl@0.3.2
|
||||
diff@0.1.13
|
||||
digest@0.10.7
|
||||
digest@0.9.0
|
||||
dirs-next@2.0.0
|
||||
dirs-sys-next@0.1.2
|
||||
dirs-sys@0.3.7
|
||||
dirs-sys@0.4.1
|
||||
dirs@4.0.0
|
||||
dirs@5.0.1
|
||||
doc-comment@0.3.3
|
||||
dot-writer@0.1.3
|
||||
dyn-clone@1.0.9
|
||||
eax@0.5.0
|
||||
ed25519-dalek@1.0.1
|
||||
ed25519@1.5.3
|
||||
edit-distance@2.1.0
|
||||
either@1.8.0
|
||||
ena@0.14.0
|
||||
encoding_rs@0.8.32
|
||||
endian-type@0.1.2
|
||||
enum-as-inner@0.5.1
|
||||
enumber@0.3.0
|
||||
errno-dragonfly@0.1.2
|
||||
errno@0.2.8
|
||||
fallible-iterator@0.2.0
|
||||
fallible-streaming-iterator@0.1.9
|
||||
fastrand@1.8.0
|
||||
fd-lock@3.0.8
|
||||
filetime@0.2.19
|
||||
fixedbitset@0.4.2
|
||||
flate2@1.0.25
|
||||
fnv@1.0.7
|
||||
foreign-types-shared@0.1.1
|
||||
foreign-types@0.3.2
|
||||
form_urlencoded@1.1.0
|
||||
fs2@0.4.3
|
||||
futures-channel@0.3.25
|
||||
futures-core@0.3.25
|
||||
futures-executor@0.3.25
|
||||
futures-io@0.3.25
|
||||
futures-macro@0.3.25
|
||||
futures-sink@0.3.25
|
||||
futures-task@0.3.25
|
||||
futures-util@0.3.25
|
||||
futures@0.3.25
|
||||
generic-array@0.14.6
|
||||
getrandom@0.1.16
|
||||
getrandom@0.2.8
|
||||
gimli@0.27.0
|
||||
glob@0.3.0
|
||||
h2@0.3.15
|
||||
hashbrown@0.12.3
|
||||
hashbrown@0.13.2
|
||||
hashlink@0.8.2
|
||||
heck@0.4.0
|
||||
hermit-abi@0.1.19
|
||||
hermit-abi@0.2.6
|
||||
hex@0.4.3
|
||||
home-dir@0.1.0
|
||||
hostname@0.3.1
|
||||
http-body@0.4.5
|
||||
http@0.2.8
|
||||
httparse@1.8.0
|
||||
httpdate@1.0.2
|
||||
hyper-tls@0.5.0
|
||||
hyper@0.14.23
|
||||
iana-time-zone-haiku@0.1.1
|
||||
iana-time-zone@0.1.53
|
||||
ident_case@1.0.1
|
||||
idna@0.2.3
|
||||
idna@0.3.0
|
||||
indexmap@1.9.2
|
||||
inout@0.1.3
|
||||
instant@0.1.12
|
||||
interprocess@1.2.1
|
||||
io-lifetimes@1.0.3
|
||||
ipconfig@0.3.1
|
||||
ipnet@2.7.1
|
||||
is-terminal@0.4.2
|
||||
itertools@0.10.5
|
||||
itoa@1.0.5
|
||||
js-sys@0.3.60
|
||||
lalrpop-util@0.19.8
|
||||
lalrpop@0.19.8
|
||||
lazy_static@1.4.0
|
||||
lazycell@1.3.0
|
||||
libc@0.2.138
|
||||
libloading@0.7.4
|
||||
libm@0.2.6
|
||||
libsqlite3-sys@0.26.0
|
||||
link-cplusplus@1.0.7
|
||||
linked-hash-map@0.5.6
|
||||
linux-raw-sys@0.1.4
|
||||
lock_api@0.4.9
|
||||
log@0.4.17
|
||||
lru-cache@0.1.2
|
||||
match_cfg@0.1.0
|
||||
matches@0.1.10
|
||||
memchr@2.5.0
|
||||
memoffset@0.7.1
|
||||
memsec@0.6.2
|
||||
mime@0.3.16
|
||||
minimal-lexical@0.2.1
|
||||
miniz_oxide@0.6.2
|
||||
mio@0.8.5
|
||||
native-tls@0.2.11
|
||||
nettle-sys@2.2.0
|
||||
nettle@7.2.2
|
||||
new_debug_unreachable@1.0.4
|
||||
nibble_vec@0.1.0
|
||||
nix@0.18.0
|
||||
nom@7.1.3
|
||||
ntest@0.9.0
|
||||
ntest_test_cases@0.9.0
|
||||
ntest_timeout@0.9.0
|
||||
num-bigint-dig@0.8.2
|
||||
num-integer@0.1.45
|
||||
num-iter@0.1.43
|
||||
num-traits@0.2.15
|
||||
num_cpus@1.14.0
|
||||
object@0.30.0
|
||||
once_cell@1.17.0
|
||||
opaque-debug@0.3.0
|
||||
openpgp-cert-d@0.1.0
|
||||
openssl-macros@0.1.0
|
||||
openssl-probe@0.1.5
|
||||
openssl-sys@0.9.83
|
||||
openssl@0.10.48
|
||||
option-ext@0.2.0
|
||||
os_str_bytes@6.4.1
|
||||
parking_lot@0.12.1
|
||||
parking_lot_core@0.9.5
|
||||
peeking_take_while@0.1.2
|
||||
percent-encoding@2.2.0
|
||||
petgraph@0.6.2
|
||||
phf_shared@0.10.0
|
||||
pin-project-lite@0.2.9
|
||||
pin-utils@0.1.0
|
||||
pkg-config@0.3.26
|
||||
ppv-lite86@0.2.17
|
||||
precomputed-hash@0.1.1
|
||||
proc-macro-crate@1.3.1
|
||||
proc-macro-error-attr@1.0.4
|
||||
proc-macro-error@1.0.4
|
||||
proc-macro2@1.0.60
|
||||
quick-error@1.2.3
|
||||
quote@1.0.28
|
||||
radix_trie@0.2.1
|
||||
rand@0.7.3
|
||||
rand@0.8.5
|
||||
rand_chacha@0.2.2
|
||||
rand_chacha@0.3.1
|
||||
rand_core@0.5.1
|
||||
rand_core@0.6.4
|
||||
rand_distr@0.4.3
|
||||
rand_hc@0.2.0
|
||||
rayon-core@1.10.2
|
||||
rayon@1.6.1
|
||||
redox_syscall@0.2.16
|
||||
redox_users@0.4.3
|
||||
regex-syntax@0.6.28
|
||||
regex@1.7.0
|
||||
remove_dir_all@0.5.3
|
||||
reqwest@0.11.14
|
||||
resolv-conf@0.7.0
|
||||
roff@0.2.1
|
||||
rusqlite@0.29.0
|
||||
rustc-demangle@0.1.21
|
||||
rustc-hash@1.1.0
|
||||
rustc_version@0.4.0
|
||||
rustix@0.36.5
|
||||
rustversion@1.0.9
|
||||
ryu@1.0.12
|
||||
schannel@0.1.21
|
||||
scopeguard@1.1.0
|
||||
scratch@1.0.2
|
||||
security-framework-sys@2.8.0
|
||||
security-framework@2.8.1
|
||||
semver@1.0.17
|
||||
sequoia-cert-store@0.3.2
|
||||
sequoia-ipc@0.30.1
|
||||
sequoia-net@0.27.0
|
||||
sequoia-openpgp-mt@0.1.0
|
||||
sequoia-openpgp@1.16.0
|
||||
sequoia-policy-config@0.6.0
|
||||
sequoia-wot@0.8.1
|
||||
serde@1.0.164
|
||||
serde_derive@1.0.164
|
||||
serde_json@1.0.91
|
||||
serde_urlencoded@0.7.1
|
||||
serde_with@3.0.0
|
||||
serde_with_macros@3.0.0
|
||||
sha1collisiondetection@0.2.7
|
||||
sha2@0.9.9
|
||||
shlex@1.2.0
|
||||
signature@1.6.4
|
||||
siphasher@0.3.10
|
||||
slab@0.4.7
|
||||
smallvec@1.10.0
|
||||
socket2@0.4.7
|
||||
spin@0.5.2
|
||||
stfu8@0.2.6
|
||||
string_cache@0.8.4
|
||||
strsim@0.10.0
|
||||
subtle@2.4.1
|
||||
syn@1.0.105
|
||||
syn@2.0.18
|
||||
synstructure@0.12.6
|
||||
tempfile@3.3.0
|
||||
term@0.7.0
|
||||
termcolor@1.1.3
|
||||
terminal_size@0.2.3
|
||||
thiserror-impl@1.0.37
|
||||
thiserror@1.0.37
|
||||
time-core@0.1.0
|
||||
time-macros@0.2.6
|
||||
time@0.1.45
|
||||
time@0.3.17
|
||||
tiny-keccak@2.0.2
|
||||
tinyvec@1.6.0
|
||||
tinyvec_macros@0.1.0
|
||||
to_method@1.1.0
|
||||
tokio-macros@1.8.2
|
||||
tokio-native-tls@0.3.0
|
||||
tokio-socks@0.5.1
|
||||
tokio-util@0.7.4
|
||||
tokio@1.23.0
|
||||
toml@0.5.11
|
||||
toml_datetime@0.6.1
|
||||
toml_edit@0.19.4
|
||||
tower-service@0.3.2
|
||||
tracing-attributes@0.1.23
|
||||
tracing-core@0.1.30
|
||||
tracing@0.1.37
|
||||
trust-dns-client@0.22.0
|
||||
trust-dns-proto@0.22.0
|
||||
trust-dns-resolver@0.22.0
|
||||
try-lock@0.2.4
|
||||
typenum@1.16.0
|
||||
unicode-bidi@0.3.8
|
||||
unicode-ident@1.0.5
|
||||
unicode-normalization@0.1.22
|
||||
unicode-width@0.1.10
|
||||
unicode-xid@0.2.4
|
||||
url@2.3.1
|
||||
vcpkg@0.2.15
|
||||
version_check@0.9.4
|
||||
want@0.3.0
|
||||
wasi@0.10.0+wasi-snapshot-preview1
|
||||
wasi@0.11.0+wasi-snapshot-preview1
|
||||
wasi@0.9.0+wasi-snapshot-preview1
|
||||
wasm-bindgen-backend@0.2.83
|
||||
wasm-bindgen-futures@0.4.33
|
||||
wasm-bindgen-macro-support@0.2.83
|
||||
wasm-bindgen-macro@0.2.83
|
||||
wasm-bindgen-shared@0.2.83
|
||||
wasm-bindgen@0.2.83
|
||||
web-sys@0.3.60
|
||||
widestring@0.5.1
|
||||
win-crypto-ng@0.4.0
|
||||
winapi-i686-pc-windows-gnu@0.4.0
|
||||
winapi-util@0.1.5
|
||||
winapi-x86_64-pc-windows-gnu@0.4.0
|
||||
winapi@0.3.9
|
||||
windows-sys@0.42.0
|
||||
windows-sys@0.48.0
|
||||
windows-targets@0.48.0
|
||||
windows_aarch64_gnullvm@0.42.0
|
||||
windows_aarch64_gnullvm@0.48.0
|
||||
windows_aarch64_msvc@0.42.0
|
||||
windows_aarch64_msvc@0.48.0
|
||||
windows_i686_gnu@0.42.0
|
||||
windows_i686_gnu@0.48.0
|
||||
windows_i686_msvc@0.42.0
|
||||
windows_i686_msvc@0.48.0
|
||||
windows_x86_64_gnu@0.42.0
|
||||
windows_x86_64_gnu@0.48.0
|
||||
windows_x86_64_gnullvm@0.42.0
|
||||
windows_x86_64_gnullvm@0.48.0
|
||||
windows_x86_64_msvc@0.42.0
|
||||
windows_x86_64_msvc@0.48.0
|
||||
winnow@0.3.5
|
||||
winreg@0.10.1
|
||||
xxhash-rust@0.8.6
|
||||
zbase32@0.1.2
|
||||
zeroize@1.3.0
|
||||
zeroize_derive@1.3.3
|
||||
"
|
||||
|
||||
LLVM_MAX_SLOT=15
|
||||
inherit cargo llvm xdg-utils
|
||||
|
||||
DESCRIPTION="Sequoia's reimplementation of the GnuPG interface"
|
||||
HOMEPAGE="https://sequoia-pgp.org/"
|
||||
SRC_URI="
|
||||
https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg/-/archive/v${PV}/${P}-v${PV}.tar.bz2
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
S="${WORKDIR}"/${PN}-v${PV}-0052b89698af9ef6e1915ce12db119f399f3cea9
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 BSD Boost-1.0 CC0-1.0 ISC LGPL-2+ LGPL-3+ MIT MPL-2.0
|
||||
Unicode-DFS-2016
|
||||
|| ( GPL-2 GPL-3 LGPL-3 )
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
# See e.g. https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg/-/issues/8
|
||||
# Even though that's fixed as of >0.2.0, tests still completely fail inside
|
||||
# Portage. Not yet sure why/how. They do better outside, although some fail
|
||||
# still then.
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="
|
||||
dev-db/sqlite:3
|
||||
dev-libs/gmp:=
|
||||
dev-libs/nettle:=
|
||||
dev-libs/openssl:=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
# Needed for bindgen
|
||||
BDEPEND="<sys-devel/clang-$((${LLVM_MAX_SLOT} + 1))"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/gpg-sq usr/bin/gpgv-sq"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.3.2-bump-crates.patch
|
||||
)
|
||||
|
||||
llvm_check_deps() {
|
||||
has_version -b "sys-devel/clang:${LLVM_SLOT}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export GNUPGHOME="${T}"/.gnupg
|
||||
export REAL_GPG_BIN="${BROOT}"/usr/bin/gpg
|
||||
export REAL_GPGV_BIN="${BROOT}"/usr/bin/gpgv
|
||||
|
||||
mkdir "${GNUPGHOME}" || die
|
||||
chmod 700 "${GNUPGHOME}" || die
|
||||
|
||||
xdg_environment_reset
|
||||
RUST_BACKTRACE=full cargo_src_test -vv
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST proton-wine-7.0-6.tar.gz 45780326 BLAKE2B f140fcfdd1a47904c34a49d0795fa3326d7cf0d3fac8d6c2ef2a4926181a46223f43a2d1ca96c543e800c8c46b2a3cc51ae306a029d68a42608876e869e177d5 SHA512 793bbe2b23042301a1b518717d78cfff01eaffa0388883d010659a45779b9136d33cfac63f0c3fbb1e458953a954b423eb70ac4fa87633352267db890ceb2fef
|
||||
DIST proton-wine-8.0-3c.tar.gz 48254135 BLAKE2B fee58928555376f71579099d3fb39dbe2242516b671af1ca2507a135c3119422d6e168ed2a258d29c57a8fc33a026e5cf788d8362f238f1c0c4c7c81c9cbb147 SHA512 5d473534834ce8ea855d4ee2d39f1596117c0abab0925ee50875245ff6e1f49fe4684fe6f162e92a4b5e408795ff8c9b15b382fb013074216dd565143ecd9efc
|
||||
DIST proton-wine-8.0-4.tar.gz 48317622 BLAKE2B 53047016897c8919cf3b51d7e51025806d267bb2f04fb3d464b8cf0f133c36b53d9c6c3e591aff4c71a95c6e167eed67b6ad84cc549e1aa1682175233da79835 SHA512 837772856aafb4d47c700997655c0d98f17cafdcc76008e04d064dd071e8d3163ed094bfc57441ef8ec4f2f7ea6303815351dc707ce5515f8c22f9aba8c5f83b
|
||||
|
@ -0,0 +1,365 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
inherit autotools flag-o-matic multilib multilib-build prefix
|
||||
inherit python-any-r1 readme.gentoo-r1 toolchain-funcs wrapper
|
||||
|
||||
WINE_GECKO=2.47.3
|
||||
WINE_MONO=8.0.1
|
||||
WINE_PV=$(ver_rs 2 -)
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/ValveSoftware/wine.git"
|
||||
EGIT_BRANCH="experimental_$(ver_cut 1-2)"
|
||||
else
|
||||
SRC_URI="https://github.com/ValveSoftware/wine/archive/refs/tags/proton-wine-${WINE_PV}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-wine-${WINE_PV}"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Valve Software's fork of Wine"
|
||||
HOMEPAGE="https://github.com/ValveSoftware/wine/"
|
||||
|
||||
LICENSE="LGPL-2.1+ BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff"
|
||||
SLOT="${PV}"
|
||||
IUSE="
|
||||
+abi_x86_32 +abi_x86_64 +alsa crossdev-mingw custom-cflags
|
||||
+fontconfig +gecko +gstreamer llvm-libunwind +mono nls osmesa
|
||||
perl pulseaudio +sdl selinux +ssl +strip udev udisks +unwind
|
||||
usb v4l +xcomposite xinerama"
|
||||
|
||||
# tests are non-trivial to run, can hang easily, don't play well with
|
||||
# sandbox, and several need real opengl/vulkan or network access
|
||||
RESTRICT="test"
|
||||
|
||||
# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
|
||||
WINE_DLOPEN_DEPEND="
|
||||
dev-libs/libgcrypt:=[${MULTILIB_USEDEP}]
|
||||
media-libs/freetype[${MULTILIB_USEDEP}]
|
||||
media-libs/libglvnd[X,${MULTILIB_USEDEP}]
|
||||
media-libs/vulkan-loader[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrender[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||
fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
|
||||
osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
|
||||
sdl? ( media-libs/libsdl2[haptic,joystick,${MULTILIB_USEDEP}] )
|
||||
ssl? (
|
||||
dev-libs/gmp:=[${MULTILIB_USEDEP}]
|
||||
net-libs/gnutls:=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )"
|
||||
# gcc: for -latomic with clang
|
||||
WINE_COMMON_DEPEND="
|
||||
${WINE_DLOPEN_DEPEND}
|
||||
sys-devel/gcc:*
|
||||
x11-libs/libX11[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||
gstreamer? (
|
||||
dev-libs/glib:2[${MULTILIB_USEDEP}]
|
||||
media-libs/gst-plugins-base:1.0[opengl,${MULTILIB_USEDEP}]
|
||||
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
|
||||
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||
unwind? (
|
||||
llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] )
|
||||
!llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
usb? ( dev-libs/libusb:1[${MULTILIB_USEDEP}] )"
|
||||
RDEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
app-emulation/wine-desktop-common
|
||||
gecko? ( app-emulation/wine-gecko:${WINE_GECKO}[${MULTILIB_USEDEP}] )
|
||||
gstreamer? ( media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] )
|
||||
mono? ( app-emulation/wine-mono:${WINE_MONO} )
|
||||
perl? (
|
||||
dev-lang/perl
|
||||
dev-perl/XML-LibXML
|
||||
)
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
udisks? ( sys-fs/udisks:2 )"
|
||||
DEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
sys-kernel/linux-headers
|
||||
x11-base/xorg-proto"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-lang/perl
|
||||
sys-devel/binutils
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
!crossdev-mingw? ( dev-util/mingw64-toolchain[${MULTILIB_USEDEP}] )"
|
||||
IDEPEND=">=app-eselect/eselect-wine-2"
|
||||
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
__clear_cache # unused on amd64+x86 (bug #900332)
|
||||
res_getservers # false positive
|
||||
)
|
||||
QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.0.4-musl.patch
|
||||
"${FILESDIR}"/${PN}-7.0.4-noexecstack.patch
|
||||
"${FILESDIR}"/${PN}-7.0.4-restore-menubuilder.patch
|
||||
"${FILESDIR}"/${PN}-8.0.1c-unwind.patch
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} == binary ]] && return
|
||||
|
||||
if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then
|
||||
local mingw=-w64-mingw32
|
||||
for mingw in $(usev abi_x86_64 x86_64${mingw}) $(usev abi_x86_32 i686${mingw}); do
|
||||
if ! type -P ${mingw}-gcc >/dev/null; then
|
||||
eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain"
|
||||
eerror "yourself by installing sys-devel/crossdev then running:"
|
||||
eerror
|
||||
eerror " crossdev --target ${mingw}"
|
||||
eerror
|
||||
eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw"
|
||||
eerror "--> Note that mingw builds are default for ${PN} even without this USE."
|
||||
die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# sanity check, bumping these has a history of oversights
|
||||
local geckomono=$(sed -En '/^#define (GECKO|MONO)_VER/{s/[^0-9.]//gp}' \
|
||||
dlls/appwiz.cpl/addons.c || die)
|
||||
if [[ ${WINE_GECKO}$'\n'${WINE_MONO} != "${geckomono}" ]]; then
|
||||
local gmfatal=
|
||||
[[ ${PV} == *9999 ]] && gmfatal=nonfatal
|
||||
${gmfatal} die -n "gecko/mono mismatch in ebuild, has: " ${geckomono} " (please file a bug)"
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
if tc-is-clang; then
|
||||
# -mabi=ms was ignored by <clang:16 then turned error in :17
|
||||
# and it still gets used in install phase despite --with-mingw,
|
||||
# drop as a quick fix for now which hopefully should be safe
|
||||
sed -i '/MSVCRTFLAGS=/s/-mabi=ms//' configure.ac || die
|
||||
|
||||
# needed by Valve's fsync patches if using clang (undef atomic_load_8)
|
||||
sed -i '/^UNIX_LIBS.*=/s/$/ -latomic/' dlls/ntdll/Makefile.in || die
|
||||
fi
|
||||
|
||||
# ensure .desktop calls this variant + slot
|
||||
sed -i "/^Exec=/s/wine /${P} /" loader/wine.desktop || die
|
||||
|
||||
# similarly to staging, append to `wine --version` for identification
|
||||
sed -i "s/wine_build[^1]*1/& (Proton-${WINE_PV})/" configure.ac || die
|
||||
|
||||
# datadir is not where wine-mono is installed, so prefixy alternate paths
|
||||
hprefixify -w /get_mono_path/ dlls/mscoree/metahost.c
|
||||
|
||||
# always update for patches (including user's wrt #432348)
|
||||
eautoreconf
|
||||
tools/make_requests || die # perl
|
||||
dlls/winevulkan/make_vulkan -x vk.xml || die # python, needed for proton's
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
WINE_PREFIX=/usr/lib/${P}
|
||||
WINE_DATADIR=/usr/share/${P}
|
||||
|
||||
local conf=(
|
||||
--prefix="${EPREFIX}"${WINE_PREFIX}
|
||||
--datadir="${EPREFIX}"${WINE_DATADIR}
|
||||
--includedir="${EPREFIX}"/usr/include/${P}
|
||||
--libdir="${EPREFIX}"${WINE_PREFIX}
|
||||
--mandir="${EPREFIX}"${WINE_DATADIR}/man
|
||||
|
||||
# upstream (Valve) doesn't really support misc configurations (e.g.
|
||||
# adds vulkan code not always guarded by --with-vulkan), so force
|
||||
# some major options that are typically needed by games either way
|
||||
# TODO?: --without-mingw could make sense *if* using clang, assuming
|
||||
# bug #912237 is resolved (consider when do USE=wow64 in proton-9)
|
||||
--with-freetype
|
||||
--with-mingw # needed by many, notably Blizzard titles
|
||||
--with-opengl
|
||||
--with-vulkan
|
||||
--with-x
|
||||
|
||||
# ...and disable most options unimportant for games and unused by
|
||||
# Proton rather than expose as volatile USEs with little support
|
||||
--without-capi
|
||||
--without-cups
|
||||
--without-gphoto
|
||||
--without-gssapi
|
||||
--without-krb5
|
||||
--without-netapi
|
||||
--without-opencl
|
||||
--without-pcap
|
||||
--without-sane
|
||||
ac_cv_lib_soname_odbc=
|
||||
|
||||
$(use_enable gecko mshtml)
|
||||
$(use_enable mono mscoree)
|
||||
--disable-tests
|
||||
$(use_with alsa)
|
||||
$(use_with fontconfig)
|
||||
$(use_with gstreamer)
|
||||
$(use_with nls gettext)
|
||||
$(use_with osmesa)
|
||||
--without-oss # media-sound/oss is not packaged (OSSv4)
|
||||
$(use_with pulseaudio pulse)
|
||||
$(use_with sdl)
|
||||
$(use_with ssl gnutls)
|
||||
$(use_with udev)
|
||||
$(use_with udisks dbus) # dbus is only used for udisks
|
||||
$(use_with unwind)
|
||||
$(use_with usb)
|
||||
$(use_with v4l v4l2)
|
||||
$(use_with xcomposite)
|
||||
$(use_with xinerama)
|
||||
)
|
||||
|
||||
tc-ld-force-bfd # builds with non-bfd but broken at runtime (bug #867097)
|
||||
filter-lto # build failure
|
||||
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
||||
|
||||
# temporary workaround for tc-ld-force-bfd not yet enforcing with mold
|
||||
# https://github.com/gentoo/gentoo/pull/28355
|
||||
[[ $($(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) == mold* ]] &&
|
||||
append-ldflags -fuse-ld=bfd
|
||||
|
||||
# build using upstream's way (--with-wine64)
|
||||
# order matters: configure+compile 64->32, install 32->64
|
||||
local -i bits
|
||||
for bits in $(usev abi_x86_64 64) $(usev abi_x86_32 32); do
|
||||
(
|
||||
einfo "Configuring ${PN} for ${bits}bits in ${WORKDIR}/build${bits} ..."
|
||||
|
||||
mkdir ../build${bits} || die
|
||||
cd ../build${bits} || die
|
||||
|
||||
pe_arch=i386
|
||||
if (( bits == 64 )); then
|
||||
pe_arch=x86_64
|
||||
: "${CROSSCC:=${CROSSCC_amd64:-x86_64-w64-mingw32-gcc}}"
|
||||
conf+=( --enable-win64 )
|
||||
elif use amd64; then
|
||||
conf+=(
|
||||
$(usev abi_x86_64 --with-wine64=../build64)
|
||||
TARGETFLAGS=-m32 # for widl
|
||||
)
|
||||
# _setup is optional, but use over Wine's auto-detect (+#472038)
|
||||
multilib_toolchain_setup x86
|
||||
fi
|
||||
: "${CROSSCC:=${CROSSCC_x86:-i686-w64-mingw32-gcc}}"
|
||||
|
||||
# CROSSCC is no longer recognized by Wine, but still use for now
|
||||
# (future handling for CROSS* variables is subject to changes)
|
||||
conf+=( ac_cv_prog_${pe_arch}_CC="${CROSSCC}" )
|
||||
|
||||
# use *FLAGS for mingw, but strip unsupported
|
||||
: "${CROSSCFLAGS:=$(
|
||||
# >=wine-7.21 <8.10's configure.ac does not pass -fno-strict when
|
||||
# it should (can be removed when proton is rebased on >=8.10)
|
||||
append-cflags -fno-strict-aliasing
|
||||
|
||||
filter-flags '-fstack-protector*' #870136
|
||||
filter-flags '-mfunction-return=thunk*' #878849
|
||||
|
||||
# -mavx with mingw-gcc has a history of obscure issues and
|
||||
# disabling is seen as safer, e.g. `WINEARCH=win32 winecfg`
|
||||
# crashes with -march=skylake >=wine-8.10, similar issues with
|
||||
# znver4: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110273
|
||||
append-cflags -mno-avx #912268
|
||||
|
||||
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
||||
: "${CROSSLDFLAGS:=$(
|
||||
filter-flags '-fuse-ld=*'
|
||||
CC=${CROSSCC} test-flags-CCLD ${LDFLAGS})}"
|
||||
export CROSS{C,LD}FLAGS
|
||||
|
||||
ECONF_SOURCE=${S} econf "${conf[@]}"
|
||||
)
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use abi_x86_64 && emake -C ../build64 # do first
|
||||
use abi_x86_32 && emake -C ../build32
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use abi_x86_32 && emake DESTDIR="${D}" -C ../build32 install
|
||||
use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
|
||||
|
||||
# symlink for plain 'wine' and install its man pages if 64bit-only #404331
|
||||
if use abi_x86_64 && use !abi_x86_32; then
|
||||
dosym wine64 ${WINE_PREFIX}/bin/wine
|
||||
dosym wine64-preloader ${WINE_PREFIX}/bin/wine-preloader
|
||||
local man
|
||||
for man in ../build64/loader/wine.*man; do
|
||||
: "${man##*/wine}"
|
||||
: "${_%.*}"
|
||||
insinto ${WINE_DATADIR}/man/${_:+${_#.}/}man1
|
||||
newins ${man} wine.1
|
||||
done
|
||||
fi
|
||||
|
||||
use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
|
||||
"${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} || die
|
||||
|
||||
# create variant wrappers for eselect-wine
|
||||
local bin
|
||||
for bin in "${ED}"${WINE_PREFIX}/bin/*; do
|
||||
make_wrapper "${bin##*/}-${P#wine-}" "${bin#"${ED}"}"
|
||||
done
|
||||
|
||||
# don't let portage try to strip PE files with the wrong
|
||||
# strip executable and instead handle it here (saves ~120MB)
|
||||
dostrip -x ${WINE_PREFIX}/wine/{i386,x86_64}-windows
|
||||
|
||||
if use strip; then
|
||||
ebegin "Stripping Windows (PE) binaries"
|
||||
find "${ED}"${WINE_PREFIX}/wine/*-windows -regex '.*\.\(a\|dll\|exe\)' \
|
||||
-exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip --strip-unneeded {} +
|
||||
eend ${?} || die
|
||||
fi
|
||||
|
||||
dodoc ANNOUNCE AUTHORS README* documentation/README*
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
has_version ${CATEGORY}/${PN} && WINE_HAD_ANY_SLOT=
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
[[ -v WINE_HAD_ANY_SLOT ]] || readme.gentoo_print_elog
|
||||
|
||||
if use abi_x86_32 && has_version 'x11-drivers/nvidia-drivers[-abi_x86_32]'
|
||||
then
|
||||
ewarn "x11-drivers/nvidia-drivers is installed but is built without"
|
||||
ewarn "USE=abi_x86_32 (ABI_X86=32), hardware acceleration with 32bit"
|
||||
ewarn "applications under ${PN} will likely not be usable."
|
||||
fi
|
||||
|
||||
eselect wine update --if-unset || die
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect wine update --if-unset || die
|
||||
}
|
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
https://bugs.gentoo.org/668250
|
||||
--- a/homepage/ref/pphtp.pl
|
||||
+++ b/homepage/ref/pphtp.pl
|
||||
@@ -6,7 +6,7 @@
|
||||
# -n include line numbers
|
||||
# -s include EBNF like syntax
|
||||
|
||||
-require "hlhtp.pl";
|
||||
+require "./hlhtp.pl";
|
||||
|
||||
|
||||
while ($ARGV[0] =~ /^-(.*)/) {
|
@ -0,0 +1,11 @@
|
||||
--- a/src/Makefile.sub
|
||||
+++ b/src/Makefile.sub
|
||||
@@ -46,7 +46,7 @@ install: install-bin
|
||||
|
||||
install-bin: $(HTP)
|
||||
mkdir -p $(bindir)
|
||||
- $(INSTALL) -s $(HTP) $(bindir)
|
||||
+ $(INSTALL) $(HTP) $(bindir)
|
||||
|
||||
#
|
||||
# explicit dependency: final executable
|
@ -0,0 +1,27 @@
|
||||
https://bugs.gentoo.org/827173
|
||||
https://sources.debian.org/patches/htp/1.19-8/0004-Parallel-ftbfs.patch/
|
||||
|
||||
Description: Fix occasional parallel FTBFS
|
||||
Various source files indirectly include $(d)/version.inc,
|
||||
don't regenerate it in the middle of the build.
|
||||
Author: Adrian Bunk <bunk@debian.org>
|
||||
|
||||
--- htp-1.19.orig/src/Makefile.sub
|
||||
+++ htp-1.19/src/Makefile.sub
|
||||
@@ -57,14 +57,12 @@ $(HTP) : $(OBJ$(d))
|
||||
#
|
||||
# implicit dependencies for source code
|
||||
#
|
||||
-$(OBJ$(d)) : %.$(OBJEXT) : %.c
|
||||
+$(OBJ$(d)) : %.$(OBJEXT) : %.c $(d)/version.inc
|
||||
ifdef WIN32DMC
|
||||
cd $(dir $<); $(CC) $(CCOPT) $(DEFINES) $(notdir $<)
|
||||
else
|
||||
$(CC) $(CCOPT) $(DEFINES) -o $*.$(OBJEXT) $<
|
||||
endif
|
||||
|
||||
-$(d)/htp.$(OBJEXT) $(d)/ver.$(OBJEXT): $(d)/version.inc
|
||||
-
|
||||
# restore parent dir
|
||||
d := $(p$(d))
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="An HTML preprocessor"
|
||||
HOMEPAGE="http://htp.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Clarified-Artistic"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.19-no-prestrip.patch
|
||||
"${FILESDIR}"/${PN}-1.19-parallel-make.patch
|
||||
"${FILESDIR}"/${PN}-1.19-fix-perl-5.26.patch
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
# TOOD: Tests are always run by the Makefile right now
|
||||
emake \
|
||||
CCOPT="-c ${CFLAGS} ${CPPFLAGS} -DHAVE_SNPRINTF -DHAVE_VASPRINTF -DHAVE_ASPRINTF" \
|
||||
CC="$(tc-getCC)" \
|
||||
LINK='$(CC) $(LDFLAGS)'
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
prefix='$(DESTDIR)/usr' \
|
||||
pkgdocdir='$(DESTDIR)/usr/share/doc/${PF}/html' \
|
||||
install
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST lesspipe-2.06.tar.gz 168100 BLAKE2B a7447efa85cd422343f9dbb06001e85fa7b33c92db752f8248e4b4a0d9ecce4ef0241240d6993c5a71157c44da2f4ffc3efd41ac5e0a31e89ed5b80ac99f71fe SHA512 b2411c5e6b287fb67e1ea9b6d10377fe19b58e8c0f54587f825d1ee4c1a85f9a8ed3244a7cf339bcba960094e95821d9a56929951d862eb697f1d12fe55ef20d
|
||||
DIST lesspipe-2.07.tar.gz 168973 BLAKE2B b9be5968d808dc57caa00551cdf663be75dff1c9662b585ddd2e1891f6f66fce0b71a468d9b9172af2833bd6ee255ad9b5fb917dac527eeb8b57427c568cd620 SHA512 6fa5debfa5b72fa5826294eca158a935a0b49dc431bd27eb7dc598315592d575ad302bb94fcdb86409dce1cb7055242ff10eb09cbf3708e472b8dbe8286d5511
|
||||
DIST lesspipe-2.08.tar.gz 169527 BLAKE2B c1b1e4b9d3b24f7a9547f25a276bdee7aebf35777401441bb9bbefef3f3ff319ca8ef330c76e969811cbb2047a539aa4d2dbea5059c5ed06a69bea43d54f94a9 SHA512 309f69240308eab082ed9bff1bda1785eb8394022e576ff49656816cf793e0f3bb26bb0f41eff4c1437ed7719cbd810a83d75d8a1a08a11a8cf378c1741397bd
|
||||
DIST lesspipe-2.10.tar.gz 170918 BLAKE2B 156fe53975252ac6c59a637ffe0ee9862be0699f325a0b328e5c0f2cb5e6f7d8324481f3d3211cbb15a585a5dabde45adf87ac4e0af91cd34540359331684264 SHA512 3fe122cf0adf8dd3e0782ae65132c58d76f7131a2e8c30d9a10eb426c6f63e50b4b5e02b6792524a37b27ca572bd3e2661a6c82118e9c4ed5ecbccaf2c5a42e2
|
||||
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit edo bash-completion-r1
|
||||
|
||||
DESCRIPTION="Preprocessor for less"
|
||||
HOMEPAGE="https://github.com/wofr06/lesspipe"
|
||||
SRC_URI="https://github.com/wofr06/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="test"
|
||||
|
||||
# Please check again on bumps!
|
||||
# bug #734896
|
||||
RESTRICT="!test? ( test ) test"
|
||||
|
||||
RDEPEND="dev-lang/perl"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
test? ( app-editors/vim )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
# Not an autoconf script.
|
||||
edo ./configure --prefix="${EPREFIX}"/usr
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Nothing to build (avoids the "all" target)
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install
|
||||
einstalldocs
|
||||
|
||||
rm "${ED}"/usr/share/bash-completion/less_completion || die
|
||||
newbashcomp less_completion less
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
elog "This package installs 'lesspipe.sh' which is distinct from 'lesspipe'."
|
||||
elog "The latter is the Gentoo-specific version. Make sure to update your"
|
||||
elog "LESSOPEN environment variable if you wish to use this copy."
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST liblangtag-0.6.3.tar.bz2 755492 BLAKE2B fb7b3cf5a4e6c3fabdce110ab208fa9e3537d8144839f2fc9779ff9de928afa416838c5c3c5317438ae0421806eb6ffb2207f6ad3dc02bcbf9123668187d22d2 SHA512 3dcfc20704dfaff05aeecdeef74fa81639fb70f930ebc0895fe4707ecd1d5b6221fe889449772811924d0c38329977c9d5fc751c3accbc272834b29c461f1fcf
|
||||
DIST liblangtag-0.6.4.tar.bz2 764946 BLAKE2B 1d94f341359f880acb8a0a0526da625cb39d85b33665b861c0fbd94064228a3d5328f3a3b7d62bffd29c6ff8161fa499b6565010ba3065c90f87b5902969e81f SHA512 6c6dd3e6b0fc8d6f10cafd74112cbaf2a2342a88a908ad2f7ae759b3f5fb0cf6d788504c1de072e9ef019f2f5a284daeb2d2393036b6b402c5bc87f32b55f271
|
||||
|
@ -1,28 +0,0 @@
|
||||
Fix build with gtk-doc-1.32
|
||||
|
||||
This bug was reported here:
|
||||
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939956
|
||||
|
||||
The issue is that gtk-doc-1.32 no longer generates empty tree_index
|
||||
files. The recommendation is that liblangtag be modified to no longer
|
||||
reference what used to be an empty tree_index, but is now a missing
|
||||
file. The same bug report contained the patch implemented here, which
|
||||
removes the reference to a now-missing tree_index file.
|
||||
|
||||
The fix should already be provided in newer versions of liblangtag.
|
||||
|
||||
diff --git a/docs/liblangtag-docs.sgml b/docs/liblangtag-docs.sgml
|
||||
index 1234567..1234567 100644
|
||||
--- a/docs/liblangtag-docs.sgml
|
||||
+++ b/docs/liblangtag-docs.sgml
|
||||
@@ -58,10 +58,6 @@
|
||||
</section>
|
||||
|
||||
</chapter>
|
||||
- <chapter id="object-tree">
|
||||
- <title>Object Hierarchy</title>
|
||||
- <xi:include href="xml/tree_index.sgml"/>
|
||||
- </chapter>
|
||||
<index id="api-index-full">
|
||||
<title>API Index</title>
|
||||
<xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
|
@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit xdg-utils
|
||||
|
||||
DESCRIPTION="An interface library to access tags for identifying languages"
|
||||
HOMEPAGE="https://bitbucket.org/tagoh/liblangtag/wiki/Home"
|
||||
SRC_URI="https://bitbucket.org/tagoh/${PN}/downloads/${P}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( LGPL-3 MPL-2.0 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv x86"
|
||||
IUSE="debug doc introspection static-libs test"
|
||||
|
||||
BDEPEND="
|
||||
sys-devel/gettext
|
||||
sys-devel/libtool
|
||||
doc? ( dev-util/gtk-doc )
|
||||
introspection? ( dev-libs/gobject-introspection-common )
|
||||
"
|
||||
RDEPEND="
|
||||
dev-libs/libxml2
|
||||
introspection? ( dev-libs/gobject-introspection )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-libs/check )
|
||||
"
|
||||
|
||||
# Upstream expect liblangtag to be installed when one runs tests...
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-fix-for-gtk-doc-1.32.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
xdg_environment_reset
|
||||
if [[ -d docs/html ]]; then
|
||||
rm -r docs/html || die "Failed to remove existing gtk-doc"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable debug)
|
||||
$(use_enable doc gtk-doc)
|
||||
$(use_enable introspection)
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable test)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -type f -delete || die
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST mythes-1.2.4.tar.gz 4910303 BLAKE2B aa091344aebd117618d90aa574ec5e68594782511e1aa85a2d46740ecc4ff2cdf1d9f9f6de9dfd454cc0056076bdb9a21ad14d2935e39e4fdbd7753930fda605 SHA512 a04da39812bcfb1391a2cba7de73e955eafe141679ec03ed6657d03bebf360b432480d0037dff9ed72a1dfda5a70d77d44ac2bb14cdb109fd8e2a38376feee21
|
||||
DIST mythes-1.2.5.tar.xz 2891852 BLAKE2B e292e49187a9b225fdcfccb467afed0b8ce90769bbefe331d7d7f026f2dd6686543b14f3666af5b1693198467206c53da0bbd030420d87c94315f9da769f45a6 SHA512 304fd05619e0ae02c9c29d92a6ada8f4a85f41f331b87b8820728c1919f3dd9c5cd951dbef9a27e649466f94dc5daa19350c9fd09c90d49b198b73b1f9eb770e
|
||||
|
@ -1,26 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="A simple thesaurus for Libreoffice"
|
||||
HOMEPAGE="http://hunspell.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/hunspell/MyThes/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-text/hunspell"
|
||||
DEPEND="${DEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
econf --disable-static
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -exec rm -f {} +
|
||||
}
|
Binary file not shown.
@ -0,0 +1,459 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
# Patch version
|
||||
FIREFOX_PATCHSET="firefox-115esr-patches-06.tar.xz"
|
||||
SPIDERMONKEY_PATCHSET="spidermonkey-115-patches-01.tar.xz"
|
||||
|
||||
LLVM_MAX_SLOT=16
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
PYTHON_REQ_USE="ncurses,ssl,xml(+)"
|
||||
|
||||
WANT_AUTOCONF="2.1"
|
||||
|
||||
inherit autotools check-reqs flag-o-matic llvm multiprocessing prefix python-any-r1 toolchain-funcs
|
||||
|
||||
MY_PN="mozjs"
|
||||
MY_PV="${PV/_pre*}" # Handle Gentoo pre-releases
|
||||
|
||||
MY_MAJOR=$(ver_cut 1)
|
||||
|
||||
MOZ_ESR=yes
|
||||
|
||||
MOZ_PV=${PV}
|
||||
MOZ_PV_SUFFIX=
|
||||
if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
|
||||
MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
|
||||
|
||||
# Convert the ebuild version to the upstream Mozilla version
|
||||
MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
|
||||
MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
|
||||
MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
|
||||
fi
|
||||
|
||||
if [[ -n ${MOZ_ESR} ]] ; then
|
||||
# ESR releases have slightly different version numbers
|
||||
MOZ_PV="${MOZ_PV}esr"
|
||||
fi
|
||||
|
||||
MOZ_PN="firefox"
|
||||
MOZ_P="${MOZ_PN}-${MOZ_PV}"
|
||||
MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
|
||||
MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
|
||||
|
||||
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
|
||||
|
||||
if [[ ${PV} == *_rc* ]] ; then
|
||||
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
|
||||
fi
|
||||
|
||||
PATCH_URIS=(
|
||||
https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
|
||||
https://dev.gentoo.org/~juippis/mozilla/patchsets/${SPIDERMONKEY_PATCHSET}
|
||||
)
|
||||
|
||||
SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
|
||||
${PATCH_URIS[@]}"
|
||||
|
||||
DESCRIPTION="SpiderMonkey is Mozilla's JavaScript engine written in C and C++"
|
||||
HOMEPAGE="https://spidermonkey.dev https://firefox-source-docs.mozilla.org/js/index.html "
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
SLOT="$(ver_cut 1)"
|
||||
LICENSE="MPL-2.0"
|
||||
IUSE="clang cpu_flags_arm_neon debug +jit lto test"
|
||||
|
||||
#RESTRICT="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="${PYTHON_DEPS}
|
||||
|| (
|
||||
(
|
||||
sys-devel/llvm:16
|
||||
clang? (
|
||||
sys-devel/lld:16
|
||||
sys-devel/clang:16
|
||||
virtual/rust:0/llvm-16
|
||||
)
|
||||
)
|
||||
(
|
||||
sys-devel/llvm:15
|
||||
clang? (
|
||||
sys-devel/lld:15
|
||||
sys-devel/clang:15
|
||||
virtual/rust:0/llvm-15
|
||||
)
|
||||
)
|
||||
)
|
||||
!clang? ( virtual/rust )
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
$(python_gen_any_dep 'dev-python/six[${PYTHON_USEDEP}]')
|
||||
)"
|
||||
DEPEND=">=dev-libs/icu-73.1:=
|
||||
dev-libs/nspr
|
||||
sys-libs/readline:0=
|
||||
sys-libs/zlib"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/firefox-${MY_PV}/js/src"
|
||||
|
||||
llvm_check_deps() {
|
||||
if ! has_version -b "sys-devel/llvm:${LLVM_SLOT}" ; then
|
||||
einfo "sys-devel/llvm:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
if use clang ; then
|
||||
if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
|
||||
einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
|
||||
einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
if ! tc-ld-is-mold ; then
|
||||
if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
|
||||
einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
if use test ; then
|
||||
python_has_version "dev-python/six[${PYTHON_USEDEP}]"
|
||||
fi
|
||||
}
|
||||
|
||||
# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', and is temporarily
|
||||
# placed here until toolchain-funcs.eclass gets an official support for mold linker.
|
||||
# Please see:
|
||||
# https://github.com/gentoo/gentoo/pull/28366 ||
|
||||
# https://github.com/gentoo/gentoo/pull/28355
|
||||
tc-ld-is-mold() {
|
||||
local out
|
||||
|
||||
# Ensure ld output is in English.
|
||||
local -x LC_ALL=C
|
||||
|
||||
# First check the linker directly.
|
||||
out=$($(tc-getLD "$@") --version 2>&1)
|
||||
if [[ ${out} == *"mold"* ]] ; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Then see if they're selecting mold via compiler flags.
|
||||
# Note: We're assuming they're using LDFLAGS to hold the
|
||||
# options and not CFLAGS/CXXFLAGS.
|
||||
local base="${T}/test-tc-linker"
|
||||
cat <<-EOF > "${base}.c"
|
||||
int main() { return 0; }
|
||||
EOF
|
||||
out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1)
|
||||
rm -f "${base}"*
|
||||
if [[ ${out} == *"mold"* ]] ; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
# No mold here!
|
||||
return 1
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use test ; then
|
||||
CHECKREQS_DISK_BUILD="4000M"
|
||||
else
|
||||
CHECKREQS_DISK_BUILD="3600M"
|
||||
fi
|
||||
|
||||
check-reqs_pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${MERGE_TYPE} != binary ]] ; then
|
||||
if use test ; then
|
||||
CHECKREQS_DISK_BUILD="4000M"
|
||||
else
|
||||
CHECKREQS_DISK_BUILD="3600M"
|
||||
fi
|
||||
|
||||
check-reqs_pkg_setup
|
||||
|
||||
llvm_pkg_setup
|
||||
|
||||
if use clang && use lto && tc-ld-is-lld ; then
|
||||
local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
|
||||
[[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
|
||||
[[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
|
||||
|
||||
local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
|
||||
[[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
|
||||
[[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
|
||||
|
||||
if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
|
||||
eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
|
||||
eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
|
||||
eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
|
||||
eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
|
||||
eerror " - Build ${CATEGORY}/${PN} without USE=lto"
|
||||
eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
|
||||
eerror " llvm/clang/lld/rust chain depending on your @world updates)"
|
||||
die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
|
||||
fi
|
||||
fi
|
||||
|
||||
python-any-r1_pkg_setup
|
||||
|
||||
# Build system is using /proc/self/oom_score_adj, bug #604394
|
||||
addpredict /proc/self/oom_score_adj
|
||||
|
||||
if ! mountpoint -q /dev/shm ; then
|
||||
# If /dev/shm is not available, configure is known to fail with
|
||||
# a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
|
||||
ewarn "/dev/shm is not mounted -- expect build failures!"
|
||||
fi
|
||||
|
||||
# Ensure we use C locale when building, bug #746215
|
||||
export LC_ALL=C
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
pushd ../.. &>/dev/null || die
|
||||
|
||||
use lto && rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch
|
||||
|
||||
if ! use ppc64; then
|
||||
rm -v "${WORKDIR}"/firefox-patches/*ppc64*.patch || die
|
||||
fi
|
||||
|
||||
eapply "${WORKDIR}"/firefox-patches
|
||||
eapply "${WORKDIR}"/spidermonkey-patches
|
||||
|
||||
default
|
||||
|
||||
# Make cargo respect MAKEOPTS
|
||||
export CARGO_BUILD_JOBS="$(makeopts_jobs)"
|
||||
|
||||
# sed-in toolchain prefix
|
||||
sed -i \
|
||||
-e "s/objdump/${CHOST}-objdump/" \
|
||||
python/mozbuild/mozbuild/configure/check_debug_ranges.py \
|
||||
|| die "sed failed to set toolchain prefix"
|
||||
|
||||
# use prefix shell in wrapper linker scripts, bug #789660
|
||||
hprefixify "${S}"/../../build/cargo-{,host-}linker
|
||||
|
||||
einfo "Removing pre-built binaries ..."
|
||||
find third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
|
||||
|
||||
MOZJS_BUILDDIR="${WORKDIR}/build"
|
||||
mkdir "${MOZJS_BUILDDIR}" || die
|
||||
|
||||
popd &>/dev/null || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Show flags set at the beginning
|
||||
einfo "Current CFLAGS: ${CFLAGS}"
|
||||
einfo "Current CXXFLAGS: ${CXXFLAGS}"
|
||||
einfo "Current LDFLAGS: ${LDFLAGS}"
|
||||
einfo "Current RUSTFLAGS: ${RUSTFLAGS}"
|
||||
|
||||
local have_switched_compiler=
|
||||
if use clang; then
|
||||
# Force clang
|
||||
einfo "Enforcing the use of clang due to USE=clang ..."
|
||||
|
||||
local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }')
|
||||
[[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}")
|
||||
[[ -z ${version_clang} ]] && die "Failed to read clang version!"
|
||||
|
||||
if tc-is-gcc; then
|
||||
have_switched_compiler=yes
|
||||
fi
|
||||
AR=llvm-ar
|
||||
CC=${CHOST}-clang-${version_clang}
|
||||
CXX=${CHOST}-clang++-${version_clang}
|
||||
NM=llvm-nm
|
||||
RANLIB=llvm-ranlib
|
||||
|
||||
elif ! use clang && ! tc-is-gcc ; then
|
||||
# Force gcc
|
||||
have_switched_compiler=yes
|
||||
einfo "Enforcing the use of gcc due to USE=-clang ..."
|
||||
AR=gcc-ar
|
||||
CC=${CHOST}-gcc
|
||||
CXX=${CHOST}-g++
|
||||
NM=gcc-nm
|
||||
RANLIB=gcc-ranlib
|
||||
fi
|
||||
|
||||
if [[ -n "${have_switched_compiler}" ]] ; then
|
||||
# Because we switched active compiler we have to ensure
|
||||
# that no unsupported flags are set
|
||||
strip-unsupported-flags
|
||||
fi
|
||||
|
||||
# Ensure we use correct toolchain,
|
||||
# AS is used in a non-standard way by upstream, #bmo1654031
|
||||
export HOST_CC="$(tc-getBUILD_CC)"
|
||||
export HOST_CXX="$(tc-getBUILD_CXX)"
|
||||
export AS="$(tc-getCC) -c"
|
||||
tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG
|
||||
|
||||
cd "${MOZJS_BUILDDIR}" || die
|
||||
|
||||
# ../python/mach/mach/mixin/process.py fails to detect SHELL
|
||||
export SHELL="${EPREFIX}/bin/bash"
|
||||
|
||||
local -a myeconfargs=(
|
||||
--host="${CBUILD:-${CHOST}}"
|
||||
--target="${CHOST}"
|
||||
|
||||
--disable-ctype
|
||||
--disable-jemalloc
|
||||
--disable-smoosh
|
||||
--disable-strip
|
||||
|
||||
--enable-project=js
|
||||
--enable-readline
|
||||
--enable-release
|
||||
--enable-shared-js
|
||||
|
||||
--with-intl-api
|
||||
--with-system-icu
|
||||
--with-system-nspr
|
||||
--with-system-zlib
|
||||
--with-toolchain-prefix="${CHOST}-"
|
||||
|
||||
$(use_enable debug)
|
||||
$(use_enable jit)
|
||||
$(use_enable test tests)
|
||||
)
|
||||
|
||||
if use debug; then
|
||||
myeconfargs+=( --disable-optimize )
|
||||
myeconfargs+=( --enable-debug-symbols )
|
||||
myeconfargs+=( --enable-real-time-tracing )
|
||||
else
|
||||
myeconfargs+=( --enable-optimize )
|
||||
myeconfargs+=( --disable-debug-symbols )
|
||||
myeconfargs+=( --disable-real-time-tracing )
|
||||
fi
|
||||
|
||||
if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
|
||||
myeconfargs+=( --enable-rust-simd )
|
||||
fi
|
||||
|
||||
# Modifications to better support ARM, bug 717344
|
||||
if use cpu_flags_arm_neon ; then
|
||||
myeconfargs+=( --with-fpu=neon )
|
||||
|
||||
if ! tc-is-clang ; then
|
||||
# thumb options aren't supported when using clang, bug 666966
|
||||
myeconfargs+=( --with-thumb=yes )
|
||||
myeconfargs+=( --with-thumb-interwork=no )
|
||||
fi
|
||||
fi
|
||||
|
||||
# Tell build system that we want to use LTO
|
||||
if use lto ; then
|
||||
if use clang ; then
|
||||
if tc-ld-is-mold ; then
|
||||
myeconfargs+=( --enable-linker=mold )
|
||||
else
|
||||
myeconfargs+=( --enable-linker=lld )
|
||||
fi
|
||||
myeconfargs+=( --enable-lto=cross )
|
||||
|
||||
else
|
||||
myeconfargs+=( --enable-linker=bfd )
|
||||
myeconfargs+=( --enable-lto=full )
|
||||
fi
|
||||
fi
|
||||
|
||||
# LTO flag was handled via configure
|
||||
filter-lto
|
||||
|
||||
# Use system's Python environment
|
||||
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
|
||||
export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
|
||||
|
||||
# Show flags we will use
|
||||
einfo "Build CFLAGS: ${CFLAGS}"
|
||||
einfo "Build CXXFLAGS: ${CXXFLAGS}"
|
||||
einfo "Build LDFLAGS: ${LDFLAGS}"
|
||||
einfo "Build RUSTFLAGS: ${RUSTFLAGS}"
|
||||
|
||||
# Forcing system-icu allows us to skip patching bundled ICU for PPC
|
||||
# and other minor arches
|
||||
ECONF_SOURCE="${S}" \
|
||||
econf \
|
||||
${myeconfargs[@]} \
|
||||
XARGS="${EPREFIX}/usr/bin/xargs"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${MOZJS_BUILDDIR}" || die
|
||||
default
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if "${MOZJS_BUILDDIR}/js/src/js" -e 'print("Hello world!")'; then
|
||||
einfo "Smoke-test successful, continuing with full test suite"
|
||||
else
|
||||
die "Smoke-test failed: did interpreter initialization fail?"
|
||||
fi
|
||||
|
||||
cp "${FILESDIR}"/spidermonkey-${SLOT}-known-test-failures.txt "${T}"/known_failures.list || die
|
||||
|
||||
${EPYTHON} \
|
||||
"${S}"/tests/jstests.py -d -s -t 1800 --wpt=disabled --no-progress \
|
||||
--exclude-file="${T}"/known_failures.list \
|
||||
"${MOZJS_BUILDDIR}"/js/src/js \
|
||||
|| die
|
||||
|
||||
if use jit ; then
|
||||
${EPYTHON} \
|
||||
"${S}"/tests/jstests.py -d -s -t 1800 --wpt=disabled --no-progress \
|
||||
--exclude-file="${T}"/known_failures.list \
|
||||
"${MOZJS_BUILDDIR}"/js/src/js basic \
|
||||
|| die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${MOZJS_BUILDDIR}" || die
|
||||
default
|
||||
|
||||
# fix soname links
|
||||
pushd "${ED}"/usr/$(get_libdir) &>/dev/null || die
|
||||
mv lib${MY_PN}-${MY_MAJOR}.so lib${MY_PN}-${MY_MAJOR}.so.0.0.0 || die
|
||||
ln -s lib${MY_PN}-${MY_MAJOR}.so.0.0.0 lib${MY_PN}-${MY_MAJOR}.so.0 || die
|
||||
ln -s lib${MY_PN}-${MY_MAJOR}.so.0 lib${MY_PN}-${MY_MAJOR}.so || die
|
||||
popd &>/dev/null || die
|
||||
|
||||
# remove unneeded files
|
||||
rm \
|
||||
"${ED}"/usr/bin/js${MY_MAJOR}-config \
|
||||
"${ED}"/usr/$(get_libdir)/libjs_static.ajs \
|
||||
|| die
|
||||
|
||||
# fix permissions
|
||||
chmod -x \
|
||||
"${ED}"/usr/$(get_libdir)/pkgconfig/*.pc \
|
||||
"${ED}"/usr/include/mozjs-${MY_MAJOR}/js-config.h \
|
||||
|| die
|
||||
}
|
Binary file not shown.
@ -1,4 +1,5 @@
|
||||
DIST c-blosc2-2.10.2.gh.tar.gz 3142525 BLAKE2B 1bd3f4c10c9c2b9d228499d41e5f3ea2c751f6271946de0857487ef71ec32bfe2d450aaff39d27f14b1b2f4dbec4b4e545f26d99a7494e39950627f55664fe40 SHA512 2e4344a6fb905fc7c8e3de2db3a59469b2ea27d2f17777e476d08247cb3793880f3c5db786857c0afd33371868e4fcd713b6913d5502424821f20c9870e1e4bb
|
||||
DIST c-blosc2-2.10.3.gh.tar.gz 3142852 BLAKE2B d1c947d5a2913929d6eb8713fb750937c50f25bc7858576831eecb7ffb996238821435e080944da332d51f55eff9a714c10571c09def8170816be67ffdb779ae SHA512 ae1d8d6aae1cb58f954491733b1667a6280384de705795d181aada9ffd9d8a922b715f22ad12bc7f0fd2799b46e70a7c21a8253de74445f3013a6d2136579ae0
|
||||
DIST c-blosc2-2.10.4.gh.tar.gz 3142948 BLAKE2B 3c25ed6540b080c385e383c36dab6d4a754130b1e69ad358e2b56ef1988b81bbc1fd0749d86bbe126fdf8cdbf55384a9ebf36e1b264c751dc9a1e74501c20365 SHA512 85247c3fb42a90e10a213d7fa62be17fb1156d0d68fd9ab2fd1757e0b41f81d7b4cf73d67e542eefcd812f8589eda81fab34c0ab2d5a0634563b6408313b0f74
|
||||
DIST c-blosc2-2.10.5.gh.tar.gz 3144174 BLAKE2B a680def405f2383636185ab1b71a42e042dd0c71025bfc898b48f148f4a6bf27cbd38f29512caae9ff5b58f70cb35289b609c84b132c0795915d1fe6c71b3feb SHA512 bc004fe2132a8e36963437d5279506c2f79dcbf11ee1a768954c20d1265d120dc85e67952b567e716105c5716922da8ee8cffd0a5d44bc67093a4cab3075e322
|
||||
DIST c-blosc2-2.9.3.gh.tar.gz 3139809 BLAKE2B 740bfbc3cd1416d0863f6939ba4b5e27b2ae7947a407838e4061ef42c005ee255abdd8bbcbecb25123b7ff50ece62493ad3b5a84d4e02a65e1791c9007cf5b5d SHA512 30e792ba982d66936813c2dc56f85ee17a1a73ec475c15d6448cc1f5ac88f917f7a823e4b7b59c1271b1a9ee1ddd1f15fb74d6c0fa61d653b16d1a05209dfde4
|
||||
|
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Blocking, shuffling and lossless compression library"
|
||||
HOMEPAGE="
|
||||
https://www.blosc.org/c-blosc2/c-blosc2.html
|
||||
https://github.com/Blosc/c-blosc2/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/Blosc/c-blosc2/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/1"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test +zlib +zstd"
|
||||
REQUIRED_USE="test? ( zlib zstd )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
>=app-arch/lz4-1.7.5:=
|
||||
zlib? ( sys-libs/zlib:= )
|
||||
zstd? ( app-arch/zstd:= )
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.9.3-no-unaligned.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
# remove bundled libs (just in case)
|
||||
rm -rf internal-complibs || die
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_STATIC=OFF
|
||||
-DBUILD_TESTS=$(usex test)
|
||||
-DBUILD_BENCHMARKS=OFF
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_FUZZERS=OFF
|
||||
-DDEACTIVATE_ZLIB=$(usex !zlib)
|
||||
-DDEACTIVATE_ZSTD=$(usex !zstd)
|
||||
-DPREFER_EXTERNAL_LZ4=ON
|
||||
-DPREFER_EXTERNAL_ZLIB=ON
|
||||
-DPREFER_EXTERNAL_ZSTD=ON
|
||||
|
||||
# force regular zlib, at least for the time being
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_ZLIB_NG=ON
|
||||
|
||||
# upstream overrides CMAKE_C_FLAGS, preventing ${CFLAGS} defaults
|
||||
# from applying, https://github.com/Blosc/c-blosc2/issues/433
|
||||
-DCMAKE_C_FLAGS="${CFLAGS}"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests fail in parallel, https://github.com/Blosc/c-blosc2/issues/432
|
||||
MAKEOPTS=-j1 cmake_src_test
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Note: Keep version bumps in sync with sys-devel/gettext.
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_P="gettext-${PV}"
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gettext.asc
|
||||
inherit multilib-minimal libtool usr-ldscript verify-sig
|
||||
|
||||
DESCRIPTION="the GNU international library (split out of gettext)"
|
||||
HOMEPAGE="https://www.gnu.org/software/gettext/"
|
||||
SRC_URI="
|
||||
mirror://gnu/gettext/${MY_P}.tar.xz
|
||||
verify-sig? ( mirror://gnu/gettext/${MY_P}.tar.xz.sig )
|
||||
"
|
||||
S="${WORKDIR}/${MY_P}/gettext-runtime"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="static-libs +threads"
|
||||
|
||||
DEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]"
|
||||
# Block C libraries known to provide libintl.
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
!sys-libs/glibc
|
||||
!sys-libs/musl
|
||||
!<sys-devel/gettext-0.19.6-r1
|
||||
"
|
||||
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-gettext )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
cd "${WORKDIR}/${MY_P}" || die
|
||||
|
||||
# gettext-0.21.1-java-autoconf.patch changes
|
||||
# gettext-{runtime,tools}/configure.ac and the corresponding
|
||||
# configure scripts. Avoid regenerating other autotools output.
|
||||
#touch -c gettext-{runtime,tools}/{aclocal.m4,Makefile.in,config.h.in,configure} || die
|
||||
# Makefile.am adds a dependency on gettext-{runtime,tools}/configure.ac
|
||||
#touch -c configure || die
|
||||
|
||||
cd "${S}" || die
|
||||
|
||||
# The libtool files are stored higher up, so make sure we run in the
|
||||
# whole tree and not just the subdir we build.
|
||||
elibtoolize "${WORKDIR}"
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=(
|
||||
--cache-file="${BUILD_DIR}"/config.cache
|
||||
|
||||
# Emacs support is now in a separate package.
|
||||
--without-emacs
|
||||
--without-lispdir
|
||||
# Normally this controls nls behavior in general, but the libintl
|
||||
# subdir is skipped unless this is explicitly set. ugh.
|
||||
--enable-nls
|
||||
# This magic flag enables libintl.
|
||||
--with-included-gettext
|
||||
# The gettext package provides this library.
|
||||
--disable-c++
|
||||
--disable-libasprintf
|
||||
# No Java until someone cares.
|
||||
--disable-java
|
||||
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable threads)
|
||||
)
|
||||
|
||||
ECONF_SOURCE="${S}" econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# We only need things in the intl/ subdir.
|
||||
emake -C intl
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
# We only need things in the intl/ subdir.
|
||||
emake DESTDIR="${D}" install -C intl
|
||||
|
||||
gen_usr_ldscript -a intl
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
if ! use static-libs ; then
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
fi
|
||||
|
||||
rm -r "${ED}"/usr/share/locale || die
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README
|
||||
}
|
Binary file not shown.
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
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.7.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
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() {
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest tests/{functional,unit} \
|
||||
-p xdist -n "$(makeopts_jobs)" --dist=worksteal
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
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_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
|
||||
)
|
||||
|
||||
local -x EPYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest tests/{functional,unit} -p xdist -n "$(makeopts_jobs)"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST cython-0.29.36.gh.tar.gz 2115333 BLAKE2B 6d43779c7222ff65d7de3a35ec18ef636480807d53480a8f94cc8c92d462fcc2f4d201a3bbf6e840a11fd33025e32c53f85626b05c131d10eed2859cdca7eb2d SHA512 a086fe1a11290cd3c870b891e61a0a0e2595bab9c26888024a758b6950c07059346d682fa9349e46c0af89805abbdd750059b3189960b8ce18007dfb5eb4391a
|
||||
DIST cython-3.0.2.gh.tar.gz 2744583 BLAKE2B f631891870a6ce24acf2bcde75ebcb9775cf0df7840fe9d7b138cfdea64d54e9253a53d35d892a9086f251c1294d9414eec8521218d031840a3cd06903fefb86 SHA512 f55be138efdca6ca61bd39c6f2fab736244328a170a6f6c9bda87036e022c846930b209e9e9101fad889cb179d6e60034ba6f299f14b3056536d46235b438eb7
|
||||
DIST cython-3.0.3.gh.tar.gz 2753188 BLAKE2B 0e6d40533f1cebf3c4217dc19aeebc2f873a8bacb94e68810e81d1c6d4cd75176de88516f2d82f43b36107656b6cd5e6990547e93bd8436b1aa93c73ccda6eaf SHA512 c27c16abaf0122ad61e0eeb92aa80a33fc491332b8ebec209cd1810d2b0e3bf14fe1e81838803b86f407520a6d6f7ab8b84d97e495e7d91fd6f7702a46980caa
|
||||
|
@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_TESTED=( python3_{10..11} )
|
||||
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_12 pypy3 )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1 multiprocessing toolchain-funcs
|
||||
|
||||
MY_P=${P/_rc/rc}
|
||||
DESCRIPTION="A Python to C compiler"
|
||||
HOMEPAGE="
|
||||
https://cython.org/
|
||||
https://github.com/cython/cython/
|
||||
https://pypi.org/project/Cython/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/cython/cython/archive/${PV/_rc/rc}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
' "${PYTHON_TESTED[@]}")
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch"
|
||||
"${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch"
|
||||
"${FILESDIR}/${PN}-0.29.23-pythran-parallel-install.patch"
|
||||
)
|
||||
|
||||
distutils_enable_sphinx docs \
|
||||
dev-python/jinja \
|
||||
dev-python/sphinx-issues \
|
||||
dev-python/sphinx-tabs
|
||||
|
||||
python_compile() {
|
||||
# Python gets confused when it is in sys.path before build.
|
||||
local -x PYTHONPATH=
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
|
||||
einfo "Skipping tests on ${EPYTHON} (xfail)"
|
||||
return
|
||||
fi
|
||||
|
||||
# Needed to avoid confusing cache tests
|
||||
unset CYTHON_FORCE_REGEN
|
||||
|
||||
tc-export CC
|
||||
# https://github.com/cython/cython/issues/1911
|
||||
local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
|
||||
"${PYTHON}" runtests.py \
|
||||
-vv \
|
||||
-j "$(makeopts_jobs)" \
|
||||
--work-dir "${BUILD_DIR}"/tests \
|
||||
--no-examples \
|
||||
--no-code-style \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST django_otp-1.2.2.tar.gz 66391 BLAKE2B f66472ec2e3842ebc634edd8f689d1de51738381fd86c4af0859dee2f1bcf407b1c952c795203f9c742a95633ee14ce9253dcc1ffd7988c960e26b23a1ec5dfe SHA512 e8608f0a3b0aeaa82e509f034f69131eb1015124ecf84b734a5be58f62c309eee506b12fffe2aeb4b707e70c612413d1458bc64533102508c55255035432eb1f
|
||||
DIST django_otp-1.2.3.tar.gz 66417 BLAKE2B 30fa8efe11b061fc6332de18f4e86181c180123c7c46ae4f9102e59a587ec39f9922db7e8c7f1c3b7a19817a336969b4aa82e2dca64447736ec244ec0098f505 SHA512 fd881cc7b44350bcfa95d243dab08465b0251b5d45fde0766532b281fce676d0afbfb35b671c1a787579374049d43e44091af77bfbb7ac6da29713dcc3cfc98f
|
||||
DIST django_otp-1.2.4.tar.gz 66836 BLAKE2B 83b30002b84d967c601f4cc13ea68c6b53284dd84f7ce38bbbc7d56caae75f9c584a87958617c6c0b0064616fb6f7f8f1071191a63001a0584ef62993f93cd29 SHA512 46a7f3d3b010fef7b88f3096c2f3861010361a78d78a9414be43b9f10339d7e2a641d4ab8c29b489f21708edb9bc7aefb8cfbca1ce6b93b524fc5f3a8d70befb
|
||||
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Django framework adding two-factor authentication using one-time passwords"
|
||||
HOMEPAGE="
|
||||
https://github.com/django-otp/django-otp/
|
||||
https://pypi.org/project/django-otp/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/django-3.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
$(python_gen_impl_dep sqlite)
|
||||
dev-python/freezegun[${PYTHON_USEDEP}]
|
||||
dev-python/qrcode[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/tomli[${PYTHON_USEDEP}]
|
||||
' 3.9 3.10)
|
||||
${RDEPEND}
|
||||
)
|
||||
"
|
||||
|
||||
python_test() {
|
||||
local -x PYTHONPATH=test:${PYTHONPATH}
|
||||
local -x DJANGO_SETTINGS_MODULE=test_project.settings
|
||||
"${EPYTHON}" -m django test -v 2 django_otp ||
|
||||
die "Tests fail with ${EPYTHON}"
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
DOCS_BUILDER="mkdocs"
|
||||
DOCS_DEPEND="
|
||||
dev-python/mkdocs-material-extensions
|
||||
dev-python/mkdocs-minify-plugin
|
||||
dev-python/mkdocs-redirects
|
||||
"
|
||||
|
||||
inherit distutils-r1 docs
|
||||
|
||||
DESCRIPTION="A Material Design theme for MkDocs"
|
||||
HOMEPAGE="
|
||||
https://github.com/squidfunk/mkdocs-material/
|
||||
https://pypi.org/project/mkdocs-material/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/squidfunk/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
||||
IUSE="social"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/Babel-2.10.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/colorama-0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-3.0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-4.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/markdown-3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/mkdocs-1.5.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/paginate-0.5.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-2.16[${PYTHON_USEDEP}]
|
||||
>=dev-python/pymdown-extensions-10.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/readtime-2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/regex-2022.4.24[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.26[${PYTHON_USEDEP}]
|
||||
social? (
|
||||
>=dev-python/pillow-9.0[${PYTHON_USEDEP}]
|
||||
>=media-gfx/cairosvg-2.5[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
# mkdocs-material-extensions depends on mkdocs-material creating a circular dep
|
||||
PDEPEND="
|
||||
>=dev-python/mkdocs-material-extensions-1.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# simplify pyproject to remove extra deps for metadata
|
||||
"${FILESDIR}/${PN}-8.5.7-simplify-build.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
echo "__version__ = '${PV}'" > gentoo_version.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST mkdocs_pymdownx_material_extras-2.5.1.tar.gz 24771 BLAKE2B 2bee64966601503fd6c11d8256ca73210923cf59df41a319b45c2db2435b205a860cbbfc04e5ddffceb05d6371c95dda6ceab88c4c8d3fdaa583dacd64a832ca SHA512 f50a40c55e72fcbe2d51777c434cc1fb841645456efb3b60fd8f6412b9008467e191e0cb072692e3552c7f28e678b503642845b787c66f56b9f9e4b2504bb68d
|
||||
DIST mkdocs_pymdownx_material_extras-2.5.4.tar.gz 22567 BLAKE2B f1b666deae52802d81320b06c6f193ae7204dd631551a83717f5c01ceff7bb46779a9c5b0743d23913577b127510a1ac0d9de9a6ff3b7e567c8a7263b38b6077 SHA512 6c41ca67a1f41d6ff3bcee7f1c48fb51cf94ef275eacda2588dd976c94bef310d2679d83fd93363642f191a402b34a159d65024ba983c7bdf21c6c688c340a4f
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Custom alterations based on Mkdocs-Material"
|
||||
HOMEPAGE="
|
||||
https://github.com/facelessuser/mkdocs_pymdownx_material_extras/
|
||||
https://pypi.org/project/mkdocs-pymdownx-material-extras/
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/mkdocs-material-8.3.3[${PYTHON_USEDEP}]
|
||||
"
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=${P/_beta/b}
|
||||
DESCRIPTION="Python code static checker"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/pylint/
|
||||
https://github.com/pylint-dev/pylint/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/pylint-dev/pylint/archive/v${PV/_beta/b}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="examples"
|
||||
|
||||
# Make sure to check https://github.com/pylint-dev/pylint/blob/main/pyproject.toml#L34 on bumps
|
||||
# Adjust dep bounds!
|
||||
RDEPEND="
|
||||
<dev-python/astroid-3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/astroid-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/dill-0.3.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||
<dev-python/isort-6[${PYTHON_USEDEP}]
|
||||
>=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/mccabe-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/tomlkit-0.10.1[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/tomli-1.1.0[${PYTHON_USEDEP}]
|
||||
' 3.10)
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/GitPython-3[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-timeout[${PYTHON_USEDEP}]
|
||||
dev-python/typing-extensions[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# TODO
|
||||
'tests/test_functional.py::test_functional[dataclass_with_field]'
|
||||
|
||||
# incompatible versions of numpy/scikit-learn?
|
||||
'tests/test_functional.py::test_functional[no_name_in_module]'
|
||||
'tests/test_functional.py::test_functional[shadowed_import]'
|
||||
)
|
||||
local EPYTEST_IGNORE=(
|
||||
# No need to run the benchmarks
|
||||
tests/benchmark/test_baseline_benchmarks.py
|
||||
)
|
||||
|
||||
rm -rf pylint || die
|
||||
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest -p timeout
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples ; then
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
docinto examples
|
||||
dodoc -r examples/.
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYTHON_COMPAT=( python3_{10..12} pypy3 )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Distributed testing and loop-on-failing modes"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/pytest-xdist/
|
||||
https://github.com/pytest-dev/pytest-xdist/
|
||||
"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/execnet[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-6.2.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
dev-python/setuptools-scm[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/filelock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
# disable autoloading plugins in nested pytest calls
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
# since we disabled autoloading, force loading necessary plugins
|
||||
local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked
|
||||
|
||||
epytest
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST python-lsp-server-1.7.4.tar.gz 97864 BLAKE2B 9832298391d72bf2f035f388694a7879d66546ead5a36837220cb3af5d8181eba198c04dd82747cba75f0478d256b001476c24b02bc679fc07cb41c7aedb0e66 SHA512 7aa96de6e51548e2854b55690698fe6c7bda60103c11ad5982df611c65569cec1ab13691727c92ec47d9ac44c34f233f872211a41041ea0969223e10e87d7e08
|
||||
DIST python-lsp-server-1.8.0.tar.gz 105548 BLAKE2B aa7f714bbc7e88d68224f9a51c3c811168ade36afce02fcdf95d3ffef55f7efc964aea6fb3c26bc88c3439744928f70914c136987c89a8bd146a2f54df579ead SHA512 b8050037e313261b653f0df170762126886ceef780d7ca35651c79967270d78d9930e464ccecc71a40ceee10b0265fd262d200e1e38c50ce04490ab364bc8389
|
||||
DIST python-lsp-server-1.8.1.tar.gz 106979 BLAKE2B 3d71de40b4fff5a0e50d1e16fb1aab330c90ddc68d255f212c8ec9a1c2cc5afcbafaa9d288f938d22b824852f6ca231d48f031df3dcc7e9d97699767b3548788 SHA512 f26e836013df9ddee05f17e7629bf7abfab96aae6fc4eba9d565203b324f6e3ac3e02cbcc1bd1b9ad8a4e0628d58476797bd55564e0307a53946df7a934df11b
|
||||
|
@ -0,0 +1,93 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit distutils-r1 optfeature pypi
|
||||
|
||||
DESCRIPTION="Python Language Server for the Language Server Protocol"
|
||||
HOMEPAGE="
|
||||
https://github.com/python-lsp/python-lsp-server/
|
||||
https://pypi.org/project/python-lsp-server/
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
IUSE="all-plugins"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/docstring-to-markdown[${PYTHON_USEDEP}]
|
||||
>=dev-python/jedi-0.17.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-lsp-jsonrpc-1.1.0[${PYTHON_USEDEP}]
|
||||
dev-python/pluggy[${PYTHON_USEDEP}]
|
||||
all-plugins? (
|
||||
>=dev-python/autopep8-2.0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/flake8-5.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pydocstyle-6.3.0[${PYTHON_USEDEP}]
|
||||
<dev-python/pydocstyle-6.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pylint-2.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/rope-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/yapf-0.33.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/autopep8-1.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/flaky[${PYTHON_USEDEP}]
|
||||
>=dev-python/flake8-5.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||
>=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/pandas[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pydocstyle-6.3.0[${PYTHON_USEDEP}]
|
||||
<dev-python/pydocstyle-6.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pylint-2.5.0[${PYTHON_USEDEP}]
|
||||
dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}]
|
||||
>=dev-python/rope-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/yapf-0.33.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/whatthepatch-1.0.2[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# remove pytest-cov dep
|
||||
sed -i -e '/addopts =/d' pyproject.toml || die
|
||||
# unpin all the deps
|
||||
sed -i -e 's:,<[0-9.]*::' pyproject.toml || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# broken by presence of pathlib2
|
||||
'test/plugins/test_autoimport.py'
|
||||
)
|
||||
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Automatically format Python code to conform to the PEP 8 style guide" dev-python/autopep8
|
||||
optfeature "A wrapper around PyFlakes, pep8 & mccabe" dev-python/flake8
|
||||
optfeature "flake8 plugin: McCabe complexity checker" dev-python/mccabe
|
||||
optfeature "Python style guide checker (fka pep8)" dev-python/pycodestyle
|
||||
optfeature "Python docstring style checker" dev-python/pydocstyle
|
||||
optfeature "Passive checker for Python programs" dev-python/pyflakes
|
||||
optfeature "Python code static checker" dev-python/pylint
|
||||
optfeature "Python refactoring library" dev-python/rope
|
||||
optfeature "A formatter for Python files" dev-python/yapf
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
DIST sqlglot-18.10.1.tar.gz 8803525 BLAKE2B 4e500eb9239fc5a3169a8f00aa022ff579f750c5c4c13e0906a4a6749216051a8b1f69d83b1d5f1ab118abb20f79b83f7881c5cef74d8d8a1066be1fcc1e588f SHA512 09ae7bb28cedd6d9c267694dbc38dcea75a860fb54e60d412f78a36629abba70e1be42683b220eec918f9f59782ce014625e1e7b15d17bc57dcf3658d49b95b7
|
||||
DIST sqlglot-18.11.2.tar.gz 8833005 BLAKE2B eee98c392bd40cc552cdb09a6d4e60ff21d0f75c59d2961994409de7ac44d702c28aa01472e4406dbb6c8ac4d3496e71fc4ac2bea5e82c48d47cdd98111d5e79 SHA512 855686bd8bdaba68f564dbff0005c0362c83b146fd5d6da3a3d948657384201d2fe825a758f960650f540dcaef5c073197fdfb34fe788331d20bcaf44f03a10a
|
||||
DIST sqlglot-18.11.3.tar.gz 8835268 BLAKE2B 040cd5cc449ff57e6107cf23a4973df622754300e4a8010f43e85de0394dc79c4d5c12c80304f9ac3519515702d8c753e59449fd2f96d9cab9e10d926b9f9980 SHA512 948bea3055e05e843aa9b8c9ea83c8435256bd645e02ae3fc0a3de987852c6e96fadf0e5b914ddac10d12ece3b7dc982ef9467564666eac14b07baf53838339a
|
||||
DIST sqlglot-18.11.4.tar.gz 8842825 BLAKE2B ce41cc8b15af33b2af18d91b55d778503d4534959a82c6af00402e39e71585578c60a967e217f1e3dbb8ede0bc650c4afdeced6aacf77699a963441716a85f60 SHA512 a6b8674573421852966751b07da847e68e20310c0ca90d6f5a0d31a74927a68b9b6381a47924080915330aa0e08afe3515263ea552c5c338b5369d7a17b87ece
|
||||
DIST sqlglot-18.8.0.tar.gz 8764753 BLAKE2B f1a01a1dc939a53476d396c66e74b1ec0550f557ef2eac1bec5001229964e2838655d361612b20527fae0f8112ccc940295cd0d92e83d5ba1f272f4d9372374b SHA512 3e98ff8ad4e6061c41d90b33c7982b46b8e06680d14e989923077d61ac93d390df64df6ff182a1c87911979dd84ac493275bbc091bcdcc9a1dfce2a4091c7fa7
|
||||
DIST sqlglot-18.9.0.tar.gz 8790638 BLAKE2B c951ee964b888dadaa3fd974bad89a689e9be9e5d17f42e5387c8c97152604205df7871294cb249ce9a0f6ed6a66fb41aba0f6596851e96252444c06908b91f1 SHA512 1e24d7936e94ced97ccc290634392434c064732017fa012b270632336663faa2315658e3dfc9d3bbd94648220f412c91cb9d0d4b97b3f26a21fa2129f4fce84a
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi optfeature
|
||||
|
||||
DESCRIPTION="An easily customizable SQL parser and transpiler"
|
||||
HOMEPAGE="
|
||||
https://sqlglot.com/
|
||||
https://github.com/tobymao/sqlglot/
|
||||
https://pypi.org/project/sqlglot/
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
EPYTEST_IGNORE=(
|
||||
# Tests require pyspark or duckdb which aren't in the tree.
|
||||
# Pandas would be a requirement normally, but it gets ignored by proxy.
|
||||
"tests/dataframe/integration/test_dataframe.py"
|
||||
"tests/dataframe/integration/test_grouped_data.py"
|
||||
"tests/dataframe/integration/test_session.py"
|
||||
"tests/test_executor.py"
|
||||
"tests/test_optimizer.py"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "simplifying timedelta expressions" dev-python/python-dateutil
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST stripe-6.3.0.tar.gz 276422 BLAKE2B 2fa438593bdec94f5c8306ee180921c2920e8995036d3ec53794dcba89f4f97c257bfe13561d1fd993c49247d0423ca4d7f4e994c1b4b8386ebaddf47f9063de SHA512 900a85bd8a44404dcc8ed4e057db64087b7a6f05d8e01183c22fc5dd7da815298e23b386d2d41dee6ea3925e92653858cc945e163757870fe04c543def017424
|
||||
DIST stripe-6.5.0.tar.gz 290534 BLAKE2B 40672358ae9b962f14cb3dad669e7857bf52981b1801325f92193b2cd42e42a7ad14dcd25272ec36589c103c28b10c8eaae0fe6175eb10b00a6a0f278dee5312 SHA512 920bb7e0a0e1cbd4b5e085928f28c12ab793bfc1e1aa29aa58f4cbf11f1bfdfeadac84d2be1fc9e14e70ce9a2f9e4900112cf982b6bab220e1cc09569d7db2f4
|
||||
DIST stripe-6.6.0.tar.gz 291636 BLAKE2B 33a565de61e2a371d2ad0cf523385b113e3164a4c972ba77383ba7dbc77aea9d755cc74f3ed15e5abb6f6d2f4c51f4c5859107c74950ca2831e092b4cf3fcc9e SHA512 327df0a8758c96b06f9d0bfd1da5450f328a55becabbae6c04960d4ad2abbac4a71d6c06cfe34c05bf2e87a2d330a9dbb303098165befa797a88d07d18be24c1
|
||||
DIST stripe-6.7.0.tar.gz 293207 BLAKE2B 5c07b6f04aa72045cccb4422b1f163cf6351f100d2245a4f93952d641ed8e4735c964b850179906bc7af13730724f596cd2cfa85c3d8fb8792f6a4e561337b0a SHA512 778c3ffa177e52b62bf4821b2f0aaa5eef01d8690526c42015d192bb06332a2a5fd143c8dab82497803adcfed963b7ccf06dc77908b21a7a7c77f9ef39b39c12
|
||||
|
@ -0,0 +1,72 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} pypy3 )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Stripe python bindings"
|
||||
HOMEPAGE="
|
||||
https://github.com/stripe/stripe-python/
|
||||
https://pypi.org/project/stripe/
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/requests-2.20[${PYTHON_USEDEP}]
|
||||
>=dev-python/typing-extensions-4.0.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
# please bump dev-util/stripe-mock dep to the latest version on every bump
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-util/stripe-mock-0.175.0
|
||||
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||
net-misc/curl
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
DOCS=( LONG_DESCRIPTION.rst CHANGELOG.md README.md )
|
||||
|
||||
python_test() {
|
||||
epytest tests
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local stripe_mock_port=12111
|
||||
local stripe_mock_max_port=12121
|
||||
local stripe_mock_logfile="${T}/stripe_mock_${EPYTHON}.log"
|
||||
# Try to start stripe-mock until we find a free port
|
||||
while [[ ${stripe_mock_port} -le ${stripe_mock_max_port} ]]; do
|
||||
ebegin "Trying to start stripe-mock on port ${stripe_mock_port}"
|
||||
stripe-mock --http-port "${stripe_mock_port}" &> "${stripe_mock_logfile}" &
|
||||
local stripe_mock_pid=${!}
|
||||
sleep 2
|
||||
# Did stripe-mock start?
|
||||
curl --fail -u "sk_test_123:" \
|
||||
"http://127.0.0.1:${stripe_mock_port}/v1/customers" &> /dev/null
|
||||
eend ${?} "Port ${stripe_mock_port} unavailable"
|
||||
if [[ ${?} -eq 0 ]]; then
|
||||
einfo "stripe-mock running on port ${stripe_mock_port}"
|
||||
break
|
||||
fi
|
||||
(( stripe_mock_port++ ))
|
||||
done
|
||||
if [[ ${stripe_mock_port} -gt ${stripe_mock_max_port} ]]; then
|
||||
eerror "Unable to start stripe-mock for tests"
|
||||
die "Please see the logfile located at: ${stripe_mock_logfile}"
|
||||
fi
|
||||
|
||||
local -x STRIPE_MOCK_PORT=${stripe_mock_port}
|
||||
distutils-r1_src_test
|
||||
|
||||
# Tear down stripe-mock
|
||||
kill "${stripe_mock_pid}" || die "Unable to stop stripe-mock"
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi compatible)"
|
||||
HOMEPAGE="
|
||||
https://github.com/python-zeroconf/python-zeroconf/
|
||||
https://pypi.org/project/zeroconf/
|
||||
"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/ifaddr-0.1.7[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/async-timeout-3.0.0[${PYTHON_USEDEP}]
|
||||
' 3.10)
|
||||
"
|
||||
# the build system uses custom build script that uses distutils to build
|
||||
# C extensions, sigh
|
||||
BDEPEND="
|
||||
>=dev-python/cython-3[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools-65.6.3[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
export REQUIRE_CYTHON=1
|
||||
|
||||
python_test() {
|
||||
local -x SKIP_IPV6=1
|
||||
local EPYTEST_DESELECT=(
|
||||
# network
|
||||
tests/test_core.py::Framework::test_close_multiple_times
|
||||
tests/test_core.py::Framework::test_launch_and_close
|
||||
tests/test_core.py::Framework::test_launch_and_close_context_manager
|
||||
|
||||
# fragile to timeouts (?)
|
||||
tests/services/test_browser.py::test_service_browser_expire_callbacks
|
||||
tests/utils/test_asyncio.py::test_run_coro_with_timeout
|
||||
)
|
||||
|
||||
epytest -o addopts=
|
||||
}
|
Binary file not shown.
@ -0,0 +1,30 @@
|
||||
Patch status: limbo, partially needs upstreaming
|
||||
|
||||
Only manifests as an issue with gcc-13+musl which does not transitively
|
||||
include cstdint / stdint.h for the int32/64_t usage.
|
||||
|
||||
Partially fixed by [1] (>=chromium-110.0.5434.0) given it removes the
|
||||
int64_t usage altogether in seed_response.h.
|
||||
|
||||
See also [2] which fixed this for the 87 branch in Qt5.
|
||||
|
||||
[1] https://crrev.com/01e21a077a0354d85e8359195613c2781f67a3a2
|
||||
[2] https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/489133
|
||||
--- a/src/3rdparty/chromium/components/variations/seed_response.h
|
||||
+++ b/src/3rdparty/chromium/components/variations/seed_response.h
|
||||
@@ -7,2 +7,3 @@
|
||||
|
||||
+#include <cstdint>
|
||||
#include <string>
|
||||
--- a/src/3rdparty/chromium/gpu/config/gpu_driver_bug_workarounds.h
|
||||
+++ b/src/3rdparty/chromium/gpu/config/gpu_driver_bug_workarounds.h
|
||||
@@ -7,2 +7,3 @@
|
||||
|
||||
+#include <cstdint>
|
||||
#include <vector>
|
||||
--- a/src/3rdparty/chromium/third_party/webrtc/rtc_base/system/file_wrapper.h
|
||||
+++ b/src/3rdparty/chromium/third_party/webrtc/rtc_base/system/file_wrapper.h
|
||||
@@ -16,2 +16,3 @@
|
||||
|
||||
+#include <cstdint>
|
||||
#include <string>
|
@ -0,0 +1,20 @@
|
||||
Patch status: limbo, needs upstreaming
|
||||
|
||||
Only manifests as an issue with gcc-13+musl which does not transitively
|
||||
include cstdint / stdint.h for the int32/64_t usage.
|
||||
|
||||
See also [1] which fixed this for the 87 branch in Qt5.
|
||||
|
||||
[1] https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/489133
|
||||
--- a/src/3rdparty/chromium/gpu/config/gpu_driver_bug_workarounds.h
|
||||
+++ b/src/3rdparty/chromium/gpu/config/gpu_driver_bug_workarounds.h
|
||||
@@ -7,2 +7,3 @@
|
||||
|
||||
+#include <cstdint>
|
||||
#include <vector>
|
||||
--- a/src/3rdparty/chromium/third_party/webrtc/rtc_base/system/file_wrapper.h
|
||||
+++ b/src/3rdparty/chromium/third_party/webrtc/rtc_base/system/file_wrapper.h
|
||||
@@ -16,2 +16,3 @@
|
||||
|
||||
+#include <cstdint>
|
||||
#include <string>
|
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
DIST rack-session-1.0.1.tar.gz 3120 BLAKE2B a36fefd25da9bbab26a58419782baf7606171fcdf9d033b3abb52ee225f5bd3f8b52d18c11947cceae8f00f278c832412b3babb8c2d7088f2a6554dcb0293689 SHA512 fa8362689cd49d55e24c82699eca9a45dd408b5e8978f6aee11f3f107e8d0a1f36ad319f4dd92e4fe5fd83e985382a43c41a353e9366d03b41f28e826d65483f
|
||||
DIST rack-session-2.0.0.tar.gz 23964 BLAKE2B 457210c3588c31d2d0d9251e6b12fe1f606545c4593c9be50a42110f99f7d15840553cac7e35653f2ef86d88f881a0a91537948bfca5b34e3d507cef8134c52b SHA512 8975a85845fa4dbdf22c10793fb2bb1a69aed3242c70c45b1d436448243e65ad77ecbfb17c8f2ef6f780b81ef480f8a46c5623e36dacc95401cd59a1510748f8
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>ruby@gentoo.org</email>
|
||||
<name>Gentoo Ruby Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">rack/rack-session</remote-id>
|
||||
<remote-id type="rubygems">rack-session</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
USE_RUBY="ruby31 ruby32"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="readme.md"
|
||||
RUBY_FAKEGEM_GEMSPEC="rack-session.gemspec"
|
||||
RUBY_FAKEGEM_RECIPE_TEST="none"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A session implementation for Rack"
|
||||
HOMEPAGE="https://github.com/rack/rack-session"
|
||||
SRC_URI="https://github.com/rack/rack-session/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1)"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "<dev-ruby/rack-3"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/minitest:5
|
||||
dev-ruby/minitest-global_expectations
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -e 's:_relative ": "./:' \
|
||||
-i ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
USE_RUBY="ruby31 ruby32"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="readme.md"
|
||||
RUBY_FAKEGEM_GEMSPEC="rack-session.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A session implementation for Rack"
|
||||
HOMEPAGE="https://github.com/rack/rack-session"
|
||||
SRC_URI="https://github.com/rack/rack-session/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1)"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/rack-3.0.0"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/minitest:5
|
||||
dev-ruby/minitest-global_expectations
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -e 's:_relative ": "./:' \
|
||||
-i ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
--- a/lib/selenium/webdriver/common/selenium_manager.rb 2023-10-06 08:41:15.713237699 +0200
|
||||
+++ b/lib/selenium/webdriver/common/selenium_manager.rb 2023-10-06 08:42:45.809927730 +0200
|
||||
@@ -31,7 +31,7 @@
|
||||
attr_writer :bin_path
|
||||
|
||||
def bin_path
|
||||
- @bin_path ||= '../../../../../bin'
|
||||
+ @bin_path ||= '/usr/bin'
|
||||
end
|
||||
|
||||
# @param [Options] options browser options.
|
||||
@@ -82,7 +82,7 @@
|
||||
elsif Platform.mac?
|
||||
"#{directory}/macos/selenium-manager"
|
||||
elsif Platform.linux?
|
||||
- "#{directory}/linux/selenium-manager"
|
||||
+ "#{directory}/selenium-manager"
|
||||
end
|
||||
end)
|
||||
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby31 ruby32"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="none"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGES README.md"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="selenium-webdriver.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="This gem provides Ruby bindings for WebDriver"
|
||||
HOMEPAGE="https://github.com/seleniumhq/selenium"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="$(ver_cut 1)"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND+=" >=dev-util/selenium-manager-$(ver_cut 1-2)"
|
||||
|
||||
ruby_add_rdepend "
|
||||
>=dev-ruby/rexml-3.2.5:3
|
||||
>=dev-ruby/rubyzip-1.2.2:*
|
||||
dev-ruby/websocket:0
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-4.13.1-selenium-manager.patch" )
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Remove the pre-compiled selenium-manager executables
|
||||
rm -fr bin || die
|
||||
}
|
Binary file not shown.
@ -0,0 +1,305 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Auto-Generated by cargo-ebuild 0.5.4-r1
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
addr2line@0.19.0
|
||||
adler@1.0.2
|
||||
aes@0.8.3
|
||||
aho-corasick@1.0.2
|
||||
android-tzdata@0.1.1
|
||||
anstream@0.3.2
|
||||
anstyle@0.3.5
|
||||
anstyle@1.0.1
|
||||
anstyle-parse@0.2.1
|
||||
anstyle-query@1.0.0
|
||||
anstyle-wincon@1.0.1
|
||||
assert_cmd@2.0.12
|
||||
autocfg@1.1.0
|
||||
backtrace@0.3.67
|
||||
base64@0.21.0
|
||||
base64ct@1.6.0
|
||||
bit-set@0.5.3
|
||||
bit-vec@0.6.3
|
||||
bitflags@1.3.2
|
||||
bitflags@2.4.0
|
||||
block-buffer@0.9.0
|
||||
block-buffer@0.10.4
|
||||
bstr@1.4.0
|
||||
bumpalo@3.12.0
|
||||
byteorder@1.4.3
|
||||
bytes@1.4.0
|
||||
bzip2@0.4.4
|
||||
bzip2-sys@0.1.11+1.0.8
|
||||
cc@1.0.79
|
||||
cfb@0.7.3
|
||||
cfg-if@1.0.0
|
||||
chrono@0.4.26
|
||||
cipher@0.4.4
|
||||
clap@4.3.23
|
||||
clap_builder@4.3.23
|
||||
clap_derive@4.3.12
|
||||
clap_lex@0.5.0
|
||||
colorchoice@1.0.0
|
||||
constant_time_eq@0.1.5
|
||||
cpufeatures@0.2.5
|
||||
crc@3.0.1
|
||||
crc-catalog@2.2.0
|
||||
crc32fast@1.3.2
|
||||
crossbeam-utils@0.8.15
|
||||
crypto-common@0.1.6
|
||||
difflib@0.4.0
|
||||
digest@0.9.0
|
||||
digest@0.10.6
|
||||
directories@5.0.1
|
||||
dirs-sys@0.4.1
|
||||
doc-comment@0.3.3
|
||||
either@1.8.1
|
||||
encoding_rs@0.8.32
|
||||
env_logger@0.10.0
|
||||
equivalent@1.0.0
|
||||
errno@0.2.8
|
||||
errno@0.3.1
|
||||
errno-dragonfly@0.1.2
|
||||
exitcode@1.1.2
|
||||
fastrand@2.0.0
|
||||
filetime@0.2.22
|
||||
filetime_creation@0.1.6
|
||||
flate2@1.0.27
|
||||
fnv@1.0.7
|
||||
form_urlencoded@1.1.0
|
||||
futures@0.3.27
|
||||
futures-channel@0.3.27
|
||||
futures-core@0.3.27
|
||||
futures-executor@0.3.27
|
||||
futures-io@0.3.27
|
||||
futures-macro@0.3.27
|
||||
futures-sink@0.3.27
|
||||
futures-task@0.3.27
|
||||
futures-timer@3.0.2
|
||||
futures-util@0.3.27
|
||||
generic-array@0.14.6
|
||||
getrandom@0.2.8
|
||||
gimli@0.27.3
|
||||
glob@0.3.1
|
||||
h2@0.3.17
|
||||
hashbrown@0.12.3
|
||||
hashbrown@0.14.0
|
||||
heck@0.4.1
|
||||
hermit-abi@0.2.6
|
||||
hermit-abi@0.3.1
|
||||
hmac@0.12.1
|
||||
http@0.2.9
|
||||
http-body@0.4.5
|
||||
httparse@1.8.0
|
||||
httpdate@1.0.2
|
||||
humantime@2.1.0
|
||||
hyper@0.14.25
|
||||
hyper-rustls@0.24.0
|
||||
idna@0.3.0
|
||||
indexmap@1.9.2
|
||||
indexmap@2.0.0
|
||||
infer@0.15.0
|
||||
inout@0.1.3
|
||||
io-lifetimes@1.0.11
|
||||
ipnet@2.7.1
|
||||
is-terminal@0.4.5
|
||||
is_executable@1.0.1
|
||||
itertools@0.10.5
|
||||
itoa@1.0.6
|
||||
jobserver@0.1.26
|
||||
js-sys@0.3.61
|
||||
libc@0.2.147
|
||||
linux-raw-sys@0.1.4
|
||||
linux-raw-sys@0.4.5
|
||||
log@0.4.20
|
||||
lzma-rust@0.1.4
|
||||
memchr@2.5.0
|
||||
mime@0.3.17
|
||||
miniz_oxide@0.6.2
|
||||
miniz_oxide@0.7.1
|
||||
mio@0.8.6
|
||||
nt-time@0.5.3
|
||||
num-traits@0.2.16
|
||||
num_cpus@1.15.0
|
||||
object@0.30.4
|
||||
once_cell@1.17.1
|
||||
opaque-debug@0.3.0
|
||||
option-ext@0.2.0
|
||||
password-hash@0.4.2
|
||||
pbkdf2@0.11.0
|
||||
percent-encoding@2.2.0
|
||||
pin-project-lite@0.2.12
|
||||
pin-utils@0.1.0
|
||||
pkg-config@0.3.26
|
||||
predicates@3.0.1
|
||||
predicates-core@1.0.6
|
||||
predicates-tree@1.0.9
|
||||
proc-macro2@1.0.66
|
||||
quote@1.0.31
|
||||
rand_core@0.6.4
|
||||
redox_syscall@0.2.16
|
||||
redox_syscall@0.3.5
|
||||
redox_users@0.4.3
|
||||
regex@1.9.3
|
||||
regex-automata@0.1.10
|
||||
regex-automata@0.3.6
|
||||
regex-syntax@0.7.4
|
||||
relative-path@1.9.0
|
||||
reqwest@0.11.19
|
||||
ring@0.16.20
|
||||
rstest@0.18.2
|
||||
rstest_macros@0.18.2
|
||||
rustc-demangle@0.1.23
|
||||
rustc_version@0.4.0
|
||||
rustix@0.36.11
|
||||
rustix@0.38.8
|
||||
rustls@0.21.6
|
||||
rustls-pemfile@1.0.2
|
||||
rustls-webpki@0.101.4
|
||||
ryu@1.0.13
|
||||
same-file@1.0.6
|
||||
sct@0.7.0
|
||||
semver@1.0.17
|
||||
serde@1.0.185
|
||||
serde_derive@1.0.185
|
||||
serde_json@1.0.103
|
||||
serde_spanned@0.6.3
|
||||
serde_urlencoded@0.7.1
|
||||
sevenz-rust@0.5.2
|
||||
sha1@0.10.5
|
||||
sha2@0.9.9
|
||||
sha2@0.10.6
|
||||
slab@0.4.8
|
||||
socket2@0.4.9
|
||||
socket2@0.5.3
|
||||
spin@0.5.2
|
||||
strsim@0.10.0
|
||||
subtle@2.4.1
|
||||
syn@1.0.109
|
||||
syn@2.0.29
|
||||
tar@0.4.40
|
||||
tempfile@3.8.0
|
||||
termcolor@1.2.0
|
||||
termtree@0.4.1
|
||||
thiserror@1.0.40
|
||||
thiserror-impl@1.0.40
|
||||
time@0.3.23
|
||||
time-core@0.1.1
|
||||
time-macros@0.2.10
|
||||
tinyvec@1.6.0
|
||||
tinyvec_macros@0.1.1
|
||||
tokio@1.32.0
|
||||
tokio-macros@2.1.0
|
||||
tokio-rustls@0.24.1
|
||||
tokio-util@0.7.7
|
||||
toml@0.7.6
|
||||
toml_datetime@0.6.3
|
||||
toml_edit@0.19.14
|
||||
tower-service@0.3.2
|
||||
tracing@0.1.37
|
||||
tracing-core@0.1.30
|
||||
try-lock@0.2.4
|
||||
typenum@1.16.0
|
||||
unicode-bidi@0.3.13
|
||||
unicode-ident@1.0.8
|
||||
unicode-normalization@0.1.22
|
||||
untrusted@0.7.1
|
||||
url@2.3.1
|
||||
utf8parse@0.2.1
|
||||
uuid@1.3.0
|
||||
version_check@0.9.4
|
||||
wait-timeout@0.2.0
|
||||
walkdir@2.4.0
|
||||
want@0.3.0
|
||||
wasi@0.11.0+wasi-snapshot-preview1
|
||||
wasm-bindgen@0.2.84
|
||||
wasm-bindgen-backend@0.2.84
|
||||
wasm-bindgen-futures@0.4.34
|
||||
wasm-bindgen-macro@0.2.84
|
||||
wasm-bindgen-macro-support@0.2.84
|
||||
wasm-bindgen-shared@0.2.84
|
||||
web-sys@0.3.61
|
||||
webpki-roots@0.25.2
|
||||
winapi@0.3.9
|
||||
winapi-i686-pc-windows-gnu@0.4.0
|
||||
winapi-util@0.1.5
|
||||
winapi-x86_64-pc-windows-gnu@0.4.0
|
||||
windows-sys@0.45.0
|
||||
windows-sys@0.48.0
|
||||
windows-targets@0.42.2
|
||||
windows-targets@0.48.1
|
||||
windows_aarch64_gnullvm@0.42.2
|
||||
windows_aarch64_gnullvm@0.48.0
|
||||
windows_aarch64_msvc@0.42.2
|
||||
windows_aarch64_msvc@0.48.0
|
||||
windows_i686_gnu@0.42.2
|
||||
windows_i686_gnu@0.48.0
|
||||
windows_i686_msvc@0.42.2
|
||||
windows_i686_msvc@0.48.0
|
||||
windows_x86_64_gnu@0.42.2
|
||||
windows_x86_64_gnu@0.48.0
|
||||
windows_x86_64_gnullvm@0.42.2
|
||||
windows_x86_64_gnullvm@0.48.0
|
||||
windows_x86_64_msvc@0.42.2
|
||||
windows_x86_64_msvc@0.48.0
|
||||
winnow@0.5.0
|
||||
winreg@0.50.0
|
||||
xattr@1.0.1
|
||||
zip@0.6.6
|
||||
zstd@0.11.2+zstd.1.5.2
|
||||
zstd-safe@5.0.2+zstd.1.5.2
|
||||
zstd-sys@2.0.7+zstd.1.5.4
|
||||
"
|
||||
|
||||
inherit cargo
|
||||
|
||||
DESCRIPTION="CLI tool that manages the browser/driver infrastructure required by Selenium"
|
||||
# Double check the homepage as the cargo_metadata crate
|
||||
# does not provide this value so instead repository is used
|
||||
HOMEPAGE="https://github.com/SeleniumHQ/selenium"
|
||||
SRC_URI="
|
||||
${CARGO_CRATE_URIS}
|
||||
https://github.com/SeleniumHQ/selenium/archive/refs/tags/selenium-${PV}.tar.gz -> ${P}.tar.gz
|
||||
"
|
||||
S="${WORKDIR}/selenium-selenium-${PV}/rust"
|
||||
|
||||
# License set may be more restrictive as OR is not respected
|
||||
# use cargo-license for a more accurate license picture
|
||||
LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 CC0-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="test? ( || ( www-client/firefox www-client/firefox-bin ) )"
|
||||
|
||||
# rust does not use *FLAGS from make.conf, silence portage warning
|
||||
# update with proper path to binaries this crate installs, omit leading /
|
||||
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Avoid tests requiring a network
|
||||
rm -f tests/{browser_download,chrome_download,grid}_tests.rs || die
|
||||
|
||||
# Avoid tests requiring a specific browser to be installed to keep
|
||||
# the dependency tree manageable.
|
||||
rm -f tests/{cli,iexplorer,output,safari,stable_browser}_tests.rs || die
|
||||
sed -i -e '/case.*\(chrome\|edge\|iexplorer\)/ s:^://:' tests/{browser,config,exec_driver}_tests.rs || die
|
||||
sed -i -e '/browser_version_test/,/^}/ s:^://:' tests/browser_tests.rs || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
cargo_src_install
|
||||
|
||||
dodoc README.md
|
||||
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST ampache_browser-1.0.4.tar.gz 73653 BLAKE2B dc3d264c65b8b9a6fda434fdf5c8f4effe142f77f2138c4033cba935aec1d173cc75d2c5d8a74e977c9f838c8170f77c6c5d9bcad9064319038cd581e934bcc2 SHA512 6b6240e0f4fcf1f16439505e3e0bb32f628ea903a02eeb89b575ac7acd7b57b06af25ee9454c5ffe869d5659852105eb0e415099ff84acc2f9dd3d825b5e62d7
|
||||
DIST ampache_browser-1.0.5.tar.gz 73733 BLAKE2B de1ede071655df072deb3c20b9b6a460affd0ff6f1f5f8cd099c0f32c9fcb9cfb20513dd72b22345452c691b5b47daa1d8fbb68a38ac973fda5f87d5caef81d0 SHA512 b05810ced477f3d0473ce64cea242174eb9ac1537c7dbcba299168a408599639848a4f9c11af04b03d5b8053e2dbb99f0e3625a85240c4bda50525b61b299ab6
|
||||
DIST ampache_browser-1.0.6.tar.gz 73982 BLAKE2B c67126c02706c0668884044e03dd128ee33a6b6a9d459899e9cc9e6e24e61e586aee406c9fa30338133c959752559c0dba1a7e38cf19dba8e7908b59c0866a0b SHA512 08e1f5a7fe525819a8b55e66f43fde0cfdff5273103b167400c47b9d67dcf4b818466de8b0c9684dac4c9102aee53e50a202a3e3f9775c7e7471a4d133b6ae24
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Ampache desktop client library"
|
||||
HOMEPAGE="http://ampache-browser.org https://github.com/ampache-browser/ampache_browser"
|
||||
SRC_URI="https://github.com/ampache-browser/ampache_browser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~riscv ~x86"
|
||||
IUSE="debug nls qt6"
|
||||
|
||||
RDEPEND="
|
||||
qt6? ( dev-qt/qtbase:6[concurrent,gui,widgets] )
|
||||
!qt6? (
|
||||
dev-qt/qtconcurrent:5
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DUSE_QT6="$(usex qt6)"
|
||||
-DUSE_NLS="$(usex nls)"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://code.videolan.org/videolan/dav1d"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://downloads.videolan.org/pub/videolan/dav1d/${PV}/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~arm64-macos ~x64-macos"
|
||||
fi
|
||||
|
||||
inherit meson-multilib
|
||||
|
||||
DESCRIPTION="dav1d is an AV1 Decoder :)"
|
||||
HOMEPAGE="https://code.videolan.org/videolan/dav1d"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
# Check SONAME on version bumps!
|
||||
SLOT="0/7"
|
||||
IUSE="+8bit +10bit +asm test xxhash"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
ASM_DEPEND=">=dev-lang/nasm-2.15.05"
|
||||
DEPEND="xxhash? ( dev-libs/xxhash )"
|
||||
BDEPEND="
|
||||
asm? (
|
||||
abi_x86_32? ( ${ASM_DEPEND} )
|
||||
abi_x86_64? ( ${ASM_DEPEND} )
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( README.md doc/PATENTS THANKS.md )
|
||||
|
||||
multilib_src_configure() {
|
||||
local -a bits=()
|
||||
use 8bit && bits+=( 8 )
|
||||
use 10bit && bits+=( 16 )
|
||||
|
||||
local enable_asm
|
||||
if [[ ${MULTILIB_ABI_FLAG} == abi_x86_x32 ]]; then
|
||||
enable_asm=false
|
||||
else
|
||||
enable_asm=$(usex asm true false)
|
||||
fi
|
||||
|
||||
local emesonargs=(
|
||||
-Dbitdepths=$(IFS=,; echo "${bits[*]}")
|
||||
-Denable_asm=${enable_asm}
|
||||
$(meson_use test enable_tests)
|
||||
$(meson_feature xxhash xxhash_muxer)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if multilib_is_native_abi ; then
|
||||
meson_src_test
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST libavif-0.10.1.tar.gz 2085698 BLAKE2B 5be3f9adf7e0a5747e42c90ce2768eba90053c821805cc8e39915d6cbc4cd42554b1473118b41eb25010d20a2b5a3c141b9cbd6ff55c46abd79eb97cdee6b0e5 SHA512 2f6f248c56c983761149d3c201fc2a2ea5072a32516578a7fdb2c66e3cd22491540f400e23581f873b15454250eeec8d433924ae2c1de9371b7924a5d82bef6b
|
||||
DIST libavif-0.11.1.tar.gz 5826813 BLAKE2B 8fcbc9e1655546b7f4e62882b44d07b8bcfceef599e0feb5658c475cbc35cbb27bae0ad58475c2657351a890ccb957fa8a0e28328bbb5664cd8a57cedfb58019 SHA512 4a9e2711fccddf35c477db6e2fa2f76c0648aafaa98b4e3f34df62c0fbd02ddcd57762f1f8149822da4f1bc3757ee75ec1d9ced5e56a54dbe9d0b43265aacd4c
|
||||
DIST libavif-1.0.1.tar.gz 10569767 BLAKE2B a50ade5ac9a05c987f8f10806d2f749af89a5fb5cb5ef01648a398bcd5a2f568abe4fa646b2a8f33aa2b5b0a718f80f140d9f1f87c524c805d970d5517ec667c SHA512 f7c35e40f9214314afeae69d5da6ab345e6dbd025e737a920ea4270452cdf7ff7010d7af5cc18d27e93b217114eb6b613cd349703d0e1bb7814dbeb84a9fd70f
|
||||
|
@ -0,0 +1,107 @@
|
||||
# Copyright 2020-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake-multilib gnome2-utils
|
||||
|
||||
DESCRIPTION="Library for encoding and decoding .avif files"
|
||||
HOMEPAGE="https://github.com/AOMediaCodec/libavif"
|
||||
SRC_URI="https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
# See bug #822336 re subslot
|
||||
SLOT="0/16"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
||||
IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1"
|
||||
|
||||
REQUIRED_USE="|| ( aom dav1d )"
|
||||
|
||||
DEPEND="media-libs/libjpeg-turbo[${MULTILIB_USEDEP}]
|
||||
media-libs/libpng[${MULTILIB_USEDEP}]
|
||||
sys-libs/zlib[${MULTILIB_USEDEP}]
|
||||
aom? ( >=media-libs/libaom-3.3.0:=[${MULTILIB_USEDEP}] )
|
||||
dav1d? ( >=media-libs/dav1d-1.0.0:=[${MULTILIB_USEDEP}] )
|
||||
extras? ( dev-cpp/gtest )
|
||||
gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] )
|
||||
rav1e? ( >=media-video/rav1e-0.5.1[capi] )
|
||||
svt-av1? ( >=media-libs/svt-av1-0.9.1 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
multilib_src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DAVIF_CODEC_AOM=$(usex aom ON OFF)
|
||||
-DAVIF_CODEC_DAV1D=$(usex dav1d ON OFF)
|
||||
-DAVIF_CODEC_LIBGAV1=OFF
|
||||
|
||||
# Use system libraries.
|
||||
-DAVIF_LOCAL_ZLIBPNG=OFF
|
||||
-DAVIF_LOCAL_JPEG=OFF
|
||||
|
||||
-DAVIF_BUILD_GDK_PIXBUF=$(usex gdk-pixbuf ON OFF)
|
||||
|
||||
-DAVIF_ENABLE_WERROR=OFF
|
||||
)
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
mycmakeargs+=(
|
||||
-DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF)
|
||||
-DAVIF_CODEC_SVT=$(usex svt-av1 ON OFF)
|
||||
|
||||
-DAVIF_BUILD_EXAMPLES=$(usex examples ON OFF)
|
||||
-DAVIF_BUILD_APPS=$(usex extras ON OFF)
|
||||
-DAVIF_BUILD_TESTS=$(usex extras ON OFF)
|
||||
-DAVIF_ENABLE_GTEST=$(usex extras ON OFF)
|
||||
)
|
||||
else
|
||||
mycmakeargs+=(
|
||||
-DAVIF_CODEC_RAV1E=OFF
|
||||
-DAVIF_CODEC_SVT=OFF
|
||||
|
||||
-DAVIF_BUILD_EXAMPLES=OFF
|
||||
-DAVIF_BUILD_APPS=OFF
|
||||
-DAVIF_BUILD_TESTS=OFF
|
||||
-DAVIF_ENABLE_GTEST=OFF
|
||||
)
|
||||
|
||||
if ! use aom ; then
|
||||
if use rav1e || use svt-av1 ; then
|
||||
ewarn "libavif on ${MULTILIB_ABI_FLAG} will work in read-only mode."
|
||||
ewarn "Support for rav1e and/or svt-av1 is is not available on ${MULTILIB_ABI_FLAG}"
|
||||
ewarn "Enable aom flag for full support on ${MULTILIB_ABI_FLAG}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use gdk-pixbuf ; then
|
||||
gnome2_gdk_pixbuf_savelist
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use aom && ! use rav1e && ! use svt-av1 ; then
|
||||
ewarn "No AV1 encoder is set,"
|
||||
ewarn "libavif will work in read-only mode."
|
||||
ewarn "Enable aom, rav1e or svt-av1 flag if you want to save .AVIF files."
|
||||
fi
|
||||
|
||||
if use gdk-pixbuf ; then
|
||||
# causes segfault if set, see bug 375615
|
||||
unset __GL_NO_DSO_FINALIZER
|
||||
multilib_foreach_abi gnome2_gdk_pixbuf_update
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use gdk-pixbuf ; then
|
||||
# causes segfault if set, see bug 375615
|
||||
unset __GL_NO_DSO_FINALIZER
|
||||
multilib_foreach_abi gnome2_gdk_pixbuf_update
|
||||
fi
|
||||
}
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue