mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
Merge updates from master
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# Copyright 2022-2025 Gentoo Authors
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
MULTILIB_ABIS="amd64 x86" # allow usage on /no-multilib/
|
||||
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||
inherit eapi9-ver flag-o-matic meson-multilib python-any-r1
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
MULTILIB_ABIS="amd64 x86" # allow usage on /no-multilib/
|
||||
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||
inherit eapi9-ver flag-o-matic meson-multilib python-any-r1
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
MULTILIB_ABIS="amd64 x86" # allow usage on /no-multilib/
|
||||
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||
inherit eapi9-ver flag-o-matic meson-multilib python-any-r1
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
MULTILIB_ABIS="amd64 x86" # allow usage on /no-multilib/
|
||||
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||
inherit eapi9-ver flag-o-matic meson-multilib python-any-r1
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
DIST proton-wine-10.0-4.tar.gz 52736432 BLAKE2B 71986c2362934879d5d9a74ea13e29593240a9e7a5dc6b9a9ffdfdaf528be4dec2ac34500afcd525fa256d2fed2efc1e3cb6bd7c5f51b4e4249d714ca9bbc3ef SHA512 e74aece7dad25fd1e8041d370718bfd0dd695469c7b74d95209ac6030d0fb30221d1ccce7c8483dddb097c0f1b2df768452de79fd4041c46dd3695934816dd2a
|
||||
DIST proton-wine-11.0-2.tar.gz 56570548 BLAKE2B 4e342b53803c0e1f46594fd8f5cd5b954b3f598858bab2c32deac3634602b60aa59b8476973ccb3a04fe19b1cddb35938a3d82f002065878d2f5e1dcd46c9652 SHA512 fbeddf565b7ae6c1371e5202e1f57f12247090bf683fd33cf35493bf28ae1574d7bcd85b422c965083530041e0b1e72be0cfb92e2f631d990335c02b23df8d3f
|
||||
DIST proton-wine-11.0-2e.tar.gz 56570880 BLAKE2B 02eb573d3baef6c9143394a1aaf716afc40f29ab361184ddedf698826a68efef6a7bc468e702a716733fd0c8e307432f2d48565bbd874a84951a79bb5c93ec5c SHA512 76f1faee489cf79b61339e80e5bb455dd2e3eb32e363aed37b7156c6b4f6f08f4a34a4169ffd92e8354c6c5cd47086608a5a5d1d0f02fdd72b322f2fdd693612
|
||||
DIST proton-wine-9.0-4.tar.gz 49339922 BLAKE2B 914ca093ac288c26400e4eeb2ea33943fc8ad89052aa7c97b5c44286dc175745720455d65163baa90b0d0271eb8028549315a3e8095b91947db2bd96c6fc4852 SHA512 e061f0a55b25493f67ca3add8c7e41020bb57cb15e8fb4fdf3c23f0cab2d00b703c90fbcf0dc1ca8b67e1726a76cee910e9ea6f567c88bc6c520dd6c9dbb75e9
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit optfeature python-any-r1 readme.gentoo-r1 toolchain-funcs wine
|
||||
|
||||
WINE_GECKO=2.47.4
|
||||
|
||||
@@ -1,265 +0,0 @@
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
inherit eapi9-ver flag-o-matic optfeature python-any-r1
|
||||
inherit readme.gentoo-r1 toolchain-funcs wine
|
||||
|
||||
WINE_GECKO=2.47.4
|
||||
WINE_MONO=10.4.1
|
||||
WINE_PV=$(ver_rs 2 -)
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/ValveSoftware/wine.git"
|
||||
EGIT_BRANCH="bleeding-edge"
|
||||
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 BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff public-domain
|
||||
|| ( WTFPL-2 public-domain )
|
||||
"
|
||||
SLOT="${PV}"
|
||||
IUSE="
|
||||
+X +alsa crossdev-mingw +dbus ffmpeg +fontconfig +gecko +gstreamer
|
||||
llvm-libunwind +mono nls perl pulseaudio +sdl selinux +ssl udev
|
||||
+unwind usb v4l wayland video_cards_amdgpu xinerama
|
||||
"
|
||||
# headless is not really supported here, and udev needs sdl due to Valve's
|
||||
# changes (bug #959263), use normal wine instead if need to avoid these
|
||||
REQUIRED_USE="
|
||||
|| ( X wayland )
|
||||
udev? ( sdl )
|
||||
"
|
||||
|
||||
# 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:=[${WINE_USEDEP}]
|
||||
media-libs/freetype[${WINE_USEDEP}]
|
||||
media-libs/libglvnd[X?,${WINE_USEDEP}]
|
||||
media-libs/vulkan-loader[X?,wayland?,${WINE_USEDEP}]
|
||||
X? (
|
||||
x11-libs/libXcomposite[${WINE_USEDEP}]
|
||||
x11-libs/libXcursor[${WINE_USEDEP}]
|
||||
x11-libs/libXfixes[${WINE_USEDEP}]
|
||||
x11-libs/libXi[${WINE_USEDEP}]
|
||||
x11-libs/libXrandr[${WINE_USEDEP}]
|
||||
x11-libs/libXrender[${WINE_USEDEP}]
|
||||
x11-libs/libXxf86vm[${WINE_USEDEP}]
|
||||
xinerama? ( x11-libs/libXinerama[${WINE_USEDEP}] )
|
||||
)
|
||||
dbus? ( sys-apps/dbus[${WINE_USEDEP}] )
|
||||
fontconfig? ( media-libs/fontconfig[${WINE_USEDEP}] )
|
||||
sdl? ( media-libs/libsdl2[haptic,joystick,${WINE_USEDEP}] )
|
||||
ssl? (
|
||||
dev-libs/gmp:=[${WINE_USEDEP}]
|
||||
net-libs/gnutls:=[${WINE_USEDEP}]
|
||||
)
|
||||
v4l? ( media-libs/libv4l[${WINE_USEDEP}] )
|
||||
"
|
||||
WINE_COMMON_DEPEND="
|
||||
${WINE_DLOPEN_DEPEND}
|
||||
X? (
|
||||
x11-libs/libX11[${WINE_USEDEP}]
|
||||
x11-libs/libXext[${WINE_USEDEP}]
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib[${WINE_USEDEP}] )
|
||||
ffmpeg? ( media-video/ffmpeg:=[${WINE_USEDEP}] )
|
||||
gstreamer? (
|
||||
dev-libs/glib:2[${WINE_USEDEP}]
|
||||
media-libs/gst-plugins-base:1.0[opengl,${WINE_USEDEP}]
|
||||
media-libs/gstreamer:1.0[${WINE_USEDEP}]
|
||||
)
|
||||
pulseaudio? ( media-libs/libpulse[${WINE_USEDEP}] )
|
||||
udev? ( virtual/libudev:=[${WINE_USEDEP}] )
|
||||
unwind? (
|
||||
llvm-libunwind? ( llvm-runtimes/libunwind[${WINE_USEDEP}] )
|
||||
!llvm-libunwind? ( sys-libs/libunwind:=[${WINE_USEDEP}] )
|
||||
)
|
||||
usb? ( dev-libs/libusb:1[${WINE_USEDEP}] )
|
||||
video_cards_amdgpu? ( x11-libs/libdrm[video_cards_amdgpu,${WINE_USEDEP}] )
|
||||
wayland? (
|
||||
dev-libs/wayland[${WINE_USEDEP}]
|
||||
x11-libs/libxkbcommon[${WINE_USEDEP}]
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
app-emulation/wine-desktop-common
|
||||
gecko? (
|
||||
app-emulation/wine-gecko:${WINE_GECKO}[${WINE_USEDEP}]
|
||||
wow64? ( app-emulation/wine-gecko[abi_x86_32] )
|
||||
)
|
||||
gstreamer? (
|
||||
media-libs/gst-plugins-bad:1.0[${WINE_USEDEP}]
|
||||
media-plugins/gst-plugins-libav:1.0[${WINE_USEDEP}]
|
||||
media-plugins/gst-plugins-meta:1.0[${WINE_USEDEP}]
|
||||
)
|
||||
mono? ( app-emulation/wine-mono:${WINE_MONO} )
|
||||
perl? (
|
||||
dev-lang/perl
|
||||
dev-perl/XML-LibXML
|
||||
)
|
||||
selinux? ( sec-policy/selinux-wine )
|
||||
"
|
||||
DEPEND="
|
||||
${WINE_COMMON_DEPEND}
|
||||
>=sys-kernel/linux-headers-6.14
|
||||
X? ( x11-base/xorg-proto )
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-lang/perl
|
||||
sys-devel/binutils:*
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gcc:*
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
wayland? ( dev-util/wayland-scanner )
|
||||
"
|
||||
|
||||
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
|
||||
# intentionally ignored: https://gitlab.winehq.org/wine/wine/-/commit/433c2f8c06
|
||||
QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/wine.*-preloader"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.0.4-musl.patch
|
||||
"${FILESDIR}"/${PN}-7.0.4-noexecstack.patch
|
||||
"${FILESDIR}"/${PN}-8.0.1c-unwind.patch
|
||||
"${FILESDIR}"/${PN}-9.0-rpath.patch
|
||||
"${FILESDIR}"/${PN}-11.0.1-restore-menubuilder.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# similarly to staging, append to `wine --version` for identification
|
||||
sed -i "s/wine_build[^1]*1/& (Proton-${WINE_PV})/" configure.ac || die
|
||||
|
||||
wine_src_prepare
|
||||
|
||||
# proton variant also needs specfiles and vulkan
|
||||
tools/make_specfiles || die # perl
|
||||
dlls/winevulkan/make_vulkan -X video.xml -x vk.xml || die # python
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Valve does not really support anything but gcc+bfd, and some of
|
||||
# their modifications have been fragile and accumulating issues
|
||||
# that they seemingly have no interest in fixing (bug #977021)
|
||||
tc-is-gcc || unset AR AS CC CPP CXX LD NM OBJ{COPY,DUMP} RANLIB READELF STRIP
|
||||
tc-ld-is-bfd || append-ldflags -fuse-ld=bfd
|
||||
strip-unsupported-flags
|
||||
|
||||
local wineconfargs=(
|
||||
# upstream (Valve) doesn't really support misc configurations (e.g.
|
||||
# adds vulkan code not always guarded by --with-vulkan), so force
|
||||
# some options that are typically needed by games either way
|
||||
--with-freetype
|
||||
--with-opengl
|
||||
--with-vulkan
|
||||
|
||||
# ...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-hwloc
|
||||
--without-krb5
|
||||
--without-netapi
|
||||
--without-opencl
|
||||
--without-pcap
|
||||
--without-pcsclite
|
||||
--without-sane
|
||||
ac_cv_header_bluetooth_bluetooth_h=no
|
||||
ac_cv_header_bluetooth_rfcomm_h=no
|
||||
ac_cv_lib_soname_odbc=
|
||||
|
||||
$(use_enable gecko mshtml)
|
||||
$(use_enable mono mscoree)
|
||||
$(use_enable video_cards_amdgpu amd_ags_x64)
|
||||
--disable-tests
|
||||
|
||||
$(use_with X x)
|
||||
$(use_with alsa)
|
||||
$(use_with dbus)
|
||||
$(use_with ffmpeg)
|
||||
$(use_with fontconfig)
|
||||
$(use_with gstreamer)
|
||||
$(use_with nls gettext)
|
||||
--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 unwind)
|
||||
$(use_with usb)
|
||||
$(use_with v4l v4l2)
|
||||
$(use_with wayland)
|
||||
$(use_with xinerama)
|
||||
|
||||
--without-piper # unpackaged, for tts but unusable without steam
|
||||
--without-vosk # unpackaged, file a bug if you need this
|
||||
)
|
||||
|
||||
wine_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use perl || local WINE_SKIP_INSTALL=(
|
||||
${WINE_DATADIR}/man/man1/wine{dump,maker}.1
|
||||
${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}}
|
||||
)
|
||||
|
||||
wine_src_install
|
||||
|
||||
dodoc ANNOUNCE* AUTHORS README* documentation/README*
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
has_version ${CATEGORY}/${PN} && WINE_HAD_ANY_SLOT=
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
wine_pkg_postinst
|
||||
|
||||
[[ -v WINE_HAD_ANY_SLOT ]] || readme.gentoo_print_elog
|
||||
|
||||
optfeature "/dev/hidraw* access used for *some* controllers (e.g. DualShock4)" \
|
||||
games-util/game-device-udev-rules
|
||||
|
||||
ewarn
|
||||
ewarn "Warning: please consider ${PN} provided as-is without real"
|
||||
ewarn "support. Upstream does not want bug reports unless can reproduce"
|
||||
ewarn "with real Steam+Proton, and Gentoo is largely unable to help"
|
||||
ewarn "unless it is a build/packaging issue. So, if need support, try"
|
||||
ewarn "normal Wine or Proton instead."
|
||||
|
||||
if ver_replacing -lt 11; then
|
||||
elog
|
||||
elog "Note that >=${PN}-11 now has ntsync support that can be used"
|
||||
elog "rather than setting WINEFSYNC=1. It is used by default if /dev/ntsync"
|
||||
elog "exists unless PROTON_NO_NTSYNC=1 is set. Requires CONFIG_NTSYNC in"
|
||||
elog "the kernel and, if built as a module, will need a file containing"
|
||||
elog "ntsync in ${EROOT}/etc/modules-load.d/ to be auto-loaded."
|
||||
fi
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit eapi9-ver flag-o-matic optfeature python-any-r1
|
||||
inherit readme.gentoo-r1 toolchain-funcs wine
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit python-any-r1 readme.gentoo-r1 toolchain-funcs wine
|
||||
|
||||
WINE_GECKO=2.47.4
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit eapi9-ver flag-o-matic optfeature python-any-r1
|
||||
inherit readme.gentoo-r1 toolchain-funcs wine
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit edo optfeature python-any-r1 wine
|
||||
|
||||
WINE_GECKO=2.47.4
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit edo optfeature python-any-r1 wine
|
||||
|
||||
WINE_GECKO=2.47.4
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit edo optfeature python-any-r1 wine
|
||||
|
||||
WINE_GECKO=2.47.4
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit edo optfeature python-any-r1 wine
|
||||
|
||||
WINE_GECKO=2.47.4
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit edo optfeature python-any-r1 wine
|
||||
|
||||
WINE_GECKO=2.47.4
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit edo optfeature python-any-r1 wine
|
||||
|
||||
WINE_GECKO=2.47.4
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
PYTHON_REQ_USE="ncurses"
|
||||
inherit distutils-r1 xdg
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
PYTHON_REQ_USE="ncurses"
|
||||
inherit distutils-r1 xdg
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
DIST godot-4.5.2-stable.tar.xz 43877740 BLAKE2B fc54a347534697fa7eea0a53d977689f2ece35b997fe3546f8c8175745628ba14b0880c177783bdfbd5cb0052eb54d1c710841bacda8200a26c51822e06ba635 SHA512 18ee93e0b39d965244662e64f82597722e99a17e63f90d976de65abf77238587e00e11b68ce749698d625babe0077de6e12a66dc0aa68e0039bb93dbb7243c75
|
||||
DIST godot-4.6.3-stable.tar.xz 44471880 BLAKE2B 9d4b0fdf4b75db3062e229b2cf43746620e51da83f9859bf06e691d36249bd5394ca8f6086dbc943a7eb4e44f55a28b32fb615fcb94b511bf41ad82dfc718ed9 SHA512 b3e4c63eae7b7e0c47da07ae64d49dca5bf033912ea0a0da5440fcee48b4eb16c75e446374e7916c4ca2c6ff39ed7f3833e4cc2761df73765a660f715770f803
|
||||
DIST godot-4.7.1-stable.tar.xz 47002520 BLAKE2B 0bee8f7f175a0e6ba43458e707ff649e5dc258a1f3d787a4d8504e3cff336305a39eb645faea1afd9e476d6930b89a18ae953e8ee17a328075ef0c70a4c4e9c0 SHA512 27bab3cba3963bd19dcb8d7684e48ddf3c9623ccc94bad23f6f1ada8cf55596178f2aa60508e62172b707c88401efd3c4b8f10245a1adbbcd32599d0fb961c47
|
||||
DIST godot-4.7.2-stable.tar.xz 47744300 BLAKE2B d65c8e5b70d590be431a9f0a3630be600d91bb335b4460a9c3f12c3052e7cabb1e02f0f62ba8e85d4e25ed4ad266e84280903277036df5fa08794b62571db127 SHA512 15e23f8423003f5d32da07c34a8651e43af23b050cc0dea2d4fba6944ca445d079edb52b66fdf82b6d5739bba1fe707b9e27b8836b19f09f64f313966160f8fc
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit branding desktop python-any-r1 flag-o-matic scons-utils
|
||||
inherit shell-completion toolchain-funcs xdg
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit branding desktop python-any-r1 flag-o-matic scons-utils
|
||||
inherit shell-completion toolchain-funcs xdg
|
||||
|
||||
|
||||
@@ -1,247 +0,0 @@
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
inherit branding desktop python-any-r1 flag-o-matic scons-utils
|
||||
inherit shell-completion toolchain-funcs xdg
|
||||
|
||||
DESCRIPTION="Multi-platform 2D and 3D game engine with a feature-rich editor"
|
||||
HOMEPAGE="https://godotengine.org/"
|
||||
SRC_URI="
|
||||
https://github.com/godotengine/godot/releases/download/${PV}-stable/${P}-stable.tar.xz
|
||||
"
|
||||
S=${WORKDIR}/${P}-stable
|
||||
|
||||
LICENSE="
|
||||
MIT
|
||||
Apache-2.0 BSD Boost-1.0 CC0-1.0 Unlicense ZLIB
|
||||
gui? ( CC-BY-4.0 ) tools? ( OFL-1.1 )
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
# Enable roughly same as upstream by default so it works as expected,
|
||||
# except raycast (tools-only heavy dependency), and deprecated.
|
||||
IUSE="
|
||||
accessibility alsa +dbus debug deprecated double-precision +fontconfig
|
||||
+gui pulseaudio raycast speech test +sdl +theora +tools +udev +upnp
|
||||
+vulkan wayland +webp
|
||||
"
|
||||
REQUIRED_USE="wayland? ( gui )"
|
||||
# TODO: tests still need more figuring out
|
||||
RESTRICT="test"
|
||||
|
||||
# dlopen: libglvnd
|
||||
RDEPEND="
|
||||
app-arch/brotli:=
|
||||
app-arch/zstd:=
|
||||
dev-games/recastnavigation:=
|
||||
dev-libs/icu:=
|
||||
dev-libs/libpcre2:=[pcre32]
|
||||
media-libs/freetype[brotli,harfbuzz]
|
||||
media-libs/harfbuzz:=[icu]
|
||||
media-libs/libjpeg-turbo:=
|
||||
media-libs/libogg
|
||||
media-libs/libpng:=
|
||||
media-libs/libvorbis
|
||||
>=net-libs/mbedtls-3.6.2-r101:3=
|
||||
net-libs/wslay
|
||||
virtual/zlib:=
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
dbus? ( sys-apps/dbus )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
gui? (
|
||||
media-libs/libglvnd
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libxkbcommon
|
||||
tools? ( raycast? ( media-libs/embree:4 ) )
|
||||
vulkan? ( media-libs/vulkan-loader[X,wayland?] )
|
||||
)
|
||||
pulseaudio? ( media-libs/libpulse )
|
||||
sdl? ( media-libs/libsdl3 )
|
||||
speech? ( app-accessibility/speech-dispatcher )
|
||||
theora? (
|
||||
media-libs/libtheora:=
|
||||
tools? ( media-libs/libtheora[encode] )
|
||||
)
|
||||
tools? ( app-misc/ca-certificates )
|
||||
udev? ( virtual/udev )
|
||||
upnp? ( net-libs/miniupnpc:= )
|
||||
wayland? (
|
||||
dev-libs/wayland
|
||||
gui-libs/libdecor
|
||||
)
|
||||
webp? ( media-libs/libwebp:= )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
gui? ( x11-base/xorg-proto )
|
||||
tools? ( test? ( dev-cpp/doctest ) )
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
wayland? ( dev-util/wayland-scanner )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.5-scons.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# mbedtls normally has mbedtls.pc, but Gentoo's slotted one is mbedtls-3.pc
|
||||
sed -E "/pkg-config/s/(mbedtls|mbedcrypto|mbedx509)/&-3/g" \
|
||||
-i platform/linuxbsd/detect.py || die
|
||||
|
||||
# <harfbuzz-13 is usable but detect.py assumes >=13, keep support given
|
||||
# >=13 is not in-tree as of the writing of this (bug #978085)
|
||||
if has_version '<media-libs/harfbuzz-13'; then
|
||||
sed -e '/pkg-config/s/ harfbuzz-raster harfbuzz-vector//' \
|
||||
-i platform/linuxbsd/detect.py || die
|
||||
fi
|
||||
|
||||
sed -i "s|pkg-config |$(tc-getPKG_CONFIG) |" platform/linuxbsd/detect.py || die
|
||||
|
||||
# use of builtin_ switches can be messy (see below), delete to be sure
|
||||
local unbundle=(
|
||||
brotli doctest embree freetype graphite harfbuzz icu4c libjpeg-turbo
|
||||
libogg libpng libtheora libvorbis libwebp linuxbsd_headers mbedtls
|
||||
miniupnpc pcre2 recastnavigation sdl volk wslay zlib zstd
|
||||
# certs: unused by generated header, but scons panics if not found
|
||||
)
|
||||
rm -r "${unbundle[@]/#/thirdparty/}" || die
|
||||
|
||||
ln -s -- "${ESYSROOT}"/usr/include/doctest thirdparty/ || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local -x BUILD_NAME=${BRANDING_OS_ID} # replaces "custom_build" in version
|
||||
|
||||
tc-export AR CC CXX RANLIB
|
||||
filter-lto #921017
|
||||
|
||||
local esconsargs=(
|
||||
progress=no
|
||||
verbose=yes
|
||||
|
||||
target=$(usex tools editor template_$(usex debug{,} release))
|
||||
dev_build=$(usex debug)
|
||||
tests=$(usex tools $(usex test)) # bakes in --test in final binary
|
||||
|
||||
# TODO?: libgodot requires a separate build given the executable
|
||||
# the library are mutally exculsive and so, unless we really need
|
||||
# it, skipping support to ease maintenance at least for now
|
||||
#library_type=$(usex libgodot shared_library executable)
|
||||
|
||||
accesskit=$(usex accessibility)
|
||||
alsa=$(usex alsa)
|
||||
dbus=$(usex dbus)
|
||||
deprecated=$(usex deprecated)
|
||||
precision=$(usex double-precision double single)
|
||||
execinfo=no # not packaged, disables crash handler if non-glibc
|
||||
fontconfig=$(usex fontconfig)
|
||||
opengl3=$(usex gui)
|
||||
pulseaudio=$(usex pulseaudio)
|
||||
sdl=$(usex sdl)
|
||||
speechd=$(usex speech)
|
||||
udev=$(usex udev)
|
||||
use_sowrap=no
|
||||
use_volk=no # unnecessary when linking directly to libvulkan
|
||||
vulkan=$(usex gui $(usex vulkan))
|
||||
wayland=$(usex wayland)
|
||||
# TODO: retry to add optional USE=X, wayland support is new
|
||||
# and gui build is not well wired to handle USE="-X wayland" yet
|
||||
x11=$(usex gui)
|
||||
|
||||
system_certs_path="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
# platform/*/detect.py uses builtin_* switches to check if need
|
||||
# to link with system libraries, but many ignore whether the dep
|
||||
# is actually used, so "enable" deleted builtins on disabled deps
|
||||
builtin_accesskit=yes # not packaged
|
||||
builtin_brotli=no
|
||||
builtin_certs=no
|
||||
builtin_clipper2=yes # not packaged
|
||||
builtin_embree=$(usex !gui yes $(usex !tools yes $(usex !raycast)))
|
||||
builtin_enet=yes # bundled copy is patched for IPv6+DTLS support
|
||||
builtin_freetype=no
|
||||
builtin_glslang=yes #879111 (for now, may revisit if more stable)
|
||||
builtin_graphite=no
|
||||
builtin_harfbuzz=no
|
||||
builtin_icu4c=no
|
||||
builtin_libjpeg_turbo=no
|
||||
builtin_libogg=no
|
||||
builtin_libpng=no
|
||||
builtin_libtheora=$(usex !theora)
|
||||
builtin_libvorbis=no
|
||||
builtin_libwebp=$(usex !webp)
|
||||
builtin_mbedtls=no
|
||||
builtin_miniupnpc=$(usex !upnp)
|
||||
builtin_msdfgen=yes # not wired for unbundling nor packaged
|
||||
builtin_openxr=yes # not packaged
|
||||
builtin_pcre2=no
|
||||
builtin_recastnavigation=no
|
||||
builtin_rvo2=yes # bundled copy has godot-specific changes
|
||||
builtin_sdl=$(usex !sdl)
|
||||
builtin_wslay=no
|
||||
builtin_xatlas=yes # not wired for unbundling nor packaged
|
||||
builtin_zlib=no
|
||||
builtin_zstd=no
|
||||
# (more is bundled in third_party/ but they lack builtin_* switches)
|
||||
|
||||
# modules with optional dependencies, "possible" to disable more but
|
||||
# gets messy and breaks all sorts of features (expected enabled)
|
||||
module_mono_enabled=no # unhandled
|
||||
# note raycast is only enabled on amd64+arm64 and USE should
|
||||
# be masked for other keywords if added, see raycast/config.py
|
||||
module_raycast_enabled=$(usex gui $(usex tools $(usex raycast)))
|
||||
module_theora_enabled=$(usex theora)
|
||||
module_upnp_enabled=$(usex upnp)
|
||||
module_webp_enabled=$(usex webp)
|
||||
|
||||
# let *FLAGS handle these
|
||||
debug_symbols=no
|
||||
lto=none
|
||||
optimize=custom
|
||||
use_static_cpp=no
|
||||
)
|
||||
|
||||
escons "${esconsargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
xdg_environment_reset
|
||||
|
||||
bin/godot* --headless --test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# suffix varies depending on arch/features, use wildcard to simplify
|
||||
newbin bin/godot* godot
|
||||
|
||||
doman misc/dist/linux/godot.6
|
||||
dodoc AUTHORS.md CHANGELOG.md DONORS.md README.md
|
||||
|
||||
if use gui; then
|
||||
newicon misc/logo/icon.svg godot.svg
|
||||
domenu misc/dist/linux/org.godotengine.Godot.desktop
|
||||
|
||||
insinto /usr/share/metainfo
|
||||
doins misc/dist/linux/org.godotengine.Godot.appdata.xml
|
||||
|
||||
insinto /usr/share/mime/application
|
||||
doins misc/dist/linux/org.godotengine.Godot.xml
|
||||
fi
|
||||
|
||||
newbashcomp misc/dist/shell/godot.bash-completion godot
|
||||
newfishcomp misc/dist/shell/godot.fish godot.fish
|
||||
newzshcomp misc/dist/shell/_godot.zsh-completion _godot
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit branding desktop python-any-r1 flag-o-matic scons-utils
|
||||
inherit shell-completion toolchain-funcs xdg
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit cmake python-any-r1
|
||||
|
||||
DESCRIPTION="C Markdown parser. Fast, SAX-like interface, CommonMark Compliant"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit cmake python-any-r1
|
||||
|
||||
DESCRIPTION="C Markdown parser. Fast, SAX-like interface, CommonMark Compliant"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
|
||||
inherit distutils-r1 pypi virtualx
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
My understanding is that this assignment is unnecessary and can be
|
||||
removed.
|
||||
https://bugs.gentoo.org/981337
|
||||
https://github.com/pygame/pygame/issues/4716#issuecomment-6104711463
|
||||
--- a/src_c/cython/pygame/_sprite.pyx
|
||||
+++ b/src_c/cython/pygame/_sprite.pyx
|
||||
@@ -147,3 +147,2 @@
|
||||
def __cinit__(self):
|
||||
- self.__dict__ = {}
|
||||
self.__g = set() # The groups the sprite is in
|
||||
@@ -0,0 +1,151 @@
|
||||
No proper upstream fix yet, patch taken from [1]. Sounded questionable
|
||||
but upon inspection I believe it's Ok. Originally tried Fedora's patch
|
||||
but it caused test failures (or at least did with python3.14).
|
||||
|
||||
In addition to [1], this also extend on py314-tests.patch to adjust
|
||||
refcount values for py315. [1] mentions & explain these failures a bit
|
||||
but did not address them, I "believe" that they are nothing to worry
|
||||
about. If this test causes more problems, may make sense to patch it
|
||||
out downstream until upstream handles it.
|
||||
|
||||
[1] https://github.com/pygame/pygame/issues/4716#issuecomment-6104711463
|
||||
--- a/src_c/pgcompat.h
|
||||
+++ b/src_c/pgcompat.h
|
||||
@@ -25,3 +25,25 @@
|
||||
PySlice_GetIndicesEx(slice, length, start, stop, step, slicelength)
|
||||
|
||||
+/* PyWeakref_GetObject() was removed in Python 3.15. PyWeakref_GetRef()
|
||||
+ * (Python 3.13+) replaces it: returns 1 and a new reference if the referent
|
||||
+ * is alive, 0 and NULL if it is dead, -1 and NULL on error. */
|
||||
+#if PY_VERSION_HEX < 0x030D0000
|
||||
+static inline int
|
||||
+PyWeakref_GetRef(PyObject *ref, PyObject **pobj)
|
||||
+{
|
||||
+ PyObject *obj = PyWeakref_GetObject(ref);
|
||||
+ if (obj == NULL) {
|
||||
+ *pobj = NULL;
|
||||
+ return -1;
|
||||
+ }
|
||||
+ if (obj == Py_None) {
|
||||
+ *pobj = NULL;
|
||||
+ return 0;
|
||||
+ }
|
||||
+ Py_INCREF(obj);
|
||||
+ *pobj = obj;
|
||||
+ return 1;
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#endif /* ~PGCOMPAT_INTERNAL_H */
|
||||
--- a/src_c/pgcompat.h
|
||||
+++ b/src_c/pgcompat.h
|
||||
@@ -25,3 +25,25 @@
|
||||
PySlice_GetIndicesEx(slice, length, start, stop, step, slicelength)
|
||||
|
||||
+/* PyWeakref_GetObject() was removed in Python 3.15. PyWeakref_GetRef()
|
||||
+ * (Python 3.13+) replaces it: returns 1 and a new reference if the referent
|
||||
+ * is alive, 0 and NULL if it is dead, -1 and NULL on error. */
|
||||
+#if PY_VERSION_HEX < 0x030D0000
|
||||
+static inline int
|
||||
+PyWeakref_GetRef(PyObject *ref, PyObject **pobj)
|
||||
+{
|
||||
+ PyObject *obj = PyWeakref_GetObject(ref);
|
||||
+ if (obj == NULL) {
|
||||
+ *pobj = NULL;
|
||||
+ return -1;
|
||||
+ }
|
||||
+ if (obj == Py_None) {
|
||||
+ *pobj = NULL;
|
||||
+ return 0;
|
||||
+ }
|
||||
+ Py_INCREF(obj);
|
||||
+ *pobj = obj;
|
||||
+ return 1;
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
#endif /* ~PGCOMPAT_INTERNAL_H */
|
||||
--- a/src_c/surface.c
|
||||
+++ b/src_c/surface.c
|
||||
@@ -1021,6 +1021,12 @@
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
- tmp = PyWeakref_GetObject(PyList_GetItem(surf->locklist, i));
|
||||
- Py_INCREF(tmp);
|
||||
+ if (PyWeakref_GetRef(PyList_GetItem(surf->locklist, i), &tmp) < 0) {
|
||||
+ Py_DECREF(tuple);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+ if (tmp == NULL) { /* dead lock owner: report None, as before */
|
||||
+ tmp = Py_None;
|
||||
+ Py_INCREF(tmp);
|
||||
+ }
|
||||
PyTuple_SetItem(tuple, i, tmp);
|
||||
}
|
||||
@@ -3444,9 +3450,15 @@
|
||||
consumer_ref = internal->consumer_ref;
|
||||
assert(consumer_ref && PyWeakref_CheckRef(consumer_ref));
|
||||
- consumer = PyWeakref_GetObject(consumer_ref);
|
||||
- if (consumer) {
|
||||
- if (!pgSurface_UnlockBy((pgSurfaceObject *)view_p->obj, consumer)) {
|
||||
+ if (PyWeakref_GetRef(consumer_ref, &consumer) < 0) {
|
||||
+ PyErr_Clear();
|
||||
+ }
|
||||
+ else {
|
||||
+ /* A dead consumer is passed as None, as PyWeakref_GetObject() did,
|
||||
+ * so UnlockBy still purges its dead lock entry. */
|
||||
+ if (!pgSurface_UnlockBy((pgSurfaceObject *)view_p->obj,
|
||||
+ consumer ? consumer : Py_None)) {
|
||||
PyErr_Clear();
|
||||
}
|
||||
+ Py_XDECREF(consumer);
|
||||
}
|
||||
Py_DECREF(consumer_ref);
|
||||
--- a/src_c/surflock.c
|
||||
+++ b/src_c/surflock.c
|
||||
@@ -122,9 +122,14 @@
|
||||
if (surf->locklist != NULL) {
|
||||
PyObject *item, *ref;
|
||||
+ int alive, match;
|
||||
Py_ssize_t len = PyList_Size(surf->locklist);
|
||||
while (--len >= 0 && !found) {
|
||||
item = PyList_GetItem(surf->locklist, len);
|
||||
- ref = PyWeakref_GetObject(item);
|
||||
- if (ref == lockobj) {
|
||||
+ if (PyWeakref_GetRef(item, &ref) < 0) {
|
||||
+ return 0;
|
||||
+ }
|
||||
+ match = (ref == lockobj);
|
||||
+ Py_XDECREF(ref);
|
||||
+ if (match) {
|
||||
if (PySequence_DelItem(surf->locklist, len) == -1) {
|
||||
return 0;
|
||||
@@ -140,6 +145,11 @@
|
||||
while (--len >= 0) {
|
||||
item = PyList_GetItem(surf->locklist, len);
|
||||
- ref = PyWeakref_GetObject(item);
|
||||
- if (ref == Py_None) {
|
||||
+ alive = PyWeakref_GetRef(item, &ref);
|
||||
+ if (alive < 0) {
|
||||
+ noerror = 0;
|
||||
+ continue;
|
||||
+ }
|
||||
+ Py_XDECREF(ref);
|
||||
+ if (!alive) {
|
||||
if (PySequence_DelItem(surf->locklist, len) == -1) {
|
||||
noerror = 0;
|
||||
--- a/test/rwobject_test.py
|
||||
+++ b/test/rwobject_test.py
|
||||
@@ -83,7 +83,10 @@
|
||||
before = getrefcount(bpath)
|
||||
bpath = encode_string(bpath)
|
||||
- self.assertEqual(getrefcount(bpath), before)
|
||||
+ if sys.version_info >= (3, 15):
|
||||
+ self.assertEqual(getrefcount(bpath), before + 1)
|
||||
+ else:
|
||||
+ self.assertEqual(getrefcount(bpath), before)
|
||||
bpath = encode_string(upath)
|
||||
- if sys.version_info >= (3, 14):
|
||||
+ if sys.version_info[:2] == (3, 14):
|
||||
self.assertEqual(getrefcount(bpath), before - 1)
|
||||
else:
|
||||
@@ -1,11 +1,11 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -60,6 +60,8 @@ BDEPEND="
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-py314-tests.patch
|
||||
"${FILESDIR}"/${P}-py315.patch
|
||||
"${FILESDIR}"/${P}-cython330.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
@@ -87,8 +89,8 @@ python_test() {
|
||||
# https://github.com/pygame/pygame/pull/4267
|
||||
local -x PYGAME_MSYS2=1
|
||||
|
||||
local -x SDL_VIDEODRIVER=dummy
|
||||
local -x SDL_AUDIODRIVER=disk
|
||||
local -x SDL_{AUDIO,VIDEO}DRIVER=dummy
|
||||
local -x SHELL=${SHELL} # stop script from using /etc/passwd's
|
||||
script -eqc "${EPYTHON} -m pygame.tests -v" || die
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
inherit distutils-r1 virtualx
|
||||
|
||||
@@ -5,9 +5,8 @@ EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_VERIFY_REPO=https://github.com/The-Compiler/pytest-xvfb
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
PYTHON_REQ_USE="tk"
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Pytest plugin to run Xvfb for tests"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
QT6_HAS_STATIC_LIBS=1
|
||||
# behaves very badly when qtdeclarative is not already installed, also
|
||||
# other more minor issues (installs junk, sandbox/offscreen issues)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
QT6_HAS_STATIC_LIBS=1
|
||||
# behaves very badly when qtdeclarative is not already installed, also
|
||||
# other more minor issues (installs junk, sandbox/offscreen issues)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
QT6_HAS_STATIC_LIBS=1
|
||||
# behaves very badly when qtdeclarative is not already installed, also
|
||||
# other more minor issues (installs junk, sandbox/offscreen issues)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
QT6_HAS_STATIC_LIBS=1
|
||||
# behaves very badly when qtdeclarative is not already installed, also
|
||||
# other more minor issues (installs junk, sandbox/offscreen issues)
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
DIST qbs-src-3.1.2.tar.gz 5803135 BLAKE2B 762cd97b4140b296c3d3b589b829ee6f21c8423a1482f28702ebaa3d29eaabec9dc2144b787ec8c825374adba61310aac53d72eceec399b9ef7f01102730fc8d SHA512 aed42df2545f3866ead1b99a5efb71c741a3446c8c6974d2eca1d946249445e13bd11b4b9e7633841d7800203c27530f5a96ec39611b6448d9ec7016d27330a8
|
||||
DIST qbs-src-3.3.0.tar.gz 5912581 BLAKE2B 7a5e8c5f40ace211297ecd497068e111d8df5dc291c005827cd8ba5ffef991b4c82a4c050bbfdf436477908777646aeb98375585f5601ac20ec390972b47dd06 SHA512 63146ef32519c48b447559ec3b19db1b4557984771ea9c385bd5d275f0a3e46c63cc07783548f0ca1076f7a86bb69761c1bc98eb1be77c53f85fbe2d462319c4
|
||||
DIST qbs-src-3.3.1.tar.gz 5886657 BLAKE2B 528a78d3563a05d21edf7a7141bfa963ba4fe95ee3a4888605474f4ce8d588f475fff5e19bcfc4edad83bbf4727cca66514ce4bf6091682c1e2ebbff94ee2891 SHA512 a7b01995475064e975c8d361099312820fdcf1535cadb5f3e643b824a359eed8d93bad6972c77f84a057cd7083e9a2c6ec89fb592319606e108ee34005a442a0
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit cmake flag-o-matic python-any-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Modern build tool for software projects"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit cmake flag-o-matic python-any-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Modern build tool for software projects"
|
||||
@@ -13,7 +13,7 @@ S=${WORKDIR}/${PN}-src-${PV}
|
||||
|
||||
LICENSE="|| ( LGPL-2.1 LGPL-3 ) Boost-1.0 BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~x86"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="doc test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
@@ -59,15 +59,6 @@ pkg_setup() {
|
||||
use doc && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# test fails to build with Qt 6.10.1 since [1] and, given skipping
|
||||
# this test either way, may as well also not build it for now
|
||||
# [1] https://github.com/qt/qtbase/commit/7196bb00ed7
|
||||
cmake_comment_add_subdirectory -f tests/auto language
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# temporary workaround for musl-1.2.4 (bug #906929), this ideally
|
||||
# needs fixing in qtbase as *64 usage comes from its headers' macros
|
||||
@@ -2,3 +2,4 @@ DIST PySolFC-3.4.1.tar.xz 32915536 BLAKE2B 12450a819a5364e85bb823cec9eabe702bcae
|
||||
DIST PySolFC-3.6.0.tar.xz 32930688 BLAKE2B cfe6a9280ccb3104dba45e60fbcc46c9bd41a5457e80b2e98452e97b280811873e048052b14005e01b132f4dd5a84e42e0e1cb2b9e0f30cac3ae4bf65597639d SHA512 fdcb401fb96e5c2125c45b47b1bb88fea051f6a134a53a1942695c5aa1e8bbde80b5985a2d08f5b7a8759908032f4ef088ff5de23efd91f03dcb825e0d7e82de
|
||||
DIST PySolFC-Cardsets--Minimal-3.1.0.tar.xz 25083116 BLAKE2B 0c8d91c382cb51a52f25bc6aab9485b90b21aca2369b11848f40be2df80901bf367c4e8573a626564a3e754c04c0f5918fcf657c85d5a39d405960155f42caa4 SHA512 dc03e79490576c53e398df691f59a3c3b886c5dd20feef3f525828c2a49339537db303464a3782101e76d682cbf0345619d84e4a1d116bbb9879cd489ebe6637
|
||||
DIST PySolFC-Cardsets-3.1.tar.bz2 82706375 BLAKE2B 7fdf91e971437bec69430ab98810bbccab72bc3072c7a5bb3d9101efc2c86779e4aaca047a136bc174defb014865a3628633686dcb2e2b2ae6e9764b2ed6829a SHA512 a06fd5dfc16c7cfde4a6612f925cc2829b06a55ccc6633ed7176508888557eded9d3c32a6d336eb2f8c5950d9e0e7b215e57211ee890cf59228ab5cb4874e716
|
||||
DIST pysolfc-3.6.1.tar.xz 32975316 BLAKE2B f828ec45d5c141285e0ce5970af38757704a5d9121cc87e7cbeb83b92f4bac8f3f617c6dc5bcf2477e990fc12230ce988657bff0ab3909397a49da50307d2fae SHA512 cfe74f9109860f35da70323449a55302a4342fe987e349a4367c9bd2224d955e3fd83e9309301945906a174e569b404b332ef46c063c9a8d7cb81498d8c523cd
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
PYTHON_REQ_USE="tk"
|
||||
inherit distutils-r1 xdg
|
||||
|
||||
PS_CARD_P="PySolFC-Cardsets-3.1"
|
||||
PS_CARD_MIN_P="PySolFC-Cardsets--Minimal-3.1.0"
|
||||
|
||||
DESCRIPTION="Exciting collection of more than 1000 solitaire card games"
|
||||
HOMEPAGE="https://pysolfc.sourceforge.io/"
|
||||
SRC_URI="
|
||||
https://downloads.sourceforge.net/pysolfc/${P}.tar.xz
|
||||
extra-cardsets? ( https://downloads.sourceforge.net/pysolfc/${PS_CARD_P}.tar.bz2 )
|
||||
!extra-cardsets? ( https://downloads.sourceforge.net/pysolfc/${PS_CARD_MIN_P}.tar.xz )
|
||||
"
|
||||
|
||||
LICENSE="GPL-3+ GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="extra-cardsets minimal +sound"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/attrs[${PYTHON_USEDEP}]
|
||||
dev-python/configobj[${PYTHON_USEDEP}]
|
||||
dev-python/pysol-cards[${PYTHON_USEDEP}]
|
||||
dev-python/random2[${PYTHON_USEDEP}]
|
||||
sound? ( dev-python/pygame[${PYTHON_USEDEP}] )
|
||||
!minimal? ( dev-python/pillow[jpeg,tk,${PYTHON_USEDEP}] )
|
||||
')
|
||||
!minimal? ( dev-tcltk/tktable )
|
||||
"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( AUTHORS.md NEWS.asciidoc README.md )
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doman docs/pysol{,fc}.6
|
||||
|
||||
insinto /usr/share/PySolFC
|
||||
doins -r ../$(usex extra-cardsets ${PS_CARD_P} ${PS_CARD_MIN_P})/.
|
||||
|
||||
# html files are used at runtime, keep at default location
|
||||
dosym -r /usr/share/{PySolFC,doc/${PF}}/html
|
||||
|
||||
# russian translation is not currently displaying right?
|
||||
# (please report if works fine for you and this should be reverted)
|
||||
# https://forums.gentoo.org/viewtopic-t-1142910.html
|
||||
rm -- "${ED}"/usr/share/locale/ru/LC_MESSAGES/pysol.mo || die
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit desktop optfeature python-single-r1
|
||||
|
||||
MY_P=${PN}-$(ver_cut 1-3)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit cmake python-any-r1
|
||||
|
||||
DESCRIPTION="Utility to optimize JPEG files"
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
DIST ueberzug-18.3.1.tar.gz 58290 BLAKE2B 879f4dd7898a569cf70200fb683d6220bd410b7738963527030e504c59ef9095a28c4380c695ae8034ac2cd1d841df044ad4cad34f72c3ad24b8ef32c9473f7e SHA512 194f94c69d61163edde4a09b9575efa18d82119636f1b89b062fde207b18c7d0aca3ed144b08194a81417f6fe5ae9069de58b824b31ad1f34ecb80c67b4d1fc1
|
||||
DIST ueberzug-18.3.2.tar.gz 58900 BLAKE2B 530a33054b8d5c39ba7c553e9aac319ba4947212ebd88a913115fb23ec62cc9bc7cd8da9e87cf2c22ccb7fdf9173e7be4d827668232305e3112136b49d66c255 SHA512 ddb86b45a35aea50276e60ce19792999dafe1d1926925a633d4d8b819fb4b66ccb1d6c48f6ec1c89ecc09dbac7bb808d20494f9d444732b09b60b05fc7a93746
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
# Copyright 2021-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=meson-python
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Command line util to draw images on terminals by using child windows"
|
||||
HOMEPAGE="https://github.com/ueber-devel/ueberzug/"
|
||||
SRC_URI="
|
||||
https://github.com/ueber-devel/ueberzug/archive/refs/tags/${PV}.tar.gz
|
||||
-> ${P}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
COMMON_DEPEND="
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXres
|
||||
"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-python/attrs[${PYTHON_USEDEP}]
|
||||
dev-python/docopt[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
!media-gfx/ueberzugpp
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
x11-base/xorg-proto
|
||||
"
|
||||
|
||||
distutils_enable_tests import-check
|
||||
|
||||
python_test() {
|
||||
rm -rf ueberzug || die #960342
|
||||
distutils-r1_python_test
|
||||
}
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=meson-python
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Command line util to draw images on terminals by using child windows"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit meson-multilib python-any-r1
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit meson-multilib python-any-r1
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit meson-multilib python-any-r1
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
DIST sdl_audiolib-0_p20220622.tar.gz 1138752 BLAKE2B 01e565506b29e922f3eb5ff2705a0614e53c6afd43526d781eb83d86f54dab6692689de51d618e07779fe8c97ee2cfbe3de744f29c1798e3f10205141dcb28ea SHA512 ec6267665fb1a98fcfb91a40ebbd86f7bb14e9fed36509a903ba5408d0f4b8672b19421943de6a4b3d2d0b187f9531dae4b7c9f766ee07f9c1aefa08ab6a51e3
|
||||
DIST sdl_audiolib-0_p20230225.tar.gz 1140197 BLAKE2B bd24494bab94c9eaefc17f88b6e6a43b49e7c857939d67cbcb8893a9a681c7f8b528453bec5290c696e792de757265ff4e8b91e1be87cc1eba67ca9fc948b76e SHA512 ea9f393f933520bb761c1bef13e3ecb4d7ad525917211fcab740d55223e84e4fd69457ff7b784f17a2c4d4e11cf1779fad30d0db8b6474ec79ebeeb0343c56ed
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
https://bugs.gentoo.org/964533
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1 +1 @@
|
||||
-cmake_minimum_required(VERSION 3.8)
|
||||
+cmake_minimum_required(VERSION 3.8...4.3)
|
||||
@@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
SDLAL_COMMIT=b2df2dfeddc692caa01fd1e1769f59b285912b87
|
||||
|
||||
DESCRIPTION="Audio decoding, resampling and mixing library for SDL"
|
||||
HOMEPAGE="https://github.com/realnc/SDL_audiolib/"
|
||||
SRC_URI="
|
||||
https://github.com/realnc/SDL_audiolib/archive/${SDLAL_COMMIT}.tar.gz
|
||||
-> ${P}.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${PN/sdl/SDL}-${SDLAL_COMMIT}
|
||||
|
||||
LICENSE="LGPL-3+ BSD-2 || ( MIT Unlicense )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
IUSE="
|
||||
doc flac fluidsynth libsamplerate modplug mpg123 musepack openmpt
|
||||
opus sndfile soxr vorbis wildmidi
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libfmt:=
|
||||
media-libs/libsdl2[sound]
|
||||
flac? ( media-libs/flac:= )
|
||||
fluidsynth? ( media-sound/fluidsynth:= )
|
||||
libsamplerate? ( media-libs/libsamplerate )
|
||||
modplug? ( media-libs/libmodplug )
|
||||
mpg123? ( media-sound/mpg123-base )
|
||||
musepack? ( media-sound/musepack-tools )
|
||||
openmpt? ( media-libs/libopenmpt )
|
||||
opus? ( media-libs/opusfile[float] )
|
||||
sndfile? ( media-libs/libsndfile )
|
||||
soxr? ( media-libs/soxr )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
wildmidi? ( media-sound/wildmidi )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
doc? ( app-text/doxygen )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0_p20230225-cmake4.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DUSE_DEC_ADLMIDI=no
|
||||
-DUSE_DEC_BASSMIDI=no
|
||||
-DUSE_DEC_FLAC=$(usex flac)
|
||||
-DUSE_DEC_FLUIDSYNTH=$(usex fluidsynth)
|
||||
-DUSE_DEC_LIBOPUSFILE=$(usex opus)
|
||||
-DUSE_DEC_LIBVORBIS=$(usex vorbis)
|
||||
-DUSE_DEC_MODPLUG=$(usex modplug)
|
||||
-DUSE_DEC_MPG123=$(usex mpg123)
|
||||
-DUSE_DEC_MUSEPACK=$(usex musepack)
|
||||
-DUSE_DEC_OPENMPT=$(usex openmpt)
|
||||
-DUSE_DEC_SNDFILE=$(usex sndfile)
|
||||
-DUSE_DEC_WILDMIDI=$(usex wildmidi)
|
||||
-DUSE_DEC_XMP=no
|
||||
-DUSE_RESAMP_SOXR=$(usex soxr)
|
||||
-DUSE_RESAMP_SRC=$(usex libsamplerate)
|
||||
-DWITH_SYSTEM_FMTLIB=yes
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
|
||||
use !doc || doxygen "${BUILD_DIR}"/Doxyfile || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
use doc && dodoc -r "${BUILD_DIR}"/doc/html
|
||||
}
|
||||
@@ -1,2 +1 @@
|
||||
DIST vips-8.18.6.tar.xz 25431000 BLAKE2B 0edf53112cdb8d661ef2de404bc02840bc3474b683c685775f3b458d1ed50b4a5a7b57d938260b0f3bcb2efac3cc809c2c7cd9f5f45233f48e3870b753acdb2d SHA512 0a0127aa941eb8d3ce72d80c43287e402059532ba4f241962fd22ccdb2d525997f5bba6bb4bc89eb28710403cbcff2b6d24df904aaa61639ea5b14742fee91e4
|
||||
DIST vips-8.18.7.tar.xz 25425084 BLAKE2B e13f4b8168428e7b116feae932991d38e09cb67ddd551c8dd3628c55738490d15ebea7a4a67b09c0d332e4954776c5a323ceeebc83c16e9bc32e7a1837ba59f0 SHA512 f1fb30f15c321c686ede573b3d00a850a9b138ea82473a5ad900454923758e0ee593ee9fb724a68aff389b506996719f9220e6f1fb62be375df15a7cb08edfa4
|
||||
|
||||
@@ -1,165 +0,0 @@
|
||||
# Copyright 2023-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
inherit flag-o-matic meson python-any-r1 toolchain-funcs vala
|
||||
|
||||
DESCRIPTION="VIPS Image Processing Library"
|
||||
HOMEPAGE="https://libvips.github.io/libvips/"
|
||||
SRC_URI="https://github.com/libvips/libvips/releases/download/v${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2.1+ MIT"
|
||||
SLOT="0/42" # soname
|
||||
KEYWORDS="amd64 ~arm64 ~riscv ~x86"
|
||||
IUSE="
|
||||
archive deprecated doc exif fftw fits fontconfig graphicsmagick
|
||||
heif +highway imagemagick imagequant +introspection +jpeg jpeg2k
|
||||
jpegxl lcms matio openexr orc pango pdf +png raw svg test tiff
|
||||
vala webp
|
||||
"
|
||||
REQUIRED_USE="
|
||||
doc? ( introspection )
|
||||
fontconfig? ( pango )
|
||||
graphicsmagick? ( imagemagick )
|
||||
test? ( jpeg png webp )
|
||||
vala? ( introspection )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/glib:2
|
||||
dev-libs/expat
|
||||
virtual/libintl
|
||||
archive? ( app-arch/libarchive:= )
|
||||
exif? ( media-libs/libexif )
|
||||
fftw? ( sci-libs/fftw:3.0= )
|
||||
fits? ( sci-libs/cfitsio:= )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
heif? ( media-libs/libheif:= )
|
||||
highway? ( >=dev-cpp/highway-1.0.5 )
|
||||
!highway? (
|
||||
orc? ( dev-lang/orc )
|
||||
)
|
||||
imagemagick? (
|
||||
graphicsmagick? ( media-gfx/graphicsmagick:= )
|
||||
!graphicsmagick? ( media-gfx/imagemagick:= )
|
||||
)
|
||||
imagequant? ( media-gfx/libimagequant )
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2 )
|
||||
jpeg? ( media-libs/libjpeg-turbo:= )
|
||||
jpeg2k? ( media-libs/openjpeg:= )
|
||||
jpegxl? ( media-libs/libjxl:= )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
matio? ( sci-libs/matio:= )
|
||||
openexr? ( media-libs/openexr:= )
|
||||
pango? (
|
||||
x11-libs/cairo
|
||||
x11-libs/pango
|
||||
)
|
||||
pdf? (
|
||||
app-text/poppler[cairo]
|
||||
x11-libs/cairo
|
||||
)
|
||||
png? ( media-libs/libpng:= )
|
||||
raw? ( media-libs/libraw:= )
|
||||
svg? (
|
||||
gnome-base/librsvg:2
|
||||
virtual/zlib:=
|
||||
x11-libs/cairo
|
||||
)
|
||||
tiff? ( media-libs/tiff:= )
|
||||
webp? ( media-libs/libwebp:= )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
pango? ( x11-base/xorg-proto )
|
||||
pdf? ( x11-base/xorg-proto )
|
||||
svg? ( x11-base/xorg-proto )
|
||||
test? (
|
||||
tiff? ( media-libs/tiff[jpeg] )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/glib-utils
|
||||
sys-devel/gettext
|
||||
doc? (
|
||||
${PYTHON_DEPS}
|
||||
app-text/doxygen
|
||||
dev-util/gi-docgen
|
||||
media-gfx/graphviz
|
||||
)
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use doc && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
use vala && vala_setup
|
||||
|
||||
sed -i "/subdir('fuzz')/d" meson.build || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# workaround for segfault issue in LLVM lto (bug #921728)
|
||||
tc-is-clang && filter-lto
|
||||
|
||||
local emesonargs=(
|
||||
$(meson_use deprecated)
|
||||
$(meson_use doc cpp-docs)
|
||||
$(meson_use doc docs)
|
||||
-Dexamples=false
|
||||
$(meson_use vala vapi)
|
||||
-Dcgif=disabled # not packaged, and not used to view gif (only saving)
|
||||
$(meson_feature archive)
|
||||
$(meson_feature exif)
|
||||
$(meson_feature fftw)
|
||||
$(meson_feature fits cfitsio)
|
||||
$(meson_feature fontconfig)
|
||||
$(meson_feature heif)
|
||||
$(meson_feature highway)
|
||||
$(meson_feature imagemagick magick)
|
||||
-Dmagick-package=$(usex graphicsmagick GraphicsMagick MagickCore)
|
||||
$(meson_feature imagequant)
|
||||
$(meson_feature introspection)
|
||||
$(meson_feature jpeg)
|
||||
$(meson_feature jpeg2k openjpeg)
|
||||
$(meson_feature jpegxl jpeg-xl)
|
||||
$(meson_feature lcms)
|
||||
$(meson_feature matio)
|
||||
-Dnifti=disabled # not packaged
|
||||
$(meson_feature openexr)
|
||||
-Dopenslide=disabled # not packaged
|
||||
$(meson_feature orc) # no-op if USE=highway is set
|
||||
$(meson_feature pango pangocairo)
|
||||
-Dpdfium=disabled # not packaged, can use poppler instead
|
||||
$(meson_feature png)
|
||||
$(meson_feature pdf poppler)
|
||||
-Dquantizr=disabled # not packaged, can use imagequant instead
|
||||
$(meson_feature raw)
|
||||
-Dspng=disabled # not packaged, and libpng is preferred
|
||||
$(meson_feature svg rsvg)
|
||||
$(meson_feature tiff)
|
||||
-Duhdr=disabled # not packaged
|
||||
$(meson_feature webp)
|
||||
$(meson_feature svg zlib) # zlib is currently only used by svgload.c
|
||||
)
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
if use doc; then
|
||||
mkdir -p "${ED}"/usr/share/doc/${PF}/html || die
|
||||
mv -- "${ED}"/usr/share/doc/{vips,${PF}/html/vips} || die
|
||||
mv -- "${ED}"/usr/share/doc/{vips-cpp/html,${PF}/html/vips-cpp} || die
|
||||
rmdir -- "${ED}"/usr/share/doc/vips-cpp || die
|
||||
fi
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit flag-o-matic meson python-any-r1 toolchain-funcs vala
|
||||
|
||||
DESCRIPTION="VIPS Image Processing Library"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
inherit flag-o-matic python-single-r1 waf-utils multilib-minimal
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
inherit flag-o-matic python-single-r1 waf-utils multilib-minimal
|
||||
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
DIST xmms2-0.9.6.tar.xz 1742224 BLAKE2B 9d91436fb21473147622bd1c2026a8c9e0b620149d0c4467ead4eb6f5fcd44e71c46c76602098eb83a83a14cd975932c1afbb0e41eb16788ea553f538225c488 SHA512 faaf0e9112b4a0aef91e002d78b9a3c90917f46aadade0bcbd96d6f0e161438a7c1055e6d47fc6a02a1ae73254cdbb4e32db0197764e331e029fbc7c11f7d2ab
|
||||
DIST xmms2-0.9.7.tar.xz 1742544 BLAKE2B 2973743ae3c29c01880efe15e134ed6489eb7fa8a45e6031ecf624aac41b342c176703507971028a8e12ed2b92d3b64479c96bcb16df9e888bb783453e25626e SHA512 48919c58775fc2241a7fcabfb7baabb79988102468b6329ebe2c12184b5da7ab318933b264c937c28b56a0f2fd5898b571a3c760f15ae3e5ef4992a8e4d7777c
|
||||
|
||||
@@ -1,216 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
inherit flag-o-matic optfeature perl-functions python-single-r1 waf-utils
|
||||
|
||||
DESCRIPTION="X(cross)platform Music Multiplexing System, next generation of the XMMS player"
|
||||
HOMEPAGE="https://github.com/XMMS2"
|
||||
SRC_URI="https://github.com/xmms2/xmms2-devel/releases/download/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~loong ppc ~riscv x86"
|
||||
|
||||
# IUSE static map to be passed to --with-{optionals,plugins}=opt1,opt2,...
|
||||
# flag:opt = `usev flag opt`, opt = `usev opt`, :opt = `echo opt`
|
||||
# (if have a use for some of these disabled features, please file a bug)
|
||||
XMMS2_OPTIONALS=(
|
||||
cxx:xmmsclient++,xmmsclient++-glib :launcher mlib-update:medialib-updater
|
||||
:nycli perl :pixmaps python server:s4 test:tests libvisual:vistest
|
||||
# disabled: et,mdns,migrate-collections,ruby,sqlite2s4,xmmsclient-cf,xmmsclient-ecore
|
||||
)
|
||||
XMMS2_PLUGINS=(
|
||||
aac:faad airplay alsa ao :asx cdda :cue curl :diskwrite :equalizer
|
||||
ffmpeg:apefile,asf,avcodec,flv,tta :file flac fluidsynth:fluidsynth,mid1,midsquash
|
||||
gme :html ices :icymetaint :id3v2 jack :karaoke :m3u mac +mad modplug
|
||||
mp3:mpg123 :mp4 musepack :normalize :null :nulstripper opus oss :pls
|
||||
pulseaudio:pulse :replaygain samba sid sndfile speex tremor vocoder +vorbis
|
||||
:wave wavpack :xml xml:rss,xspf zeroconf:daap
|
||||
# disabled: coreaudio,gvfs,mms,nms,ofa,sc68,sun,waveout
|
||||
)
|
||||
|
||||
IUSE="
|
||||
${XMMS2_OPTIONALS[@]%:*}
|
||||
${XMMS2_PLUGINS[@]%:*}
|
||||
+server
|
||||
"
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
test? ( server )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/glib:2
|
||||
sys-libs/readline:=
|
||||
libvisual? (
|
||||
media-libs/libsdl[opengl,video]
|
||||
media-libs/libvisual:0.4
|
||||
)
|
||||
server? (
|
||||
aac? ( media-libs/faad2 )
|
||||
airplay? ( dev-libs/openssl:= )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
ao? ( media-libs/libao )
|
||||
cdda? (
|
||||
dev-libs/libcdio-paranoia:=
|
||||
dev-libs/libcdio:=
|
||||
media-libs/libdiscid
|
||||
)
|
||||
curl? ( net-misc/curl )
|
||||
ffmpeg? ( media-video/ffmpeg:= )
|
||||
flac? ( media-libs/flac:= )
|
||||
fluidsynth? ( media-sound/fluidsynth:= )
|
||||
gme? ( media-libs/game-music-emu )
|
||||
ices? (
|
||||
media-libs/libogg
|
||||
media-libs/libshout
|
||||
media-libs/libvorbis
|
||||
)
|
||||
jack? ( virtual/jack )
|
||||
mac? ( <media-sound/mac-4.12 )
|
||||
mad? ( media-libs/libmad )
|
||||
modplug? ( media-libs/libmodplug )
|
||||
mp3? ( media-sound/mpg123-base )
|
||||
musepack? ( media-sound/musepack-tools )
|
||||
opus? ( media-libs/opusfile )
|
||||
pulseaudio? ( media-libs/libpulse )
|
||||
samba? ( net-fs/samba )
|
||||
sid? ( media-libs/libsidplay:2 )
|
||||
sndfile? ( media-libs/libsndfile )
|
||||
speex? (
|
||||
media-libs/libogg
|
||||
media-libs/speex
|
||||
)
|
||||
tremor? ( media-libs/tremor )
|
||||
vocoder? (
|
||||
media-libs/libsamplerate
|
||||
sci-libs/fftw:3.0=
|
||||
)
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
wavpack? ( media-sound/wavpack )
|
||||
xml? ( dev-libs/libxml2:= )
|
||||
zeroconf? (
|
||||
net-dns/avahi[mdnsresponder-compat]
|
||||
net-misc/curl
|
||||
)
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
perl? (
|
||||
dev-lang/perl
|
||||
dev-perl/glib-perl
|
||||
virtual/perl-Carp
|
||||
virtual/perl-IO
|
||||
virtual/perl-Scalar-List-Utils
|
||||
)
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep 'dev-python/pygobject[${PYTHON_USEDEP}]')
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
cxx? ( dev-libs/boost )
|
||||
test? ( dev-util/cunit )
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
perl? ( dev-perl/Pod-Parser )
|
||||
python? ( $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]') )
|
||||
"
|
||||
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
avcodec_free_frame # succcessfully detects that this is gone in newer ffmpeg
|
||||
)
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.9.1-cpp-client.patch
|
||||
"${FILESDIR}"/${PN}-0.9.1-faad.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# meant to be configured, but give a default for out-of-the-box midi
|
||||
sed -e "s|/path/to/.*sf2|${EPREFIX}/usr/share/sounds/sf2/FluidR3_GM.sf2|" \
|
||||
-i src/plugins/fluidsynth/fluidsynth.c || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
filter-lto # `xmms2 add somefile` breaks with lto + fortify=2
|
||||
|
||||
local wafargs=(
|
||||
--boost-includes="${ESYSROOT}"/usr/include
|
||||
--with-target-platform="${CHOST}"
|
||||
--without-valgrind
|
||||
)
|
||||
|
||||
xmms2_flag() {
|
||||
local IFS=:
|
||||
set -- ${1#+}
|
||||
|
||||
if [[ ${1} ]]; then
|
||||
usev ${1} ,${2:-${1}}
|
||||
else
|
||||
echo ,${2}
|
||||
fi
|
||||
}
|
||||
|
||||
local flag optionals plugins
|
||||
|
||||
if use server; then
|
||||
for flag in "${XMMS2_PLUGINS[@]}"; do
|
||||
plugins+=$(xmms2_flag ${flag})
|
||||
done
|
||||
else
|
||||
wafargs+=( --without-xmms2d )
|
||||
fi
|
||||
|
||||
for flag in "${XMMS2_OPTIONALS[@]}"; do
|
||||
optionals+=$(xmms2_flag ${flag})
|
||||
done
|
||||
|
||||
wafargs+=(
|
||||
# pass even if empty to avoid automagic
|
||||
--with-optionals=${optionals:1}
|
||||
--with-plugins=${plugins:1}
|
||||
)
|
||||
|
||||
if use perl; then
|
||||
perl_set_version
|
||||
wafargs+=( --with-perl-archdir="${ARCH_LIB}" )
|
||||
fi
|
||||
|
||||
waf-utils_src_configure "${wafargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
waf-utils_src_compile --notests
|
||||
}
|
||||
|
||||
src_test() {
|
||||
waf-utils_src_compile --alltests
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( AUTHORS README.mdown *.ChangeLog )
|
||||
waf-utils_src_install --without-ldconfig --notests
|
||||
|
||||
use libvisual && dobin _build_/src/clients/vistest/xmms2-libvisual
|
||||
|
||||
use python && python_optimize
|
||||
|
||||
# to avoid editing waftools/man.py (use find given not always installed)
|
||||
find "${ED}" -type f -name '*.gz' -exec gzip -d {} + || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use fluidsynth && optfeature "the default MIDI soundfont" media-sound/fluid-soundfont
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
inherit flag-o-matic optfeature perl-functions python-single-r1 waf-utils
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-1 luajit )
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit flag-o-matic lua-single meson optfeature pax-utils python-single-r1 xdg
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-1 luajit )
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit flag-o-matic lua-single meson optfeature pax-utils python-single-r1 xdg
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
DIST yt-dlp-2026.10.21.tar.gz 6028705 BLAKE2B 5b20903c6c69fca97d27e238addf8cfbf810eb7fa511141b4928d40679d55e107ded870f02ceed6b00cec70db4eb0eaecf37a64b4ddb2a0b614a340b57cab5ec SHA512 339f0af016fe4169a8d7133dd12809b7bb7a56cb954b77cf31c452958d104318b94a3fdc47b4c6c2d793b06b4ba41e4809a2805612ebf1b84a0e0197c8e5b4fa
|
||||
DIST yt-dlp-2026.10.26.tar.gz 6019106 BLAKE2B a545d5e75587db167281578020080811311dc4944ed604619562fe1ee8e9b43bf76c3349e4c06249d48f483860a65f1c39778f7f22ec17959405b0f82aa473c7 SHA512 10b2d3c272396aaae9a7a56b6b084133db536be7c00efb4d1cc0dbf84d845dbcb2592a2f274929c90face898a59b2708ed6bbec195b71b989496a25f1860c339
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
https://github.com/yt-dlp/yt-dlp/issues/17951
|
||||
https://github.com/yt-dlp/yt-dlp/pull/17952
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -479 +479 @@
|
||||
-[tool.pytest]
|
||||
+[tool.pytest.ini_options]
|
||||
@@ -1,123 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
inherit distutils-r1 optfeature shell-completion wrapper
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/yt-dlp/yt-dlp.git"
|
||||
else
|
||||
SRC_URI="
|
||||
https://github.com/yt-dlp/yt-dlp/releases/download/${PV}/${PN}.tar.gz
|
||||
-> ${P}.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${PN}
|
||||
KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv x86 ~arm64-macos ~x64-macos"
|
||||
fi
|
||||
|
||||
DESCRIPTION="youtube-dl fork with additional features and fixes"
|
||||
HOMEPAGE="https://github.com/yt-dlp/yt-dlp/"
|
||||
|
||||
LICENSE="Unlicense"
|
||||
SLOT="0"
|
||||
IUSE="+deno"
|
||||
|
||||
# deno is technically a optfeature, but it is needed for proper YouTube
|
||||
# support and most users would expect that to work out-of-the-box
|
||||
# (there are alternatives like nodejs but upstream disables support by
|
||||
# default due to security concerns, users are on their own for these)
|
||||
#
|
||||
# yt-dlp-ejs requires pinning due to yt-dlp checking sha512sum of .js,
|
||||
# live ebuild users may need to use the self-updater method if out of
|
||||
# sync as there are no plans for a yt-dlp-ejs live ebuild at the moment
|
||||
# (should "typically" be updated in Gentoo within 24h if willing to wait)
|
||||
RDEPEND="
|
||||
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
||||
=dev-python/yt-dlp-ejs-0.8*[${PYTHON_USEDEP}]
|
||||
deno? ( >=dev-lang/deno-bin-2.9.8 )
|
||||
"
|
||||
BDEPEND="
|
||||
test? ( media-video/ffmpeg[webp] )
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
# ignoring PG0305 only in live, properly pre-generated in releases
|
||||
# -- manpage tarballs in live would become outdated and pandoc has
|
||||
# limited arch availability to be unconditional
|
||||
IUSE+=" man"
|
||||
BDEPEND+=" man? ( virtual/pandoc )"
|
||||
fi
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_compile() {
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
# generate missing files in live, not in compile_all nor prepare
|
||||
# given need lazy before compile and it needs a usable ${PYTHON}
|
||||
emake completions lazy-extractors $(usev man yt-dlp.1)
|
||||
|
||||
"${EPYTHON}" devscripts/update-version.py || die
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# fails with FEATURES=network-sandbox
|
||||
test/test_networking.py::TestHTTPRequestHandler::test_connect_timeout
|
||||
# fails with FEATURES=distcc, bug #915614
|
||||
test/test_networking.py::TestYoutubeDLNetworking::test_proxy\[None-expected2\]
|
||||
# websockets tests break easily depending on dev-python/websockets
|
||||
# version and, as far as I know, most users do not use/need it --
|
||||
# thus being neither in RDEPEND nor optfeature (bug #940630,#950030)
|
||||
test/test_websockets.py
|
||||
)
|
||||
|
||||
epytest -m 'not download'
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
dodoc README.md Changelog.md supportedsites.md
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
use man && doman yt-dlp.1
|
||||
else
|
||||
doman yt-dlp.1
|
||||
rm -r -- "${ED}"/usr/share/doc/yt_dlp || die
|
||||
fi
|
||||
|
||||
dobashcomp completions/bash/yt-dlp
|
||||
dofishcomp completions/fish/yt-dlp.fish
|
||||
dozshcomp completions/zsh/_yt-dlp
|
||||
|
||||
make_wrapper youtube-dl "yt-dlp --compat-options youtube-dl"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "various features (merging tracks, streamed content)" media-video/ffmpeg
|
||||
has_version media-video/atomicparsley || # allow fallback but don't advertise
|
||||
optfeature "embedding metadata thumbnails in MP4/M4A files" media-libs/mutagen
|
||||
optfeature "decrypting cookies from Chromium-based browsers" dev-python/secretstorage
|
||||
|
||||
if [[ ! ${REPLACING_VERSIONS} ]]; then
|
||||
elog
|
||||
elog 'A wrapper using "yt-dlp --compat-options youtube-dl" was installed'
|
||||
elog 'as "youtube-dl". This is strictly for compatibility and it is'
|
||||
elog 'recommended to use "yt-dlp" directly, it may be removed in the future.'
|
||||
fi
|
||||
|
||||
if use !deno; then
|
||||
ewarn
|
||||
ewarn "USE=deno is disabled, using ${PN} with some websites like YouTube may"
|
||||
ewarn "not function properly. If your profile does not allow enabling this USE,"
|
||||
ewarn "can use net-libs/nodejs instead but it is disabled by default due to"
|
||||
ewarn "security(!) concerns and requires manually passing '--js-runtimes node'"
|
||||
ewarn "(to be permanent: echo '--js-runtimes node' >> ~/.config/yt-dlp/config)"
|
||||
fi
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit distutils-r1 optfeature shell-completion wrapper
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
@@ -55,6 +55,10 @@ fi
|
||||
EPYTEST_PLUGINS=()
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-pytest-9.2.patch
|
||||
)
|
||||
|
||||
python_compile() {
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
# generate missing files in live, not in compile_all nor prepare
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
inherit distutils-r1 optfeature shell-completion wrapper
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
DIST qutebrowser-3.6.3.tar.gz 6093285 BLAKE2B 1e6919ebfca492bde901b3e9d01aa2e6d9e9f840be747545329c09b76085a41fc70bad592103b7610913184e8466846f28e4d7bcb335ccb4ab1d910e33193771 SHA512 d1965d775128b466d452d3239f232711860180c138fc223c9b7b6af11aa8ff06d7b8100f1d63257552efcc0c94ddcd99cc0fb3a431f04f0c8dcc80550a9fcfd8
|
||||
DIST qutebrowser-3.6.3.tar.gz.asc 659 BLAKE2B 9cb49abf4aaacd81184c5675c239e91b032cdbfd89c4ae687c7e8483e098f63c5ab0e5ca30d4697979288135fcde41bc1266d117f7c0475e1ad9798d72cc5a5b SHA512 c4263aba3832c58598d9eddf65316955bb02ce7fd46df1640e4a2803c454e9584a326e19559766478987c3467f971b6631889d8597dc5db720ed600e787d3b3e
|
||||
DIST qutebrowser-3.7.0.tar.gz 6095193 BLAKE2B f151e3e1846ecf60e76862f60b26b5d4d3a12cb24febb2fdc78dc23683133d6e6d5a33eb63fb2965c31050222d145ffd25801091308990896e342da8f73b5906 SHA512 89f0f48043b0444219b6eaa2dc57c3044ee10b7892544497efec71b532f5a73d2edb5856a5c9e9ffe75692126df6bc5edf87fa839b4adbbf86d29f89d6906537
|
||||
DIST qutebrowser-3.7.0.tar.gz.asc 659 BLAKE2B b8a0c747c3e0e19a75c55e2e0b17e626a12294d97694f26b0f6caeec6605682fc6cce7012705b33bf227cc8ad5da7ad35e26a9926229802c8a933872dbea0110 SHA512 fb1c667da5a4eda2df7a811b1b48574f19e4b4378b4b87f7464c22942885b16f9d8af13ac042123aea173a774a42388b744a7e2164c0f1e58ac4eb9ca23bec20
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
SQLITE_KEYWORDS is new in python-3.15 and the test just needs
|
||||
to know about it.
|
||||
--- a/tests/unit/misc/test_sql.py
|
||||
+++ b/tests/unit/misc/test_sql.py
|
||||
@@ -158,4 +158,5 @@
|
||||
"SQLITE_IGNORE",
|
||||
"SQLITE_INSERT",
|
||||
+ "SQLITE_KEYWORDS",
|
||||
"SQLITE_PRAGMA",
|
||||
"SQLITE_READ",
|
||||
@@ -1,167 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{13..14} )
|
||||
inherit distutils-r1 xdg
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/qutebrowser/qutebrowser.git"
|
||||
else
|
||||
inherit verify-sig
|
||||
SRC_URI="
|
||||
https://github.com/qutebrowser/qutebrowser/releases/download/v${PV}/${P}.tar.gz
|
||||
verify-sig? ( https://github.com/qutebrowser/qutebrowser/releases/download/v${PV}/${P}.tar.gz.asc )
|
||||
"
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/qutebrowser.gpg
|
||||
KEYWORDS="amd64 ~arm64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Keyboard-driven, vim-like browser based on Python and Qt"
|
||||
HOMEPAGE="https://qutebrowser.org/"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
IUSE="+adblock pdf widevine"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pyqt6-webengine[${PYTHON_USEDEP},widgets]
|
||||
dev-python/pyqt6[${PYTHON_USEDEP},dbus,gui,network,opengl,printsupport,qml,sql,widgets]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/jinja2[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/zipp[${PYTHON_USEDEP}]
|
||||
dev-qt/qtbase:6[icu,sqlite]
|
||||
adblock? ( dev-python/adblock[${PYTHON_USEDEP}] )
|
||||
pdf? ( www-plugins/pdfjs )
|
||||
widevine? ( www-plugins/chrome-binary-plugins )
|
||||
')
|
||||
"
|
||||
BDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
test? (
|
||||
dev-python/pyqt6[testlib]
|
||||
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
|
||||
dev-python/cheroot[${PYTHON_USEDEP}]
|
||||
dev-python/flask[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/tldextract[${PYTHON_USEDEP}]
|
||||
)
|
||||
')
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
BDEPEND+=" app-text/asciidoc"
|
||||
else
|
||||
BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-qutebrowser-20251024 )"
|
||||
fi
|
||||
|
||||
EPYTEST_PLUGINS=( hypothesis pytest-{bdd,mock,qt,rerunfailures,xvfb} )
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
if use pdf; then
|
||||
# does not hurt to enable by default if it was explicitly requested
|
||||
sed -e '/^content.pdfjs:/,+1s/false/true/' \
|
||||
-i ${PN}/config/configdata.yml || die
|
||||
fi
|
||||
|
||||
# let eclass handle python
|
||||
sed -i '/setup.py/d' misc/Makefile || die
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
# call asciidoc(1) rather than the single target python module
|
||||
sed -e '/cmdline = /s/= .*/= ["asciidoc"]/' \
|
||||
-i scripts/asciidoc2html.py || die
|
||||
|
||||
"${EPYTHON}" scripts/asciidoc2html.py || die
|
||||
fi
|
||||
|
||||
if use test; then
|
||||
# skip unnecessary (for us) pytest plugins, and ignore Qt's
|
||||
# warnings that tend to newly appear with new versions
|
||||
sed -e '/pytest-benchmark/d' -e 's/--benchmark[^ ]*//' \
|
||||
-e '/pytest-instafail/d' -e 's/--instafail//' \
|
||||
-e '/qt_log_level_fail/s/WARNING/CRITICAL/' \
|
||||
-i pytest.ini || die
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
# likewise, needs vulture
|
||||
rm tests/unit/scripts/test_run_vulture.py || die
|
||||
else
|
||||
# https://github.com/qutebrowser/qutebrowser/issues/7620
|
||||
rm tests/unit/scripts/test_problemmatchers.py || die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -x PYTEST_QT_API=pyqt6
|
||||
|
||||
local EPYTEST_DESELECT=(
|
||||
# end2end/IPC tests are broken with "Name error" if socket path is over
|
||||
# ~108 characters (>124 in /var/tmp/portage) due to Linux limitations,
|
||||
# skip rather than bother using /tmp+cleanup over ${T} (end2end tests
|
||||
# are important, but the other tests should be enough for downstream)
|
||||
tests/end2end
|
||||
tests/unit/misc/test_ipc.py
|
||||
# python eclasses provide a fake "failing" python2 and trips this test
|
||||
tests/unit/misc/test_checkpyver.py::test_old_python
|
||||
# not worth running dbus over
|
||||
tests/unit/browser/test_notification.py::TestDBus
|
||||
# fails in ebuild, seems due to saving fake downloads in the wrong location
|
||||
tests/unit/browser/webengine/test_webenginedownloads.py::TestDataUrlWorkaround
|
||||
# may fail if environment is very large (bug #819393)
|
||||
tests/unit/commands/test_userscripts.py::test_custom_env\[_POSIXUserscriptRunner\]
|
||||
# may fail if chromium version is unrecognized (aka newer qtwebengine)
|
||||
tests/unit/utils/test_version.py
|
||||
# no longer XFAIL due to being fixed in python
|
||||
tests/unit/utils/test_urlmatch.py::test_invalid_patterns\[host-ipv6-two-closing\]
|
||||
)
|
||||
|
||||
local epytestargs=(
|
||||
# prefer pytest-xvfb over virtx given same upstream and is expected
|
||||
-p xvfb
|
||||
# skip warning tests broken by -Wdefault, and benchmarks
|
||||
-k 'not _bench and not _matches_tree and not _warning'
|
||||
# override eclass' settings, tempdirs are re-used by Qt
|
||||
-o tmp_path_retention_policy=all
|
||||
)
|
||||
|
||||
epytest "${epytestargs[@]}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
emake -f misc/Makefile DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
|
||||
|
||||
rm -- "${ED}"/usr/share/${PN}/scripts/{mkvenv,utils}.py || die
|
||||
fperms -x /usr/share/${PN}/{scripts/cycle-inputs.js,userscripts/README.md}
|
||||
python_fix_shebang "${ED}"/usr/share/${PN}
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
if [[ ! ${REPLACING_VERSIONS} ]]; then
|
||||
elog "Note that optional scripts in ${EROOT}/usr/share/${PN}/{user,}scripts"
|
||||
elog "have additional dependencies not covered by this ebuild, for example"
|
||||
elog "view_in_mpv needs media-video/mpv[lua] and net-misc/yt-dlp."
|
||||
fi
|
||||
|
||||
if has_version 'dev-qt/qtwebengine:6[bindist]'; then
|
||||
ewarn
|
||||
ewarn "USE=bindist is set on dev-qt/qtwebengine, be warned that this"
|
||||
ewarn "will prevent playback of proprietary media formats (e.g. h264)."
|
||||
fi
|
||||
}
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{13..14} )
|
||||
PYTHON_COMPAT=( python3_{13..15} )
|
||||
inherit distutils-r1 xdg
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
@@ -66,6 +66,10 @@ fi
|
||||
EPYTEST_PLUGINS=( hypothesis pytest-{bdd,mock,qt,rerunfailures,xvfb} )
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.7.0-py315.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{13..14} )
|
||||
PYTHON_COMPAT=( python3_{13..15} )
|
||||
inherit distutils-r1 xdg
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
@@ -66,6 +66,10 @@ fi
|
||||
EPYTEST_PLUGINS=( hypothesis pytest-{bdd,mock,qt,rerunfailures,xvfb} )
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.7.0-py315.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
DIST kitty-0.48.2.tar.xz 11751860 BLAKE2B 59b5c3fef9448918dc9f6d16a351b16973a99cceac0c08457a362c66a6c8ed9854ef1ce816b099cdbdb76be60ff506562b209cefec510a83b630989c7eb3389b SHA512 3db48d38f47e92c37b715955afb60dbeb7e1f70c0911f4ed37491b07c701f9819bea561efd0f99804e5b6358e31ec74d971020c8bea0f587185cec71ba5c183f
|
||||
DIST kitty-0.49.1.tar.xz 11992368 BLAKE2B 5a3e46276c5295f47438bd9cde9d05a5d9d61a189776390c1b92c23cb8a86c46bdf04df318952ac31f9ec891616db1df60b219894189e4cd0202015ba779cf28 SHA512 243be7c47d27b1345efb34019f791549c2c0c211cfc51ab7b209d96563694327ccf14f9ff2bd8e990424299c89a8a007f20768c463601b59aece74ce94c8f51b
|
||||
DIST kitty-0.49.2.tar.xz 12013584 BLAKE2B b0e56149d0cfc34b86bf13c1b516e56180a64e899a881ab976f43c1fd8b8fa8ec430f31458d3b49af74fda981def58b7505708ddea7bac14d1a7e252db38037f SHA512 0eb78f5a03ce7befaaa3578d673ee37c90db0f8c096d492062fbbccbf8f861701fc98999680dc9a693b015461b75e7162191fd13ad3f16e8d7f324afb903750d
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
|
||||
else
|
||||
SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/kitty-${PV}.tar.xz"
|
||||
S=${WORKDIR}/kitty-${PV}
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Shell integration scripts for kitty, a GPU-based terminal emulator"
|
||||
HOMEPAGE="https://sw.kovidgoyal.net/kitty/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
RESTRICT="test" # intended to be ran on the full kitty package
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
# split from the kitty package to allow installing individually on
|
||||
# remote machines and have shell integration scripts be auto-loaded
|
||||
insinto /etc/bash/bashrc.d
|
||||
newins shell-integration/bash/kitty.bash 90-kitty.bash
|
||||
|
||||
insinto /usr/share/fish
|
||||
doins -r shell-integration/fish/vendor_conf.d
|
||||
|
||||
# unfortunately zsh currently lacks a bashrc.d equivalent, copy
|
||||
# to docdir for now so users can use it manually if needed (also at
|
||||
# /usr/lib*/kitty/shell-integration/zsh if kitty is installed)
|
||||
docinto zsh
|
||||
docompress -x /usr/share/doc/${PF}/zsh
|
||||
dodoc shell-integration/zsh/{.zshenv,kitty-integration,kitty.zsh}
|
||||
}
|
||||
@@ -1,3 +1,2 @@
|
||||
DIST kitty-0.48.2.tar.xz 11751860 BLAKE2B 59b5c3fef9448918dc9f6d16a351b16973a99cceac0c08457a362c66a6c8ed9854ef1ce816b099cdbdb76be60ff506562b209cefec510a83b630989c7eb3389b SHA512 3db48d38f47e92c37b715955afb60dbeb7e1f70c0911f4ed37491b07c701f9819bea561efd0f99804e5b6358e31ec74d971020c8bea0f587185cec71ba5c183f
|
||||
DIST kitty-0.49.1.tar.xz 11992368 BLAKE2B 5a3e46276c5295f47438bd9cde9d05a5d9d61a189776390c1b92c23cb8a86c46bdf04df318952ac31f9ec891616db1df60b219894189e4cd0202015ba779cf28 SHA512 243be7c47d27b1345efb34019f791549c2c0c211cfc51ab7b209d96563694327ccf14f9ff2bd8e990424299c89a8a007f20768c463601b59aece74ce94c8f51b
|
||||
DIST kitty-0.49.2.tar.xz 12013584 BLAKE2B b0e56149d0cfc34b86bf13c1b516e56180a64e899a881ab976f43c1fd8b8fa8ec430f31458d3b49af74fda981def58b7505708ddea7bac14d1a7e252db38037f SHA512 0eb78f5a03ce7befaaa3578d673ee37c90db0f8c096d492062fbbccbf8f861701fc98999680dc9a693b015461b75e7162191fd13ad3f16e8d7f324afb903750d
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
|
||||
else
|
||||
SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/kitty-${PV}.tar.xz"
|
||||
S=${WORKDIR}/kitty-${PV}
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Terminfo for kitty, a GPU-based terminal emulator"
|
||||
HOMEPAGE="https://sw.kovidgoyal.net/kitty/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
RESTRICT="test" # intended to be ran on the full kitty package
|
||||
|
||||
BDEPEND="sys-libs/ncurses"
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
dodir /usr/share/terminfo
|
||||
tic -xo "${ED}"/usr/share/terminfo terminfo/kitty.terminfo || die
|
||||
}
|
||||
@@ -1,9 +1,6 @@
|
||||
DIST kitty-0.48.2-vendor.tar.xz 2451068 BLAKE2B 9d523e02346b74bcaadb73eb4a9759ac0db66795e47203d5e4c770a0f7c404e35ba034599f1052387a5647aa919c282c9620df6189acaae665512ddf30bd878e SHA512 9a50f1b7c89edde3b7e98f2d421cc048ed2ff4ead6098c99ac8cb00a1746399a8a2ccbc577f681f88e8e5e07c001fac3ec7ed721d2bb21ce378463d742e535e3
|
||||
DIST kitty-0.48.2.tar.xz 11751860 BLAKE2B 59b5c3fef9448918dc9f6d16a351b16973a99cceac0c08457a362c66a6c8ed9854ef1ce816b099cdbdb76be60ff506562b209cefec510a83b630989c7eb3389b SHA512 3db48d38f47e92c37b715955afb60dbeb7e1f70c0911f4ed37491b07c701f9819bea561efd0f99804e5b6358e31ec74d971020c8bea0f587185cec71ba5c183f
|
||||
DIST kitty-0.48.2.tar.xz.sig 566 BLAKE2B b59dd7b5986fc696fd29028b56e9ddcac79954b161142ed28cfbe046dbc4d5e9490862ec75e7e282d8d726494e35cda5a57a1cf22ddc99370913f18d7beb6bd0 SHA512 9126cea1d0fbe4935786656c62df1e73c8194a375a5bc25fc0e43e9d527c85423e9b2dd67459d64283a372416a287665360935b51c2107224f4463941e097014
|
||||
DIST kitty-0.49.1-vendor.tar.xz 2510772 BLAKE2B 8b97de473b098383fcc3cbaa50905f94b67ec257875b5ebc86808625be68eaf07909d3bff72eceeff8c0a66685bee31fb577d407bd2b01450e72279e9351607c SHA512 3bbf30975901dc691ee5ef3afe9e382c73cfe44569f6ee8262b20771b70755806adfb247e92973c489cfeafe08903054d20de5c3cfdb0e1ef1b3b70d434eb719
|
||||
DIST kitty-0.49.1.tar.xz 11992368 BLAKE2B 5a3e46276c5295f47438bd9cde9d05a5d9d61a189776390c1b92c23cb8a86c46bdf04df318952ac31f9ec891616db1df60b219894189e4cd0202015ba779cf28 SHA512 243be7c47d27b1345efb34019f791549c2c0c211cfc51ab7b209d96563694327ccf14f9ff2bd8e990424299c89a8a007f20768c463601b59aece74ce94c8f51b
|
||||
DIST kitty-0.49.1.tar.xz.sig 566 BLAKE2B 86cb237c0f0a27897e21e948eb5e94901fa7fe1f27948d09e359c6a64b265add6854ebcfe26d997b3ccf69ac6c3ad77d243fbabdf8544cd3eb8d5738ff49eb30 SHA512 0f7f8e0920152d6cbc40aecc931232f4d9bdb8d184fe81bb6c204038399a3413823228dfaf142df15956c99e750d893ad4692b8ea71b6729866702f3254d7f6d
|
||||
DIST kitty-0.49.2-vendor.tar.xz 2510412 BLAKE2B 07bbb9955e7de7210ab179c406fc0d9da374362aa192f0f90027a2efe808ffb4474d35f6f2a97fcf2c059224b36cbe56a4cc90338b6b2a668ddc811c8c78bb10 SHA512 8dafa7ec71ef0672053c1788764aeea1204321fd432d95b6e190add00e3af3ae4f6970c2572347e65b60d5bd3693525660c045ae41145371f87291ad76c548e2
|
||||
DIST kitty-0.49.2.tar.xz 12013584 BLAKE2B b0e56149d0cfc34b86bf13c1b516e56180a64e899a881ab976f43c1fd8b8fa8ec430f31458d3b49af74fda981def58b7505708ddea7bac14d1a7e252db38037f SHA512 0eb78f5a03ce7befaaa3578d673ee37c90db0f8c096d492062fbbccbf8f861701fc98999680dc9a693b015461b75e7162191fd13ad3f16e8d7f324afb903750d
|
||||
DIST kitty-0.49.2.tar.xz.sig 566 BLAKE2B 1f48dc8fa5ff15b23ce044a905c50adae695b0c50de18d6da7c08b221cbdadb17579e6119e44f7dbd811092f8832716d70d8137efaaeaaeccae44b51c1686ea1 SHA512 c0dda64a300016848250090424b3eeec009f8586d368888887a9cf39b10ca8b3d8f17ad9d0ed59bf846851e3ac70d1c36e43b4d5cfec64b0fe906c2b4e1c0518
|
||||
|
||||
@@ -1,211 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
inherit edo go-env optfeature multiprocessing python-single-r1
|
||||
inherit shell-completion toolchain-funcs xdg
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
|
||||
else
|
||||
inherit verify-sig
|
||||
SRC_URI="
|
||||
https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz
|
||||
https://distfiles.gentoo.org/pub/dev/ionen@gentoo.org/${P}-vendor.tar.xz
|
||||
verify-sig? ( https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz.sig )
|
||||
"
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kovidgoyal.gpg
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Fast, feature-rich, GPU-based terminal"
|
||||
HOMEPAGE="https://sw.kovidgoyal.net/kitty/"
|
||||
|
||||
LICENSE="GPL-3 ZLIB"
|
||||
LICENSE+=" Apache-2.0 BSD BSD-2 MIT" # go
|
||||
SLOT="0"
|
||||
IUSE="+X test wayland"
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
|| ( X wayland )
|
||||
test? ( X wayland )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# dlopen: fontconfig,libglvnd
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-libs/openssl:=
|
||||
dev-libs/xxhash
|
||||
media-fonts/symbols-nerd-font
|
||||
media-libs/freetype
|
||||
media-libs/harfbuzz:=[truetype]
|
||||
media-libs/lcms:2
|
||||
media-libs/libglvnd[X?]
|
||||
media-libs/libpng:=
|
||||
sys-apps/dbus
|
||||
virtual/zlib:=
|
||||
x11-libs/cairo
|
||||
x11-libs/libxkbcommon[X?]
|
||||
x11-misc/xkeyboard-config
|
||||
~x11-terms/kitty-shell-integration-${PV}
|
||||
~x11-terms/kitty-terminfo-${PV}
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcursor
|
||||
)
|
||||
wayland? ( dev-libs/wayland )
|
||||
!sci-mathematics/kissat
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
amd64? ( >=dev-libs/simde-0.8.0-r1 )
|
||||
arm64? ( dev-libs/simde )
|
||||
x86? ( dev-libs/simde )
|
||||
X? (
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXi
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
)
|
||||
wayland? ( dev-libs/wayland-protocols )
|
||||
"
|
||||
# bug #919751 wrt go subslot
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=dev-lang/go-1.26:=
|
||||
dev-util/shader-slang
|
||||
sys-libs/ncurses
|
||||
virtual/pkgconfig
|
||||
test? ( $(python_gen_cond_dep 'dev-python/pillow[zlib,${PYTHON_USEDEP}]') )
|
||||
wayland? ( dev-util/wayland-scanner )
|
||||
"
|
||||
[[ ${PV} == 9999 ]] || BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-kovidgoyal )"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/kitten" # written in Go
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
cd "${S}" || die
|
||||
edo go mod vendor
|
||||
else
|
||||
use verify-sig &&
|
||||
verify-sig_verify_detached "${DISTDIR}"/${P}.tar.xz{,.sig}
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# sed unfortunately feels easier on maintenance than patches here
|
||||
local sedargs=(
|
||||
-e "/num_workers =/s/=.*/= $(makeopts_jobs)/"
|
||||
-e "s/cflags.append.*-O3.*/pass/" -e 's/-O3//'
|
||||
-e "s/cflags.append(fortify_source)/pass/" # use toolchain's _f_s
|
||||
-e "s/ld_flags.append('-[sw]')/pass/"
|
||||
)
|
||||
|
||||
# kitty is often popular on wayland-only setups, try to allow this
|
||||
use !X && sedargs+=( -e '/gl_libs =/s/=.*/= []/' ) #857918
|
||||
use !X || use !wayland &&
|
||||
sedargs+=( -e "s/'x11 wayland'/'$(usex X x11 wayland)'/" )
|
||||
|
||||
# skip docs for live version, missing dependencies
|
||||
[[ ${PV} == 9999 ]] && sedargs+=( -e '/exists.*_build/,/docs(ddir)/d' )
|
||||
|
||||
sed -i setup.py "${sedargs[@]}" || die
|
||||
|
||||
# skip flaky font search, file is replaced in src_install (bug #971276),
|
||||
# without this the font + fontconfig would also be needed in BDEPEND
|
||||
mkdir fonts || die
|
||||
:> fonts/SymbolsNerdFontMono-Regular.ttf || die
|
||||
|
||||
local skiptests=(
|
||||
# needs cgroups and may not work right with portage sandbox
|
||||
kitty_tests/child.py
|
||||
# broken with nspawn defaults, skip for convenience (bug #954176)
|
||||
kitty_tests/crypto.py
|
||||
# relies on 'who' command which doesn't detect users with pid-sandbox
|
||||
kitty_tests/utmp.py
|
||||
# may fail/hang depending on environment and shell initialization
|
||||
kitty_tests/{shell_integration,ssh}.py
|
||||
# relies on /proc/self/fd and gets confused when ran from here
|
||||
tools/utils/tpmfile_test.go
|
||||
# seems to randomly fail depending on timing (bug #977046)
|
||||
tools/watch/api_test.go
|
||||
)
|
||||
use !test || rm "${skiptests[@]}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
local -x PKGCONFIG_EXE=$(tc-getPKG_CONFIG)
|
||||
go-env_set_compile_environment
|
||||
|
||||
local conf=(
|
||||
--disable-link-time-optimization
|
||||
--ignore-compiler-warnings
|
||||
--libdir-name="$(get_libdir)"
|
||||
--shell-integration="enabled no-sudo"
|
||||
--update-check-interval=0
|
||||
--verbose
|
||||
)
|
||||
|
||||
edo "${EPYTHON}" setup.py linux-package "${conf[@]}"
|
||||
use test && edo "${EPYTHON}" setup.py build-launcher "${conf[@]}"
|
||||
|
||||
rm -r linux-package/share/terminfo || die # provided by kitty-terminfo
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
mkdir -p linux-package/share/doc/${PF} || die
|
||||
else
|
||||
mv linux-package/share/doc/{${PN},${PF}} || die
|
||||
fi
|
||||
|
||||
if ! tc-is-cross-compiler; then
|
||||
# generate default config reference, command taken from docs/conf.rst
|
||||
linux-package/bin/kitty +runpy \
|
||||
'from kitty.config import *; print(commented_out_default_config())' \
|
||||
> linux-package/share/doc/${PF}/kitty.conf || die
|
||||
|
||||
# generate shell completions, shell-integration/ has some "old" pre-gen
|
||||
# ones that currently miss things (no bash, no kitten for zsh, etc...)
|
||||
linux-package/bin/kitten __complete__ setup bash > "${T}"/kitty || die
|
||||
linux-package/bin/kitten __complete__ setup fish > "${T}"/kitty.fish || die
|
||||
linux-package/bin/kitten __complete__ setup zsh > "${T}"/_kitty || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
KITTY_CONFIG_DIRECTORY=${T} ./test.py || die # shebang is kitty
|
||||
}
|
||||
|
||||
src_install() {
|
||||
edo mv linux-package "${ED}"/usr
|
||||
|
||||
# kitty currently detects and copies the system's nerd font at build
|
||||
# time, then uses that rather than the system's at runtime
|
||||
dosym -r /usr/share/fonts/symbols-nerd-font/SymbolsNerdFontMono-Regular.ttf \
|
||||
/usr/"$(get_libdir)"/kitty/fonts/SymbolsNerdFontMono-Regular.ttf
|
||||
|
||||
if ! tc-is-cross-compiler; then
|
||||
dobashcomp "${T}"/kitty
|
||||
bashcomp_alias kitty edit-in-kitty clone-in-kitty kitten
|
||||
dofishcomp "${T}"/kitty.fish
|
||||
dozshcomp "${T}"/_kitty
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
optfeature "custom shaders support" dev-util/shader-slang
|
||||
optfeature "audio-based terminal bell support" media-libs/libcanberra
|
||||
use X && optfeature "X11 startup notification support" x11-libs/startup-notification
|
||||
optfeature "opening links from the terminal" x11-misc/xdg-utils
|
||||
}
|
||||
Reference in New Issue
Block a user