app-emulation/bottles: add 51.15
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
f69039003a
commit
9dd78e47e4
@ -1 +1,2 @@
|
||||
DIST bottles-51.13.tar.gz 2275879 BLAKE2B eca6fe11529acd2181b4307cd18d327992f3810aa8c7c7fde0eeaf4d9988bf543305b29e28258c70e659855104beaae7782735fff3773f313efc7b3f1fd663d3 SHA512 a23b64275721ac890cce5d66ecf8b1a4cb85d00e18b372c27adc9190a1d9314eaed594a16833a5b44f77214c1c183f5e9bf739ee54e722a6997145ddaf8f1e59
|
||||
DIST bottles-51.15.tar.gz 2304552 BLAKE2B 013bf6301a75233589a1373201d7cc1ba4da5c235ed57753c4ef412ae657064d02b118d793c6b20b1e0905af39aad7b9c59a4f2a6ea65922af290d82c0ac5383 SHA512 8917e519c6b537e54a2492b8b0955589e3d0ee2eddf59ba801e84a9f9790187e9f9d3dce990b90a7eb4fe612aaa59f98bc3368e9f43a298a59825b74b74e7ac2
|
||||
|
151
app-emulation/bottles/bottles-51.15.ebuild
Normal file
151
app-emulation/bottles/bottles-51.15.ebuild
Normal file
@ -0,0 +1,151 @@
|
||||
# Copyright 2023-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
inherit gnome2-utils python-single-r1 meson xdg optfeature
|
||||
|
||||
DESCRIPTION="Run Windows software and games on Linux"
|
||||
HOMEPAGE="https://usebottles.com/"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/bottlesdevs/Bottles/"
|
||||
else
|
||||
SRC_URI="https://github.com/bottlesdevs/Bottles/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/Bottles-${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Very annoying to figure out the deps
|
||||
# Script for getting python modules:
|
||||
# https://gitlab.com/Parona/my-scripts/-/blob/master/scripts/python_deps.sh
|
||||
# Runtime programs needed can be quickly found with:
|
||||
# grep -r "shutil.which"
|
||||
# But look at context to gauge if they are optional or not
|
||||
#
|
||||
# BDPEPEND dependencies can be thankfully gathered from the meson.build files
|
||||
# DEPEND are instrospection files which can be found as such
|
||||
# find . -name "*.blp" -exec grep -Eh "^using " {} + | sed 's/using \([A-Za-z]*\) \([0-9.]*\);/\1-\2.typelib/'
|
||||
# And in similar vein find runtime required introspection files, similar deal with getting typelib file as above
|
||||
# grep -r "gi.require_version
|
||||
|
||||
# vkbasalt could be optional but vkbasalt-cli isnt
|
||||
# It could work without wine but(!) it still requires all the runtime dependencies for wine
|
||||
# so easier to depend on wine to get it for free
|
||||
|
||||
DEPEND="
|
||||
gui-libs/gtk:4[introspection]
|
||||
gui-libs/libadwaita[introspection]
|
||||
"
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
${DEPEND}
|
||||
app-arch/cabextract
|
||||
app-arch/p7zip
|
||||
gui-libs/gtksourceview[introspection]
|
||||
media-gfx/imagemagick
|
||||
>=sys-libs/glibc-2.32
|
||||
x11-apps/xdpyinfo
|
||||
|| (
|
||||
app-emulation/wine-vanilla[X]
|
||||
app-emulation/wine-staging[X]
|
||||
app-emulation/wine-proton[X(+)]
|
||||
)
|
||||
$(python_gen_cond_dep '
|
||||
app-arch/patool[${PYTHON_USEDEP}]
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
dev-python/chardet[${PYTHON_USEDEP}]
|
||||
dev-python/charset-normalizer[${PYTHON_USEDEP}]
|
||||
dev-python/FVS[${PYTHON_USEDEP}]
|
||||
dev-python/idna[${PYTHON_USEDEP}]
|
||||
dev-python/icoextract[${PYTHON_USEDEP}]
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
dev-python/orjson[${PYTHON_USEDEP}]
|
||||
dev-python/pathvalidate[${PYTHON_USEDEP}]
|
||||
dev-python/pefile[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
dev-python/vkbasalt-cli[${PYTHON_USEDEP}]
|
||||
dev-python/wheel[${PYTHON_USEDEP}]
|
||||
')
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-util/blueprint-compiler
|
||||
dev-libs/glib:2
|
||||
sys-devel/gettext
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# tests that check execution time are flaky in the right circumstances
|
||||
# (like compiling llvm at the same time type circumstance)
|
||||
"bottles/tests/backend/state/test_events.py::test_set_reset"
|
||||
"bottles/tests/backend/state/test_events.py::test_simple_event"
|
||||
"bottles/tests/backend/state/test_events.py::test_wait_after_done_event"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
local emesonargs=(
|
||||
-Ddevel=true
|
||||
)
|
||||
fi
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
python_optimize "${D}/usr/share/bottles/"
|
||||
python_fix_shebang "${D}/usr/"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
epytest
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
xdg_pkg_preinst
|
||||
gnome2_schemas_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
optfeature "gamemode support" games-util/gamemode
|
||||
optfeature "gamescope support" gui-wm/gamescope
|
||||
optfeature "vmtouch support" dev-utils/vmtouch
|
||||
#optfeature "MangoHub support" games-util/mangohub
|
||||
#optfeature "obs-vkcapture support" media-video/obs-vkcapture
|
||||
|
||||
if has_version app-emulation/wine-vanilla[llvm-libunwind] || \
|
||||
has_version app-emulation/wine-staging[llvm-libunwind] || \
|
||||
has_version app-emulation/wine-proton[llvm-libunwind]; then
|
||||
ewarn "With llvm-libunwind all the runners downloaded from bottles are most likely broken"
|
||||
ewarn "So when using llvm-libunwind system wide it is recommended to stick to runners compiled by your system"
|
||||
ewarn "More information:"
|
||||
ewarn "https://gitlab.com/src_prepare/src_prepare-overlay/-/issues/49"
|
||||
ewarn "https://gitlab.com/src_prepare/src_prepare-overlay/-/merge_requests/394#note_1735168806"
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue
Block a user