app-emulation/bottles: add 20211128, drop 2.0.9.7, update live ebuild
dependency.bad QA issues cant be mitigated from a non-gentoo repository. Would require masking this package in the no-multilib profiles in the main repository, like with the steam ebuilds. Package-Manager: Portage-3.0.29, Repoman-3.0.3 RepoMan-Options: --force Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
f55d62ecf8
commit
6ed5803124
@ -1,2 +1,2 @@
|
||||
DIST bottles-2.0.9.7.tar.gz 1133843 BLAKE2B 9ca30c33d40b1101ad6cdee06e8cbaa8215832a3348f72b81d9ce0ee0763a1bfc3d9a36d2f00a8285887c82d0f12044145dc7216150554cdd4d10515bd699ae8 SHA512 305d12fd8626f5eab9cfb64672bbe3ec5c243f0f21e9869704fd04186eb5f0d5656560ab4a66957619577a8f68059d8171b9ad1cc5e4e6ab01ac93089d44784d
|
||||
DIST bottles-20211128.tar.gz 1179583 BLAKE2B f2e366a03c6d60ea43c6e89aa8ad901a28003a023f4d71b994fce8d9f499c5fa45bd93bbdf7ce7bcb4f3f909b1f7a79ed785360770eb3679a200b8c93a76e5f7 SHA512 f97203ba5e1a18241f2c29de8a8294cd962975878cf29e151fc16f07bd35c7786bc4173f1d4a372cc5d8c2659d6b33486ed10317bb65efadf9e15d57be658803
|
||||
DIST bottles-3.1.15.tar.gz 856553 BLAKE2B 024286e4c296a2833663a48425f89cd1849253cd217dd33e51c65b27e275914d1bd02670419a0aa404133efdcf453e5c654cf0f3f832a7942acac5789478d7f7 SHA512 d7f14f9f612e93905cc7da8203b6bb2752306b8e46721aa324fe300f9fc5a4b1badc0218e375419aabf164cd40a72d1443ddc80c42343123a4276610eae66e9e
|
||||
|
@ -1,73 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
inherit python-single-r1 meson gnome2-utils xdg
|
||||
|
||||
DESCRIPTION="Easily manage WINE prefixes in a new way"
|
||||
HOMEPAGE="
|
||||
https://usebottles.com/
|
||||
https://github.com/bottlesdevs/Bottles
|
||||
"
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/bottlesdevs/${PN^}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/bottlesdevs/${PN^}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/${P^}"
|
||||
fi
|
||||
|
||||
RESTRICT="mirror"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=x11-libs/gtk+-3.24.10[introspection]
|
||||
dev-libs/appstream-glib[introspection]
|
||||
dev-util/desktop-file-utils
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
python_optimize
|
||||
|
||||
# TODO: find a better way to fix the python script
|
||||
echo "#!/usr/bin/${EPYTHON}
|
||||
$(cat ${D}/usr/bin/${PN})" > "${D}/usr/bin/${PN}"
|
||||
|
||||
mv "${D}/usr/share/appdata" "${D}/usr/share/metainfo" || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_schemas_savelist
|
||||
xdg_pkg_preinst
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_gconf_install
|
||||
gnome2_schemas_update
|
||||
xdg_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_gconf_uninstall
|
||||
gnome2_schemas_update
|
||||
xdg_pkg_postrm
|
||||
}
|
118
app-emulation/bottles/bottles-20211128.ebuild
Normal file
118
app-emulation/bottles/bottles-20211128.ebuild
Normal file
@ -0,0 +1,118 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit optfeature python-single-r1 meson xdg
|
||||
|
||||
DESCRIPTION="Easily manage WINE prefixes in a new way"
|
||||
HOMEPAGE="
|
||||
https://usebottles.com/
|
||||
https://github.com/bottlesdevs/Bottles
|
||||
"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/bottlesdevs/${PN^}.git"
|
||||
else
|
||||
VERSION_CODENAME="treviso"
|
||||
MY_PV="${PV::4}.${PV:4:2}.${PV:6:2}-${VERSION_CODENAME}"
|
||||
SRC_URI="https://github.com/bottlesdevs/${PN^}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="-* ~amd64"
|
||||
S="${WORKDIR}/${PN^}-${MY_PV}"
|
||||
fi
|
||||
|
||||
RESTRICT="mirror !test? ( test )"
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
PROPERTIES="test_network"
|
||||
|
||||
# Dependencies adapted from AppImageBuilder.yml, omitted selinux others might be redundant as well.
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=x11-libs/gtk+-3.24.10[introspection]
|
||||
dev-libs/appstream-glib[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP},cairo]
|
||||
')
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-libs/appstream
|
||||
dev-libs/glib
|
||||
dev-util/desktop-file-utils
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
app-arch/bzip2
|
||||
app-arch/cabextract
|
||||
app-arch/p7zip
|
||||
app-i18n/ibus
|
||||
dev-libs/expat
|
||||
dev-libs/glib:2
|
||||
dev-libs/libffi
|
||||
dev-libs/libgee
|
||||
dev-libs/libgpg-error
|
||||
dev-libs/libpcre:3
|
||||
gnome-base/dconf
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
gnome-base/librsvg:2
|
||||
gui-libs/libhandy:1[introspection]
|
||||
media-libs/freetype
|
||||
media-libs/libcanberra[gtk3]
|
||||
media-libs/vulkan-loader
|
||||
net-fs/samba[winbind]
|
||||
net-libs/gnutls
|
||||
net-libs/webkit-gtk:4
|
||||
sys-libs/zlib
|
||||
sys-process/procps
|
||||
x11-libs/libnotify[introspection]
|
||||
virtual/opengl
|
||||
amd64? (
|
||||
media-libs/freetype[abi_x86_32(-)]
|
||||
media-libs/vulkan-loader[abi_x86_32(-)]
|
||||
net-libs/gnutls[abi_x86_32(-)]
|
||||
sys-libs/glibc[multilib(-)]
|
||||
virtual/opengl[abi_x86_32(-)]
|
||||
)
|
||||
$(python_gen_cond_dep '
|
||||
app-arch/patool[${PYTHON_USEDEP}]
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
|
||||
')
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
# https://github.com/bottlesdevs/Bottles#notices-for-package-maintainers
|
||||
sed -i "s/\(.*\)/\1-$(git rev-parse --short HEAD)/" "${S}/VERSION" || die
|
||||
fi
|
||||
|
||||
sed -i \
|
||||
"s:^\(conf.set('PYTHON',\).*$:\1 '/usr/bin/${EPYTHON}'):" \
|
||||
"${S}/src/meson.build" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
python_optimize "${D}/usr/share/bottles/"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
optfeature "gamemode support" games-util/gamemode
|
||||
}
|
@ -1,84 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit python-single-r1 meson gnome2-utils xdg
|
||||
|
||||
DESCRIPTION="Easily manage WINE prefixes in a new way"
|
||||
HOMEPAGE="
|
||||
https://usebottles.com/
|
||||
https://github.com/bottlesdevs/Bottles
|
||||
"
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/bottlesdevs/${PN^}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/bottlesdevs/${PN^}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/${P^}"
|
||||
fi
|
||||
|
||||
RESTRICT="mirror"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=x11-libs/gtk+-3.24.10[introspection]
|
||||
dev-libs/appstream-glib[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP},cairo]
|
||||
')
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
gui-libs/libhandy:1[introspection]
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
local commit version
|
||||
commit=$(git rev-parse HEAD)
|
||||
version=$(cat "${S}/VERSION")
|
||||
echo "${version%%.*}.${commit:0:7}" > "${S}/VERSION"
|
||||
fi
|
||||
sed -i \
|
||||
"s:^\(conf.set('PYTHON',\).*$:\1 '/usr/bin/${EPYTHON}'):" \
|
||||
"${S}/src/meson.build" || die
|
||||
|
||||
# Hard skip network dependant test
|
||||
sed -i \
|
||||
"s:\(if appstream\_util\.found()\):\1 and false:" \
|
||||
"${S}/data/meson.build" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
python_optimize "${D}/usr/share/bottles/"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_schemas_savelist
|
||||
xdg_pkg_preinst
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_gconf_install
|
||||
gnome2_schemas_update
|
||||
xdg_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_gconf_uninstall
|
||||
gnome2_schemas_update
|
||||
xdg_pkg_postrm
|
||||
}
|
118
app-emulation/bottles/bottles-99999999.ebuild
Normal file
118
app-emulation/bottles/bottles-99999999.ebuild
Normal file
@ -0,0 +1,118 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit optfeature python-single-r1 meson xdg
|
||||
|
||||
DESCRIPTION="Easily manage WINE prefixes in a new way"
|
||||
HOMEPAGE="
|
||||
https://usebottles.com/
|
||||
https://github.com/bottlesdevs/Bottles
|
||||
"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/bottlesdevs/${PN^}.git"
|
||||
else
|
||||
VERSION_CODENAME="treviso"
|
||||
MY_PV="${PV::4}.${PV:4:2}.${PV:6:2}-${VERSION_CODENAME}"
|
||||
SRC_URI="https://github.com/bottlesdevs/${PN^}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="-* ~amd64"
|
||||
S="${WORKDIR}/${PN^}-${MY_PV}"
|
||||
fi
|
||||
|
||||
RESTRICT="mirror !test? ( test )"
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
PROPERTIES="test_network"
|
||||
|
||||
# Dependencies adapted from AppImageBuilder.yml, omitted selinux others might be redundant as well.
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=x11-libs/gtk+-3.24.10[introspection]
|
||||
dev-libs/appstream-glib[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP},cairo]
|
||||
')
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-libs/appstream
|
||||
dev-libs/glib
|
||||
dev-util/desktop-file-utils
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
app-arch/bzip2
|
||||
app-arch/cabextract
|
||||
app-arch/p7zip
|
||||
app-i18n/ibus
|
||||
dev-libs/expat
|
||||
dev-libs/glib:2
|
||||
dev-libs/libffi
|
||||
dev-libs/libgee
|
||||
dev-libs/libgpg-error
|
||||
dev-libs/libpcre:3
|
||||
gnome-base/dconf
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
gnome-base/librsvg:2
|
||||
gui-libs/libhandy:1[introspection]
|
||||
media-libs/freetype
|
||||
media-libs/libcanberra[gtk3]
|
||||
media-libs/vulkan-loader
|
||||
net-fs/samba[winbind]
|
||||
net-libs/gnutls
|
||||
net-libs/webkit-gtk:4
|
||||
sys-libs/zlib
|
||||
sys-process/procps
|
||||
x11-libs/libnotify[introspection]
|
||||
virtual/opengl
|
||||
amd64? (
|
||||
media-libs/freetype[abi_x86_32(-)]
|
||||
media-libs/vulkan-loader[abi_x86_32(-)]
|
||||
net-libs/gnutls[abi_x86_32(-)]
|
||||
sys-libs/glibc[multilib(-)]
|
||||
virtual/opengl[abi_x86_32(-)]
|
||||
)
|
||||
$(python_gen_cond_dep '
|
||||
app-arch/patool[${PYTHON_USEDEP}]
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
|
||||
')
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
# https://github.com/bottlesdevs/Bottles#notices-for-package-maintainers
|
||||
sed -i "s/\(.*\)/\1-$(git rev-parse --short HEAD)/" "${S}/VERSION" || die
|
||||
fi
|
||||
|
||||
sed -i \
|
||||
"s:^\(conf.set('PYTHON',\).*$:\1 '/usr/bin/${EPYTHON}'):" \
|
||||
"${S}/src/meson.build" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
python_optimize "${D}/usr/share/bottles/"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
optfeature "gamemode support" games-util/gamemode
|
||||
}
|
Loading…
Reference in New Issue
Block a user