parent
c5d7f30fb3
commit
b9b85ac33d
Binary file not shown.
Binary file not shown.
@ -0,0 +1,90 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
MY_P=aws-cli-${PV}
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="
|
||||
https://github.com/aws/aws-cli/
|
||||
https://pypi.org/project/awscli/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
# botocore is x.(y+2).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
!app-admin/awscli-bin
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local serial_tests=(
|
||||
tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success
|
||||
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_{fails,success}
|
||||
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_with_new_version_plugin_success
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking
|
||||
tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success
|
||||
tests/unit/customizations/test_sessionmanager.py
|
||||
tests/unit/test_compat.py::TestIgnoreUserSignals
|
||||
tests/unit/test_help.py
|
||||
tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignored
|
||||
)
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
EPYTEST_XDIST= epytest "${serial_tests[@]}"
|
||||
|
||||
local EPYTEST_DESELECT=( "${serial_tests[@]}" )
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
MY_P=aws-cli-${PV}
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="
|
||||
https://github.com/aws/aws-cli/
|
||||
https://pypi.org/project/awscli/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
# botocore is x.(y+2).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
!app-admin/awscli-bin
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local serial_tests=(
|
||||
tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success
|
||||
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_{fails,success}
|
||||
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_with_new_version_plugin_success
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking
|
||||
tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success
|
||||
tests/unit/customizations/test_sessionmanager.py
|
||||
tests/unit/test_compat.py::TestIgnoreUserSignals
|
||||
tests/unit/test_help.py
|
||||
tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignored
|
||||
)
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
EPYTEST_XDIST= epytest "${serial_tests[@]}"
|
||||
|
||||
local EPYTEST_DESELECT=( "${serial_tests[@]}" )
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST fifo-cronolog-1.1.1.tar.bz2 3124 BLAKE2B 6e9cb35e0ed1b54c3baed4451742840dc1144294fc675822c1260d4d7d885a52f8835e60dcbed57c714e40e94e6d51b3ba78af9b9892883f5f520a7c57d30df8 SHA512 3ac809d5cfc951764aaf31d50ee394b0dde9ced16f53daa91c81bdb218af2bab410ff945ebfdeb8307a55bda3292c0a55eb500c3cb73595e17228ef739455d90
|
||||
DIST fifo-cronolog-1.2.3.tar.gz 4518 BLAKE2B c227304d98b2467a1ed7352399b1e53aba4dc005fa30a1be73b8cc96d61ee49d5f6a3703ccddd1ffef652c4090e9b5dfed9cce3f1254b959a1ccc07aac78b3f6 SHA512 557be1a663c5754a293092078b8a3710474bb1939c1ee65e4c560056238ca646e941e4ad82c0a90c02834fc90ddb2aae9047a4e73d42cf8c2c013f2a5d2c839c
|
||||
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit systemd
|
||||
|
||||
DESCRIPTION="cronolog wrapper for use with dumb daemons like squid, varnish and so on"
|
||||
HOMEPAGE="https://gitweb.gentoo.org/proj/fifo-cronolog.git"
|
||||
SRC_URI="http://dev.gentoo.org/~robbat2/distfiles/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="app-admin/cronolog"
|
||||
|
||||
src_compile() {
|
||||
emake all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin fifo-cronolog
|
||||
dosym fifo-cronolog /usr/sbin/squid-cronolog
|
||||
dosbin fifo-cronolog-setup
|
||||
|
||||
newinitd openrc/fifo-cronolog.initd fifo-cronolog
|
||||
newconfd openrc/fifo-cronolog.confd fifo-cronolog
|
||||
|
||||
systemd_douserunit systemd/fifo-cronolog@.service
|
||||
dodoc README.md systemd/fifo-cronolog@example.service.env
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Warning: app-admin/squid-cronolog has been renamed to app-admin/fifo-cronolog."
|
||||
elog "This also applies to the binary 'squid-cronolog' but there is a symlink for now"
|
||||
elog "Please fix your scripts/configs."
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="The open source infrastructure as code tool"
|
||||
HOMEPAGE="https://www.opentofu.org/"
|
||||
SRC_URI="https://github.com/opentofu/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="Apache-2.0 BSD BSD-2 MPL-2.0 MIT ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
BDEPEND="dev-go/gox"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DOCS=( {README,CHANGELOG}.md )
|
||||
|
||||
src_compile() {
|
||||
export CGO_ENABLED=0
|
||||
gox \
|
||||
-os=$(go env GOOS) \
|
||||
-arch=$(go env GOARCH) \
|
||||
-output bin/tofu \
|
||||
-verbose \
|
||||
./cmd/tofu || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/*
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you would like to install shell completions please run:"
|
||||
elog " tofu -install-autocomplete"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST restart-services-0.17.0.tgz 25643 BLAKE2B 5999e12e38207d00266928504da05c00482c8297b7fee634f302f09cfa09e206bcf9d5a558d2a91e5de1d97318025fa995fbc3a61f0d0e74b8dfb1af3db8670b SHA512 c11ca431fbbc6899ab268e8979049144448479d953ed7373cc7483cca2c03cd4041a1ca1e47c0e810f91a18a43aa32cc305a4ea791e8b992246f972e0fbb19ab
|
||||
DIST restart-services-1.0.tgz 25872 BLAKE2B 912c3e2c3cd49732369a5a4452be1f171c33cd3364cf3224b4443f6f21ef0fccd4c533edd79214cc2dae00cea558409eacbcef4b1566bef402f1850537432c63 SHA512 9c4e269ac6db8bf13c512cc3556a9356b4b44960dd562cf633df6e03db57677c05738edc46010b01976a6b0ee2152ac1e8d410a6c9d98142295ff0cbd3f93df2
|
||||
DIST restart-services-1.1.tgz 26227 BLAKE2B 7893aa01c965fca24b42312f6b01cac46b0bbd3d8304865539adb00cc6f7cdcf8cff1a912cce98534eb4f3bd0af0e01df3387dab87b8e53193152b3966ff3c9b SHA512 165e4b07fa9a15a749f8e50064da83e9e1749f465248259de5b0dc97c2ef249131e1e993d8e34975628ed69b35e194b3d75a578f6279188f76236d02a970ac4b
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Tool to manage OpenRC and systemd services that need to be restarted"
|
||||
HOMEPAGE="https://dev.gentoo.org/~mschiff/restart-services/"
|
||||
SRC_URI="https://dev.gentoo.org/~mschiff/src/${PN}/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
RDEPEND="
|
||||
app-admin/lib_users
|
||||
app-portage/portage-utils
|
||||
|| ( sys-apps/openrc sys-apps/systemd )
|
||||
"
|
||||
|
||||
src_install() {
|
||||
dosbin restart-services
|
||||
doman restart-services.1
|
||||
keepdir /etc/restart-services.d
|
||||
insinto /etc
|
||||
doins restart-services.conf
|
||||
dodoc README CHANGES
|
||||
|
||||
sed -i -e 's/^#include/include/' "${ED}"/etc/restart-services.conf || die
|
||||
cat > "${ED}"/etc/restart-services.d/00-local.conf <<- EOF || die
|
||||
# You may put your local changes here or in any other *.conf file
|
||||
# in this directory so you can leave /etc/restart-services.conf as is.
|
||||
# Example:
|
||||
# *extend* SV_ALWAYS to match 'myservice'
|
||||
# SV_ALWAYS+=( myservice )
|
||||
EOF
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST salt-3005.5.tar.gz 17940104 BLAKE2B c7a820bc946c2cd8124fb6f559608ab1dc3cd85d6f0e7d0a2a87b7bc0dda361178e83b307c2fecd8a47d59032f85dc9f4caeef5698e98c0e349d1c6979f9f68a SHA512 1332c9751a225dbf569601eb1932fe3ebea93c8d8be7485b1b8150d5200ad2e82954c970d59ba0e888860062d059db78a50bffe69fc367bdb7b2388b62e19f32
|
||||
DIST salt-3006.5.tar.gz 20536455 BLAKE2B cf475dc5e919f6ab180578db2aae5f3655623b39b134d67609da4f607be909340c6e55c940cfb66f129cc75d40b5cdda094e866db116d8a45aa5eef26d8fa1eb SHA512 8aaf5c5d36d8aa17b3fe867cee470f7b3c5dd1f6abaf5bdb49a3df76d3498d0dc1fa305a069bc95ad057489db229454b38b0ea9c1ade1e46b5d9b57aeef10c23
|
||||
DIST salt-3006.7.tar.gz 20562663 BLAKE2B b4ff9039509b1de7151060cb0e68252868d493e114e327a3c48bfc5584f67521a2106b41b77377f6d43ab5795399b6fe5860ce8e091459687c4a5b2378752729 SHA512 9d1759a7c0dfc9ad4fdc94460f0f3799483737207bfdc8ddd1424e5c6083ea74ef520f13c323d5cbd7f65c1d9bb13bbbeb5f2cafe6dcacbc2689e733794aef2d
|
||||
DIST salt-3007.0.tar.gz 20304228 BLAKE2B 3db95ce779cfd08d61536dcfb4ff6ac31788ad1d6d4665b640dcc430f5a33847f231f94fd574c5d8df7b14e2854511c80610a37cd19be5429c4643be8bd9e0eb SHA512 0e49d76dafdb981ee380ea89ceba2cddeae8cd95df1d188a6f8ba64a175c606aaf2f8101bacb040792255afdb46ae668cbc9464d0dbb055986e85cee4d5c130b
|
||||
|
@ -0,0 +1,611 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_1{0..2} )
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="https://www.saltstack.com/resources/community/
|
||||
https://github.com/saltstack"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
else
|
||||
inherit pypi
|
||||
KEYWORDS="~amd64 ~riscv ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="
|
||||
cheetah cherrypy ldap libcloud libvirt genshi gnupg keyring mako
|
||||
mongodb neutron nova portage profile redis selinux test raet
|
||||
+zeromq vim-syntax
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
sys-apps/pciutils
|
||||
dev-libs/openssl:0=[-bindist(-)]
|
||||
dev-python/aiohttp[${PYTHON_USEDEP}]
|
||||
>=dev-python/cherrypy-18.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-42.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/distro-1.5[${PYTHON_USEDEP}]
|
||||
dev-python/importlib-metadata[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja-3.1.3[${PYTHON_USEDEP}]
|
||||
dev-python/jmespath[${PYTHON_USEDEP}]
|
||||
dev-python/libnacl[${PYTHON_USEDEP}]
|
||||
dev-python/looseversion[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-21.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/psutil-5.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycryptodome-3.19.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-24.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
|
||||
dev-python/python-gnupg[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/markupsafe-2.1.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.31.0[${PYTHON_USEDEP}]
|
||||
dev-python/setproctitle[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
dev-python/tomli[${PYTHON_USEDEP}]
|
||||
dev-python/tornado[${PYTHON_USEDEP}]
|
||||
dev-python/watchdog[${PYTHON_USEDEP}]
|
||||
libcloud? (
|
||||
>=dev-python/aiohttp-3.9.0[${PYTHON_USEDEP}]
|
||||
dev-python/aiosignal[${PYTHON_USEDEP}]
|
||||
>=dev-python/apache-libcloud-2.5.0[${PYTHON_USEDEP}]
|
||||
dev-python/async-timeout[${PYTHON_USEDEP}]
|
||||
)
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? (
|
||||
dev-python/libvirt-python[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
cheetah? ( >=dev-python/cheetah3-3.2.2[${PYTHON_USEDEP}] )
|
||||
genshi? ( dev-python/genshi[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
nova? (
|
||||
$(python_gen_cond_dep '>=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}]' python3.1{0..1})
|
||||
)
|
||||
neutron? (
|
||||
$(python_gen_cond_dep '>=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]' python3.1{0..1})
|
||||
)
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )
|
||||
zeromq? ( >=dev-python/pyzmq-19.0.0[${PYTHON_USEDEP}] )
|
||||
"
|
||||
BDEPEND="
|
||||
sys-apps/findutils
|
||||
dev-python/build[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
app-arch/zip
|
||||
dev-python/apache-libcloud[${PYTHON_USEDEP}]
|
||||
dev-python/boto3[${PYTHON_USEDEP}]
|
||||
>=dev-python/certifi-2023.07.22[${PYTHON_USEDEP}]
|
||||
dev-python/cherrypy[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-3.0[${PYTHON_USEDEP}]
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/moto-2.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/moto-5[${PYTHON_USEDEP}]
|
||||
dev-python/passlib[${PYTHON_USEDEP}]
|
||||
dev-python/bcrypt[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/pygit2[${PYTHON_USEDEP}]
|
||||
dev-python/pyinotify[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-23.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-7.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytest-salt-factories-1.0.0_rc29[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-tempdir[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-subtests[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-shell-utilities[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-skip-markers[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-system-statistics[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-custom-exit-code[${PYTHON_USEDEP}]
|
||||
dev-python/flaky[${PYTHON_USEDEP}]
|
||||
net-dns/bind-tools
|
||||
>=dev-python/virtualenv-20.3.0[${PYTHON_USEDEP}]
|
||||
dev-util/yamllint[${PYTHON_USEDEP}]
|
||||
!x86? ( >=dev-python/boto3-1.21.46[${PYTHON_USEDEP}] )
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( README.rst AUTHORS )
|
||||
|
||||
REQUIRED_USE="
|
||||
|| ( raet zeromq )
|
||||
test? ( cheetah genshi )
|
||||
nova? ( || ( python_targets_python3_10 python_targets_python3_11 ) )
|
||||
neutron? ( || ( python_targets_python3_10 python_targets_python3_11 ) )
|
||||
"
|
||||
RESTRICT="
|
||||
!test? ( test )
|
||||
x86? ( test )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/salt-3003-gentoolkit-revdep.patch"
|
||||
"${FILESDIR}/salt-3005.1-no-entry-points.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
local -a remove_test_files=(
|
||||
# remove tests with external dependencies that may not be available, and
|
||||
# tests that don't work in sandbox
|
||||
tests/integration/externalapi/test_venafiapi.py
|
||||
tests/integration/modules/test_rabbitmq.py
|
||||
tests/integration/modules/test_supervisord.py
|
||||
tests/integration/states/test_match.py
|
||||
tests/pytests/functional/fileserver/hgfs/test_hgfs.py
|
||||
tests/pytests/functional/loader/test_loader.py
|
||||
tests/pytests/functional/modules/file/test_readlink.py
|
||||
tests/pytests/functional/modules/file/test_symlink.py
|
||||
tests/pytests/functional/modules/state/test_jinja_filters.py
|
||||
tests/pytests/functional/modules/state/test_jinja_renderer.py
|
||||
tests/pytests/functional/modules/state/test_mako_renderer.py
|
||||
tests/pytests/functional/modules/state/test_pyobjects_renderer.py
|
||||
tests/pytests/functional/modules/test_aptpkg.py
|
||||
tests/pytests/functional/modules/test_dockermod.py
|
||||
tests/pytests/functional/modules/test_etcd_mod.py
|
||||
tests/pytests/functional/modules/test_grains.py
|
||||
tests/pytests/functional/modules/test_mac_service.py
|
||||
tests/pytests/functional/modules/test_saltcheck.py
|
||||
tests/pytests/functional/modules/test_saltutil.py
|
||||
tests/pytests/functional/modules/test_test.py
|
||||
tests/pytests/functional/pillar/hg_pillar/test_hg_pillar.py
|
||||
tests/pytests/functional/pillar/test_git_pillar.py
|
||||
tests/pytests/functional/pillar/test_gpg.py
|
||||
tests/pytests/functional/returners/test_etcd_return.py
|
||||
tests/pytests/functional/runners/test_winrepo.py
|
||||
tests/pytests/functional/sdb/test_etcd_db.py
|
||||
tests/pytests/functional/state/test_masterless_tops.py
|
||||
tests/pytests/functional/states/file/test_keyvalue.py
|
||||
tests/pytests/functional/states/file/test_patch.py
|
||||
tests/pytests/functional/states/file/test_rename.py
|
||||
tests/pytests/functional/states/rabbitmq
|
||||
tests/pytests/functional/states/test_docker_container.py
|
||||
tests/pytests/functional/states/test_docker_network.py
|
||||
tests/pytests/functional/states/test_etcd_mod.py
|
||||
tests/pytests/functional/states/test_module.py
|
||||
tests/pytests/functional/states/test_mysql.py
|
||||
tests/pytests/functional/states/test_svn.py
|
||||
tests/pytests/functional/states/test_virtualenv_mod.py
|
||||
tests/pytests/functional/test_version.py
|
||||
tests/pytests/functional/utils/test_vault.py
|
||||
tests/pytests/integration/cli/test_syndic_eauth.py
|
||||
tests/pytests/integration/daemons/test_memory_leak.py
|
||||
tests/pytests/integration/grains/test_grains.py
|
||||
tests/pytests/integration/master/test_clear_funcs.py
|
||||
tests/pytests/integration/minion/test_reauth.py
|
||||
tests/pytests/integration/modules/grains/test_append.py
|
||||
tests/pytests/integration/modules/grains/test_module.py
|
||||
tests/pytests/integration/modules/saltutil/test_grains.py
|
||||
tests/pytests/integration/modules/saltutil/test_modules.py
|
||||
tests/pytests/integration/modules/saltutil/test_wheel.py
|
||||
tests/pytests/integration/modules/state/test_state_pillar_errors.py
|
||||
tests/pytests/integration/modules/state/test_state_test.py
|
||||
tests/pytests/integration/modules/test_cmdmod.py
|
||||
tests/pytests/integration/modules/test_event.py
|
||||
tests/pytests/integration/modules/test_file.py
|
||||
tests/pytests/integration/modules/test_jinja.py
|
||||
tests/pytests/integration/modules/test_pillar.py
|
||||
tests/pytests/integration/modules/test_pip.py
|
||||
tests/pytests/integration/modules/test_vault.py
|
||||
tests/pytests/integration/modules/test_virt.py
|
||||
tests/pytests/integration/modules/test_x509_v2.py
|
||||
tests/pytests/integration/proxy/test_deltaproxy.py
|
||||
tests/pytests/integration/proxy/test_shell.py
|
||||
tests/pytests/integration/reactor/test_reactor.py
|
||||
tests/pytests/integration/returners/test_noop_return.py
|
||||
tests/pytests/integration/runners/state/orchestrate/test_orchestrate.py
|
||||
tests/pytests/integration/runners/test_cache.py
|
||||
tests/pytests/integration/runners/test_jobs.py
|
||||
tests/pytests/integration/runners/test_manage.py
|
||||
tests/pytests/integration/runners/test_saltutil.py
|
||||
tests/pytests/integration/runners/test_vault.py
|
||||
tests/pytests/integration/sdb/test_vault.py
|
||||
tests/pytests/integration/ssh/state/test_pillar_override.py
|
||||
tests/pytests/integration/ssh/state/test_retcode_highstate_verification_requisite_fail.py
|
||||
tests/pytests/integration/ssh/state/test_retcode_pillar_render_exception.py
|
||||
tests/pytests/integration/ssh/state/test_retcode_render_exception.py
|
||||
tests/pytests/integration/ssh/state/test_retcode_render_module_exception.py
|
||||
tests/pytests/integration/ssh/state/test_retcode_run_fail.py
|
||||
tests/pytests/integration/ssh/state/test_retcode_state_run_remote_exception.py
|
||||
tests/pytests/integration/ssh/state/test_state.py
|
||||
tests/pytests/integration/ssh/state/test_with_import_dir.py
|
||||
tests/pytests/integration/ssh/test_cmdmod.py
|
||||
tests/pytests/integration/ssh/test_config.py
|
||||
tests/pytests/integration/ssh/test_cp.py
|
||||
tests/pytests/integration/ssh/test_deploy.py
|
||||
tests/pytests/integration/ssh/test_grains.py
|
||||
tests/pytests/integration/ssh/test_jinja_mods.py
|
||||
tests/pytests/integration/ssh/test_master.py
|
||||
tests/pytests/integration/ssh/test_mine.py
|
||||
tests/pytests/integration/ssh/test_pillar.py
|
||||
tests/pytests/integration/ssh/test_pillar_compilation.py
|
||||
tests/pytests/integration/ssh/test_pre_flight.py
|
||||
tests/pytests/integration/ssh/test_publish.py
|
||||
tests/pytests/integration/ssh/test_py_versions.py
|
||||
tests/pytests/integration/ssh/test_raw.py
|
||||
tests/pytests/integration/ssh/test_saltcheck.py
|
||||
tests/pytests/integration/ssh/test_slsutil.py
|
||||
tests/pytests/integration/states/test_beacon.py
|
||||
tests/pytests/integration/states/test_file.py
|
||||
tests/pytests/integration/states/test_include.py
|
||||
tests/pytests/integration/states/test_ini_manage.py
|
||||
tests/pytests/integration/states/test_state_test.py
|
||||
tests/pytests/integration/states/test_x509_v2.py
|
||||
tests/pytests/integration/utils/test_templates.py
|
||||
tests/pytests/integration/wheel/test_key.py
|
||||
tests/pytests/pkg/integration/test_check_imports.py
|
||||
tests/pytests/pkg/integration/test_clean_zmq_teardown.py
|
||||
tests/pytests/pkg/integration/test_enabled_disabled.py
|
||||
tests/pytests/pkg/integration/test_help.py
|
||||
tests/pytests/pkg/integration/test_logrotate_config.py
|
||||
tests/pytests/pkg/integration/test_pkg.py
|
||||
tests/pytests/pkg/integration/test_python.py
|
||||
tests/pytests/scenarios/compat/test_with_versions.py
|
||||
tests/pytests/unit/loader/test_lazy.py
|
||||
tests/pytests/unit/modules/test_mongodb.py
|
||||
tests/pytests/unit/modules/test_mysql.py
|
||||
tests/pytests/unit/modules/test_schedule.py
|
||||
tests/pytests/unit/pillar/test_consul_pillar.py
|
||||
tests/pytests/unit/pillar/test_mysql.py
|
||||
tests/pytests/unit/renderers/test_yamlex.py
|
||||
tests/pytests/unit/roster/test_ansible.py
|
||||
tests/pytests/unit/roster/test_dir.py
|
||||
tests/pytests/unit/runners/test_reactor.py
|
||||
tests/pytests/unit/states/file/test_keyvalue.py
|
||||
tests/pytests/unit/utils/jinja/test_get_template.py
|
||||
tests/pytests/unit/utils/jinja/test_salt_cache_loader.py
|
||||
tests/pytests/unit/utils/test_cache.py
|
||||
tests/pytests/unit/utils/test_etcd_util.py
|
||||
tests/pytests/unit/utils/test_package.py
|
||||
tests/pytests/unit/utils/test_versions.py
|
||||
tests/unit/ext/test_ipaddress.py
|
||||
tests/unit/modules/test_boto_elb.py
|
||||
tests/unit/modules/test_boto_secgroup.py
|
||||
tests/unit/modules/test_boto_vpc.py
|
||||
tests/unit/modules/test_elasticsearch.py
|
||||
tests/unit/modules/test_k8s.py
|
||||
tests/unit/modules/test_kubernetesmod.py
|
||||
tests/unit/modules/test_vsphere.py
|
||||
tests/unit/netapi/rest_tornado/test_saltnado.py
|
||||
tests/unit/states/test_boto_vpc.py
|
||||
tests/unit/states/test_module.py
|
||||
tests/unit/test_module_names.py
|
||||
tests/unit/test_zypp_plugins.py
|
||||
tests/unit/utils/test_extend.py
|
||||
tests/unit/utils/test_pbm.py
|
||||
tests/unit/utils/test_schema.py
|
||||
tests/unit/utils/test_vmware.py
|
||||
tests/unit/utils/test_vsan.py
|
||||
|
||||
# tests that require network access
|
||||
tests/integration/cloud
|
||||
tests/integration/netapi
|
||||
tests/kitchen/test_kitchen.py
|
||||
tests/kitchen/tests/wordpress/tests
|
||||
tests/pytests/functional/cli/test_salt_cloud.py
|
||||
tests/pytests/functional/cli/test_salt_run_.py
|
||||
tests/pytests/functional/modules/test_ansiblegate.py
|
||||
tests/pytests/functional/modules/test_http.py
|
||||
tests/pytests/functional/modules/test_pip.py
|
||||
tests/pytests/functional/netapi
|
||||
tests/pytests/functional/utils/test_etcd_util.py
|
||||
tests/pytests/functional/utils/test_http.py
|
||||
tests/pytests/integration/cli/test_salt_proxy.py
|
||||
tests/pytests/integration/daemons/test_masterapi.py
|
||||
tests/pytests/integration/modules/state/test_state.py
|
||||
tests/pytests/integration/modules/state/test_state_state_events.py
|
||||
tests/pytests/integration/netapi
|
||||
tests/pytests/integration/pillar/cache/test_pillar_cache.py
|
||||
tests/pytests/integration/pillar/test_fileclient.py
|
||||
tests/pytests/integration/pillar/test_pillar_include.py
|
||||
tests/pytests/integration/proxy/test_simple.py
|
||||
tests/pytests/integration/runners/state/orchestrate/test_events.py
|
||||
tests/pytests/integration/wheel/test_pillar_roots.py
|
||||
tests/pytests/pkg/downgrade/test_salt_downgrade.py
|
||||
tests/pytests/pkg/integration/test_pip.py
|
||||
tests/pytests/pkg/integration/test_pip_upgrade.py
|
||||
tests/pytests/pkg/integration/test_salt_api.py
|
||||
tests/pytests/pkg/integration/test_salt_call.py
|
||||
tests/pytests/pkg/integration/test_salt_exec.py
|
||||
tests/pytests/pkg/integration/test_salt_grains.py
|
||||
tests/pytests/pkg/integration/test_salt_key.py
|
||||
tests/pytests/pkg/integration/test_salt_minion.py
|
||||
tests/pytests/pkg/integration/test_salt_output.py
|
||||
tests/pytests/pkg/integration/test_salt_pillar.py
|
||||
tests/pytests/pkg/integration/test_salt_state_file.py
|
||||
tests/pytests/pkg/integration/test_salt_ufw.py
|
||||
tests/pytests/pkg/integration/test_salt_user.py
|
||||
tests/pytests/pkg/integration/test_systemd_config.py
|
||||
tests/pytests/pkg/integration/test_version.py
|
||||
tests/pytests/pkg/upgrade/test_salt_upgrade.py
|
||||
tests/pytests/scenarios/cluster/test_cluster.py
|
||||
tests/pytests/unit/client/ssh/test_ssh.py
|
||||
tests/pytests/unit/cloud/clouds/vmware
|
||||
tests/pytests/unit/loader/test_loading_modules.py
|
||||
tests/pytests/unit/runners/test_net.py
|
||||
tests/pytests/unit/states/file/test_mod_beacon.py
|
||||
tests/pytests/unit/test_client.py
|
||||
tests/pytests/unit/utils/test_aws.py
|
||||
tests/pytests/unit/utils/test_http.py
|
||||
tests/unit/modules/test_boto3_elasticsearch.py
|
||||
tests/unit/modules/test_boto3_route53.py
|
||||
tests/unit/modules/test_network.py
|
||||
tests/unit/modules/test_zcbuildout.py
|
||||
tests/unit/states/test_zcbuildout.py
|
||||
|
||||
# tests require root access
|
||||
tests/integration/pillar/test_git_pillar.py
|
||||
tests/integration/states/test_lxd_container.py
|
||||
tests/integration/states/test_lxd_image.py
|
||||
tests/integration/states/test_lxd_profile.py
|
||||
tests/integration/states/test_supervisord.py
|
||||
tests/pytests/functional/cache/test_mysql.py
|
||||
tests/pytests/functional/cli/test_salt.py
|
||||
tests/pytests/functional/modules/test_mysql.py
|
||||
tests/pytests/functional/modules/test_vault.py
|
||||
tests/pytests/functional/states/file/test_accumulated.py
|
||||
tests/pytests/functional/utils/test_gitfs.py
|
||||
tests/pytests/functional/utils/test_pillar.py
|
||||
tests/pytests/scenarios/performance/test_performance.py
|
||||
tests/pytests/unit/cloud/test_map.py
|
||||
tests/pytests/unit/engines/test_slack_bolt_engine.py
|
||||
tests/pytests/unit/modules/state/test_state.py
|
||||
tests/pytests/unit/modules/state/test_top_file_merge.py
|
||||
tests/pytests/unit/proxy/test_netmiko_px.py
|
||||
tests/pytests/unit/proxy/test_ssh_sample.py
|
||||
tests/pytests/unit/roster/test_sshknownhosts.py
|
||||
|
||||
# tests that require boto
|
||||
tests/pytests/unit/engines/test_sqs_events.py
|
||||
|
||||
# first test always fails
|
||||
tests/pytests/unit/utils/parsers/test_log_parsers.py
|
||||
)
|
||||
|
||||
rm -r "${remove_test_files[@]}" || die
|
||||
|
||||
# axe the boto dep (bug #888235)
|
||||
find "${S}/tests" -name 'test_boto_*.py' -delete || die
|
||||
|
||||
# removes contextvars, see bug: https://bugs.gentoo.org/799431
|
||||
sed -i '/^contextvars/d' requirements/base.txt || die
|
||||
|
||||
# called_once should be assert_called_once_with
|
||||
find "${S}/tests" -name '*.py' -print0 \
|
||||
| xargs -0 -- sed -i -e 's:[.]called_once:.assert_called_once:g' -- || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local -x USE_SETUPTOOLS=1
|
||||
distutils-r1_python_install_all
|
||||
|
||||
local svc
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-5 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -a EPYTEST_DESELECT=(
|
||||
# doesn't like the distutils warning
|
||||
tests/pytests/integration/cli/test_batch.py::test_batch_retcode
|
||||
tests/pytests/integration/cli/test_batch.py::test_multiple_modules_in_batch
|
||||
|
||||
# hangs indefinitely
|
||||
tests/pytests/unit/test_minion.py::test_master_type_disable
|
||||
|
||||
# needs root
|
||||
tests/pytests/unit/modules/test_cmdmod.py::test_runas_env_sudo_group
|
||||
tests/pytests/unit/modules/test_portage_config.py::test_enforce_nice_config
|
||||
tests/unit/modules/test_saltcheck.py::SaltcheckTestCase::test_run_test_muliassert
|
||||
tests/unit/modules/test_saltcheck.py::SaltcheckTestCase::test_run_test_muliassert_failure
|
||||
|
||||
# don't like sandbox
|
||||
tests/integration/modules/test_cp.py::CPModuleTest::test_get_file_str_https
|
||||
tests/integration/modules/test_cp.py::CPModuleTest::test_get_url_ftp
|
||||
tests/integration/modules/test_cp.py::CPModuleTest::test_get_url_https
|
||||
tests/integration/modules/test_cp.py::CPModuleTest::test_get_url_https_dest_empty
|
||||
tests/integration/modules/test_cp.py::CPModuleTest::test_get_url_https_no_dest
|
||||
tests/integration/states/test_git.py::LocalRepoGitTest::test_latest_force_reset_true_fast_forward
|
||||
tests/pytests/functional/fileserver/test_roots.py::test_symlink_list
|
||||
tests/pytests/functional/modules/file/test_replace.py::test_append_if_not_found_content
|
||||
tests/pytests/functional/modules/file/test_replace.py::test_append_if_not_found_empty_file
|
||||
tests/pytests/functional/modules/file/test_replace.py::test_append_if_not_found_no_append_on_match
|
||||
tests/pytests/functional/modules/file/test_replace.py::test_append_if_not_found_no_match_newline
|
||||
tests/pytests/functional/modules/file/test_replace.py::test_append_if_not_found_no_match_no_newline
|
||||
tests/pytests/functional/modules/test_defaults.py::test_defaults_get
|
||||
tests/pytests/functional/modules/test_system.py::test_get_system_date_time
|
||||
tests/pytests/functional/modules/test_system.py::test_get_system_date_time_utc
|
||||
tests/pytests/functional/pillar/test_top.py::test_pillar_top_compound_match
|
||||
tests/pytests/functional/states/file/test_append.py::test_file_append_check_cmd
|
||||
tests/pytests/functional/states/file/test_append.py::test_issue_1896_file_append_source
|
||||
tests/pytests/functional/states/file/test_blockreplace.py::test_issue_49043
|
||||
tests/pytests/functional/states/file/test_comment.py::test_issue_62121
|
||||
tests/pytests/functional/states/file/test_directory.py::test_directory_clean_require_in
|
||||
tests/pytests/functional/states/file/test_directory.py::test_directory_clean_require_in_with_id
|
||||
tests/pytests/functional/states/file/test_directory.py::test_directory_clean_require_with_name
|
||||
tests/pytests/functional/states/file/test_managed.py::test_file_managed_requisites
|
||||
tests/pytests/functional/states/file/test_managed.py::test_issue_8947_utf8_sls
|
||||
tests/pytests/functional/states/file/test_managed.py::test_managed_escaped_file_path
|
||||
tests/pytests/functional/states/file/test_managed.py::test_managed_file_issue_51208
|
||||
tests/pytests/functional/states/file/test_managed.py::test_managed_file_with_grains_data
|
||||
tests/pytests/functional/states/file/test_managed.py::test_managed_latin1_diff
|
||||
tests/pytests/functional/states/file/test_managed.py::test_managed_source_hash_indifferent_case
|
||||
tests/pytests/functional/states/file/test_managed.py::test_managed_unicode_jinja_with_tojson_filter
|
||||
tests/pytests/functional/states/file/test_recurse.py::test_issue_2726_mode_kwarg
|
||||
tests/pytests/functional/states/file/test_replace.py::test_file_replace_check_cmd
|
||||
tests/pytests/functional/states/file/test_replace.py::test_file_replace_prerequired_issues_55775
|
||||
tests/pytests/functional/states/test_pip_state.py::test_22359_pip_installed_unless_does_not_trigger_warnings
|
||||
tests/pytests/functional/states/test_pip_state.py::test_issue_2028_pip_installed_state
|
||||
tests/pytests/functional/states/test_pip_state.py::test_issue_54755
|
||||
tests/pytests/functional/states/test_pip_state.py::test_pip_installed_errors
|
||||
tests/pytests/functional/states/test_pip_state.py::test_pip_installed_removed
|
||||
tests/pytests/functional/states/test_pip_state.py::test_pip_installed_removed_venv
|
||||
tests/pytests/functional/states/test_pip_state.py::test_pip_installed_specific_env
|
||||
tests/pytests/functional/states/test_x509_v2.py::"test_private_key_managed_passphrase_changed_not_overwrite[existing_pk0]"
|
||||
tests/pytests/functional/utils/functools/test_namespaced_function.py::test_namespacing
|
||||
tests/pytests/functional/utils/test_pillar.py::test_gitpython_env
|
||||
tests/pytests/functional/utils/test_pillar.py::test_gitpython_fetch_request
|
||||
tests/pytests/functional/utils/test_pillar.py::test_gitpython_multiple_repos
|
||||
tests/pytests/functional/utils/test_pillar.py::test_pygit2_env
|
||||
tests/pytests/functional/utils/test_pillar.py::test_pygit2_multiple_repos
|
||||
tests/pytests/functional/utils/test_winrepo.py::test_gitpython_winrepo_simple
|
||||
tests/pytests/functional/utils/test_winrepo.py::test_pygit2_winrepo_simple
|
||||
tests/pytests/integration/minion/test_return_retries.py::test_pillar_timeout
|
||||
tests/pytests/integration/minion/test_return_retries.py::test_publish_retry
|
||||
tests/pytests/integration/modules/saltutil/test_pillar.py::"test_pillar_refresh[False]"
|
||||
tests/pytests/integration/modules/saltutil/test_pillar.py::"test_pillar_refresh[True]"
|
||||
tests/pytests/integration/modules/test_state.py::test_logging_and_state_output_order
|
||||
tests/pytests/integration/modules/test_test.py::test_deprecation_warning_emits_deprecation_warnings
|
||||
tests/pytests/integration/renderers/test_jinja.py::test_issue_54765_call
|
||||
tests/pytests/integration/renderers/test_jinja.py::test_issue_54765_salt
|
||||
tests/pytests/integration/ssh/state/test_pillar_override_template.py::"test_it[args0-kwargs0]"
|
||||
tests/pytests/integration/ssh/state/test_pillar_override_template.py::"test_it[args1-kwargs1]"
|
||||
tests/pytests/integration/ssh/state/test_pillar_override_template.py::"test_it[args2-kwargs2]"
|
||||
tests/pytests/integration/ssh/state/test_retcode_highstate_verification_structure_fail.py::"test_it[args0-20]"
|
||||
tests/pytests/integration/ssh/state/test_retcode_highstate_verification_structure_fail.py::"test_it[args1-20]"
|
||||
tests/pytests/integration/ssh/state/test_retcode_highstate_verification_structure_fail.py::"test_it[args2-20]"
|
||||
tests/pytests/integration/ssh/state/test_retcode_highstate_verification_structure_fail.py::"test_it[args3-20]"
|
||||
tests/pytests/integration/ssh/state/test_retcode_highstate_verification_structure_fail.py::"test_it[args4-0]"
|
||||
tests/pytests/integration/ssh/state/test_retcode_highstate_verification_structure_fail.py::"test_it[args5-20]"
|
||||
tests/pytests/integration/ssh/test_jinja_filters.py::test_dateutils_strftime
|
||||
tests/pytests/integration/ssh/test_terraform.py::test_terraform_roster
|
||||
tests/pytests/unit/config/schemas/test_ssh.py::test_config_validate
|
||||
tests/pytests/unit/grains/test_core.py::test_get_machine_id
|
||||
tests/pytests/unit/grains/test_package.py::test_grain_package_type
|
||||
tests/pytests/unit/loader/test_loader.py::test_named_loader_context_name_not_packed
|
||||
tests/pytests/unit/modules/test_beacons.py::test_add
|
||||
tests/pytests/unit/modules/test_beacons.py::test_add_beacon_module
|
||||
tests/pytests/unit/modules/test_beacons.py::test_delete
|
||||
tests/pytests/unit/modules/test_beacons.py::test_delete_beacon_module
|
||||
tests/pytests/unit/modules/test_beacons.py::test_disable
|
||||
tests/pytests/unit/modules/test_beacons.py::test_enable
|
||||
tests/pytests/unit/modules/test_beacons.py::test_enable_beacon_module
|
||||
tests/pytests/unit/modules/test_beacons.py::test_save
|
||||
tests/pytests/unit/modules/test_gpg.py::test_create_key_with_passphrase_with_gpg_passphrase_in_pillar
|
||||
tests/pytests/unit/modules/test_gpg.py::test_create_key_without_passphrase
|
||||
tests/pytests/unit/modules/test_saltutil.py::test_clear_job_cache
|
||||
tests/pytests/unit/modules/test_saltutil.py::test_list_extmods
|
||||
tests/pytests/unit/pillar/test_pillar.py::test_pillar_get_cache_disk
|
||||
tests/pytests/unit/state/test_state_compiler.py::test_verify_high_too_many_functions_declared_error_message
|
||||
tests/pytests/unit/states/test_pkg.py::test_mod_beacon
|
||||
tests/pytests/unit/states/test_service.py::test_mod_beacon
|
||||
tests/pytests/unit/test_ext_importers.py::test_tornado_import_override
|
||||
tests/pytests/unit/utils/test_rsax931.py::test_find_libcrypto_darwin_catalina
|
||||
tests/pytests/unit/utils/test_versions.py::test_warn_until_good_version_argument
|
||||
tests/unit/transport/test_ipc.py::IPCMessagePubSubCase::test_async_reading_streamclosederror
|
||||
tests/unit/utils/test_thin.py::SSHThinTestCase::test_thin_dir
|
||||
tests/unit/utils/test_vt.py::VTTestCase::test_split_multibyte_characters_shiftjis
|
||||
tests/unit/utils/test_vt.py::VTTestCase::test_split_multibyte_characters_unicode
|
||||
tests/unit/utils/test_vt.py::VTTestCase::test_vt_size
|
||||
|
||||
# tests that need network access
|
||||
tests/pytests/functional/states/file/test_managed.py::test_verify_ssl_https_source
|
||||
tests/pytests/unit/modules/test_aptpkg.py::test_sourceslist_architectures
|
||||
tests/pytests/unit/modules/test_aptpkg.py::test_sourceslist_multiple_comps
|
||||
tests/pytests/unit/modules/test_yumpkg.py::test_get_yum_config
|
||||
tests/pytests/unit/modules/test_yumpkg.py::test_get_yum_config_value_none
|
||||
tests/pytests/unit/test_ext_importers.py::test_tornado_import_override
|
||||
tests/pytests/unit/utils/test_http.py::test_backends_decode_body_false
|
||||
tests/pytests/unit/utils/test_http.py::test_backends_decode_body_true
|
||||
tests/pytests/unit/utils/test_http.py::test_query_proxy
|
||||
tests/pytests/unit/utils/test_network.py::test_isportopen
|
||||
|
||||
# tests that need root access
|
||||
tests/unit/modules/test_saltcheck.py::SaltcheckTestCase::test_call_salt_command
|
||||
tests/unit/modules/test_saltcheck.py::SaltcheckTestCase::test_call_salt_command2
|
||||
tests/unit/modules/test_saltcheck.py::SaltcheckTestCase::test_run_test_1
|
||||
)
|
||||
[[ ${EPYTHON#*.} -ge 11 ]] && EPYTEST_DESELECT+=(
|
||||
tests/unit/test_master.py::TransportMethodsTest::test_aes_funcs_black
|
||||
tests/unit/test_master.py::TransportMethodsTest::test_clear_funcs_black
|
||||
)
|
||||
[[ ${EPYTHON#*.} -ge 12 ]] && EPYTEST_DESELECT+=(
|
||||
tests/integration/modules/test_mine.py::MineTest::test_get_allow_tgt
|
||||
tests/integration/modules/test_mine.py::MineTest::test_mine_delete
|
||||
tests/integration/modules/test_mine.py::MineTest::test_send_allow_tgt
|
||||
tests/integration/modules/test_mine.py::MineTest::test_send_allow_tgt_compound
|
||||
tests/integration/modules/test_saltcheck.py::SaltcheckModuleTest::test_saltcheck_checkall
|
||||
tests/integration/modules/test_saltcheck.py::SaltcheckModuleTest::test_saltcheck_checkall_saltenv
|
||||
tests/integration/modules/test_saltcheck.py::SaltcheckModuleTest::test_saltcheck_run
|
||||
tests/integration/modules/test_saltcheck.py::SaltcheckModuleTest::test_saltcheck_saltenv
|
||||
tests/integration/modules/test_saltcheck.py::SaltcheckModuleTest::test_saltcheck_state
|
||||
tests/integration/output/test_output.py::OutputReturnTest::test_output_highstate
|
||||
tests/integration/output/test_output.py::OutputReturnTest::test_output_json
|
||||
tests/integration/output/test_output.py::OutputReturnTest::test_output_nested
|
||||
tests/integration/output/test_output.py::OutputReturnTest::test_output_pprint
|
||||
tests/integration/output/test_output.py::OutputReturnTest::test_output_raw
|
||||
tests/integration/output/test_output.py::OutputReturnTest::test_output_txt
|
||||
tests/integration/output/test_output.py::OutputReturnTest::test_output_yaml
|
||||
tests/integration/output/test_output.py::OutputReturnTest::test_output_yaml_namespaced_dict_wrapper
|
||||
tests/integration/output/test_output.py::OutputReturnTest::test_static_simple
|
||||
tests/integration/runners/test_manage.py::ManageTest::test_down
|
||||
tests/integration/runners/test_manage.py::ManageTest::test_up
|
||||
tests/integration/shell/test_master_tops.py::MasterTopsTest::test_custom_tops_gets_utilized
|
||||
tests/integration/states/test_archive.py::ArchiveTest::test_local_archive_extracted_with_skip_files_list_verify_and_keep_source_is_false
|
||||
tests/pytests/functional/states/test_pip_state.py::test_issue_2087_missing_pip
|
||||
tests/pytests/unit/modules/test_nilrt_ip.py::"test_when_default_value_is_not_a_string_and_option_is_missing_the_default_value_should_be_returned[-99.9]"
|
||||
tests/pytests/unit/modules/test_nilrt_ip.py::"test_when_default_value_is_not_a_string_and_option_is_missing_the_default_value_should_be_returned[42]"
|
||||
tests/pytests/unit/modules/test_nilrt_ip.py::"test_when_default_value_is_not_a_string_and_option_is_missing_the_default_value_should_be_returned[default_value2]"
|
||||
tests/pytests/unit/modules/test_nilrt_ip.py::"test_when_default_value_is_not_a_string_and_option_is_missing_the_default_value_should_be_returned[default_value3]"
|
||||
tests/pytests/unit/modules/test_nilrt_ip.py::"test_when_default_value_is_not_a_string_and_option_is_missing_the_default_value_should_be_returned[default_value4]"
|
||||
tests/pytests/unit/modules/test_nilrt_ip.py::test_when_config_has_no_quotes_around_string_it_should_be_returned_as_is
|
||||
tests/pytests/unit/modules/test_nilrt_ip.py::test_when_config_has_quotes_around_string_they_should_be_removed
|
||||
tests/pytests/unit/utils/vault/test_auth.py::"test_approle_auth_get_token_login[secret_id-approle]"
|
||||
tests/unit/modules/test_zypperpkg.py::ZypperTestCase::test_repo_value_info
|
||||
tests/unit/utils/test_color.py::ColorUtilsTestCase::test_get_colors
|
||||
)
|
||||
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 4096 || die
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
local TMPDIR
|
||||
TMPDIR="$(mktemp --directory --tmpdir=/tmp ${PN}-XXXX)" || die
|
||||
(
|
||||
test_exports=(
|
||||
TMPDIR
|
||||
SHELL="/bin/bash"
|
||||
USE_SETUPTOOLS=1
|
||||
NO_INTERNET=1
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
)
|
||||
export "${test_exports[@]}"
|
||||
|
||||
cleanup() { rm -rf "${TMPDIR}" || die; }
|
||||
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${TMPDIR}"
|
||||
|
||||
epytest --run-slow
|
||||
)
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST makeself-2.4.5.tar.gz 39012 BLAKE2B f79cf1c087e89c4fd09f328fb795a3f8a78ee38060dbbd1590e3dcdf22a346b0c12bf6837d1636efadb2a66f6a762308de7ee9dd2fc62a7c88d417d257c5f0f6 SHA512 1dae74586f6bd5afb526801b7ffa7fc7962ff74b0f190cdd51da93c21421864b72f5fe18090cb2ff6ad27f0907fbf3aeb5545f3f70e33dbc9e505a78505f5f90
|
||||
DIST makeself-2.5.0.tar.gz 43996 BLAKE2B 60e5b7a55bd03e45d25753600ddb4e0e15f05eabc95db18f1a9da10308d018bb913ba1e8bc264c3bd828c3d229aca34fae4ab1682bf6cf59c591a6fdef186061 SHA512 cd0ce98579f00a02f9559848b39e0a6efea9df1866073d419f0b6560034cc186ed8315f8b4589e03f626b040727d9ae646bc2abaebe4f4da556b87617bdd770f
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit optfeature
|
||||
|
||||
DESCRIPTION="Shell script that generates a self-extractible tar.gz"
|
||||
HOMEPAGE="https://makeself.io/"
|
||||
SRC_URI="https://github.com/megastep/makeself/archive/refs/tags/release-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~hppa ppc x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
# NB: The test framework requires bashunit (which isn't a big deal), but the
|
||||
# tests themselves are not of great quality. You should avoid running them
|
||||
# yourself as they like to run commands like gpg against your own ~/ settings.
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${PN}-release-${PV}"
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
dobin makeself-header.sh makeself.sh
|
||||
dosym makeself.sh /usr/bin/makeself
|
||||
doman makeself.1
|
||||
dodoc README.md makeself.lsm
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "lz4 support" app-arch/lz4
|
||||
optfeature "lzop support" app-arch/lzop
|
||||
optfeature "pbzip2 support" app-arch/pbzip2
|
||||
optfeature "pigz support" app-arch/pigz
|
||||
optfeature "zstd support" app-arch/zstd
|
||||
|
||||
# Also bzip2 and xz are supported but they are in @system.
|
||||
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST distrobox-1.6.0.1.tar.gz 6751373 BLAKE2B 9d82f33e15be8a2c17b7716ddbecf4fc533f971924c36ba8fa009dac7a87fbc26075ca98d6c58c5974fa1a02657419f26b415925d71f6577a8897a9e199950fc SHA512 cc7bd42b1c7e198eb255b6bdd90a76fa25700edc274b14379ffe3199c8a8cadc9ab27c94f43ee4a92d270b65df7b04e6c11441eb68456fe7ec3d56b2879534f2
|
||||
DIST distrobox-1.7.0.1.tar.gz 6756031 BLAKE2B 320dde2bdf005c5bd66954f212547adb6bbd6d06611272c6a1b1859eef7ad47dbbbf300baaef555e2bf9a750def117ec69418affb75514652aa0e366314fbaf2 SHA512 971a3f15216d2dfa2829a1ea085c7579c4f0bf0e57678474f83df05ae8c897db8a8cd477a429d0126cad11ac0379029b9c759944cea8649971e67f20a3e18328
|
||||
DIST distrobox-1.7.0.tar.gz 6755733 BLAKE2B 27bd75046d0b221543c4870bc49305c62da03343f4a602a87a50fac9a1d5b428a040099fbea8730fe2eba0b96eb90b966bc15d5ad46d62d79157047a2048f23c SHA512 5e29a5bb4a9fca4e54df979b304c2c23af93a5326383245183fee9bc7fbf6265128e1690c653410cb3063fabc522cf38bfa041dba7b921146010f7e43630613c
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Use any Linux distribution inside your terminal (powered by docker/podman)"
|
||||
HOMEPAGE="https://distrobox.privatedns.org/
|
||||
https://github.com/89luca89/distrobox/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/89luca89/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/89luca89/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3" # GPL-3.0-only !
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
app-containers/docker
|
||||
app-containers/podman
|
||||
)
|
||||
"
|
||||
|
||||
src_install() {
|
||||
sh ./install --prefix "${ED}/usr" || die "${PN} install script failed"
|
||||
|
||||
dodoc *.md
|
||||
}
|
@ -1,8 +1,6 @@
|
||||
DIST earthly-0.7.23-deps.tar.xz 157140928 BLAKE2B 493c7dce3e79f94659e99501020c07232a2d6ff78a055209b1b42be8615e38e01dacef4ceb50a80ed26e597de4dbb892fee2d54f6721fd5af62c86a0a9197d45 SHA512 a278077be794a1085105271fc3e031c02079e2b4f45c7220b3114df72ba26758758d5c0f1171ff861feb1c305765952494bf1afe95dcc469d2b9c6aad13fe7b9
|
||||
DIST earthly-0.7.23.tar.gz 8023353 BLAKE2B 458850b26a2730eb10ae3912f249d6ba9fdf81ed0c734f568ebf2cbaf5da005d258d38a089d452d42628d071d0b07f73e4f73cb29e7a02c406c1ea394d22ae97 SHA512 be524a6ab86ad3cff307d990f3645007cde673383cbaf132ebc6ab9e7052e8d13e163e958353041151d9fe6dc987ab75372dbf061a8413a932408a844cfe1007
|
||||
DIST earthly-0.8.0-deps.tar.xz 158417236 BLAKE2B 998240c6065dd46eebc311975fa98e657a9568b6e26f0113d00e2f55b1cea8b017425fb6cafa7a7a5d7dd2ccdbaf711cee62b5a98d92322f9ff8a6458bb31a02 SHA512 1fd31f82acb7862a4deff611f088b73fd15e04a2bf56d91dff955ffb4c3c54425f6011b7a2bcf94fbb721ea820cc3728f8038870eb073c6d12d435406167dc8b
|
||||
DIST earthly-0.8.0.tar.gz 8029214 BLAKE2B 1ca0afa4e92a05fca47ada6a6b74d789fb9571b0e92cc7bbb0ccc88930a128db76382b3e5137073ebd82f74fb8d43b81f8e6d056a08e6fa73978f23b680b36e2 SHA512 661c1e15cf8943dfcd8d55c36191f4f9da6dc705bb894194ff0a31733038f7b74d2b187a066c6a6cc329a9a89f362299f1de3b370f273ce87e2e3cdd2b4c8163
|
||||
DIST earthly-0.8.3-deps.tar.xz 158480860 BLAKE2B 4b875ef1ab7a244e2b92f13bc3dc55772c8e74af77b8a9814b2e964da4547a84fd7fe94ce96f77d4793a41039857e45ed133e61b8798d03c94d9546668dbaccd SHA512 e0071fbb9d5e85a81322c1e8fa36d393916031b99ca8783ab70c15084e5dd60cedbed24b9e7fe1e7c7b2e79c6b5f554b0518524b63b4c5e6d25aa99e56bec404
|
||||
DIST earthly-0.8.3.tar.gz 8034636 BLAKE2B f61133eda18d81588d35a1b4916bdc72e3a037007d4872e093be035dc25f502a8947e2610af49f8339835cc2fd607ee2bc813ad19124625f0fa55aa3e183bed8 SHA512 a2880e0b1c8d2646b70ae21557f5e05f00b31667ae10fcd124d9519b1e9a75386b7f7be3867a2ac96b3381cefa6ea1ff560844df0ae098e7ae5acc11eaa93f97
|
||||
DIST earthly-0.8.4-deps.tar.xz 158470344 BLAKE2B c3ec6369f8b397abd9b76dc77461c628e14ecc5866c8b66d094c3fe3194b18330be78454b57f211a717785210da40dc3c83e7d9769c62d621ca42a9d70f7be7f SHA512 d9b0960e02cf288b933a8da954e597957b2e8dc0920e2dca208a17d41c84bc1bcff789ee1c02fa930d5d0a816cb03437b091375168e0f46f3d3cf330a643b308
|
||||
DIST earthly-0.8.4.tar.gz 8041021 BLAKE2B 66057e29d4b287a220d8799efb4a1c5c43ea7641029e3af59bf8556125df28f9eafddc20d515fd20fab8c09bbb6278af4ea525f4bbe38d0e24ee031fc65c7336 SHA512 b663a10feb255329dfca30d5d70cb5c36ad5f96ed2b0cd30c46dd1b4ad087ab15b941fe6d3be3e32b1eee8199b5ee8ae50d61739c290b8967b6fcfd4126327db
|
||||
DIST earthly-0.8.5-deps.tar.xz 157843872 BLAKE2B aade314abdcd8aaf18737908df1a90d71c907f286df463c9f8ce9654d5e212387b7107070225bf85f54d6e4688a741b7838b5c70d9f1a09ac15e904b83d4d2b8 SHA512 557b3477c1773c27934429677a53efbdc104230fcbd536cb73e8cd631ccf2af488731acc5555484298fc579e08b8e52031191b49ef0610595b2b67cc987232e3
|
||||
DIST earthly-0.8.5.tar.gz 8051712 BLAKE2B b9310a28d79bec7a59525a541cdd51960762b0695ccf15fd33be8a9917a7e52b2251a4ebf202c4f02036b3c178b8d26fc9bc4802b9d6a73a5bfc39623c5075d7 SHA512 206dc95c2ef4b89ea7dd65b2b04f4ac7606d63891cea708f7d7dcdff8f3e9ed113b090b65c0285175412cd76fca18852bf77eeddc2e0f2782f390e5bce1f8b86
|
||||
|
@ -1,73 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Git commit SHA is needed at runtime by earthly to pull and bootstrap images.
|
||||
if [[ "${PV}" == 0.7.23 ]] ; then
|
||||
GIT_COMMIT_SHA=e77372274b09b5e5f8a42f1b6ac264f7149c4924
|
||||
else
|
||||
die 'Could not detect "GIT_COMMIT_SHA", please update the ebuild.'
|
||||
fi
|
||||
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="Build automation tool that executes in containers"
|
||||
HOMEPAGE="https://earthly.dev/
|
||||
https://github.com/earthly/earthly/"
|
||||
SRC_URI="
|
||||
https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz
|
||||
"
|
||||
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
app-containers/docker
|
||||
app-containers/podman
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( CHANGELOG.md CONTRIBUTING.md README.md )
|
||||
|
||||
src_compile() {
|
||||
mkdir -p bin || die
|
||||
|
||||
local go_tags="dfrunmount,dfrunsecurity,dfsecrets,dfssh,dfrunnetwork,dfheredoc,forceposix"
|
||||
local go_ldflags="
|
||||
-X main.DefaultBuildkitdImage=docker.io/earthly/buildkitd:v${PV}
|
||||
-X main.GitSha=${GIT_COMMIT_SHA}
|
||||
-X main.Version=v${PV}
|
||||
"
|
||||
local -a go_buildargs=(
|
||||
-tags "${go_tags}"
|
||||
-ldflags "${go_ldflags}"
|
||||
-o bin
|
||||
)
|
||||
ego build "${go_buildargs[@]}" ./cmd/...
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/bin
|
||||
doexe bin/earthly
|
||||
newexe bin/debugger earthly-debugger
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if has_version "app-containers/podman" ; then
|
||||
ewarn "Podman is supported but not recommended."
|
||||
ewarn "If issues arise, then please try running earthly with docker."
|
||||
fi
|
||||
|
||||
if has_version "app-containers/podman[rootless]" ; then
|
||||
ewarn "Running podman in rootless mode is not supported because"
|
||||
ewarn "earthly/dind and earthly/buildkit require privileged access."
|
||||
ewarn "For more info see: https://docs.earthly.dev/docs/guides/podman/"
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST libsecret-0.20.5.tar.xz 187340 BLAKE2B cde5094eaaf54f251c19afb015c39cc88435dafe6ee682ca8f9d1917dd5b3dc8cc1609cdbf2a3a42d2592c2a149bec5fe28b2f4ec179b92c0d0f07d2f14c1792 SHA512 61ca248aafd265e1f31d56c9084c68d880ebf03660ace3d4a6c6622ab306b56e921ac24647b6a60633bfa99c8a0407d4ae1aa6148511f289bf5ce2025b72692a
|
||||
DIST libsecret-0.21.1.tar.xz 190796 BLAKE2B 862c2aac0c519d2607c1c5b057d1e0d00d3d5bce06744ab8c6e074393ede2f154af9ab3ee988820c936c8c22dba205ee7bd570287aaa47e64fde21ae3a7dfc2b SHA512 e201b2292280c355d08f8bd2d90d6d785d7b618c82e731eb9c051599a24d8f6a0cc3e271b1876d738f4a15aab24c2b6607b6d15d4335a990e74bb0371fe941ae
|
||||
|
@ -1,152 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
|
||||
inherit bash-completion-r1 gnome2 meson-multilib python-any-r1 vala virtualx
|
||||
|
||||
DESCRIPTION="GObject library for accessing the freedesktop.org Secret Service API"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/Libsecret"
|
||||
|
||||
LICENSE="LGPL-2.1+ Apache-2.0" # Apache-2.0 license is used for tests only
|
||||
SLOT="0"
|
||||
|
||||
IUSE="+crypt gtk-doc +introspection test test-rust tpm +vala"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
vala? ( introspection )
|
||||
gtk-doc? ( crypt )
|
||||
"
|
||||
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/glib-2.44:2[${MULTILIB_USEDEP}]
|
||||
crypt? ( >=dev-libs/libgcrypt-1.2.2:0=[${MULTILIB_USEDEP}] )
|
||||
tpm? ( >=app-crypt/tpm2-tss-3.0.3:= )
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.54:= )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
PDEPEND="virtual/secret-service"
|
||||
BDEPEND="
|
||||
app-text/docbook-xml-dtd:4.2
|
||||
dev-libs/libxslt
|
||||
dev-util/gdbus-codegen
|
||||
dev-util/glib-utils
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
gtk-doc? (
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
>=dev-util/gi-docgen-2021.7
|
||||
)
|
||||
test? (
|
||||
$(python_gen_any_dep '
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
introspection? ( dev-python/pygobject:3[${PYTHON_USEDEP}] )')
|
||||
test-rust? ( introspection? ( >=dev-libs/gjs-1.32 ) )
|
||||
tpm? (
|
||||
app-crypt/swtpm
|
||||
app-crypt/tpm2-abrmd
|
||||
>=app-crypt/tpm2-tss-3.2.0:=
|
||||
)
|
||||
)
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
dbus_run() {
|
||||
(
|
||||
# start isolated dbus session bus
|
||||
dbus_data=$(dbus-launch --sh-syntax) || exit
|
||||
eval "${dbus_data}"
|
||||
|
||||
$@
|
||||
ret=${?}
|
||||
|
||||
kill "${DBUS_SESSION_BUS_PID}"
|
||||
exit "${ret}"
|
||||
) || die
|
||||
}
|
||||
|
||||
tpm2_run_with_emulator() {
|
||||
export XDG_CONFIG_HOME=${T}/.config/swtpm
|
||||
"${BROOT}"/usr/share/swtpm/swtpm-create-user-config-files || die
|
||||
|
||||
mkdir -p ${XDG_CONFIG_HOME}/mytpm1 || die
|
||||
swtpm_setup_args=(
|
||||
--tpm2
|
||||
--tpmstate ${XDG_CONFIG_HOME}/mytpm1
|
||||
--createek
|
||||
--allow-signing
|
||||
--decryption
|
||||
--create-ek-cert
|
||||
--create-platform-cert
|
||||
--lock-nvram
|
||||
--overwrite
|
||||
--display
|
||||
)
|
||||
swtpm_setup "${swtpm_setup_args[@]}" || die
|
||||
|
||||
swtpm_socket_args=(
|
||||
--tpm2
|
||||
--tpmstate dir=${XDG_CONFIG_HOME}/mytpm1
|
||||
--flags startup-clear
|
||||
--ctrl type=unixio,path=${XDG_CONFIG_HOME}/mytpm1/swtpm.socket.ctrl
|
||||
--server type=unixio,path=${XDG_CONFIG_HOME}/mytpm1/swtpm.socket
|
||||
--pid file=${XDG_CONFIG_HOME}/mytpm1/swtpm.pid
|
||||
--daemon
|
||||
)
|
||||
swtpm socket "${swtpm_socket_args[@]}" || die
|
||||
|
||||
tpm2_abrmd_args=(
|
||||
--logger=stdout
|
||||
--tcti=swtpm:path=${XDG_CONFIG_HOME}/mytpm1/swtpm.socket
|
||||
--session
|
||||
--flush-all
|
||||
)
|
||||
tpm2-abrmd "${tpm2_abrmd_args[@]}" &
|
||||
export TCTI=tabrmd:bus_type=session
|
||||
|
||||
$@ || die
|
||||
|
||||
# When swtpm dies, tmp2-abrmd will exit
|
||||
kill $(< ${XDG_CONFIG_HOME}/mytpm1/swtpm.pid) || die
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
if use introspection; then
|
||||
has_version -b "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
|
||||
fi
|
||||
has_version -b "dev-python/dbus-python[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use vala && vala_src_prepare
|
||||
default
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_native_true manpage)
|
||||
$(meson_use crypt gcrypt)
|
||||
$(meson_native_use_bool vala vapi)
|
||||
$(meson_native_use_bool gtk-doc gtk_doc)
|
||||
$(meson_native_use_bool introspection)
|
||||
-Dbashcompdir="$(get_bashcompdir)"
|
||||
$(meson_native_enabled bash_completion)
|
||||
$(meson_native_use_bool tpm tpm2)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if use tpm; then
|
||||
dbus_run tpm2_run_with_emulator virtx meson test -C "${BUILD_DIR}"
|
||||
else
|
||||
virtx dbus-run-session meson test -C "${BUILD_DIR}"
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST mousepad-0.6.1.tar.bz2 1405279 BLAKE2B db94c433ba6dc697906258942abd0bcaa5a0a244c30c6e344e737944e84688045319551ebd1512aba541d87beafe5a8a26bb1265a06619aad64c7155140f33b3 SHA512 cf6ee9e32ecb1be9f1f54c587c4e8f653eb949f1103e378bf27959b88d8d6f268fb796285c8077bcef97926288cf941b9fb9426bfeb680ee728bddefa2d77d23
|
||||
DIST mousepad-0.6.2.tar.bz2 1402314 BLAKE2B c783ec58317ca3c0eaa0023ade3043f4aa4f020a12c0258fe0cf1e2303aa07dfbc67b9aa0178ca9282da98754103fda6c90ba034fa4057dd855b400c0d371085 SHA512 086f60f6f405290ed76366f4c5195e9c8f9c5058d1892200a73e48d6378428efe47f2038e3eddb81186e22dd87d57580559a556b1b22f202b6f056c7f90b64ea
|
||||
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit gnome2-utils xdg-utils
|
||||
|
||||
DESCRIPTION="GTK+-based editor for the Xfce Desktop Environment"
|
||||
HOMEPAGE="
|
||||
https://docs.xfce.org/apps/mousepad/start
|
||||
https://gitlab.xfce.org/apps/mousepad/
|
||||
"
|
||||
SRC_URI="https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~ia64 ~loong ~ppc ppc64 ~riscv x86"
|
||||
IUSE="policykit spell +shortcuts"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/glib-2.56.2
|
||||
>=x11-libs/gtk+-3.22:3
|
||||
>=x11-libs/gtksourceview-4.0.0:4
|
||||
policykit? ( sys-auth/polkit )
|
||||
spell? ( app-text/gspell )
|
||||
shortcuts? ( >=xfce-base/libxfce4ui-4.17.5:= )
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
dev-lang/perl
|
||||
dev-util/intltool
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--enable-gtksourceview4
|
||||
$(use_enable policykit polkit)
|
||||
$(use_enable spell plugin-gspell)
|
||||
$(use_enable shortcuts plugin-shortcuts)
|
||||
)
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_schemas_update
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_schemas_update
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop pax-utils xdg optfeature
|
||||
|
||||
DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
|
||||
HOMEPAGE="https://code.visualstudio.com"
|
||||
SRC_URI="
|
||||
amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> ${P}-amd64.tar.gz )
|
||||
arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> ${P}-arm.tar.gz )
|
||||
arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable -> ${P}-arm64.tar.gz )
|
||||
"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="
|
||||
Apache-2.0
|
||||
BSD
|
||||
BSD-1
|
||||
BSD-2
|
||||
BSD-4
|
||||
CC-BY-4.0
|
||||
ISC
|
||||
LGPL-2.1+
|
||||
Microsoft-vscode
|
||||
MIT
|
||||
MPL-2.0
|
||||
openssl
|
||||
PYTHON
|
||||
TextMate-bundle
|
||||
Unlicense
|
||||
UoI-NCSA
|
||||
W3C
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* amd64 ~arm ~arm64"
|
||||
IUSE="egl kerberos wayland"
|
||||
RESTRICT="mirror strip bindist"
|
||||
|
||||
RDEPEND="
|
||||
>=app-accessibility/at-spi2-core-2.46.0:2
|
||||
app-crypt/libsecret[crypt]
|
||||
app-misc/ca-certificates
|
||||
dev-libs/expat
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
media-libs/alsa-lib
|
||||
media-libs/libcanberra[gtk3]
|
||||
media-libs/libglvnd
|
||||
media-libs/mesa
|
||||
net-misc/curl
|
||||
sys-apps/dbus
|
||||
sys-libs/zlib
|
||||
sys-process/lsof
|
||||
x11-libs/cairo
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libdrm
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libxkbcommon
|
||||
x11-libs/libxkbfile
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXScrnSaver
|
||||
x11-libs/pango
|
||||
x11-misc/xdg-utils
|
||||
kerberos? ( app-crypt/mit-krb5 )
|
||||
"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
src_install() {
|
||||
if use amd64; then
|
||||
cd "${WORKDIR}/VSCode-linux-x64" || die
|
||||
elif use arm; then
|
||||
cd "${WORKDIR}/VSCode-linux-armhf" || die
|
||||
elif use arm64; then
|
||||
cd "${WORKDIR}/VSCode-linux-arm64" || die
|
||||
else
|
||||
die "Visual Studio Code only supports amd64, arm and arm64"
|
||||
fi
|
||||
|
||||
# Cleanup
|
||||
rm -r ./resources/app/ThirdPartyNotices.txt || die
|
||||
|
||||
# Disable update server
|
||||
sed -e "/updateUrl/d" -i ./resources/app/product.json || die
|
||||
|
||||
if ! use kerberos; then
|
||||
rm -r ./resources/app/node_modules.asar.unpacked/kerberos || die
|
||||
fi
|
||||
|
||||
# Install
|
||||
pax-mark m code
|
||||
mkdir -p "${ED}/opt/${PN}" || die
|
||||
cp -r . "${ED}/opt/${PN}" || die
|
||||
fperms 4711 /opt/${PN}/chrome-sandbox
|
||||
|
||||
dosym -r "/opt/${PN}/bin/code" "usr/bin/vscode"
|
||||
dosym -r "/opt/${PN}/bin/code" "usr/bin/code"
|
||||
|
||||
local EXEC_EXTRA_FLAGS=()
|
||||
if use wayland; then
|
||||
EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" "--enable-wayland-ime" )
|
||||
fi
|
||||
if use egl; then
|
||||
EXEC_EXTRA_FLAGS+=( "--use-gl=egl" )
|
||||
fi
|
||||
|
||||
sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
|
||||
"${FILESDIR}/code-url-handler.desktop" \
|
||||
> "${T}/code-url-handler.desktop" || die
|
||||
|
||||
sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
|
||||
"${FILESDIR}/code.desktop" \
|
||||
> "${T}/code.desktop" || die
|
||||
|
||||
domenu "${T}/code.desktop"
|
||||
domenu "${T}/code-url-handler.desktop"
|
||||
newicon "resources/app/resources/linux/code.png" "vscode.png"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
optfeature "desktop notifications" x11-libs/libnotify
|
||||
optfeature "keyring support inside vscode" "virtual/secret-service"
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
diff -r 3761ed745bc6 configure.ac
|
||||
--- a/configure.ac Sat Mar 02 17:26:00 2024 +0100
|
||||
+++ b/configure.ac Fri Mar 08 22:25:23 2024 +0100
|
||||
@@ -2192,7 +2192,6 @@
|
||||
|
||||
compiler_version=""
|
||||
gcc_compiler_specs=""
|
||||
-libc_version=""
|
||||
|
||||
AC_MSG_CHECKING([for compiler version information])
|
||||
|
||||
@@ -2255,53 +2254,6 @@
|
||||
fi
|
||||
AC_MSG_RESULT([$compiler_version])
|
||||
|
||||
-AC_MSG_CHECKING(for standard C library version information)
|
||||
-
|
||||
-case "$ac_cv_build" in
|
||||
- *-*-linux*)
|
||||
- dnl #### who would ever _not_ be running the distro's libc?
|
||||
- dnl Maybe it would be better to get/augment this info with ldd?
|
||||
- if test -f /etc/redhat-release ; then
|
||||
- libc_version=`rpm -q glibc`
|
||||
- elif test -f /etc/debian_version ; then
|
||||
- libc_version=`dpkg-query --showformat='${version}' --show libc6`
|
||||
- libc_version="GNU libc $libc_version (Debian)"
|
||||
- dnl need SuSE et al checks here...
|
||||
- fi
|
||||
- dnl #### Tested on Debian, does this actually work elsewhere? ;-)
|
||||
- if test -z "$libc_version"; then
|
||||
- libc_version=`ls /lib/libc-*.so | sed -e 's,/lib/libc-\(.*\)\.so,\1,'`
|
||||
- fi
|
||||
- ;;
|
||||
-
|
||||
- *-*-aix*)
|
||||
- libc_version="bos.rte.libc `lslpp -Lqc bos.rte.libc | cut -f3 -d:`"
|
||||
- ;;
|
||||
-
|
||||
- *-*-solaris*)
|
||||
- libc=`pkginfo -l SUNWcsl | grep VERSION: | awk '{print $2}'`
|
||||
- libc_version="SUNWcsl $libc"
|
||||
-
|
||||
- ;;
|
||||
-
|
||||
- mips-sgi-irix*)
|
||||
- libc_version="IRIX libc `uname -sRm`"
|
||||
- ;;
|
||||
-
|
||||
- alpha*-dec-osf*)
|
||||
- dnl Another ugly case
|
||||
- (cd /usr/.smdb.;
|
||||
- libc_version=` grep -h libc.so *.inv | awk '$9 == "f" {print $12}' | tr '\n' ','`
|
||||
- )
|
||||
- ;;
|
||||
-esac
|
||||
-
|
||||
-dnl Awww, shucks.
|
||||
-if test -z "libc_version"; then
|
||||
- libc_version="detection failed (please report this)"
|
||||
-fi
|
||||
-AC_MSG_RESULT([$libc_version])
|
||||
-
|
||||
dnl ---------------------------------------------------------
|
||||
dnl These directories are used to search for include subdirs.
|
||||
dnl ---------------------------------------------------------
|
||||
@@ -6122,7 +6074,6 @@
|
||||
echo " WARNING: CC and XEMACS_CC mismatched; check CFLAGS carefully."
|
||||
fi
|
||||
fi
|
||||
-echo " libc version: $libc_version"
|
||||
echo " Relocating allocator for buffers: $with_rel_alloc"
|
||||
echo "
|
||||
Package Search (a 'root' contains '{xemacs,mule,site}-packages'):"
|
@ -0,0 +1,258 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Note: xemacs currently does not work with position independent code
|
||||
# so the build forces the use of the -no-pie option
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit flag-o-matic xdg-utils desktop autotools
|
||||
|
||||
DESCRIPTION="highly customizable open source text editor and application development system"
|
||||
HOMEPAGE="https://www.xemacs.org/"
|
||||
|
||||
SRC_URI="http://ftp.xemacs.org/pub/xemacs/xemacs-$(ver_cut 1-2)/${P}.tar.gz
|
||||
neXt? ( http://www.malfunction.de/afterstep/files/NeXT_XEmacs.tar.gz )"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="alsa debug gif gpm pop postgres ldap xface nas dnd X jpeg tiff png motif freewnn xft xim athena neXt Xaw3d gdbm berkdb +bignum"
|
||||
|
||||
X_DEPEND="x11-libs/libXt x11-libs/libXmu x11-libs/libXext x11-misc/xbitmaps"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( >=sys-libs/db-4:= !!<sys-libs/db-4 )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.3:=[berkdb(+)] )
|
||||
>=sys-libs/zlib-1.1.4
|
||||
>=dev-libs/openssl-0.9.6:0=
|
||||
>=media-libs/audiofile-0.2.3
|
||||
gpm? ( >=sys-libs/gpm-1.19.6 )
|
||||
postgres? ( dev-db/postgresql:= )
|
||||
ldap? ( net-nds/openldap:= )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
nas? ( media-libs/nas )
|
||||
X? ( $X_DEPEND !Xaw3d? ( !neXt? ( x11-libs/libXaw ) ) )
|
||||
dnd? ( x11-libs/dnd )
|
||||
motif? ( >=x11-libs/motif-2.3:0[xft=] )
|
||||
athena? ( x11-libs/libXaw )
|
||||
Xaw3d? ( x11-libs/libXaw3d[unicode(+)] )
|
||||
xft? ( media-libs/freetype:2 x11-libs/libXft x11-libs/libXrender >=media-libs/fontconfig-2.5.0 )
|
||||
neXt? ( x11-libs/neXtaw )
|
||||
xface? ( media-libs/compface )
|
||||
tiff? ( media-libs/tiff:= )
|
||||
png? ( >=media-libs/libpng-1.2:0 )
|
||||
jpeg? ( media-libs/libjpeg-turbo:= )
|
||||
freewnn? ( app-i18n/freewnn )
|
||||
>=sys-libs/ncurses-5.2:=
|
||||
>=app-eselect/eselect-emacs-1.15
|
||||
bignum? ( dev-libs/openssl )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PDEPEND="app-xemacs/xemacs-base
|
||||
app-xemacs/mule-base"
|
||||
|
||||
src_unpack() {
|
||||
default_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use neXt && cp "${WORKDIR}"/NeXT.XEmacs/xemacs-icons/* "${S}"/etc/toolbar/
|
||||
find "${S}"/lisp -name '*.elc' -exec rm {} \; || die
|
||||
eapply "${FILESDIR}/${P}-configure.patch"
|
||||
eapply "${FILESDIR}/${P}-mule-tests.patch"
|
||||
eapply "${FILESDIR}/${P}-configure-libc-version.patch"
|
||||
|
||||
eapply_user
|
||||
|
||||
eautoconf
|
||||
|
||||
# Some binaries and man pages are installed under suffixed names
|
||||
# to avoid collions with their GNU Emacs counterparts (see below).
|
||||
# Fix internal filename references.
|
||||
sed -i -e 's/exec gnuclient/&-xemacs/' lib-src/gnudoit || die
|
||||
sed -i -e '/^\.so/s/etags/&-xemacs/' etc/ctags.1 || die
|
||||
sed -i -e '/^\.so/s/gnuserv/&-xemacs/' etc/gnu{client,doit,attach}.1 || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
# bug #639642
|
||||
test-flags -no-pie >/dev/null && append-flags -no-pie
|
||||
filter-flags -pie
|
||||
|
||||
if use X; then
|
||||
|
||||
myconf="${myconf} --with-widgets=athena"
|
||||
myconf="${myconf} --with-dialogs=athena"
|
||||
myconf="${myconf} --with-menubars=lucid"
|
||||
myconf="${myconf} --with-scrollbars=lucid"
|
||||
if use motif ; then
|
||||
myconf="--with-widgets=motif"
|
||||
myconf="${myconf} --with-dialogs=motif"
|
||||
myconf="${myconf} --with-scrollbars=motif"
|
||||
myconf="${myconf} --with-menubars=lucid"
|
||||
fi
|
||||
if use athena or use Xaw3d ; then
|
||||
myconf="--with-scrollbars=athena"
|
||||
fi
|
||||
|
||||
if use Xaw3d; then
|
||||
myconf="${myconf} --with-athena=3d"
|
||||
elif use neXt; then
|
||||
myconf="${myconf} --with-athena=next"
|
||||
else
|
||||
myconf="${myconf} --with-athena=xaw"
|
||||
fi
|
||||
|
||||
use dnd && myconf="${myconf} --with-dragndrop"
|
||||
|
||||
myconf="${myconf} $(use_with tiff )"
|
||||
myconf="${myconf} $(use_with png )"
|
||||
myconf="${myconf} $(use_with jpeg )"
|
||||
myconf="${myconf} $(use_with xface )"
|
||||
|
||||
use xft && myconf="${myconf} --with-xft=emacs,tabs,menubars,gauges" ||
|
||||
myconf="${myconf} --with-xft=no"
|
||||
|
||||
else
|
||||
myconf="${myconf}
|
||||
--without-x
|
||||
--without-xpm
|
||||
--without-dragndrop
|
||||
--with-xft=no
|
||||
--with-gif=no"
|
||||
fi
|
||||
|
||||
if use xim ; then
|
||||
if use motif ; then
|
||||
myconf="${myconf} --with-xim=motif"
|
||||
else
|
||||
myconf="${myconf} --with-xim=xlib"
|
||||
fi
|
||||
else
|
||||
myconf="${myconf} --with-xim=no"
|
||||
fi
|
||||
|
||||
myconf="${myconf} $(use_with freewnn wnn )"
|
||||
|
||||
# This determines the type of sounds we are playing
|
||||
local soundconf="native"
|
||||
|
||||
# This determines how these sounds should be played
|
||||
use nas && soundconf="${soundconf},nas"
|
||||
use alsa && soundconf="${soundconf},alsa"
|
||||
|
||||
myconf="${myconf} --with-sound=${soundconf}"
|
||||
|
||||
if use gdbm || use berkdb ; then
|
||||
use gdbm && mydb="gdbm"
|
||||
use berkdb && mydb="${mydb},berkdb"
|
||||
|
||||
myconf="${myconf} --with-database=${mydb}"
|
||||
else
|
||||
myconf="${myconf} --without-database"
|
||||
fi
|
||||
|
||||
if use debug ; then
|
||||
myconf="${myconf} --with-debug"
|
||||
# bug #924339
|
||||
append-flags -fno-strict-aliasing
|
||||
else
|
||||
myconf="${myconf} --with-optimization --with-cflags-debugging="
|
||||
fi
|
||||
|
||||
use bignum && myconf="${myconf} --with-bignum=openssl" ||
|
||||
myconf="${myconf} --with-bignum=no"
|
||||
|
||||
use freewnn && append-cppflags "-I. -I${ESYSROOT}/usr/include/wnn"
|
||||
|
||||
econf ${myconf} \
|
||||
$(use_with gif ) \
|
||||
$(use_with gpm ) \
|
||||
$(use_with postgres postgresql ) \
|
||||
$(use_with ldap ) \
|
||||
$(use_with pop ) \
|
||||
--prefix=/usr \
|
||||
--with-mule \
|
||||
--with-unicode-internal \
|
||||
--without-canna \
|
||||
--with-ncurses \
|
||||
--with-msw=no \
|
||||
--with-mail-locking=flock \
|
||||
--with-site-lisp=yes \
|
||||
--with-site-modules=yes \
|
||||
--enable-option-checking=no \
|
||||
--with-last-packages=/usr/lib/xemacs
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake EMACSLOADPATH="${S}"/lisp
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake prefix="${ED}"/usr \
|
||||
mandir="${ED}"/usr/share/man/man1 \
|
||||
infodir="${ED}"/usr/share/info \
|
||||
libdir="${ED}"/usr/$(get_libdir) \
|
||||
datadir="${ED}"/usr/share \
|
||||
install
|
||||
|
||||
# Rename some applications installed in bin so that it is clear
|
||||
# which application installed them and so that conflicting
|
||||
# packages (emacs) can't clobber the actual applications.
|
||||
# Addresses bug #62991.
|
||||
for i in b2m ctags etags gnuclient gnudoit gnuattach; do
|
||||
mv "${ED}"/usr/bin/${i} "${ED}"/usr/bin/${i}-xemacs || die "mv ${i} failed"
|
||||
done
|
||||
|
||||
# rename man pages
|
||||
for i in ctags etags gnuserv gnuclient gnudoit gnuattach; do
|
||||
mv "${ED}"/usr/share/man/man1/${i}{,-xemacs}.1 || die "mv ${i}.1 failed"
|
||||
done
|
||||
|
||||
# install base packages directories
|
||||
dodir /usr/lib/xemacs/xemacs-packages/
|
||||
dodir /usr/lib/xemacs/site-packages/
|
||||
dodir /usr/lib/xemacs/site-modules/
|
||||
dodir /usr/lib/xemacs/site-lisp/
|
||||
dodir /usr/lib/xemacs/mule-packages
|
||||
|
||||
# remove extraneous info files
|
||||
cd "${ED}"/usr/share/info
|
||||
rm -f dir info.info texinfo* termcap* standards*
|
||||
|
||||
cd "${S}"
|
||||
dodoc CHANGES-* ChangeLog INSTALL Installation PROBLEMS README*
|
||||
|
||||
newicon "${S}"/etc/${PN}-icon.xpm ${PN}.xpm
|
||||
|
||||
domenu "${FILESDIR}"/${PN}.desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect emacs update ifunset
|
||||
eselect gnuclient update ifunset
|
||||
xdg_desktop_database_update
|
||||
|
||||
einfo "If you are upgrading from XEmacs 21.4 you should note the following"
|
||||
einfo "incompatibilities:"
|
||||
einfo "- Mule-UCS is no longer supported due to proper UTF-8 support in XEmacs 21.5"
|
||||
einfo "- The X resource class has changed from Emacs to XEmacs,"
|
||||
einfo " settings in your .Xdefaults file should be updated accordingly."
|
||||
|
||||
if use xft;
|
||||
then
|
||||
einfo "You have enabled Xft font support. Xft requires font names to be provided"
|
||||
einfo "in a different way, so you may need to adjust your .Xdefaults accordingly."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect emacs update ifunset
|
||||
eselect gnuclient update ifunset
|
||||
xdg_desktop_database_update
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST cape-1.3.tar.gz 40141 BLAKE2B ab9ab2855eb2b38396e7479e7514e65065282e6bf7a04d35e0766c811976392ccb18f128e2ed608eafd9150099aa88203ddbe3d75b48c53f2748d076cfa7e2df SHA512 abe987c0f67fa497d958f20f9e674a90a2ff8493adc865f3f961eee39f5e8367a1e78948e29a2336e973a187fb7e2f60786bb278b07f95d23376aae314ab6aa1
|
||||
DIST cape-1.4.tar.gz 40299 BLAKE2B c1075551b2d1ba9555b41993067a4c96b122a3dd7147cb5378bfc2f41ac20e67606b4d0805adc35fe13d9cf70cb5b83ec86ae88471d2af9d6ceb8849b447938a SHA512 9890ec51b1202a1644767bf57d4174f388d90246a9d2b97e3f2c13c5a07371be3003b11275e2ba0cb41f0898f9185774e91db141947999ca4e8e31bc0e3efd22
|
||||
|
@ -0,0 +1,40 @@
|
||||
# Copyright 2023-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
NEED_EMACS=27.1
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="Completion At Point Extensions"
|
||||
HOMEPAGE="https://github.com/minad/cape/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/minad/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/minad/${PN}/archive/refs/tags/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
>=app-emacs/compat-29.1.4.0
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
DOCS=( CHANGELOG.org README.org )
|
||||
ELISP_TEXINFO="${PN}.texi"
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
src_compile() {
|
||||
elisp-org-export-to texinfo README.org
|
||||
elisp_src_compile
|
||||
elisp-make-autoload-file
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST consult-1.1.tar.gz 103352 BLAKE2B 8ad8eff3d65013de40f9ee10abaa6ea39acb6b96543d533bc4a272139778445863d26d06a88a759215ee46a95cc68595e8b3eb4e91db911b6b6f104e97a47cce SHA512 687266605f2b8fa9260362aabacd8508acb5239fa72061efbc002d311cf5ebef6fce8795729ab3fc2915de3455e1744dc9980dba422495340349e8c426c44a28
|
||||
DIST consult-1.2.tar.gz 103598 BLAKE2B 684ac2c9aca7901ee7ad2d2601327ff57c9fe08b20c6314526b1166bec0276bdf129bd80d09a54b15a1cf91030ed7d2377d91ed49d8ba4e177e3438264587302 SHA512 f8c927bbe447b9337faa511bec59188198d2a6ee0acd142bd48603f09634b7219e183c509245fa7026145c3ca688a6ab152fc0ededc0bf81ee3fb019ef1d675f
|
||||
DIST consult-1.3.tar.gz 103808 BLAKE2B 180f775ac76a4e0c40b8bbeeb254a8eccc3afd01ed8de792f4847e3cdee85201384816fca54bbf29d8b5a4aa8f091e298710e10d8dc1b495b1517cdd91e4500c SHA512 fab8811d4a95ba947334c9098971f24071f0a86df16e44e92a3acaa1b05e4169d41f0d8c05251ed0053a5299f1e0db3b70ff51cfb9165be7a848872412235aee
|
||||
DIST consult-1.4.tar.gz 103709 BLAKE2B 5326856b6bafc0a52d525971d84bd2fd3e0450aa1e8060d9ad49dabc6620fb2b721e5a26ba8d219bd889723109af766ba7fb8faa510301031f9372c798a8853d SHA512 4721820d288a357ea3432a850556a85cb037c1ddc262cada62d75e80641f1b402dd6edfceabb89b8dc386ae391081e02d2550f8773f9760ae267f3af8e381cb6
|
||||
|
@ -1,2 +1,2 @@
|
||||
DIST eldev-1.8.1.tar.gz 297931 BLAKE2B ac19db5284ee782aac5cc876b754cc0c7dec4c150787f34ccec6bf2953c4cca8bd10ace4be0c9817802e3813001db661704cb9c68935f3a344d03cba09dc73d8 SHA512 c1a0eff02f64508493a0271bf5321969f2e629d4ce4609a4ed4bc6fe7df32e093bc2f4ee6bd28667d845a65830f270165bb69737a045316b689e45b16c14cc45
|
||||
DIST eldev-1.8.2.tar.gz 298578 BLAKE2B 579c72d61e15863a81b8a060da0c78900785a2b58f6a4825d19eebb85467ff838f2777bab05dc4ff2b04367d3fe58e4e71cbce09c4bbcc1c0ad5700cc12edc6d SHA512 c5ae360311d4b23648ecfb86e40a23abd4575480b971d86579f61b2c5a2873a9db211fe044cc33a47cb31bc215890a1c0b73c54700a92fcd1eb299a22733f71a
|
||||
DIST eldev-1.9.tar.gz 300721 BLAKE2B dac07c0f7fba1a8637ca9c2e26ebef26fefa88bc6d709a313818233e8c00e2c53acdd2ba37baba2d8e07aa49634a590790faf58edcefafe910793125d7ab7aed SHA512 c3b64cf457ffc0aaa21c34c48379736c98a94773ffd830cd9d79e840638340201f08899f09363912985f54b248130946d4ce6175891fd298548e6538ca9ee142
|
||||
|
@ -1,3 +1,3 @@
|
||||
DIST jinx-1.1.tar.gz 33820 BLAKE2B 457214768c7220376a8f1e5c05eedf855fdd560b265ca0431840aee05428d1cf3576e3ef0214cf64b164984adb0951e7932271dd80b6b0d06ed740172335c5fe SHA512 3bb1981557e35d3834834cbdc0fc1360b5a931f0e16cc68c2eb0739956db9e8e97d615236e575758cbb282087a7baad3c956fc9e628679a791ca744e8365355b
|
||||
DIST jinx-1.2.tar.gz 33991 BLAKE2B 37661f5d02bb3f1a1813bd5d4e78b6c6c115ef40fa1f346685956a02486870fbccb570490e05029550e281e0be02bde12f6cdd5b3bf6dc67041cab294759585d SHA512 bc5caa73a348c3a5aae6322290823c60f48127b915e173ae08385ee979e94d4d05c733ad0003c5ac4702828de5dffd2dfb88c7da720bafa4a85665657579e0d0
|
||||
DIST jinx-1.3.tar.gz 34055 BLAKE2B c91652d0791ace223013f0ac42d3b917d3fff6cd5920d27bcf48f65ead3a7d29bc7090af107619ceedc243f34c7984a2dadb8fa667d6a825c8a21107de5f186a SHA512 14f03352e16cbcdbfa4c0fe9c00a2a496d7086a0a7dee9c82c5673069e98b0d9b472722a8e90f03815770bf8f054349833e3e7d035deb53a4fa9d05fa54899da
|
||||
DIST jinx-1.4.tar.gz 34299 BLAKE2B c28a1535826a1b3a4541cae33ec5ac7badc4fec0188d5b269b0dfbb7fb8a12bf642ea9efb9f1b7289de0bbce5f60cc756ede878a36e1b2b3ec2a8ee26a2fb892 SHA512 fcf08e25d3429ae801006050b56cbc16b65eaa26694b0b20a3c475de716c1c7d4271838b4d553caae257cd82215dd8154c6feb277fb5a16e05c1d098567605a0
|
||||
|
@ -1,3 +1,2 @@
|
||||
DIST mastodon-1.0.14.tar.gz 157815 BLAKE2B caf6d6fa19a2fe67398868a08ed1a3a8fce9f32b12e1bbb891206f9758716358039cf5653af8827e4d207bc7088196d8714ba3867f6afdad2b4c59108204e576 SHA512 cbd28abc78909a7dc83d7f59ecf12de1c158a4789943f41dbec8fe6f48e9b596cfbf3fadba9e5d5fdb1cdc210efd165157b63b146c768bce8924b7961224cf18
|
||||
DIST mastodon-1.0.16.tar.gz 158509 BLAKE2B 22c65062114355dcf3de7962f93658221b15dc2e0ebd028d7c90a5c127587a7e3b1881138be43b8fe59d6a31d7600e40f799289e7749509d9054e4b2c904c135 SHA512 dcdbacf54989937ed8de13d156630a64242181d1489014e0ba83044a30ff6d7ad8e9bf73041c0309a6f760429c49db6b8bf11c513889df8ebd1b1cdc8e871274
|
||||
DIST mastodon-1.0.17.tar.gz 158970 BLAKE2B 5896520ae881af514ac14272bddc1987664a013e437c67ff145378371466b102586c37417accdbedf3d3cf68973be158a9d3234ee247b4a590f8444992403a80 SHA512 c6f80351e49d5bb99b8681301bdf6f28ac17d2bbe624412602ae8bd2d11d435e9aa3f31ce5a4a5621bc803fa3f53a15e27d98886070150d9d34028443b375d4b
|
||||
DIST mastodon-1.0.18.tar.gz 160205 BLAKE2B 329d6192e129c6255bb212fe06061ff5623d16030b3f8b9b2aea33e1d0113fa09af934ead8b4695031a4dc0ddc734aa8674ca64bdad6216ee6e8006639f8131f SHA512 5e1162f30e2735a9a6d73b418369ba70476b2f45967c121e0ca9d741d029a8fc2e314fc8ea33cb09036b7b4e0f9d56b8002c4694fefbe0d6923ab8038ec7a192
|
||||
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
NEED_EMACS=27.1
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="Emacs client for Mastodon, federated microblogging social network"
|
||||
HOMEPAGE="https://codeberg.org/martianh/mastodon.el/"
|
||||
SRC_URI="https://codeberg.org/martianh/${PN}.el/archive/${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}.el/lisp"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
app-emacs/persist
|
||||
app-emacs/request
|
||||
"
|
||||
BDEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( ../README.org )
|
||||
ELISP_TEXINFO="../${PN}.texi"
|
||||
SITEFILE="50${PN}-gentoo.el"
|
@ -1,3 +1,4 @@
|
||||
DIST libvirt-10.0.0.tar.xz 9395076 BLAKE2B bfbea7805a949999481293a31e52a5511bcf86db2c96486cbc3b9cb776719ec973b1208cfcb4a8ae2c9220d1d68053980eaf68893f7919c3ef354efbd1abf642 SHA512 4ab28539ff0e9a78ac231b11b4ec88b91d76ff2607cabd0226f04aaece73b05cab4aa9cfcf05073cd257ea270a377cd5d2cb915971583dbec04dadf2cf7ad252
|
||||
DIST libvirt-10.1.0.tar.xz 9444244 BLAKE2B bfdce9d067e3a319b81d867d27f1a6b4e724ab6aaa25d19d7383c9be26ad7dc92b3c0aaa92894b772f09e20c3c2eb0ea0a8707feee4c63be58578fa22854305f SHA512 08e73ae15de5681430b62db85ec9901242dca5e9a4ca9685614f4a67092c6e28f27f9187144b3ceb18ad6b40e6eb1a90b1a4b056b0888724d04a62002ee2bc48
|
||||
DIST libvirt-9.8.0.tar.xz 9307064 BLAKE2B aae47e8d4eeaf97532a0356de23ed5a9eea71b369d025eda95b5fd74576779eb4b843d05df6c87b79a14f218c341953749e319ee7244846a2db410a74a746880 SHA512 0118725073de33eec3fa3e4616d3154707f9828fdb9ec973f503fe68f18eab72b9704da660f281152630ddc95e605c786673af9d23dc9bdfc0108422e0efbd41
|
||||
DIST libvirt-9.9.0.tar.xz 9321556 BLAKE2B 21eae5a95feaf7f5c6ba8dd48732c08212904882a11c48eccfa827d85ddc3df7e064503f21710dbe1b678670e02f003674de915a43a7403fbf85685c4832e21d SHA512 77cea28acf4f3e8c92fbd5bd72ad084be183c07f14e3a9ce35d6d9d62d36ee97a30cef55fb204b3e43f282890ecd7d5827a784a517e7f4ed8b22ee502c3f09d7
|
||||
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Packages which get releases together:
|
||||
# app-emacs/nxml-libvirt-schemas
|
||||
# dev-python/libvirt-python
|
||||
# dev-perl/Sys-Virt
|
||||
# app-emulation/libvirt
|
||||
# Please bump them together!
|
||||
|
||||
inherit elisp
|
||||
|
||||
MY_P="libvirt-${PV}"
|
||||
DESCRIPTION="Extension for nxml-mode with libvirt schemas"
|
||||
HOMEPAGE="https://www.libvirt.org/"
|
||||
SRC_URI="https://libvirt.org/sources/${MY_P}.tar.xz"
|
||||
S="${WORKDIR}/${MY_P%-rc*}/src/conf/schemas"
|
||||
|
||||
# This is the license of the package, but the schema files are
|
||||
# provided without license, maybe it's bad.
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
# Yes this requires Java, but I'd rather not repackage this, if you
|
||||
# know something better in C, I'll be glad to use that.
|
||||
BDEPEND="app-text/trang"
|
||||
|
||||
SITEFILE="60${PN}-gentoo.el"
|
||||
|
||||
src_compile() {
|
||||
emake -f - <<'EOF'
|
||||
all: $(patsubst %.rng,%.rnc,$(wildcard *.rng))
|
||||
%.rnc: %.rng
|
||||
trang -I rng -O rnc $< $@
|
||||
EOF
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "${SITEETC}/${PN}"
|
||||
doins "${FILESDIR}"/schemas.xml *.rnc
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
}
|
Binary file not shown.
@ -0,0 +1,365 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Packages which get releases together:
|
||||
# app-emacs/nxml-libvirt-schemas
|
||||
# dev-python/libvirt-python
|
||||
# dev-perl/Sys-Virt
|
||||
# app-emulation/libvirt
|
||||
# Please bump them together!
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/libvirt.org.asc
|
||||
inherit meson linux-info python-any-r1 readme.gentoo-r1 tmpfiles verify-sig
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt.git"
|
||||
EGIT_BRANCH="master"
|
||||
else
|
||||
SRC_URI="https://libvirt.org/sources/${P}.tar.xz
|
||||
verify-sig? ( https://libvirt.org/sources/${P}.tar.xz.asc )"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="C toolkit to manipulate virtual machines"
|
||||
HOMEPAGE="https://www.libvirt.org/ https://gitlab.com/libvirt/libvirt/"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="
|
||||
apparmor audit bash-completion +caps dtrace firewalld fuse glusterfs
|
||||
iscsi iscsi-direct +libvirtd lvm libssh libssh2 lxc nbd nfs nls numa
|
||||
openvz parted pcap policykit +qemu rbd sasl selinux test +udev
|
||||
virtiofsd virtualbox +virt-network wireshark-plugins xen zfs
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
REQUIRED_USE="
|
||||
firewalld? ( virt-network )
|
||||
libvirtd? ( || ( lxc openvz qemu virtualbox xen ) )
|
||||
lxc? ( caps libvirtd )
|
||||
openvz? ( libvirtd )
|
||||
qemu? ( libvirtd )
|
||||
virt-network? ( libvirtd )
|
||||
virtualbox? ( libvirtd )
|
||||
xen? ( libvirtd )"
|
||||
|
||||
BDEPEND="
|
||||
app-text/xhtml1
|
||||
dev-lang/perl
|
||||
dev-libs/libxslt
|
||||
dev-perl/XML-XPath
|
||||
dev-python/docutils
|
||||
virtual/pkgconfig
|
||||
bash-completion? ( >=app-shells/bash-completion-2.0 )
|
||||
verify-sig? ( sec-keys/openpgp-keys-libvirt )"
|
||||
|
||||
# gettext.sh command is used by the libvirt command wrappers, and it's
|
||||
# non-optional, so put it into RDEPEND.
|
||||
# We can use both libnl:1.1 and libnl:3, but if you have both installed, the
|
||||
# package will use 3 by default. Since we don't have slot pinning in an API,
|
||||
# we must go with the most recent.
|
||||
RDEPEND="
|
||||
acct-user/qemu
|
||||
app-misc/scrub
|
||||
>=dev-libs/glib-2.56.0
|
||||
dev-libs/libgcrypt
|
||||
dev-libs/libnl:3
|
||||
>=dev-libs/libxml2-2.9.1
|
||||
>=net-analyzer/openbsd-netcat-1.105-r1
|
||||
>=net-libs/gnutls-3.2.0:=
|
||||
net-libs/libtirpc:=
|
||||
>=net-misc/curl-7.18.0
|
||||
sys-apps/dbus
|
||||
sys-apps/dmidecode
|
||||
sys-devel/gettext
|
||||
>=sys-libs/readline-7.0:=
|
||||
virtual/acl
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
audit? ( sys-process/audit )
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
dtrace? ( dev-debug/systemtap )
|
||||
firewalld? ( >=net-firewall/firewalld-0.6.3 )
|
||||
fuse? ( sys-fs/fuse:= )
|
||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.1 )
|
||||
iscsi? ( >=sys-block/open-iscsi-1.18.0 )
|
||||
iscsi-direct? ( >=net-libs/libiscsi-1.18.0 )
|
||||
libssh? ( >=net-libs/libssh-0.8.1:= )
|
||||
libssh2? ( >=net-libs/libssh2-1.3 )
|
||||
lvm? ( >=sys-fs/lvm2-2.02.48-r2[lvm] )
|
||||
lxc? ( !sys-apps/systemd[cgroup-hybrid(-)] )
|
||||
nbd? ( sys-block/nbdkit )
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
numa? (
|
||||
>sys-process/numactl-2.0.2
|
||||
sys-process/numad
|
||||
)
|
||||
parted? (
|
||||
>=sys-block/parted-1.8[device-mapper]
|
||||
sys-fs/lvm2[lvm]
|
||||
)
|
||||
pcap? ( >=net-libs/libpcap-1.8.0 )
|
||||
policykit? (
|
||||
acct-group/libvirt
|
||||
>=sys-auth/polkit-0.9
|
||||
)
|
||||
qemu? (
|
||||
>=app-emulation/qemu-4.2
|
||||
app-crypt/swtpm
|
||||
>=dev-libs/yajl-2.0.3:=
|
||||
)
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( >=dev-libs/cyrus-sasl-2.1.26 )
|
||||
selinux? ( >=sys-libs/libselinux-2.0.85 )
|
||||
virt-network? (
|
||||
net-dns/dnsmasq[dhcp,ipv6(+),script]
|
||||
net-firewall/ebtables
|
||||
>=net-firewall/iptables-1.4.10[ipv6(+)]
|
||||
net-misc/radvd
|
||||
sys-apps/iproute2[-minimal]
|
||||
)
|
||||
virtiofsd? ( app-emulation/virtiofsd )
|
||||
wireshark-plugins? ( >=net-analyzer/wireshark-2.6.0:= )
|
||||
xen? (
|
||||
>=app-emulation/xen-4.9.0
|
||||
app-emulation/xen-tools:=
|
||||
)
|
||||
udev? (
|
||||
virtual/libudev:=
|
||||
>=x11-libs/libpciaccess-0.10.9
|
||||
)
|
||||
zfs? ( sys-fs/zfs )
|
||||
kernel_linux? ( sys-apps/util-linux )"
|
||||
DEPEND="
|
||||
${BDEPEND}
|
||||
${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
# The 'circular' dependency on dev-python/libvirt-python is because of
|
||||
# virt-qemu-qmp-proxy.
|
||||
PDEPEND="
|
||||
qemu? ( dev-python/libvirt-python )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-9.4.0-fix_paths_in_libvirt-guests_sh.patch
|
||||
"${FILESDIR}"/${PN}-9.9.0-do-not-use-sysconfig.patch
|
||||
"${FILESDIR}"/${PN}-9.6.0-fix-paths-for-apparmor.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# Check kernel configuration:
|
||||
CONFIG_CHECK=""
|
||||
use fuse && CONFIG_CHECK+="
|
||||
~FUSE_FS"
|
||||
|
||||
use lvm && CONFIG_CHECK+="
|
||||
~BLK_DEV_DM
|
||||
~DM_MULTIPATH
|
||||
~DM_SNAPSHOT"
|
||||
|
||||
use lxc && CONFIG_CHECK+="
|
||||
~BLK_CGROUP
|
||||
~CGROUP_CPUACCT
|
||||
~CGROUP_DEVICE
|
||||
~CGROUP_FREEZER
|
||||
~CGROUP_NET_PRIO
|
||||
~CGROUP_PERF
|
||||
~CGROUPS
|
||||
~CGROUP_SCHED
|
||||
~CPUSETS
|
||||
~IPC_NS
|
||||
~MACVLAN
|
||||
~NAMESPACES
|
||||
~NET_CLS_CGROUP
|
||||
~NET_NS
|
||||
~PID_NS
|
||||
~POSIX_MQUEUE
|
||||
~SECURITYFS
|
||||
~USER_NS
|
||||
~UTS_NS
|
||||
~VETH
|
||||
~!GRKERNSEC_CHROOT_MOUNT
|
||||
~!GRKERNSEC_CHROOT_DOUBLE
|
||||
~!GRKERNSEC_CHROOT_PIVOT
|
||||
~!GRKERNSEC_CHROOT_CHMOD
|
||||
~!GRKERNSEC_CHROOT_CAPS"
|
||||
|
||||
kernel_is lt 4 7 && use lxc && CONFIG_CHECK+="
|
||||
~DEVPTS_MULTIPLE_INSTANCES"
|
||||
|
||||
use virt-network && CONFIG_CHECK+="
|
||||
~BRIDGE_EBT_MARK_T
|
||||
~BRIDGE_NF_EBTABLES
|
||||
~NETFILTER_ADVANCED
|
||||
~NETFILTER_XT_CONNMARK
|
||||
~NETFILTER_XT_MARK
|
||||
~NETFILTER_XT_TARGET_CHECKSUM
|
||||
~IP_NF_FILTER
|
||||
~IP_NF_MANGLE
|
||||
~IP_NF_NAT
|
||||
~IP6_NF_FILTER
|
||||
~IP6_NF_MANGLE
|
||||
~IP6_NF_NAT"
|
||||
|
||||
# This was renamed in kernel commit v5.2-rc1~133^2~174^2~6
|
||||
if use virt-network ; then
|
||||
if kernel_is -lt 5 2 ; then
|
||||
CONFIG_CHECK+="
|
||||
~IP_NF_TARGET_MASQUERADE"
|
||||
else
|
||||
CONFIG_CHECK+="
|
||||
~NETFILTER_XT_TARGET_MASQUERADE"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Bandwidth Limiting Support
|
||||
use virt-network && CONFIG_CHECK+="
|
||||
~BRIDGE_EBT_T_NAT
|
||||
~IP_NF_TARGET_REJECT
|
||||
~NET_ACT_POLICE
|
||||
~NET_CLS_FW
|
||||
~NET_CLS_U32
|
||||
~NET_SCH_HTB
|
||||
~NET_SCH_INGRESS
|
||||
~NET_SCH_SFQ"
|
||||
|
||||
ERROR_USER_NS="Optional depending on LXC configuration."
|
||||
|
||||
if [[ -n ${CONFIG_CHECK} ]]; then
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
touch "${S}/.mailmap" || die
|
||||
|
||||
default
|
||||
python_fix_shebang .
|
||||
|
||||
# Skip fragile tests which relies on pristine environment
|
||||
# (Breaks because of sandbox environment variables)
|
||||
# bug #802876
|
||||
sed -i -e "/commandtest/d" tests/meson.build || die
|
||||
|
||||
# Tweak the init script:
|
||||
cp "${FILESDIR}/libvirtd.init-r19" "${S}/libvirtd.init" || die
|
||||
sed -e "s/USE_FLAG_FIREWALLD/$(usex firewalld 'need firewalld' '')/" \
|
||||
-i "${S}/libvirtd.init" || die "sed failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_feature apparmor)
|
||||
$(meson_feature apparmor apparmor_profiles)
|
||||
$(meson_feature audit)
|
||||
$(meson_feature caps capng)
|
||||
$(meson_feature dtrace)
|
||||
$(meson_feature firewalld)
|
||||
$(meson_feature fuse)
|
||||
$(meson_feature glusterfs)
|
||||
$(meson_feature glusterfs storage_gluster)
|
||||
$(meson_feature iscsi storage_iscsi)
|
||||
$(meson_feature iscsi-direct storage_iscsi_direct)
|
||||
$(meson_feature libvirtd driver_libvirtd)
|
||||
$(meson_feature libssh)
|
||||
$(meson_feature libssh2)
|
||||
$(meson_feature lvm storage_lvm)
|
||||
$(meson_feature lvm storage_mpath)
|
||||
$(meson_feature lxc driver_lxc)
|
||||
$(meson_feature nbd nbdkit)
|
||||
$(meson_feature nls)
|
||||
$(meson_feature numa numactl)
|
||||
$(meson_feature numa numad)
|
||||
$(meson_feature openvz driver_openvz)
|
||||
$(meson_feature parted storage_disk)
|
||||
$(meson_feature pcap libpcap)
|
||||
$(meson_feature policykit polkit)
|
||||
$(meson_feature qemu driver_qemu)
|
||||
$(meson_feature qemu yajl)
|
||||
$(meson_feature rbd storage_rbd)
|
||||
$(meson_feature sasl)
|
||||
$(meson_feature selinux)
|
||||
$(meson_feature test tests)
|
||||
$(meson_feature udev)
|
||||
$(meson_feature virt-network driver_network)
|
||||
$(meson_feature virtualbox driver_vbox)
|
||||
$(meson_feature wireshark-plugins wireshark_dissector)
|
||||
$(meson_feature xen driver_libxl)
|
||||
$(meson_feature zfs storage_zfs)
|
||||
|
||||
-Dnetcf=disabled
|
||||
-Dsanlock=disabled
|
||||
-Dopenwsman=disabled
|
||||
|
||||
-Ddriver_esx=enabled
|
||||
-Dinit_script=systemd
|
||||
-Dqemu_user=$(usex caps qemu root)
|
||||
-Dqemu_group=$(usex caps qemu root)
|
||||
-Ddriver_remote=enabled
|
||||
-Dstorage_fs=enabled
|
||||
-Ddriver_vmware=enabled
|
||||
|
||||
--localstatedir="${EPREFIX}/var"
|
||||
-Dinitconfdir="${EPREFIX}/etc/systemd"
|
||||
-Drunstatedir="${EPREFIX}/run"
|
||||
-Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
|
||||
)
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export VIR_TEST_DEBUG=1
|
||||
# Don't run the syntax check tests, they're fragile and not relevant
|
||||
# to us downstream anyway.
|
||||
# We also crank up the timeout (as Fedora does) just to preempt failures
|
||||
# on slower arches.
|
||||
meson_src_test --no-suite syntax-check --timeout-multiplier 10
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
# Depending on configuration option, libvirt will create some bogus
|
||||
# directoreis. They are either not used, or libvirtd is able to create
|
||||
# them on demand, so let's remove them.
|
||||
#
|
||||
# Note, we are using -f here so that rm does not fail or warn if the
|
||||
# directory is nonexistent.
|
||||
rm -rf "${D}"/etc/sysconfig
|
||||
rm -rf "${D}"/var
|
||||
rm -rf "${D}"/run
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
|
||||
newtmpfiles "${FILESDIR}"/libvirtd.tmpfiles.conf libvirtd.conf
|
||||
|
||||
newinitd "${S}/libvirtd.init" libvirtd
|
||||
newinitd "${FILESDIR}/libvirt-guests.init-r4" libvirt-guests
|
||||
newinitd "${FILESDIR}/virtlockd.init-r2" virtlockd
|
||||
newinitd "${FILESDIR}/virtlogd.init-r2" virtlogd
|
||||
|
||||
newconfd "${FILESDIR}/libvirtd.confd-r5" libvirtd
|
||||
newconfd "${FILESDIR}/libvirt-guests.confd" libvirt-guests
|
||||
|
||||
DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r3")
|
||||
DISABLE_AUTOFORMATTING=true
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -e "${ROOT}"/etc/libvirt/qemu/networks/default.xml ]]; then
|
||||
touch "${ROOT}"/etc/libvirt/qemu/networks/default.xml || die
|
||||
fi
|
||||
|
||||
use libvirtd || return 0
|
||||
# From here, only libvirtd-related instructions, be warned!
|
||||
tmpfiles_process libvirtd.conf
|
||||
readme.gentoo_print_elog
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST virt-firmware-24.2.tar.gz 110844 BLAKE2B db7ad7663678a313bdd0e23de7e374547e5dbc1a04b37a65e366ae042410a3a6c21ccfef3747a2534cb76906868caaf1364ac1ecd1443c1c1053a5b7687da50b SHA512 8583420acb31fb32e4c195c0c1816b36248ec2e486ded0795e51180e2690b2bcdc10eb8707f4fc9fa36da5b24082737c5c3b2e3988f6c5455e08a5d2a0ff92e7
|
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@gentoo.org</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
<stabilize-allarches/>
|
||||
<longdescription lang="en">
|
||||
This is a small collection of tools for edk2 firmware images. They
|
||||
support decoding and printing the content of firmware volumes.
|
||||
Variable stores (OVMF_VARS.fd) can be modified, for example to enroll
|
||||
secure boot certificates.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">virt-firmware</remote-id>
|
||||
<remote-id type="gitlab">kraxel/virt-firmware</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,47 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
|
||||
inherit distutils-r1 optfeature pypi systemd
|
||||
|
||||
DESCRIPTION="Tools for ovmf/armvirt firmware volumes"
|
||||
HOMEPAGE="
|
||||
https://gitlab.com/kraxel/virt-firmware
|
||||
https://pypi.org/project/virt-firmware/
|
||||
"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/pefile[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
python_test() {
|
||||
eunittest tests
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doman man/*.1
|
||||
|
||||
systemd_dounit systemd/kernel-bootcfg-boot-successful.service
|
||||
|
||||
exeinto /usr/lib/kernel/install.d
|
||||
doexe systemd/99-uki-uefi-setup.install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "managing UEFI entries on Unified Kernel Image installation and removal" \
|
||||
"sys-boot/shim sys-kernel/installkernel[systemd]"
|
||||
}
|
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST ddccontrol-0.6.0.tar.gz 180376 BLAKE2B d844f03ae4843a710a3a7143b1270656202c261b5e412822c49c2096c150052ddb6747b62f7c1d2404cffeb13af5ed604be915061b3fd339c8dcf66473bbd791 SHA512 49e857e8ef8f2ba87dc51056b9511ce55f3e6471222cd9171a324e2ee179b8c96a8f4d90c63bb379260ccc8e1d9653964f90748d6589d298ff2bbe6982efd3e2
|
||||
DIST ddccontrol-0.6.1.tar.gz 180407 BLAKE2B fba90502925320f3eb20e71498456e8b1135af9d67a78a74ec7b28d3d49a2841fcb77806a983c4231e8e97d07ef7fdf29b36145316f130ed8a529ef39ed4d104 SHA512 abc8940dcd651c25e1030bd4f5ae59774cfa08b22352a653140ec924cbcaa93855473385575636ec0cd51ea5f1871e2331ade592846eafddb7eae99f55ff1164
|
||||
DIST ddccontrol-1.0.3.tar.gz 175621 BLAKE2B f3a2f477f1e2553da0069da020fa49e06ab4be5d13f2c238fa0e4e800d7632490ed91e3f3fcb234b90bdff9ea03a0a8c32613153ae45ff450b4bac4ff568e96b SHA512 5e49217c8560245d53d5a2dc71cda5683698e798bd1f75ca69e445b68b33d2fb826ff05dced1c0a40f2baf8fd26396c78d1c1bf6f95f30287da6d5b149bb98e2
|
||||
|
@ -1,2 +1 @@
|
||||
DIST geoclue-2.7.0.tar.bz2 105353 BLAKE2B b9bcf29bcdb5302d3df29f48ec235265582ec60badc4f71469faa0d100f860f943529c6a74aadec4b03cbc1474f5eab837b1b9b19ba5c7e0ab0fb6c868db727a SHA512 2314242f529b9011ee5da6e8cfc657568853769e4d38b8e7c604097a747dd5705d9f84dcd2763cdacb9f014e15b63fbb8356d6cb488ba91334cda87c11e4ee7d
|
||||
DIST geoclue-2.7.1.tar.bz2 106458 BLAKE2B a2fc44d4941936d8dcd495d77d11b0d948d7031ca048b97ff0940c7fcdd37ba604655f2e255c5e0dd5cc7a82a2d5a15b18aab4825b2446560e225c13df6da3b8 SHA512 972663a6f8c969d0e1a5f911af2b8afed486d5c0ba06dadc19bcfbe1ea22cef10243b2bd0084e5c45b70977cfa5650c8f15f760e4bc4e7dbd946745b67c9188b
|
||||
|
@ -1,81 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit meson python-any-r1 systemd vala xdg
|
||||
|
||||
DESCRIPTION="A location information D-Bus service"
|
||||
HOMEPAGE="https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home"
|
||||
SRC_URI="https://gitlab.freedesktop.org/geoclue/${PN}/-/archive/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1+ GPL-2+"
|
||||
SLOT="2.0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
|
||||
IUSE="+introspection gtk-doc modemmanager vala zeroconf"
|
||||
REQUIRED_USE="vala? ( introspection )"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/glib-2.44:2
|
||||
>=dev-libs/json-glib-0.14.0
|
||||
>=net-libs/libsoup-3.0.0:3.0
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.54:= )
|
||||
modemmanager? ( >=net-misc/modemmanager-1.6 )
|
||||
zeroconf? ( >=net-dns/avahi-0.6.10[dbus] )
|
||||
x11-libs/libnotify
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
acct-user/geoclue
|
||||
sys-apps/dbus
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-util/gdbus-codegen
|
||||
dev-util/glib-utils
|
||||
gtk-doc? (
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
>=dev-util/gtk-doc-1 )
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use vala && vala_setup
|
||||
xdg_environment_reset
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Dlibgeoclue=true
|
||||
$(meson_use introspection)
|
||||
$(meson_use vala vapi)
|
||||
$(meson_use gtk-doc)
|
||||
$(meson_use modemmanager 3g-source)
|
||||
$(meson_use modemmanager cdma-source)
|
||||
$(meson_use modemmanager modem-gps-source)
|
||||
$(meson_use zeroconf nmea-source)
|
||||
-Dcompass=true
|
||||
-Denable-backend=true
|
||||
-Ddemo-agent=true
|
||||
-Dsystemd-system-unit-dir="$(systemd_get_systemunitdir)"
|
||||
-Ddbus-srv-user=geoclue
|
||||
|
||||
-Dmozilla-api-key=f57afde7-113f-4e8f-96d1-62be64a0273c
|
||||
)
|
||||
|
||||
DISTRO="$(awk -F= '/^NAME/ {print $2}' /etc/os-release | tr -d \" )"
|
||||
if [[ $DISTRO != Gentoo ]]; then
|
||||
eerror "The following API key has been allocated for Gentoo only."
|
||||
eerror "If you are a derivative, please request your own key as discussed here:"
|
||||
eerror "https://gitlab.freedesktop.org/geoclue/geoclue/-/issues/136"
|
||||
eerror "See also: https://location.services.mozilla.com/api and"
|
||||
eerror "https://blog.mozilla.org/services/2019/09/03/a-new-policy-for-mozilla-location-service/"
|
||||
die "Please request an API key for your distribution."
|
||||
fi
|
||||
|
||||
meson_src_configure
|
||||
}
|
Binary file not shown.
@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit rpm
|
||||
|
||||
BASE_PV=$(ver_cut 1-3)
|
||||
MY_PV="${PV/_alpha/.alpha}"
|
||||
MY_PV="${MY_PV/_beta/.beta}"
|
||||
[[ ${PV} == *alpha* || ${PV} == *beta* ]] && PN_DEV="Dev"
|
||||
|
||||
DESCRIPTION="Translations for the Libreoffice suite"
|
||||
HOMEPAGE="https://www.libreoffice.org"
|
||||
BASE_SRC_URI_TESTING="https://download.documentfoundation.org/${PN/-l10n/}/testing/${BASE_PV}/rpm"
|
||||
BASE_SRC_URI_STABLE="https://download.documentfoundation.org/${PN/-l10n/}/stable/${BASE_PV}/rpm"
|
||||
|
||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||
SLOT="0"
|
||||
# KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux"
|
||||
IUSE="offlinehelp"
|
||||
|
||||
RESTRICT="strip"
|
||||
|
||||
#
|
||||
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
||||
#
|
||||
# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc.
|
||||
LANGUAGES_HELP=" am ar ast bg bn-IN bn bo bs ca-valencia ca cs da de dz el en-GB en:en-US en-ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko lo lt lv mk nb ne nl nn om pl pt-BR pt ro ru si sid sk sl sq sv ta tg tr ug uk vi zh-CN zh-TW "
|
||||
LANGUAGES="${LANGUAGES_HELP}af as be br brx ckb cy dgo dsb fa fur fy ga gd gug hsb kab kk kmr-Latn kn kok ks lb mai ml mn mni mr my nr nso oc or pa:pa-IN rw sa:sa-IN sat sd sr-Latn sr ss st sw-TZ szl te th tn ts tt uz ve vec xh zu "
|
||||
|
||||
for lang in ${LANGUAGES_HELP}; do
|
||||
helppack="offlinehelp? ( ${BASE_SRC_URI_STABLE}/x86_64/LibreOffice${PN_DEV}_${BASE_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86_64/LibreOffice${PN_DEV}_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz )"
|
||||
SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )"
|
||||
done
|
||||
for lang in ${LANGUAGES}; do
|
||||
if [[ ${lang%:*} != en ]]; then
|
||||
langpack="${BASE_SRC_URI_STABLE}/x86_64/LibreOffice${PN_DEV}_${BASE_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86_64/LibreOffice${PN_DEV}_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz"
|
||||
SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )"
|
||||
fi
|
||||
IUSE+=" l10n_${lang%:*}"
|
||||
done
|
||||
unset lang helppack langpack
|
||||
|
||||
RDEPEND+="app-text/hunspell"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local lang dir rpmdir
|
||||
|
||||
# First remove dictionaries, we want to use system ones.
|
||||
find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
|
||||
|
||||
for lang in ${LANGUAGES}; do
|
||||
# break away if not enabled
|
||||
use l10n_${lang%:*} || continue
|
||||
|
||||
dir=${lang#*:}
|
||||
|
||||
# for english we provide just helppack, as translation is always there
|
||||
if [[ ${lang%:*} != en ]]; then
|
||||
rpmdir="LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${dir}/RPMS/"
|
||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||
rpm_unpack ./${rpmdir}/*.rpm
|
||||
fi
|
||||
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
||||
rpmdir="LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${dir}/RPMS/"
|
||||
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||
rpm_unpack ./${rpmdir}/*.rpm
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
local dir="${S}"/opt/${PN/-l10n/}$(ver_cut 1-2)/
|
||||
# Condition required for people who do not install anything e.g. no l10n
|
||||
# or just english with no offlinehelp.
|
||||
if [[ -d "${dir}" ]] ; then
|
||||
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
||||
doins -r "${dir}"/*
|
||||
fi
|
||||
# remove extensions that are in l10n for some weird reason
|
||||
rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/ || \
|
||||
die "Failed to remove extensions"
|
||||
}
|
@ -0,0 +1,153 @@
|
||||
From 4c836645eb0556a496c80e4604b63b47085020dd Mon Sep 17 00:00:00 2001
|
||||
From: Michael Weghorn <m.weghorn@posteo.de>
|
||||
Date: Thu, 22 Jun 2023 08:40:56 +0200
|
||||
Subject: [PATCH] Detect Plasma 6 desktop
|
||||
|
||||
Add detection for Plasma 6, which is currently in development stage.
|
||||
With the following plasma-workspace commit [1] in place,
|
||||
KDE_SESSION_VERSION is set to 6, so use that to detect it:
|
||||
|
||||
commit 4c2242d7dfafac161baec3ec316af24d7b48ef8b
|
||||
Author: Michael Weghorn <m.weghorn@posteo.de>
|
||||
Date: Thu Jun 22 07:47:31 2023 +0200
|
||||
|
||||
Set KDE_SESSION_VERSION to 6
|
||||
|
||||
Since the master branch is based on Qt6/KF6 and will
|
||||
become Plasma 6, set KDE_SESSION_VERSION to "6".
|
||||
|
||||
This will allow other applications to detect they're
|
||||
running in a (preview of a) Plasma 6 session and react
|
||||
accordingly.
|
||||
(E.g. LibreOffice can use this to choose to
|
||||
use its upcoming kf6 integration by default instead of the
|
||||
kf5 one.)
|
||||
|
||||
[1] https://invent.kde.org/plasma/plasma-workspace/-/commit/4c2242d7dfafac161baec3ec316af24d7b48ef8b
|
||||
|
||||
Change-Id: I5a15ad1fb177721fbfa016139c56a08b228f2e1f
|
||||
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153437
|
||||
Tested-by: Jenkins
|
||||
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
||||
(cherry picked from commit 8b0e1f2a914d672182d585d8cb2d4a815e88977e)
|
||||
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164700
|
||||
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
|
||||
---
|
||||
vcl/inc/unx/desktops.hxx | 1 +
|
||||
vcl/source/app/IconThemeSelector.cxx | 1 +
|
||||
vcl/source/app/salplug.cxx | 4 ++--
|
||||
vcl/unx/generic/desktopdetect/desktopdetector.cxx | 11 +++++++++++
|
||||
vcl/unx/kf5/KF5SalInstance.cxx | 8 +++++---
|
||||
5 files changed, 20 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/vcl/inc/unx/desktops.hxx b/vcl/inc/unx/desktops.hxx
|
||||
index 0abb6aa71339..2056c2c37928 100644
|
||||
--- a/vcl/inc/unx/desktops.hxx
|
||||
+++ b/vcl/inc/unx/desktops.hxx
|
||||
@@ -33,6 +33,7 @@ enum SAL_DLLPUBLIC_RTTI DesktopType
|
||||
DESKTOP_XFCE,
|
||||
DESKTOP_MATE,
|
||||
DESKTOP_PLASMA5,
|
||||
+ DESKTOP_PLASMA6,
|
||||
DESKTOP_LXQT
|
||||
}; // keep in sync with desktop_strings[] in salplug.cxx
|
||||
|
||||
diff --git a/vcl/source/app/IconThemeSelector.cxx b/vcl/source/app/IconThemeSelector.cxx
|
||||
index 6b8dfc0f42c7..15eb4b7768fc 100644
|
||||
--- a/vcl/source/app/IconThemeSelector.cxx
|
||||
+++ b/vcl/source/app/IconThemeSelector.cxx
|
||||
@@ -70,6 +70,7 @@ IconThemeSelector::GetIconThemeForDesktopEnvironment(const OUString& desktopEnvi
|
||||
#else
|
||||
OUString r;
|
||||
if ( desktopEnvironment.equalsIgnoreAsciiCase("plasma5") ||
|
||||
+ desktopEnvironment.equalsIgnoreAsciiCase("plasma6") ||
|
||||
desktopEnvironment.equalsIgnoreAsciiCase("lxqt") ) {
|
||||
if (!bPreferDarkIconTheme)
|
||||
r = "breeze";
|
||||
diff --git a/vcl/source/app/salplug.cxx b/vcl/source/app/salplug.cxx
|
||||
index e51375b94ae5..fee5b7e33e6d 100644
|
||||
--- a/vcl/source/app/salplug.cxx
|
||||
+++ b/vcl/source/app/salplug.cxx
|
||||
@@ -249,7 +249,7 @@ const char* const* autodetect_plugin_list()
|
||||
desktop == DESKTOP_XFCE ||
|
||||
desktop == DESKTOP_MATE )
|
||||
pList = pStandardFallbackList;
|
||||
- else if (desktop == DESKTOP_PLASMA5 || desktop == DESKTOP_LXQT)
|
||||
+ else if (desktop == DESKTOP_PLASMA5 || desktop == DESKTOP_PLASMA6 || desktop == DESKTOP_LXQT)
|
||||
pList = pKDEFallbackList;
|
||||
|
||||
return pList;
|
||||
@@ -426,7 +426,7 @@ const OUString& SalGetDesktopEnvironment()
|
||||
// Order to match desktops.hxx' DesktopType
|
||||
static const char * const desktop_strings[] = {
|
||||
"none", "unknown", "GNOME", "UNITY",
|
||||
- "XFCE", "MATE", "PLASMA5", "LXQT" };
|
||||
+ "XFCE", "MATE", "PLASMA5", "PLASMA6", "LXQT" };
|
||||
static OUString aDesktopEnvironment;
|
||||
if( aDesktopEnvironment.isEmpty())
|
||||
{
|
||||
diff --git a/vcl/unx/generic/desktopdetect/desktopdetector.cxx b/vcl/unx/generic/desktopdetect/desktopdetector.cxx
|
||||
index bad134fbdafd..8baeb303feed 100644
|
||||
--- a/vcl/unx/generic/desktopdetect/desktopdetector.cxx
|
||||
+++ b/vcl/unx/generic/desktopdetect/desktopdetector.cxx
|
||||
@@ -117,6 +117,13 @@ static bool is_plasma5_desktop()
|
||||
return pFullVersion && pSessionVersion && (0 == strcmp(pSessionVersion, "5"));
|
||||
}
|
||||
|
||||
+static bool is_plasma6_desktop()
|
||||
+{
|
||||
+ static const char* pFullVersion = getenv("KDE_FULL_SESSION");
|
||||
+ static const char* pSessionVersion = getenv("KDE_SESSION_VERSION");
|
||||
+ return pFullVersion && pSessionVersion && (0 == strcmp(pSessionVersion, "6"));
|
||||
+}
|
||||
+
|
||||
extern "C"
|
||||
{
|
||||
|
||||
@@ -132,6 +139,8 @@ DESKTOP_DETECTOR_PUBLIC DesktopType get_desktop_environment()
|
||||
return DESKTOP_LXQT;
|
||||
if (aOver.equalsIgnoreAsciiCase("plasma5") || aOver.equalsIgnoreAsciiCase("plasma"))
|
||||
return DESKTOP_PLASMA5;
|
||||
+ if (aOver.equalsIgnoreAsciiCase("plasma6"))
|
||||
+ return DESKTOP_PLASMA6;
|
||||
if ( aOver.equalsIgnoreAsciiCase( "gnome" ) )
|
||||
return DESKTOP_GNOME;
|
||||
if ( aOver.equalsIgnoreAsciiCase( "gnome-wayland" ) )
|
||||
@@ -190,6 +199,8 @@ DESKTOP_DETECTOR_PUBLIC DesktopType get_desktop_environment()
|
||||
|
||||
if (is_plasma5_desktop())
|
||||
return DESKTOP_PLASMA5;
|
||||
+ if (is_plasma6_desktop())
|
||||
+ return DESKTOP_PLASMA6;
|
||||
|
||||
// tdf#121275 if we still can't tell, and WAYLAND_DISPLAY
|
||||
// is set, default to gtk3
|
||||
diff --git a/vcl/unx/kf5/KF5SalInstance.cxx b/vcl/unx/kf5/KF5SalInstance.cxx
|
||||
index df5108e147a1..05f555f356f5 100644
|
||||
--- a/vcl/unx/kf5/KF5SalInstance.cxx
|
||||
+++ b/vcl/unx/kf5/KF5SalInstance.cxx
|
||||
@@ -41,7 +41,8 @@ KF5SalInstance::KF5SalInstance(std::unique_ptr<QApplication>& pQApp, bool bUseCa
|
||||
|
||||
bool KF5SalInstance::hasNativeFileSelection() const
|
||||
{
|
||||
- if (Application::GetDesktopEnvironment() == "PLASMA5")
|
||||
+ const OUString sDesktop = Application::GetDesktopEnvironment();
|
||||
+ if (sDesktop == "PLASMA5" || sDesktop == "PLASMA6")
|
||||
return true;
|
||||
return QtInstance::hasNativeFileSelection();
|
||||
}
|
||||
@@ -61,8 +62,9 @@ KF5SalInstance::createPicker(css::uno::Reference<css::uno::XComponentContext> co
|
||||
|
||||
// In order to insert custom controls, KF5FilePicker currently relies on KFileWidget
|
||||
// being used in the native file picker, which is only the case for KDE Plasma.
|
||||
- // Therefore, return the plain qt5 one in order to not lose custom controls.
|
||||
- if (Application::GetDesktopEnvironment() == "PLASMA5")
|
||||
+ // Therefore, return the plain qt5/qt6 one in order to not lose custom controls otherwise.
|
||||
+ const OUString sDesktop = Application::GetDesktopEnvironment();
|
||||
+ if (sDesktop == "PLASMA5" || sDesktop == "PLASMA6")
|
||||
return new KF5FilePicker(context, eMode);
|
||||
return QtInstance::createPicker(context, eMode);
|
||||
}
|
||||
--
|
||||
2.44.0
|
||||
|
@ -0,0 +1,668 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_REQ_USE="threads(+),xml(+)"
|
||||
|
||||
MY_PV="${PV/_alpha/.alpha}"
|
||||
MY_PV="${MY_PV/_beta/.beta}"
|
||||
# experimental ; release ; old
|
||||
# Usually the tarballs are moved a lot so this should make everyone happy.
|
||||
DEV_URI="
|
||||
https://dev-builds.libreoffice.org/pre-releases/src
|
||||
https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
|
||||
https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
|
||||
"
|
||||
ADDONS_URI="https://dev-www.libreoffice.org/src/"
|
||||
|
||||
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
||||
# PATCHSET="${P}-patchset-01.tar.xz"
|
||||
|
||||
[[ ${MY_PV} == *9999* ]] && inherit git-r3
|
||||
inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
|
||||
|
||||
DESCRIPTION="A full office productivity suite"
|
||||
HOMEPAGE="https://www.libreoffice.org"
|
||||
SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
||||
[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
|
||||
|
||||
# Split modules following git/tarballs; Core MUST be first!
|
||||
# Help is used for the image generator
|
||||
# Only release has the tarballs
|
||||
if [[ ${MY_PV} != *9999* ]]; then
|
||||
for i in ${DEV_URI}; do
|
||||
SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
|
||||
SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
|
||||
done
|
||||
unset i
|
||||
fi
|
||||
unset DEV_URI
|
||||
|
||||
# Really required addons
|
||||
# These are bundles that can't be removed for now due to huge patchsets.
|
||||
# If you want them gone, patches are welcome.
|
||||
ADDONS_SRC=(
|
||||
# not packaged in Gentoo
|
||||
"${ADDONS_URI}/dragonbox-1.1.3.tar.gz"
|
||||
# not packaged in Gentoo, https://www.netlib.org/fp/dtoa.c
|
||||
"${ADDONS_URI}/dtoa-20180411.tgz"
|
||||
# not packaged in Gentoo, https://github.com/serge-sans-paille/frozen
|
||||
"${ADDONS_URI}/frozen-1.1.1.tar.gz"
|
||||
# not packaged in Gentoo, https://skia.org/
|
||||
"${ADDONS_URI}/skia-m111-a31e897fb3dcbc96b2b40999751611d029bf5404.tar.xz"
|
||||
"base? (
|
||||
${ADDONS_URI}/commons-logging-1.2-src.tar.gz
|
||||
${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
|
||||
${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
|
||||
${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
|
||||
${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
|
||||
${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
|
||||
${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
|
||||
${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
|
||||
${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
|
||||
${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
|
||||
${ADDONS_URI}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
|
||||
${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
|
||||
)"
|
||||
"java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
||||
# no release for 8 years, should we package it?
|
||||
"libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
|
||||
# Does not build with 1.6 rhino at all
|
||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
|
||||
# requirement of rhino
|
||||
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
|
||||
# not packageable
|
||||
"odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
|
||||
)
|
||||
SRC_URI+=" ${ADDONS_SRC[*]}"
|
||||
|
||||
unset ADDONS_URI
|
||||
unset ADDONS_SRC
|
||||
|
||||
# Extensions that need extra work:
|
||||
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
||||
|
||||
IUSE="accessibility base bluetooth +branding clang coinmp +cups custom-cflags +dbus debug eds firebird
|
||||
googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test valgrind vulkan
|
||||
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
base? ( java )
|
||||
bluetooth? ( dbus )
|
||||
libreoffice_extensions_nlpsolver? ( java )
|
||||
libreoffice_extensions_scripting-beanshell? ( java )
|
||||
libreoffice_extensions_scripting-javascript? ( java )
|
||||
libreoffice_extensions_wiki-publisher? ( java )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||
SLOT="0"
|
||||
|
||||
# [[ ${MY_PV} == *9999* ]] || \
|
||||
# KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux"
|
||||
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-crypt/gpgme:=[cxx]
|
||||
app-text/hunspell:=
|
||||
>=app-text/libabw-0.1.0
|
||||
>=app-text/libebook-0.1
|
||||
app-text/libepubgen
|
||||
>=app-text/libetonyek-0.1
|
||||
app-text/libexttextcat
|
||||
app-text/liblangtag
|
||||
>=app-text/libmspub-0.1.0
|
||||
>=app-text/libmwaw-0.3.21
|
||||
>=app-text/libnumbertext-1.0.6
|
||||
>=app-text/libodfgen-0.1.0
|
||||
app-text/libqxp
|
||||
app-text/libstaroffice
|
||||
app-text/libwpd:0.10[tools]
|
||||
app-text/libwpg:0.3
|
||||
>=app-text/libwps-0.4
|
||||
app-text/mythes
|
||||
>=dev-cpp/clucene-2.3.3.4-r2
|
||||
>=dev-cpp/libcmis-0.6.2:0=
|
||||
dev-db/unixODBC
|
||||
dev-lang/perl
|
||||
dev-libs/boost:=[nls]
|
||||
dev-libs/expat
|
||||
dev-libs/hyphen
|
||||
dev-libs/icu:=
|
||||
dev-libs/libassuan
|
||||
dev-libs/libgpg-error
|
||||
>=dev-libs/liborcus-0.18.0:0/0.18
|
||||
dev-libs/librevenge
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
>=dev-libs/redland-1.0.16
|
||||
>=dev-libs/xmlsec-1.2.35:=[nss]
|
||||
>=games-engines/box2d-2.4.1:0
|
||||
media-gfx/fontforge
|
||||
media-gfx/graphite2
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2.11.0-r1:2
|
||||
>=media-libs/harfbuzz-5.1.0:=[graphite,icu]
|
||||
media-libs/lcms:2
|
||||
>=media-libs/libcdr-0.1.0
|
||||
>=media-libs/libepoxy-1.3.1[X]
|
||||
>=media-libs/libfreehand-0.1.0
|
||||
media-libs/libjpeg-turbo:=
|
||||
media-libs/libpagemaker
|
||||
>=media-libs/libpng-1.4:0=
|
||||
>=media-libs/libvisio-0.1.0
|
||||
media-libs/libwebp:=
|
||||
media-libs/libzmf
|
||||
media-libs/openjpeg:=
|
||||
media-libs/tiff:=
|
||||
media-libs/zxing-cpp:=
|
||||
net-misc/curl
|
||||
sci-mathematics/lpsolve:=
|
||||
sys-libs/zlib
|
||||
virtual/opengl
|
||||
x11-libs/cairo[X]
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
accessibility? (
|
||||
$(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]')
|
||||
)
|
||||
bluetooth? (
|
||||
dev-libs/glib:2
|
||||
net-wireless/bluez
|
||||
)
|
||||
coinmp? ( sci-libs/coinor-mp )
|
||||
cups? ( net-print/cups )
|
||||
dbus? ( sys-apps/dbus )
|
||||
eds? (
|
||||
dev-libs/glib:2
|
||||
>=gnome-base/dconf-0.40.0
|
||||
gnome-extra/evolution-data-server
|
||||
)
|
||||
firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0
|
||||
)
|
||||
gtk? (
|
||||
app-accessibility/at-spi2-core:2
|
||||
dev-libs/glib:2
|
||||
dev-libs/gobject-introspection
|
||||
gnome-base/dconf
|
||||
media-libs/mesa[egl(+)]
|
||||
x11-libs/gtk+:3[X]
|
||||
x11-libs/pango
|
||||
)
|
||||
kde? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtx11extras:5
|
||||
kde-frameworks/kconfig:5
|
||||
kde-frameworks/kcoreaddons:5
|
||||
kde-frameworks/ki18n:5
|
||||
kde-frameworks/kio:5
|
||||
kde-frameworks/kwindowsystem:5
|
||||
)
|
||||
ldap? ( net-nds/openldap:= )
|
||||
libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
|
||||
libreoffice_extensions_scripting-javascript? ( >=dev-java/rhino-1.7.14:1.6 )
|
||||
mariadb? ( dev-db/mariadb-connector-c:= )
|
||||
!mariadb? ( dev-db/mysql-connector-c:= )
|
||||
pdfimport? ( >=app-text/poppler-22.06:=[cxx] )
|
||||
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
||||
"
|
||||
# FIXME: cppunit should be moved to test conditional
|
||||
# after everything upstream is under gbuild
|
||||
# as dmake execute tests right away
|
||||
# tests apparently also need google-carlito-fonts (not packaged)
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-libs/libatomic_ops-7.2d
|
||||
dev-perl/Archive-Zip
|
||||
>=dev-util/cppunit-1.14.0
|
||||
>=dev-util/gperf-3.1
|
||||
dev-util/mdds:1/2.1
|
||||
media-libs/glm
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
java? (
|
||||
dev-java/ant:0
|
||||
>=virtual/jdk-11
|
||||
)
|
||||
test? (
|
||||
app-crypt/gnupg
|
||||
dev-util/cppunit
|
||||
media-fonts/dejavu
|
||||
media-fonts/liberation-fonts
|
||||
)
|
||||
valgrind? ( dev-debug/valgrind )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
acct-group/libreoffice
|
||||
acct-user/libreoffice
|
||||
!app-office/libreoffice-bin
|
||||
!app-office/libreoffice-bin-debug
|
||||
media-fonts/liberation-fonts
|
||||
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
|
||||
java? ( >=virtual/jre-11 )
|
||||
kde? ( kde-frameworks/breeze-icons:* )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/intltool
|
||||
sys-apps/which
|
||||
app-alternatives/yacc
|
||||
app-alternatives/lex
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
clang? (
|
||||
|| (
|
||||
( sys-devel/clang:18
|
||||
sys-devel/llvm:18
|
||||
=sys-devel/lld-18* )
|
||||
( sys-devel/clang:17
|
||||
sys-devel/llvm:17
|
||||
=sys-devel/lld-17* )
|
||||
( sys-devel/clang:16
|
||||
sys-devel/llvm:16
|
||||
=sys-devel/lld-16* )
|
||||
( sys-devel/clang:15
|
||||
sys-devel/llvm:15
|
||||
=sys-devel/lld-15* )
|
||||
)
|
||||
)
|
||||
odk? ( >=app-text/doxygen-1.8.4 )
|
||||
"
|
||||
if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
|
||||
PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
|
||||
else
|
||||
# Translations are not reliable on live ebuilds
|
||||
# rather force people to use english only.
|
||||
RDEPEND+=" !app-office/libreoffice-l10n"
|
||||
fi
|
||||
|
||||
PATCHES=(
|
||||
# "${WORKDIR}"/${PATCHSET/.tar.xz/}
|
||||
|
||||
# not upstreamable stuff
|
||||
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
|
||||
"${FILESDIR}/${PN}-6.1-nomancompress.patch"
|
||||
"${FILESDIR}/${PN}-7.2.0.4-qt5detect.patch"
|
||||
|
||||
# 7.6 branch:
|
||||
"${FILESDIR}/${PN}-7.6.6.1-detect-plasma6.patch" # bug 926227
|
||||
|
||||
# maybe upstreamable
|
||||
"${FILESDIR}/${PN}-7.5.8.2-icu-74-compatibility.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
_check_reqs() {
|
||||
CHECKREQS_MEMORY="512M"
|
||||
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
||||
CHECKREQS_DISK_BUILD="22G"
|
||||
else
|
||||
CHECKREQS_DISK_BUILD="6G"
|
||||
fi
|
||||
check-reqs_$1
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
use base ||
|
||||
ewarn "If you plan to use Base application you must enable USE base."
|
||||
use java ||
|
||||
ewarn "Without USE java, several wizards are not going to be available."
|
||||
|
||||
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-opt-2_pkg_setup
|
||||
python-single-r1_pkg_setup
|
||||
xdg_environment_reset
|
||||
|
||||
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
if [[ ${MY_PV} = *9999* ]]; then
|
||||
local base_uri branch mypv
|
||||
base_uri="https://anongit.freedesktop.org/git"
|
||||
branch="master"
|
||||
mypv=${MY_PV/.9999}
|
||||
[[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
|
||||
git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
|
||||
git-r3_checkout "${base_uri}/${PN}/core"
|
||||
LOCOREGIT_VERSION=${EGIT_VERSION}
|
||||
|
||||
git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
|
||||
git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# sandbox violations on many systems, we don't need it. Bug #646406
|
||||
sed -i \
|
||||
-e "/KF5_CONFIG/s/kf5-config/no/" \
|
||||
configure.ac || die "Failed to disable kf5-config"
|
||||
|
||||
AT_M4DIR="m4" eautoreconf
|
||||
# hack in the autogen.sh
|
||||
touch autogen.lastrun
|
||||
|
||||
# sed in the tests
|
||||
sed -i \
|
||||
-e "s#all : build unitcheck#all : build#g" \
|
||||
solenv/gbuild/Module.mk || die
|
||||
sed -i \
|
||||
-e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
|
||||
-e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
|
||||
Makefile.in || die
|
||||
|
||||
sed -i \
|
||||
-e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
|
||||
-e "s,\$INSTALLDIRNAME.sh,${PN}," \
|
||||
bin/distro-install-desktop-integration || die
|
||||
|
||||
if use branding; then
|
||||
# hack...
|
||||
mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
|
||||
fi
|
||||
|
||||
# Don't list pdfimport support in desktop when built with none, bug # 605464
|
||||
if ! use pdfimport; then
|
||||
sed -i \
|
||||
-e ":MimeType: s:application/pdf;::" \
|
||||
-e ":Keywords: s:pdf;::" \
|
||||
sysui/desktop/menus/draw.desktop || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
|
||||
# Note: these are for Gentoo use ONLY. For your own distribution, please get
|
||||
# your own set of keys. Feel free to contact chromium@gentoo.org for more info.
|
||||
local google_default_client_id="329227923882.apps.googleusercontent.com"
|
||||
local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
|
||||
|
||||
# Show flags set at the beginning
|
||||
einfo "Preset CFLAGS: ${CFLAGS}"
|
||||
einfo "Preset LDFLAGS: ${LDFLAGS}"
|
||||
|
||||
# Workaround for bug #915067
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
if use clang ; then
|
||||
# Force clang
|
||||
einfo "Enforcing the use of clang due to USE=clang ..."
|
||||
AR=llvm-ar
|
||||
CC=${CHOST}-clang
|
||||
CXX=${CHOST}-clang++
|
||||
NM=llvm-nm
|
||||
RANLIB=llvm-ranlib
|
||||
LDFLAGS+=" -fuse-ld=lld"
|
||||
|
||||
# Workaround for bug #907905
|
||||
filter-lto
|
||||
|
||||
# Not implemented by Clang, bug #903889
|
||||
filter-flags -Wlto-type-mismatch -Werror=lto-type-mismatch
|
||||
else
|
||||
# Force gcc
|
||||
einfo "Enforcing the use of gcc due to USE=-clang ..."
|
||||
AR=gcc-ar
|
||||
CC=${CHOST}-gcc
|
||||
CXX=${CHOST}-g++
|
||||
NM=gcc-nm
|
||||
RANLIB=gcc-ranlib
|
||||
|
||||
# Apparently the Clang flags get used even for GCC builds sometimes.
|
||||
# bug #838115
|
||||
sed -i -e "s/-flto=thin/-flto/" solenv/gbuild/platform/com_GCC_defs.mk || die
|
||||
fi
|
||||
|
||||
if use custom-cflags ; then
|
||||
elog "USE=custom-cflags has been selected. You are on your own to make sure that"
|
||||
elog "the build succeeds. Good luck!"
|
||||
else
|
||||
strip-flags
|
||||
fi
|
||||
|
||||
export LO_CLANG_CC=${CC}
|
||||
export LO_CLANG_CXX=${CXX}
|
||||
|
||||
# Show flags set at the end
|
||||
einfo " Used CFLAGS: ${CFLAGS}"
|
||||
einfo " Used LDFLAGS: ${LDFLAGS}"
|
||||
|
||||
# Ensure we use correct toolchain
|
||||
tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
|
||||
|
||||
# optimization flags
|
||||
export GMAKE_OPTIONS="${MAKEOPTS}"
|
||||
# System python enablement:
|
||||
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
||||
export PYTHON_LIBS=$(python_get_LIBS)
|
||||
|
||||
use kde && export QT5DIR="$(qt5_get_bindir)/.."
|
||||
|
||||
local gentoo_buildid="Gentoo official package"
|
||||
if [[ -n ${LOCOREGIT_VERSION} ]]; then
|
||||
gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
|
||||
fi
|
||||
|
||||
# system headers/libs/...: enforce using system packages
|
||||
# --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
|
||||
# --enable-cairo: ensure that cairo is always required
|
||||
# --enable-*-link: link to the library rather than just dlopen on runtime
|
||||
# --enable-release-build: build the libreoffice as release
|
||||
# --disable-fetch-external: prevent dowloading during compile phase
|
||||
# --enable-extension-integration: enable any extension integration support
|
||||
# --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
||||
# --disable-report-builder: too much java packages pulled in without pkgs
|
||||
# --without-system-sane: just sane.h header that is used for scan in writer,
|
||||
# not linked or anything else, worthless to depend on
|
||||
# --disable-pdfium: not yet packaged
|
||||
local myeconfargs=(
|
||||
--with-system-dicts
|
||||
--with-system-epoxy
|
||||
--with-system-headers
|
||||
--with-system-jars
|
||||
--with-system-libs
|
||||
--enable-build-opensymbol
|
||||
--enable-cairo-canvas
|
||||
--enable-largefile
|
||||
--enable-mergelibs
|
||||
--enable-python=system
|
||||
--enable-randr
|
||||
--enable-release-build
|
||||
--disable-breakpad
|
||||
--disable-bundle-mariadb
|
||||
--disable-ccache
|
||||
--disable-epm
|
||||
--disable-fetch-external
|
||||
--disable-gtk3-kde5
|
||||
--disable-online-update
|
||||
--disable-openssl
|
||||
--disable-pdfium
|
||||
--disable-qt6
|
||||
--with-extra-buildid="${gentoo_buildid}"
|
||||
--enable-extension-integration
|
||||
--with-external-dict-dir="${EPREFIX}/usr/share/myspell"
|
||||
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
|
||||
--with-external-thes-dir="${EPREFIX}/usr/share/myspell"
|
||||
--with-external-tar="${DISTDIR}"
|
||||
--with-lang=""
|
||||
--with-parallelism=$(makeopts_jobs)
|
||||
--with-system-openjpeg
|
||||
--with-tls=nss
|
||||
--with-vendor="Gentoo Foundation"
|
||||
--with-x
|
||||
--without-fonts
|
||||
--without-myspell-dicts
|
||||
--with-help="html"
|
||||
--without-helppack-integration
|
||||
--with-system-gpgmepp
|
||||
--without-system-abseil
|
||||
--without-system-dragonbox
|
||||
--without-system-frozen
|
||||
--without-system-jfreereport
|
||||
--without-system-libfixmath
|
||||
--without-system-sane
|
||||
$(use_enable base report-builder)
|
||||
$(use_enable bluetooth sdremote-bluetooth)
|
||||
$(use_enable coinmp)
|
||||
$(use_enable cups)
|
||||
$(use_enable dbus)
|
||||
$(use_enable debug)
|
||||
$(use_enable eds evolution2)
|
||||
$(use_enable firebird firebird-sdbc)
|
||||
$(use_enable gstreamer gstreamer-1-0)
|
||||
$(use_enable gtk gtk3)
|
||||
$(use_enable kde kf5)
|
||||
$(use_enable kde qt5)
|
||||
$(use_enable ldap)
|
||||
$(use_enable odk)
|
||||
$(use_enable pdfimport)
|
||||
$(use_enable postgres postgresql-sdbc)
|
||||
$(use_enable vulkan skia)
|
||||
$(use_with accessibility lxml)
|
||||
$(use_with coinmp system-coinmp)
|
||||
$(use_with googledrive gdrive-client-id ${google_default_client_id})
|
||||
$(use_with googledrive gdrive-client-secret ${google_default_client_secret})
|
||||
$(use_with java)
|
||||
$(use_with odk doxygen)
|
||||
$(use_with valgrind)
|
||||
)
|
||||
|
||||
if use eds || use gtk; then
|
||||
myeconfargs+=( --enable-dconf --enable-gio )
|
||||
else
|
||||
myeconfargs+=( --disable-dconf --disable-gio )
|
||||
fi
|
||||
|
||||
# libreoffice extensions handling
|
||||
for lo_xt in ${LO_EXTS}; do
|
||||
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
||||
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
|
||||
else
|
||||
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
|
||||
fi
|
||||
done
|
||||
|
||||
if use java; then
|
||||
# hsqldb: system one is too new
|
||||
myeconfargs+=(
|
||||
--without-junit
|
||||
--without-system-hsqldb
|
||||
--with-ant-home="${ANT_HOME}"
|
||||
--with-jdk-home="${JAVA_HOME}"
|
||||
)
|
||||
|
||||
use libreoffice_extensions_scripting-beanshell && \
|
||||
myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
|
||||
|
||||
use libreoffice_extensions_scripting-javascript && \
|
||||
myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 rhino.jar) )
|
||||
fi
|
||||
|
||||
tc-is-lto && myeconfargs+=( --enable-lto )
|
||||
|
||||
MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# more and more LO stuff tries to use OpenGL, including tests during build
|
||||
# bug 501508, bug 540624, bug 545974 and probably more
|
||||
addpredict /dev/dri
|
||||
addpredict /dev/ati
|
||||
addpredict /dev/nvidiactl
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake unitcheck
|
||||
emake slowcheck
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" distro-pack-install -o build -o check
|
||||
|
||||
# bug 593514
|
||||
if use gtk; then
|
||||
dosym libreoffice/program/liblibreofficekitgtk.so \
|
||||
/usr/$(get_libdir)/liblibreofficekitgtk.so
|
||||
fi
|
||||
|
||||
# bash completion aliases
|
||||
bashcomp_alias \
|
||||
libreoffice \
|
||||
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
||||
|
||||
if use branding; then
|
||||
insinto /usr/$(get_libdir)/${PN}/program
|
||||
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
||||
dodir /etc/env.d
|
||||
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
|
||||
fi
|
||||
|
||||
# bug 703474
|
||||
insinto /usr/include
|
||||
doins -r include/LibreOfficeKit
|
||||
|
||||
local lodir=/usr/$(get_libdir)/libreoffice
|
||||
# patching this would break tests
|
||||
cat <<-EOF > "${T}"/uno.py
|
||||
import sys, os
|
||||
sys.path.append('${EPREFIX}${lodir}/program')
|
||||
os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc')
|
||||
EOF
|
||||
sed -e "/^import sys/d" -e "/^import os/d" \
|
||||
-i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed"
|
||||
cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die
|
||||
cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die
|
||||
|
||||
# more system pyuno mess
|
||||
sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \
|
||||
-i "${D}"${lodir}/program/officehelper.py || die
|
||||
|
||||
python_optimize "${D}"${lodir}/program
|
||||
# link python bridge in site-packages, bug 667802
|
||||
local py pyc loprogdir=/usr/$(get_libdir)/libreoffice/program
|
||||
for py in uno.py unohelper.py officehelper.py; do
|
||||
dosym -r ${loprogdir}/${py} $(python_get_sitedir)/${py}
|
||||
while IFS="" read -d $'\0' -r pyc; do
|
||||
pyc=${pyc//*\/}
|
||||
dosym -r ${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
|
||||
done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
|
||||
done
|
||||
|
||||
newinitd "${FILESDIR}/libreoffice.initd" libreoffice
|
||||
newconfd "${FILESDIR}/libreoffice.confd" libreoffice
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST ideviceinstaller-1.1.0.tar.bz2 272210 BLAKE2B da67c16d046e148d11bafcd1f33a8e5a5cba49c6f975ba038602eaf2444a76883d568e16583923c7303cce170e6718fc1cfcd0b2cffed5a1eaf895944043d785 SHA512 8bf5dc30b8fa2f0c171ec3705db8d8d143d2520b2875fc05d9d325bd4f1ffdf29230557e57f3e824654ab3bb71bbaf9019aa573d4b1cce29a9c75bf15024d623
|
||||
DIST ideviceinstaller-1.1.1.tar.bz2 274494 BLAKE2B e3aaccc225556f401f4b26b49bf19dd582425dfc7ea0dc1e4e523ce1ff60b643466d021d9d4c1205487551a4968ccafc410adb9e09248ab1a651c8d2a81a73ed SHA512 fd117a5745890746237f381c9fe0e01cf8ea06d9c2341da397c52e5ebc0e058c73797e349a0a81b2777f5333dafc32e5c32e9e2c99ee70a864be159fe73e9568
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="A tool to interact with the installation_proxy of an Apple's iDevice"
|
||||
HOMEPAGE="https://libimobiledevice.org"
|
||||
SRC_URI="https://github.com/libimobiledevice/ideviceinstaller/releases/download/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND=">=app-pda/libimobiledevice-1.3.0:=
|
||||
>=app-pda/libplist-2.3.0:=
|
||||
>=dev-libs/libzip-0.8"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e 's:-Werror -g::' configure || die
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST libimobiledevice-glue-1.1.0.tar.bz2 324600 BLAKE2B 3fcd92de24884d73b83767ace135246c45b60b1221a9937b7d8d4e42f4ccc2105e1f88854682bcef3002af22913df76f61a40d0bece20a354def1b54e260d242 SHA512 5d3522f764bd33a847ec1773d6493a2671965f2432b569d7e2c98746dca7440188823e46a405893d936f725c6bc522bd273b16234e8780cf87b602fc395bdf75
|
@ -0,0 +1,21 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Support library for libimobiledevice projects"
|
||||
HOMEPAGE="https://github.com/libimobiledevice/libimobiledevice-glue"
|
||||
SRC_URI="https://github.com/libimobiledevice/libimobiledevice-glue/releases/download/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0/0.1.0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||
|
||||
RDEPEND=">=app-pda/libplist-2.3:="
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>matthew@gentoo.org</email>
|
||||
<name>Matthew Smith</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">libimobiledevice/libimobiledevice-glue</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +1,2 @@
|
||||
DIST libimobiledevice-1.3.0.tar.bz2 733949 BLAKE2B 40717280bb3424c7431aa93d06d10de817e6761acf2b19948d80b691cfb4dd4ef0e31b81c8458eed29a43c8c8aa256da7baa3648fb785cfbdb7316daaba119a3 SHA512 7b22040552a6561729c79c0846f571b0e608abb7c297567d2ecfdd1718ce86df08a5e34ba51f209bdee96a1917da15e7ba3aaef1d289a951d1d3470b1f89e6a8
|
||||
DIST libimobiledevice-1.3.0_p20240201.tar.gz 405723 BLAKE2B 5f3672e6b3c180440c215d9411eb2f21fe9451d822707e5b11ffff6693dccabfb5d184ef35f36bce2af508cbdebb656923927558ef39669825679a8ebf3cc8ee SHA512 d3746b7e0803840489593c9a3d8c8b16f6d4be5e2cd5c947d05be31e49c095c6503ef9150c886a87c68f4694bc6c1bfba96c4578789adc8f165a6391d0e4918f
|
||||
|
@ -0,0 +1,10 @@
|
||||
--- a/tools/afcclient.c
|
||||
+++ b/tools/afcclient.c
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <signal.h>
|
||||
#include <ctype.h>
|
||||
#include <unistd.h>
|
||||
+#include <time.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
@ -0,0 +1,76 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
MY_COMMIT=73b6fd183872096f20e6d1007429546a317a7cb1
|
||||
|
||||
DESCRIPTION="Support library to communicate with Apple iPhone/iPod Touch devices"
|
||||
HOMEPAGE="https://www.libimobiledevice.org/"
|
||||
SRC_URI="https://github.com/libimobiledevice/libimobiledevice/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}"/${PN}-${MY_COMMIT}
|
||||
|
||||
# While COPYING* doesn't mention 'or any later version', all the headers do, hence use +
|
||||
LICENSE="GPL-2+ LGPL-2.1+"
|
||||
SLOT="0/1.0-6" # based on SONAME of libimobiledevice-1.0.so
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||
IUSE="doc gnutls readline static-libs"
|
||||
|
||||
RDEPEND="
|
||||
app-pda/libimobiledevice-glue:=
|
||||
>=app-pda/libplist-2.3:=
|
||||
>=app-pda/libusbmuxd-2.0.2:=
|
||||
gnutls? (
|
||||
dev-libs/libgcrypt:0
|
||||
>=dev-libs/libtasn1-1.1
|
||||
>=net-libs/gnutls-2.2.0
|
||||
)
|
||||
!gnutls? (
|
||||
dev-libs/openssl:0=
|
||||
)
|
||||
readline? ( sys-libs/readline:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? ( app-text/doxygen )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.3.0_p20240201_time_h.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
echo ${PV}-${MY_COMMIT} > .tarball-version
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--without-cython
|
||||
$(use_enable static-libs static)
|
||||
)
|
||||
use gnutls && myeconfargs+=( --disable-openssl )
|
||||
# --with-readline also causes readline to not be used
|
||||
use readline || myeconfargs+=( --without-readline )
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
|
||||
if use doc; then
|
||||
doxygen doxygen.cfg || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}"
|
||||
|
||||
use doc && dodoc docs/html/*
|
||||
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue