parent
4217f9f537
commit
e7cec38513
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
|||||||
DIST ansible-lint-6.4.0.gh.tar.gz 235346 BLAKE2B a2f55e6f4df739dccb011225f0a660978a9dfdbcc6e45cee2eef12467482c471d8700bb1bfad87e03eb1c4f21291307db5dc174e2440370ca11368f6ad6d195d SHA512 75e30a325a5c62f64066925b99e691886e299e029adc78fdceaa5eb23a74a46408793479e7c54c312d93e0a62d190b34f1e7614dec31a94822d39a231796e9df
|
DIST ansible-lint-6.4.0.gh.tar.gz 235346 BLAKE2B a2f55e6f4df739dccb011225f0a660978a9dfdbcc6e45cee2eef12467482c471d8700bb1bfad87e03eb1c4f21291307db5dc174e2440370ca11368f6ad6d195d SHA512 75e30a325a5c62f64066925b99e691886e299e029adc78fdceaa5eb23a74a46408793479e7c54c312d93e0a62d190b34f1e7614dec31a94822d39a231796e9df
|
||||||
DIST ansible-lint-6.5.1.gh.tar.gz 244320 BLAKE2B aff13d6ce9346dbdba459722cfc071b1e671dc17f3fb44744a706097f29e2a6a9962514fc61e669b58517acf6e95feba88af1bf8c7a4fb668e1a8d1cc5d54746 SHA512 40890a3fc0caaa3fd1d38f32739615dd664db1e7ea534c0bc3138da7295cdc6923715ea12febefc8951be350aad5bf7ac76dd004e3c4aff386b78551bd6442a8
|
DIST ansible-lint-6.5.2.gh.tar.gz 248425 BLAKE2B 02fe3f0cb410831ee7913c5f5ae434678ff183f9c60f0355988d69b516324513fd417439f9ceee4a38192c1e593d7bc00c8fd1aafdff6ba904cdb4ba56257657 SHA512 36a8d7b746bbb0c0f4d85a63180432b9165b1e59ff9da07f6b9477aa02d8998c5c682a317a04c4971a08f0691a10f420d9fd0e7d396d7d1b7f49979c7faf41f5
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
Let the package managers handle dependencies, m'kay?
|
||||||
|
|
||||||
|
--- a/conftest.py
|
||||||
|
+++ b/conftest.py
|
||||||
|
@@ -7,27 +7,6 @@
|
||||||
|
import pytest
|
||||||
|
from ansible.module_utils.common.yaml import HAS_LIBYAML
|
||||||
|
|
||||||
|
-# checking if user is running pytest without installing test dependencies:
|
||||||
|
-missing = []
|
||||||
|
-for module in ["ansible", "black", "flake8", "flaky", "mypy", "pylint"]:
|
||||||
|
- if not importlib.util.find_spec(module):
|
||||||
|
- missing.append(module)
|
||||||
|
-if missing:
|
||||||
|
- print(
|
||||||
|
- f"FATAL: Missing modules: {', '.join(missing)} -- probably you missed installing test requirements with: pip install -e '.[test]'",
|
||||||
|
- file=sys.stderr,
|
||||||
|
- )
|
||||||
|
- sys.exit(1)
|
||||||
|
-
|
||||||
|
-if not HAS_LIBYAML:
|
||||||
|
- # While presence of libyaml is not required for runtime, we keep this error
|
||||||
|
- # fatal here in order to be sure that we spot libyaml errors during testing.
|
||||||
|
- print(
|
||||||
|
- "FATAL: For testing, we require pyyaml to be installed with its native extension, missing it would make testing 3x slower and risk missing essential bugs.",
|
||||||
|
- file=sys.stderr,
|
||||||
|
- )
|
||||||
|
- sys.exit(1)
|
||||||
|
-
|
||||||
|
|
||||||
|
os.environ["NO_COLOR"] = "1"
|
||||||
|
|
@ -1,8 +1,6 @@
|
|||||||
DIST awscli-exe-linux-aarch64-2.7.11.zip 46384612 BLAKE2B 1728dac769441954b86f1436708c7b84aa4d1f7affc634de9e6a7bea66a10e5143a6d1da3fd24e8e721cdaabff0bb4b363bef78e29aecc976e9cd5b961284a2b SHA512 3f3e2670614bdcf6751d556a8a150d573712b036ad904a7cbfbb85600241d04f7f257df2d1159e2fb6f5b0d02b7f65df1bfb00764218ef60782a04a7fdebdc2a
|
|
||||||
DIST awscli-exe-linux-aarch64-2.7.16.zip 46227549 BLAKE2B 28c72891454779337e7da8cb554310d54af0d3e3aab45a9aea76350eb0db5cba592c67f55f8feb0b4f57044a7b2292d6ac79809ceafd1a8d62639c67f6018e7c SHA512 e577e3507310dc48d323635592df5c7c12ac5ba90578d5e9e0a74264007b3c4bcaa0bf43d95f37d4974e7a83e57fdd3ec3a36e43ccd8ad359d5a56b7cda7402c
|
|
||||||
DIST awscli-exe-linux-aarch64-2.7.20.zip 46289081 BLAKE2B 1750e609bef53775e4bf66f1be78e2b05f763bde7677be99867ae89e252f1deb81dddf6011718ceafe1f97b53ac4871657f2644c478887eb4d021e14be400121 SHA512 f519aaaf2ebc3e163ae55abdb85b08dd49e148f902a06e671f582879790bdfa07e32f8d8e773ddeb95494aee3a38dc3fbdf91a93b14215f63e13ae87cdf3de4a
|
DIST awscli-exe-linux-aarch64-2.7.20.zip 46289081 BLAKE2B 1750e609bef53775e4bf66f1be78e2b05f763bde7677be99867ae89e252f1deb81dddf6011718ceafe1f97b53ac4871657f2644c478887eb4d021e14be400121 SHA512 f519aaaf2ebc3e163ae55abdb85b08dd49e148f902a06e671f582879790bdfa07e32f8d8e773ddeb95494aee3a38dc3fbdf91a93b14215f63e13ae87cdf3de4a
|
||||||
DIST awscli-exe-linux-aarch64-2.7.24.zip 46460084 BLAKE2B c24cf41c888b1469a793354c9a97cec4273f6a762ec74b4079ab8626d0eddeb95dec5ef66270764a1c8d3b1525a5460e63009441ac83ef966b43f68efe41b00a SHA512 ee4201a193e393cf7fd1e9c473eaf41a1d7934e342035b931c3d69e985bc9e74434d31d0b46bf176c27c41d1b1000bbd487a514d62c8ccdf8d7c7e82c621d1f4
|
DIST awscli-exe-linux-aarch64-2.7.24.zip 46460084 BLAKE2B c24cf41c888b1469a793354c9a97cec4273f6a762ec74b4079ab8626d0eddeb95dec5ef66270764a1c8d3b1525a5460e63009441ac83ef966b43f68efe41b00a SHA512 ee4201a193e393cf7fd1e9c473eaf41a1d7934e342035b931c3d69e985bc9e74434d31d0b46bf176c27c41d1b1000bbd487a514d62c8ccdf8d7c7e82c621d1f4
|
||||||
DIST awscli-exe-linux-x86_64-2.7.11.zip 47188206 BLAKE2B 9530ad2cf832dab1d5fb38a4942d338629c24bdadebe6abd0ba3a1759688e2ea9666cd97d8643d6ba7469bc446f09bd4c63a43f36deba1afb133ef00da49ce6d SHA512 6a15745502e273ddfad1d9ac118aea1684cf62f533a0fa3ac7661c31e49984ce1d0b608c61f5ed182692686ab7fd992f9a8da6a066bc4da6fe5e3d386548ab8f
|
DIST awscli-exe-linux-aarch64-2.7.28.zip 46543587 BLAKE2B aba4c360ed9ce37406f552db1df9ddd69b46b2f87a9c12c46a5026d9259202ce485a25f7cc1d768ab9c3caff3165e56f13529f3ccc1e65935e327b5980a16af5 SHA512 b126bf26c52e2ab32bf4b7f425527960fcf5a07f0e446aaf2fe0deced802419e12cc48f9c87e0cbe4fc01430264a48b1103a9b5ea5e871a811b8e8b8c8a691d6
|
||||||
DIST awscli-exe-linux-x86_64-2.7.16.zip 47030919 BLAKE2B 1ac5789003753b015278eda42109c9ca5ee4710d32b07940c3abac0100844065fa6bffdc854446a7b4493727d3648f0514fe10e09b50c77d79f42139e2c64fcc SHA512 ae76d7425974154f481546b804cc6f359702f9357e670dfaaa7f943aa2ca27124c66388032ad9b4fbd05d82f73b7401fa7d07d7d4742c8f37c49eca17e6e6564
|
|
||||||
DIST awscli-exe-linux-x86_64-2.7.20.zip 47092365 BLAKE2B 26320deb54f66043693aa40cd2fee2e110f2dbf1710278ce431781d49096860dacd906bd91a01160c69c484020cc1ca497954283213e85d42206ab2dba3f1c92 SHA512 6f5ab60fe3b59a7c8ad73e81b3d3003660736fe9da35e5e44b8d222a94cf195676a4802e8ea391bbefb9cbece77860148be1f616f32281d18726af126c7daa4b
|
DIST awscli-exe-linux-x86_64-2.7.20.zip 47092365 BLAKE2B 26320deb54f66043693aa40cd2fee2e110f2dbf1710278ce431781d49096860dacd906bd91a01160c69c484020cc1ca497954283213e85d42206ab2dba3f1c92 SHA512 6f5ab60fe3b59a7c8ad73e81b3d3003660736fe9da35e5e44b8d222a94cf195676a4802e8ea391bbefb9cbece77860148be1f616f32281d18726af126c7daa4b
|
||||||
DIST awscli-exe-linux-x86_64-2.7.24.zip 47216162 BLAKE2B f99393a089bc495fc82d4f208f555bce144adf817b15c2995ad97493c16e18e38ee6cb77fb29c9225ff144193f878a7334ef90c318a5770d5c58b1f7e2209632 SHA512 2c25637fa421117aa3629ddfe8f9ead7ad3d7f04ead819b958e2b274621c858ea9e1ba2d9c111e63511ab75a1a7f0db275f653da2fef58dd5ee03274b1e7e8b7
|
DIST awscli-exe-linux-x86_64-2.7.24.zip 47216162 BLAKE2B f99393a089bc495fc82d4f208f555bce144adf817b15c2995ad97493c16e18e38ee6cb77fb29c9225ff144193f878a7334ef90c318a5770d5c58b1f7e2209632 SHA512 2c25637fa421117aa3629ddfe8f9ead7ad3d7f04ead819b958e2b274621c858ea9e1ba2d9c111e63511ab75a1a7f0db275f653da2fef58dd5ee03274b1e7e8b7
|
||||||
|
DIST awscli-exe-linux-x86_64-2.7.28.zip 47299458 BLAKE2B 3ac11104ad062ccf70fe697406a65cc08949f9b89784c5cf3f8e80c33629f5fde44853c35f8160f1f285405e576e65a73d9ba9a42b3e31a11120ee50cfccd83c SHA512 a86a2b73a11b74fa7a9b30095adaacacc7ea3a84136a9d5d63bcd776b98a6f6e005cb815fa34451cee85b55e6d1693a906bb8601a1ded3a5eff0416dd79bbc28
|
||||||
|
@ -1,89 +0,0 @@
|
|||||||
# Copyright 2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DESCRIPTION="command line interface for Amazon Web Services"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://aws.amazon.com/cli/
|
|
||||||
https://github.com/aws/aws-cli/
|
|
||||||
"
|
|
||||||
SRC_URI="
|
|
||||||
amd64? ( https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${PV}.zip )
|
|
||||||
arm64? ( https://awscli.amazonaws.com/awscli-exe-linux-aarch64-${PV}.zip )
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENSE="
|
|
||||||
Apache-2.0 MIT LGPL-2.1+ BSD GPL-2+-with-Pyinstaller-Bootloader-exception
|
|
||||||
openssl PSF-2 BSD-2 GPL-3+ public-domain
|
|
||||||
"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="-* ~amd64 ~arm64"
|
|
||||||
|
|
||||||
RDEPEND="!app-admin/awscli"
|
|
||||||
BDEPEND="app-arch/unzip"
|
|
||||||
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
RESTRICT="strip"
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
# This code is based on the install script in the upstream archive.
|
|
||||||
|
|
||||||
set_global_vars() {
|
|
||||||
ROOT_INSTALL_DIR=/opt/aws-cli
|
|
||||||
BIN_DIR=/usr/bin
|
|
||||||
|
|
||||||
EXE_NAME="aws"
|
|
||||||
COMPLETER_EXE_NAME="aws_completer"
|
|
||||||
INSTALLER_DIR="aws"
|
|
||||||
INSTALLER_DIST_DIR="${INSTALLER_DIR}/dist"
|
|
||||||
INSTALLER_EXE="${INSTALLER_DIST_DIR}/${EXE_NAME}"
|
|
||||||
AWS_EXE_VERSION=${PV}
|
|
||||||
|
|
||||||
INSTALL_DIR="${ROOT_INSTALL_DIR}/v2/${AWS_EXE_VERSION}"
|
|
||||||
# INSTALL_DIR="${INSTALL_DIR}"
|
|
||||||
INSTALL_DIST_DIR="${INSTALL_DIR}/dist"
|
|
||||||
INSTALL_BIN_DIR="${INSTALL_DIR}/bin"
|
|
||||||
INSTALL_AWS_EXE="${INSTALL_BIN_DIR}/${EXE_NAME}"
|
|
||||||
INSTALL_AWS_COMPLETER_EXE="${INSTALL_BIN_DIR}/${COMPLETER_EXE_NAME}"
|
|
||||||
|
|
||||||
CURRENT_INSTALL_DIR="${ROOT_INSTALL_DIR}/v2/current"
|
|
||||||
CURRENT_AWS_EXE="${CURRENT_INSTALL_DIR}/bin/${EXE_NAME}"
|
|
||||||
CURRENT_AWS_COMPLETER_EXE="${CURRENT_INSTALL_DIR}/bin/${COMPLETER_EXE_NAME}"
|
|
||||||
|
|
||||||
BIN_AWS_EXE="${BIN_DIR}/${EXE_NAME}"
|
|
||||||
BIN_AWS_COMPLETER_EXE="${BIN_DIR}/${COMPLETER_EXE_NAME}"
|
|
||||||
}
|
|
||||||
|
|
||||||
create_install_dir() {
|
|
||||||
dodir "${INSTALL_DIR}"
|
|
||||||
setup_install_dist
|
|
||||||
setup_install_bin
|
|
||||||
create_current_symlink
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_install_dist() {
|
|
||||||
cp -r "${INSTALLER_DIST_DIR}" "${D}/${INSTALL_DIST_DIR}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_install_bin() {
|
|
||||||
dodir "${INSTALL_BIN_DIR}"
|
|
||||||
dosym "../dist/${EXE_NAME}" "${INSTALL_AWS_EXE}"
|
|
||||||
dosym "../dist/${COMPLETER_EXE_NAME}" "${INSTALL_AWS_COMPLETER_EXE}"
|
|
||||||
}
|
|
||||||
|
|
||||||
create_current_symlink() {
|
|
||||||
dosym "${AWS_EXE_VERSION}" "${CURRENT_INSTALL_DIR}"
|
|
||||||
}
|
|
||||||
|
|
||||||
create_bin_symlinks() {
|
|
||||||
dodir "${BIN_DIR}"
|
|
||||||
dosym -r "${CURRENT_AWS_EXE}" "${BIN_AWS_EXE}"
|
|
||||||
dosym -r "${CURRENT_AWS_COMPLETER_EXE}" "${BIN_AWS_COMPLETER_EXE}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
set_global_vars
|
|
||||||
create_install_dir
|
|
||||||
create_bin_symlinks
|
|
||||||
}
|
|
@ -1,3 +1,5 @@
|
|||||||
DIST aws-cli-1.25.56.gh.tar.gz 2252989 BLAKE2B a082d42bd9ebaa858a3464bf885ba86a6f0f1b75d6ec89f9d6f1ab04dc753cf13cc6f7ced64cca35f8ddc460d589b44caa483c9d94bccb5b028c921fe7b970c0 SHA512 3a0fcd505b8a0c4fb322d2d39cc0ec3add977eb7ede14d7ff9fa3dd25b92e0e0d97128b73b6c32588d7e48344283c8c3eac293ea6cd470ea4feda1d1bf124e1b
|
DIST aws-cli-1.25.56.gh.tar.gz 2252989 BLAKE2B a082d42bd9ebaa858a3464bf885ba86a6f0f1b75d6ec89f9d6f1ab04dc753cf13cc6f7ced64cca35f8ddc460d589b44caa483c9d94bccb5b028c921fe7b970c0 SHA512 3a0fcd505b8a0c4fb322d2d39cc0ec3add977eb7ede14d7ff9fa3dd25b92e0e0d97128b73b6c32588d7e48344283c8c3eac293ea6cd470ea4feda1d1bf124e1b
|
||||||
DIST aws-cli-1.25.61.gh.tar.gz 2257977 BLAKE2B d1090ca3eb86284520e970a997932af31c250d2ca12ab7ddd2a64a55540e5b747bd30d21f4b0fdb8cd926692bde53a37b618f4cc2b9e92c7fcbca95419d7fb36 SHA512 cb869e08b9bec7c542d44401590f3ee5500564c23ff17d47e6a0265e1f98aea7429e55757e2184d7fbf23b3bb65366692040c059cdfffef39e1de2072345060c
|
DIST aws-cli-1.25.61.gh.tar.gz 2257977 BLAKE2B d1090ca3eb86284520e970a997932af31c250d2ca12ab7ddd2a64a55540e5b747bd30d21f4b0fdb8cd926692bde53a37b618f4cc2b9e92c7fcbca95419d7fb36 SHA512 cb869e08b9bec7c542d44401590f3ee5500564c23ff17d47e6a0265e1f98aea7429e55757e2184d7fbf23b3bb65366692040c059cdfffef39e1de2072345060c
|
||||||
DIST aws-cli-1.25.64.gh.tar.gz 2263441 BLAKE2B d68ef0a3dabba879d9d650a911d5f286116a6d407d9d958088f7b7cd54c27db3be28165a1676e949785056519477f315ca4e08f6df9938da2516974d026fef81 SHA512 4db256228dde6aed2432133373c045bf2f2e69a7764629f3d13a94e086f99b43cc2a29862e6f973742a0de08032e6c26499b230db81575eabd288c8f2f63eb0a
|
DIST aws-cli-1.25.64.gh.tar.gz 2263441 BLAKE2B d68ef0a3dabba879d9d650a911d5f286116a6d407d9d958088f7b7cd54c27db3be28165a1676e949785056519477f315ca4e08f6df9938da2516974d026fef81 SHA512 4db256228dde6aed2432133373c045bf2f2e69a7764629f3d13a94e086f99b43cc2a29862e6f973742a0de08032e6c26499b230db81575eabd288c8f2f63eb0a
|
||||||
|
DIST aws-cli-1.25.65.gh.tar.gz 2263933 BLAKE2B 5c516e6a95a333073cf7200eff476e625e9b832b32b44fc41e3656c5c78710ba8272fdb5fbafcfe85fe17853c1f40e26fd6de84a6c4c42a7cd6d7d2ce41ab8f5 SHA512 7dcdd2d0e05000f09d41a24c8e14ee7b4623e89f027c193c67635296f568c8d1f383956c5c351c85b7c48150796203dce777ef2f6376c3778ea2ec8b8f39072b
|
||||||
|
DIST aws-cli-1.25.66.gh.tar.gz 2264111 BLAKE2B 7aaa42d654a873fea44fe64e0805c240700830c653ecfbfab4bf8838ba2aca5ec9508241e9fd9329b546d098eb4c68f886dac1afc31e12cea4779cc35ec091fb SHA512 dcddfebf2051fad23208c2617596c6aa4462e940056f5963526983c15b6c33bb118a769f139a8c8297d413e9a6ae129d7e14a6ffa56aa595dcde0128ea10d5c2
|
||||||
|
@ -0,0 +1,72 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||||
|
|
||||||
|
MY_P=aws-cli-${PV}
|
||||||
|
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/aws/aws-cli/
|
||||||
|
https://pypi.org/project/awscli/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||||
|
-> ${MY_P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||||
|
|
||||||
|
# botocore is x.(y+2).(z-1)
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(( $(ver_cut 3-) - 1 ))"
|
||||||
|
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.6.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
!app-admin/awscli-bin
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
# strip overzealous upper bounds on requirements
|
||||||
|
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# integration tests require AWS credentials and Internet access
|
||||||
|
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||||
|
}
|
||||||
|
|
||||||
|
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,72 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||||
|
|
||||||
|
MY_P=aws-cli-${PV}
|
||||||
|
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/aws/aws-cli/
|
||||||
|
https://pypi.org/project/awscli/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||||
|
-> ${MY_P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||||
|
|
||||||
|
# botocore is x.(y+2).(z-1)
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(( $(ver_cut 3-) - 1 ))"
|
||||||
|
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.6.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
!app-admin/awscli-bin
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
# strip overzealous upper bounds on requirements
|
||||||
|
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# integration tests require AWS credentials and Internet access
|
||||||
|
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
newbashcomp bin/aws_bash_completer aws
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins bin/aws_zsh_completer.sh _aws
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
https://github.com/openSUSE/snapper/pull/743
|
||||||
|
|
||||||
|
From 3415229fd29fa3e5247e30ba1ac632e91e603c9f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sam James <sam@gentoo.org>
|
||||||
|
Date: Fri, 2 Sep 2022 06:48:56 +0100
|
||||||
|
Subject: [PATCH] Fix build with GCC 12 (and musl)
|
||||||
|
|
||||||
|
```
|
||||||
|
DBusMessage.h:239:34: error: 'time_t' has not been declared
|
||||||
|
239 | Hihi& operator>>(Hihi& hihi, time_t& data);
|
||||||
|
```
|
||||||
|
|
||||||
|
Include <ctime> to grab time_t.
|
||||||
|
|
||||||
|
Bug: https://bugs.gentoo.org/862094
|
||||||
|
Signed-off-by: Sam James <sam@gentoo.org>
|
||||||
|
--- a/dbus/DBusMessage.h
|
||||||
|
+++ b/dbus/DBusMessage.h
|
||||||
|
@@ -27,6 +27,7 @@
|
||||||
|
|
||||||
|
#include <dbus/dbus.h>
|
||||||
|
|
||||||
|
+#include <ctime>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <list>
|
||||||
|
|
Binary file not shown.
@ -0,0 +1,165 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
# Maintainers should:
|
||||||
|
# 1. Join the "Gentoo" project at https://dev.gnupg.org/project/view/27/
|
||||||
|
# 2. Subscribe to release tasks like https://dev.gnupg.org/T6159
|
||||||
|
# (find the one for the current release then subscribe to it +
|
||||||
|
# any subsequent ones linked within so you're covered for a while.)
|
||||||
|
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gnupg.asc
|
||||||
|
inherit flag-o-matic systemd toolchain-funcs verify-sig
|
||||||
|
|
||||||
|
MY_P="${P/_/-}"
|
||||||
|
|
||||||
|
DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
|
||||||
|
HOMEPAGE="https://gnupg.org/"
|
||||||
|
SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
|
||||||
|
SRC_URI+=" verify-sig? ( mirror://gnupg/gnupg/${P}.tar.bz2.sig )"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test tofu tools usb user-socket wks-server"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
# Existence of executables is checked during configuration.
|
||||||
|
# Note: On each bump, update dep bounds on each version from configure.ac!
|
||||||
|
DEPEND=">=dev-libs/libassuan-2.5.0
|
||||||
|
>=dev-libs/libgcrypt-1.8.0:=
|
||||||
|
>=dev-libs/libgpg-error-1.29
|
||||||
|
>=dev-libs/libksba-1.3.5
|
||||||
|
>=dev-libs/npth-1.2
|
||||||
|
>=net-misc/curl-7.10
|
||||||
|
sys-libs/zlib
|
||||||
|
bzip2? ( app-arch/bzip2 )
|
||||||
|
ldap? ( net-nds/openldap:= )
|
||||||
|
readline? ( sys-libs/readline:0= )
|
||||||
|
smartcard? ( usb? ( virtual/libusb:1 ) )
|
||||||
|
ssl? ( >=net-libs/gnutls-3.0:0= )
|
||||||
|
tofu? ( >=dev-db/sqlite-3.7 )"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
app-crypt/pinentry
|
||||||
|
nls? ( virtual/libintl )
|
||||||
|
selinux? ( sec-policy/selinux-gpg )
|
||||||
|
wks-server? ( virtual/mta )"
|
||||||
|
|
||||||
|
BDEPEND="virtual/pkgconfig
|
||||||
|
doc? ( sys-apps/texinfo )
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
verify-sig? ( sec-keys/openpgp-keys-gnupg )"
|
||||||
|
|
||||||
|
DOCS=(
|
||||||
|
ChangeLog NEWS README THANKS TODO VERSION
|
||||||
|
doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER
|
||||||
|
)
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode,
|
||||||
|
# idea borrowed from libdbus, see
|
||||||
|
# https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6
|
||||||
|
#
|
||||||
|
# This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl',
|
||||||
|
# which in turn requires discovery in Autoconf, something that upstream deeply resents.
|
||||||
|
sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \
|
||||||
|
-i doc/examples/systemd-user/gpg-agent-ssh.socket || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=(
|
||||||
|
$(use_enable bzip2)
|
||||||
|
$(use_enable nls)
|
||||||
|
$(use_enable smartcard scdaemon)
|
||||||
|
$(use_enable ssl gnutls)
|
||||||
|
$(use_enable test all-tests)
|
||||||
|
$(use_enable test tests)
|
||||||
|
$(use_enable tofu)
|
||||||
|
$(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver')
|
||||||
|
$(use_enable wks-server wks-tools)
|
||||||
|
$(use_with ldap)
|
||||||
|
$(use_with readline)
|
||||||
|
--with-mailprog=/usr/libexec/sendmail
|
||||||
|
--disable-ntbtls
|
||||||
|
--enable-gpg
|
||||||
|
--enable-gpgsm
|
||||||
|
--enable-large-secmem
|
||||||
|
|
||||||
|
CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
||||||
|
GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config"
|
||||||
|
KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config"
|
||||||
|
LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config"
|
||||||
|
LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config"
|
||||||
|
NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config"
|
||||||
|
|
||||||
|
$("${S}/configure" --help | grep -o -- '--without-.*-prefix')
|
||||||
|
)
|
||||||
|
|
||||||
|
if use prefix && use usb; then
|
||||||
|
# bug #649598
|
||||||
|
append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# bug #663142
|
||||||
|
if use user-socket; then
|
||||||
|
myconf+=( --enable-run-gnupg-user-socket )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# glib fails and picks up clang's internal stdint.h causing weird errors
|
||||||
|
tc-is-clang && export gl_cv_absolute_stdint_h="${ESYSROOT}"/usr/include/stdint.h
|
||||||
|
|
||||||
|
# Hardcode mailprog to /usr/libexec/sendmail even if it does not exist.
|
||||||
|
# As of GnuPG 2.3, the mailprog substitution is used for the binary called
|
||||||
|
# by wks-client & wks-server; and if it's autodetected but not not exist at
|
||||||
|
# build time, then then 'gpg-wks-client --send' functionality will not
|
||||||
|
# work. This has an unwanted side-effect in stage3 builds: there was a
|
||||||
|
# [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating
|
||||||
|
# the build where the install guide previously make the user chose the
|
||||||
|
# logger & mta early in the install.
|
||||||
|
|
||||||
|
econf "${myconf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
default
|
||||||
|
|
||||||
|
use doc && emake -C doc html
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# bug #638574
|
||||||
|
use tofu && export TESTFLAGS=--parallel
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
use tools &&
|
||||||
|
dobin \
|
||||||
|
tools/{convert-from-106,gpg-check-pattern} \
|
||||||
|
tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \
|
||||||
|
tools/make-dns-cert
|
||||||
|
|
||||||
|
dosym gpg /usr/bin/gpg2
|
||||||
|
dosym gpgv /usr/bin/gpgv2
|
||||||
|
echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die
|
||||||
|
echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die
|
||||||
|
|
||||||
|
dodir /etc/env.d
|
||||||
|
echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die
|
||||||
|
|
||||||
|
use doc && dodoc doc/gnupg.html/* doc/*.png
|
||||||
|
|
||||||
|
systemd_douserunit doc/examples/systemd-user/*.{service,socket}
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
https://github.com/krb5/krb5/commit/c3958cec43b598b25484b9805224c56f25f7a755
|
||||||
|
https://bugs.gentoo.org/854561
|
||||||
|
|
||||||
|
From: Greg Hudson <ghudson@mit.edu>
|
||||||
|
Date: Tue, 29 Mar 2022 16:27:55 -0400
|
||||||
|
Subject: [PATCH] Include time.h in kdb.h
|
||||||
|
|
||||||
|
kdb.h uses time_t, and therefore must include <time.h> to ensure its
|
||||||
|
definition. Noticed when building t_sort_key_data.c on macOS.
|
||||||
|
--- a/include/kdb.h
|
||||||
|
+++ b/include/kdb.h
|
||||||
|
@@ -65,6 +65,7 @@
|
||||||
|
#ifndef KRB5_KDB5__
|
||||||
|
#define KRB5_KDB5__
|
||||||
|
|
||||||
|
+#include <time.h>
|
||||||
|
#include <krb5.h>
|
||||||
|
|
||||||
|
/* This version will be incremented when incompatible changes are made to the
|
||||||
|
|
Binary file not shown.
@ -0,0 +1,127 @@
|
|||||||
|
# Copyright 1999-2022 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}"
|
||||||
|
|
||||||
|
RESTRICT="mirror strip bindist"
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
app-accessibility/at-spi2-atk:2
|
||||||
|
app-accessibility/at-spi2-core:2
|
||||||
|
app-crypt/libsecret[crypt]
|
||||||
|
dev-libs/atk
|
||||||
|
dev-libs/expat
|
||||||
|
dev-libs/glib:2
|
||||||
|
dev-libs/nspr
|
||||||
|
dev-libs/nss
|
||||||
|
media-libs/alsa-lib
|
||||||
|
media-libs/mesa
|
||||||
|
sys-apps/util-linux
|
||||||
|
sys-apps/dbus
|
||||||
|
x11-libs/cairo
|
||||||
|
x11-libs/gdk-pixbuf:2
|
||||||
|
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/libxshmfence
|
||||||
|
x11-libs/pango
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_PREBUILT="
|
||||||
|
/opt/vscode/chrome_crashpad_handler
|
||||||
|
/opt/vscode/chrome-sandbox
|
||||||
|
/opt/vscode/code
|
||||||
|
/opt/vscode/libEGL.so
|
||||||
|
/opt/vscode/libffmpeg.so
|
||||||
|
/opt/vscode/libGLESv2.so
|
||||||
|
/opt/vscode/libvk_swiftshader.so
|
||||||
|
/opt/vscode/libvulkan.so*
|
||||||
|
/opt/vscode/resources/app/extensions/*
|
||||||
|
/opt/vscode/resources/app/node_modules.asar.unpacked/*
|
||||||
|
/opt/vscode/swiftshader/libEGL.so
|
||||||
|
/opt/vscode/swiftshader/libGLESv2.so
|
||||||
|
"
|
||||||
|
|
||||||
|
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/LICENSES.chromium.html ./resources/app/LICENSE.rtf ./resources/app/licenses || die
|
||||||
|
|
||||||
|
# Disable update server
|
||||||
|
sed -e "/updateUrl/d" -i ./resources/app/product.json || die
|
||||||
|
|
||||||
|
# Install
|
||||||
|
pax-mark m code
|
||||||
|
insinto "/opt/${PN}"
|
||||||
|
doins -r *
|
||||||
|
fperms +x /opt/${PN}/{,bin/}code
|
||||||
|
fperms +x /opt/${PN}/chrome_crashpad_handler
|
||||||
|
fperms 4711 /opt/${PN}/chrome-sandbox
|
||||||
|
fperms 755 /opt/${PN}/resources/app/extensions/git/dist/{askpass,git-editor}{,-empty}.sh
|
||||||
|
fperms -R +x /opt/${PN}/resources/app/out/vs/base/node
|
||||||
|
fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg
|
||||||
|
dosym "../../opt/${PN}/bin/code" "usr/bin/vscode"
|
||||||
|
dosym "../../opt/${PN}/bin/code" "usr/bin/code"
|
||||||
|
domenu "${FILESDIR}/vscode.desktop"
|
||||||
|
domenu "${FILESDIR}/vscode-url-handler.desktop"
|
||||||
|
domenu "${FILESDIR}/vscode-wayland.desktop"
|
||||||
|
domenu "${FILESDIR}/vscode-url-handler-wayland.desktop"
|
||||||
|
newicon "resources/app/resources/linux/code.png" "vscode.png"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_pkg_postinst
|
||||||
|
elog "You may want to install some additional utils, check in:"
|
||||||
|
elog "https://code.visualstudio.com/Docs/setup#_additional-tools"
|
||||||
|
optfeature "keyring support inside vscode" "gnome-base/gnome-keyring"
|
||||||
|
}
|
@ -0,0 +1,118 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit desktop pax-utils xdg optfeature
|
||||||
|
|
||||||
|
DESCRIPTION="A community-driven, freely-licensed binary distribution of Microsoft's VSCode"
|
||||||
|
HOMEPAGE="https://vscodium.com/"
|
||||||
|
SRC_URI="
|
||||||
|
amd64? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-x64-${PV}.tar.gz -> ${P}-amd64.tar.gz )
|
||||||
|
arm? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-armhf-${PV}.tar.gz -> ${P}-arm.tar.gz )
|
||||||
|
arm64? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-arm64-${PV}.tar.gz -> ${P}-arm64.tar.gz )
|
||||||
|
"
|
||||||
|
|
||||||
|
RESTRICT="strip bindist"
|
||||||
|
|
||||||
|
LICENSE="
|
||||||
|
Apache-2.0
|
||||||
|
BSD
|
||||||
|
BSD-1
|
||||||
|
BSD-2
|
||||||
|
BSD-4
|
||||||
|
CC-BY-4.0
|
||||||
|
ISC
|
||||||
|
LGPL-2.1+
|
||||||
|
MIT
|
||||||
|
MPL-2.0
|
||||||
|
openssl
|
||||||
|
PYTHON
|
||||||
|
TextMate-bundle
|
||||||
|
Unlicense
|
||||||
|
UoI-NCSA
|
||||||
|
W3C
|
||||||
|
"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="-* ~amd64 ~arm ~arm64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
app-accessibility/at-spi2-atk:2
|
||||||
|
app-accessibility/at-spi2-core:2
|
||||||
|
app-crypt/libsecret[crypt]
|
||||||
|
dev-libs/atk
|
||||||
|
dev-libs/expat
|
||||||
|
dev-libs/glib:2
|
||||||
|
dev-libs/nspr
|
||||||
|
dev-libs/nss
|
||||||
|
media-libs/alsa-lib
|
||||||
|
media-libs/mesa
|
||||||
|
sys-apps/util-linux
|
||||||
|
sys-apps/dbus
|
||||||
|
x11-libs/cairo
|
||||||
|
x11-libs/gdk-pixbuf:2
|
||||||
|
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/libxshmfence
|
||||||
|
x11-libs/pango
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_PREBUILT="
|
||||||
|
/opt/vscodium/chrome_crashpad_handler
|
||||||
|
/opt/vscodium/chrome-sandbox
|
||||||
|
/opt/vscodium/codium
|
||||||
|
/opt/vscodium/libEGL.so
|
||||||
|
/opt/vscodium/libffmpeg.so
|
||||||
|
/opt/vscodium/libGLESv2.so
|
||||||
|
/opt/vscodium/libvk_swiftshader.so
|
||||||
|
/opt/vscodium/libvulkan.so*
|
||||||
|
/opt/vscodium/resources/app/extensions/*
|
||||||
|
/opt/vscodium/resources/app/node_modules.asar.unpacked/*
|
||||||
|
/opt/vscodium/swiftshader/libEGL.so
|
||||||
|
/opt/vscodium/swiftshader/libGLESv2.so
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# Cleanup
|
||||||
|
rm "${S}/resources/app/LICENSE.txt" || die
|
||||||
|
|
||||||
|
# Disable update server
|
||||||
|
sed -i "/updateUrl/d" "${S}"/resources/app/product.json || die
|
||||||
|
|
||||||
|
# Install
|
||||||
|
pax-mark m codium
|
||||||
|
insinto "/opt/${PN}"
|
||||||
|
doins -r *
|
||||||
|
fperms +x /opt/${PN}/{,bin/}codium
|
||||||
|
fperms +x /opt/${PN}/chrome_crashpad_handler
|
||||||
|
fperms 4711 /opt/${PN}/chrome-sandbox
|
||||||
|
fperms 755 /opt/${PN}/resources/app/extensions/git/dist/{askpass,git-editor}{,-empty}.sh
|
||||||
|
fperms -R +x /opt/${PN}/resources/app/out/vs/base/node
|
||||||
|
fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg
|
||||||
|
dosym "../../opt/${PN}/bin/codium" "usr/bin/vscodium"
|
||||||
|
dosym "../../opt/${PN}/bin/codium" "usr/bin/codium"
|
||||||
|
domenu "${FILESDIR}/vscodium.desktop"
|
||||||
|
domenu "${FILESDIR}/vscodium-url-handler.desktop"
|
||||||
|
domenu "${FILESDIR}/vscodium-wayland.desktop"
|
||||||
|
domenu "${FILESDIR}/vscodium-url-handler-wayland.desktop"
|
||||||
|
newicon "resources/app/resources/linux/code.png" "vscodium.png"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_pkg_postinst
|
||||||
|
elog "When compared to the regular VSCode, VSCodium has a few quirks"
|
||||||
|
elog "More information at: https://github.com/VSCodium/vscodium/blob/master/DOCS.md"
|
||||||
|
optfeature "keyring support inside vscode" "gnome-base/gnome-keyring"
|
||||||
|
}
|
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
DIST libvirt-7.10.0.tar.xz 8798000 BLAKE2B 6cb2ab5913d382b11d24b46154dc3250355050cd3038f64ba571b35f33ae5bd0a322d4b96469bd6c78fd848c87f2e6fc7213c33e5bdb9d375a9b81d2a40899bb SHA512 c7eecc9538b68852a8cc67565566d64ec7b087b6f009858b2eb524bc3ef0f6ca3c0da67edf801e6a3ae3fcc0364e65e108fa92bcb01ee810c85fa5f37785aa32
|
DIST libvirt-7.10.0.tar.xz 8798000 BLAKE2B 6cb2ab5913d382b11d24b46154dc3250355050cd3038f64ba571b35f33ae5bd0a322d4b96469bd6c78fd848c87f2e6fc7213c33e5bdb9d375a9b81d2a40899bb SHA512 c7eecc9538b68852a8cc67565566d64ec7b087b6f009858b2eb524bc3ef0f6ca3c0da67edf801e6a3ae3fcc0364e65e108fa92bcb01ee810c85fa5f37785aa32
|
||||||
DIST libvirt-8.4.0.tar.xz 8846528 BLAKE2B 479d7d47a9d711e0240da09eb295f1a644bc4cfddbe544908f2011eb45dff9cf9ffdfff87ba63ded96f5b69024c65832326f9fb0837c5338114ad5dbbada7af1 SHA512 e9dcaa489f162e3a26fe1ca7bb83a22e3f1952594c3541ddd2a7f8e8a0e6ad37e193fb89421df1efe3d2a4d9bb7cf5455c7b7a0b59e133eb6c0ff3cbbd8403b6
|
DIST libvirt-8.4.0.tar.xz 8846528 BLAKE2B 479d7d47a9d711e0240da09eb295f1a644bc4cfddbe544908f2011eb45dff9cf9ffdfff87ba63ded96f5b69024c65832326f9fb0837c5338114ad5dbbada7af1 SHA512 e9dcaa489f162e3a26fe1ca7bb83a22e3f1952594c3541ddd2a7f8e8a0e6ad37e193fb89421df1efe3d2a4d9bb7cf5455c7b7a0b59e133eb6c0ff3cbbd8403b6
|
||||||
DIST libvirt-8.5.0.tar.xz 8886088 BLAKE2B a789b5d4d4f3d359403b53b1b6bdc31ddd8938d12fce3c77e953a30be359a3f75071c385bc8ce3df11ccc7ad682e433c067781948cf107abef84e54d5aadd0d9 SHA512 62b05c5cd58eab0ab2d945b832fd85807aea9b5f12a7ef5d1205fe0edac8d361ba3a9245f60f200a8548c96f718943d4502d87fff87c4495bd1e2637f14aaccf
|
DIST libvirt-8.5.0.tar.xz 8886088 BLAKE2B a789b5d4d4f3d359403b53b1b6bdc31ddd8938d12fce3c77e953a30be359a3f75071c385bc8ce3df11ccc7ad682e433c067781948cf107abef84e54d5aadd0d9 SHA512 62b05c5cd58eab0ab2d945b832fd85807aea9b5f12a7ef5d1205fe0edac8d361ba3a9245f60f200a8548c96f718943d4502d87fff87c4495bd1e2637f14aaccf
|
||||||
|
DIST libvirt-8.7.0.tar.xz 8937316 BLAKE2B 131d46206662627e952b6daa3ceeab187321ff5fb1984980bc2816dfedf730c6ccd4b5a1cbfb46f33cc9e84508621e2625fa661f06b9e35561e8de52906824e5 SHA512 35d33d0e0dab525e8f0a8a592d286e9d17fc5c5d1ff2fab5af5c40b85248481dd17b5c3daf64e8c6e1b8a93328eebee6ece3e95edacff208a81d8b78dc102d7a
|
||||||
|
@ -0,0 +1,41 @@
|
|||||||
|
# Copyright 1999-2022 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 "${FILESDIR}"/Makefile-trang
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto "${SITEETC}/${PN}"
|
||||||
|
doins "${FILESDIR}"/schemas.xml *.rnc
|
||||||
|
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,340 @@
|
|||||||
|
# Copyright 1999-2022 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_{8..11} )
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/libvirt.org.asc
|
||||||
|
inherit meson bash-completion-r1 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 nfs nls numa openvz
|
||||||
|
parted pcap policykit +qemu rbd sasl selinux +udev
|
||||||
|
virtualbox +virt-network wireshark-plugins xen zfs
|
||||||
|
"
|
||||||
|
|
||||||
|
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
|
||||||
|
net-libs/rpcsvc-proto
|
||||||
|
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-util/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.7:= )
|
||||||
|
libssh2? ( >=net-libs/libssh2-1.3 )
|
||||||
|
lvm? ( >=sys-fs/lvm2-2.02.48-r2[-device-mapper-only(-)] )
|
||||||
|
lxc? ( !sys-apps/systemd[cgroup-hybrid(-)] )
|
||||||
|
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[-device-mapper-only(-)]
|
||||||
|
)
|
||||||
|
pcap? ( >=net-libs/libpcap-1.8.0 )
|
||||||
|
policykit? (
|
||||||
|
acct-group/libvirt
|
||||||
|
>=sys-auth/polkit-0.9
|
||||||
|
)
|
||||||
|
qemu? (
|
||||||
|
>=app-emulation/qemu-4.2
|
||||||
|
>=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]
|
||||||
|
)
|
||||||
|
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}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-6.0.0-fix_paths_in_libvirt-guests_sh.patch
|
||||||
|
"${FILESDIR}"/${PN}-8.2.0-do-not-use-sysconfig.patch
|
||||||
|
"${FILESDIR}"/${PN}-8.2.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
|
||||||
|
~IP_NF_TARGET_MASQUERADE
|
||||||
|
~IP6_NF_FILTER
|
||||||
|
~IP6_NF_MANGLE
|
||||||
|
~IP6_NF_NAT"
|
||||||
|
# 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 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 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
|
||||||
|
|
||||||
|
-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"
|
||||||
|
-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
|
||||||
|
}
|
@ -1,2 +1,2 @@
|
|||||||
DIST protontricks-1.8.2.tar.gz 153142 BLAKE2B c0757973f7e1c442ab0bba27c2c739a7b24d45bab31ec308ec195290e35392d222369dbfe64f558e21ed1b61d13bdae629c0ba8b2f81b9af2b4f2f94c30ba9ea SHA512 9b83c34847e8ea8ae86f77330f626748a8ef5682c99619d90fea0c52de3ccd5b4285e5dfc676b8c046b9deec996847dbb0586596428507e162e255a852b28cd1
|
|
||||||
DIST protontricks-1.9.0.tar.gz 154202 BLAKE2B e998bd899ec953ed7ee0bb0f3944da0212b71f2d0eef6c6996040e4d9c607f7bc73b52df4cbc6a70480b308473fa8c0978415a6202f498247bf91662761adf5c SHA512 43ffd2a5cd4d58c44696a2a66da0223a93d553822fdc92a476c661d69f7522d2aef12787bfc33610751bc1171fb1a3da169e3d40a2b60863a9f37ed205771835
|
DIST protontricks-1.9.0.tar.gz 154202 BLAKE2B e998bd899ec953ed7ee0bb0f3944da0212b71f2d0eef6c6996040e4d9c607f7bc73b52df4cbc6a70480b308473fa8c0978415a6202f498247bf91662761adf5c SHA512 43ffd2a5cd4d58c44696a2a66da0223a93d553822fdc92a476c661d69f7522d2aef12787bfc33610751bc1171fb1a3da169e3d40a2b60863a9f37ed205771835
|
||||||
|
DIST protontricks-1.9.1.tar.gz 158292 BLAKE2B 0825fb03bb05604482c893e7dc399bf0223d76a29eff86f0dd407d89cc8f5b39e8fcfec752a2979a3127921dbdb6dc3d186cc61b53f96c544e9b1526ec5e2246 SHA512 85ab3b1f3d5ff73eee7a8bae2021409443e2f82414f42cfa03646415e53a76e0b853ff1a99cb2d5eed512833ac7a60a2718095161aa56864ca83fe9901786881
|
||||||
|
@ -1,512 +0,0 @@
|
|||||||
# Copyright 2021-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
CRATES="
|
|
||||||
adler-1.0.2
|
|
||||||
adler32-1.2.0
|
|
||||||
ahash-0.7.6
|
|
||||||
aho-corasick-0.7.18
|
|
||||||
alsa-0.6.0
|
|
||||||
alsa-sys-0.3.1
|
|
||||||
android_system_properties-0.1.2
|
|
||||||
ansi_term-0.12.1
|
|
||||||
approx-0.5.1
|
|
||||||
arrayvec-0.5.2
|
|
||||||
arrayvec-0.7.2
|
|
||||||
ash-0.37.0+1.3.209
|
|
||||||
async-channel-1.6.1
|
|
||||||
atk-sys-0.15.1
|
|
||||||
atty-0.2.14
|
|
||||||
autocfg-1.1.0
|
|
||||||
base64-0.13.0
|
|
||||||
bindgen-0.59.2
|
|
||||||
bit-set-0.5.3
|
|
||||||
bit-vec-0.6.3
|
|
||||||
bit_field-0.10.1
|
|
||||||
bitflags-1.3.2
|
|
||||||
bitflags_serde_shim-0.2.2
|
|
||||||
bitstream-io-1.5.0
|
|
||||||
bitvec-0.19.6
|
|
||||||
block-0.1.6
|
|
||||||
block-buffer-0.10.2
|
|
||||||
bstr-0.2.17
|
|
||||||
build_const-0.2.2
|
|
||||||
bumpalo-3.10.0
|
|
||||||
bytemuck-1.11.0
|
|
||||||
bytemuck_derive-1.1.1
|
|
||||||
byteorder-1.4.3
|
|
||||||
bytes-1.2.0
|
|
||||||
cache-padded-1.2.0
|
|
||||||
cairo-sys-rs-0.15.1
|
|
||||||
calloop-0.9.3
|
|
||||||
castaway-0.1.2
|
|
||||||
cc-1.0.73
|
|
||||||
cesu8-1.1.0
|
|
||||||
cexpr-0.6.0
|
|
||||||
cfg-expr-0.10.3
|
|
||||||
cfg-if-0.1.10
|
|
||||||
cfg-if-1.0.0
|
|
||||||
cfg_aliases-0.1.1
|
|
||||||
chrono-0.4.19
|
|
||||||
clang-sys-1.3.3
|
|
||||||
clap-3.2.15
|
|
||||||
clap_derive-3.2.15
|
|
||||||
clap_lex-0.2.4
|
|
||||||
clipboard-0.5.0
|
|
||||||
clipboard-win-2.2.0
|
|
||||||
cocoa-0.24.0
|
|
||||||
cocoa-foundation-0.1.0
|
|
||||||
codespan-reporting-0.11.1
|
|
||||||
color_quant-1.1.0
|
|
||||||
combine-4.6.4
|
|
||||||
concurrent-queue-1.2.2
|
|
||||||
console-0.15.0
|
|
||||||
console_error_panic_hook-0.1.7
|
|
||||||
console_log-0.2.0
|
|
||||||
convert_case-0.5.0
|
|
||||||
cookie-factory-0.3.2
|
|
||||||
copyless-0.1.5
|
|
||||||
core-foundation-0.7.0
|
|
||||||
core-foundation-0.9.3
|
|
||||||
core-foundation-sys-0.7.0
|
|
||||||
core-foundation-sys-0.8.3
|
|
||||||
core-graphics-0.19.2
|
|
||||||
core-graphics-0.22.3
|
|
||||||
core-graphics-types-0.1.1
|
|
||||||
core-video-sys-0.1.4
|
|
||||||
coreaudio-rs-0.10.0
|
|
||||||
coreaudio-sys-0.2.10
|
|
||||||
cpal-0.13.5
|
|
||||||
cpufeatures-0.2.2
|
|
||||||
crc-1.8.1
|
|
||||||
crc32fast-1.3.2
|
|
||||||
crossbeam-channel-0.5.6
|
|
||||||
crossbeam-deque-0.8.2
|
|
||||||
crossbeam-epoch-0.9.10
|
|
||||||
crossbeam-utils-0.8.11
|
|
||||||
crypto-common-0.1.6
|
|
||||||
csv-1.1.6
|
|
||||||
csv-core-0.1.10
|
|
||||||
ctor-0.1.22
|
|
||||||
cty-0.2.2
|
|
||||||
curl-0.4.44
|
|
||||||
curl-sys-0.4.56+curl-7.83.1
|
|
||||||
d3d12-0.5.0
|
|
||||||
darling-0.13.4
|
|
||||||
darling_core-0.13.4
|
|
||||||
darling_macro-0.13.4
|
|
||||||
deflate-1.0.0
|
|
||||||
derive-try-from-primitive-1.0.0
|
|
||||||
diff-0.1.13
|
|
||||||
digest-0.10.3
|
|
||||||
dirs-4.0.0
|
|
||||||
dirs-sys-0.3.7
|
|
||||||
dispatch-0.2.0
|
|
||||||
dlib-0.5.0
|
|
||||||
downcast-rs-1.2.0
|
|
||||||
either-1.7.0
|
|
||||||
embed-resource-1.7.3
|
|
||||||
encode_unicode-0.3.6
|
|
||||||
encoding_rs-0.8.31
|
|
||||||
enum-map-2.4.0
|
|
||||||
enum-map-derive-0.9.0
|
|
||||||
enumset-1.0.11
|
|
||||||
enumset_derive-0.6.0
|
|
||||||
env_logger-0.9.0
|
|
||||||
euclid-0.22.7
|
|
||||||
event-listener-2.5.2
|
|
||||||
exr-1.4.2
|
|
||||||
fastrand-1.8.0
|
|
||||||
flate2-1.0.24
|
|
||||||
float_next_after-0.1.5
|
|
||||||
flume-0.10.14
|
|
||||||
fnv-1.0.7
|
|
||||||
foreign-types-0.3.2
|
|
||||||
foreign-types-shared-0.1.1
|
|
||||||
form_urlencoded-1.0.1
|
|
||||||
funty-1.1.0
|
|
||||||
futures-0.3.21
|
|
||||||
futures-channel-0.3.21
|
|
||||||
futures-core-0.3.21
|
|
||||||
futures-executor-0.3.21
|
|
||||||
futures-io-0.3.21
|
|
||||||
futures-lite-1.12.0
|
|
||||||
futures-macro-0.3.21
|
|
||||||
futures-sink-0.3.21
|
|
||||||
futures-task-0.3.21
|
|
||||||
futures-util-0.3.21
|
|
||||||
fxhash-0.2.1
|
|
||||||
gdk-pixbuf-sys-0.15.10
|
|
||||||
gdk-sys-0.15.1
|
|
||||||
generational-arena-0.2.8
|
|
||||||
generic-array-0.14.5
|
|
||||||
getrandom-0.2.7
|
|
||||||
gif-0.11.4
|
|
||||||
gio-sys-0.15.10
|
|
||||||
glib-sys-0.15.10
|
|
||||||
glob-0.3.0
|
|
||||||
glow-0.11.2
|
|
||||||
gobject-sys-0.15.10
|
|
||||||
gpu-alloc-0.5.3
|
|
||||||
gpu-alloc-types-0.2.0
|
|
||||||
gpu-descriptor-0.2.2
|
|
||||||
gpu-descriptor-types-0.1.1
|
|
||||||
gtk-sys-0.15.3
|
|
||||||
half-1.8.2
|
|
||||||
hashbrown-0.11.2
|
|
||||||
hashbrown-0.12.3
|
|
||||||
heck-0.4.0
|
|
||||||
hermit-abi-0.1.19
|
|
||||||
hexf-parse-0.2.1
|
|
||||||
http-0.2.8
|
|
||||||
humantime-2.1.0
|
|
||||||
ident_case-1.0.1
|
|
||||||
idna-0.2.3
|
|
||||||
image-0.24.3
|
|
||||||
indexmap-1.9.1
|
|
||||||
indicatif-0.16.2
|
|
||||||
inflate-0.4.5
|
|
||||||
inplace_it-0.3.4
|
|
||||||
instant-0.1.12
|
|
||||||
isahc-1.7.2
|
|
||||||
itoa-0.4.8
|
|
||||||
itoa-1.0.2
|
|
||||||
jni-0.19.0
|
|
||||||
jni-sys-0.3.0
|
|
||||||
jobserver-0.1.24
|
|
||||||
jpeg-decoder-0.2.6
|
|
||||||
js-sys-0.3.59
|
|
||||||
khronos-egl-4.1.0
|
|
||||||
lazy_static-1.4.0
|
|
||||||
lazycell-1.3.0
|
|
||||||
lebe-0.5.1
|
|
||||||
lexical-core-0.7.6
|
|
||||||
libc-0.2.126
|
|
||||||
libflate-1.2.0
|
|
||||||
libflate_lz77-1.1.0
|
|
||||||
libloading-0.7.3
|
|
||||||
libnghttp2-sys-0.1.7+1.45.0
|
|
||||||
libz-sys-1.1.8
|
|
||||||
lock_api-0.4.7
|
|
||||||
log-0.4.17
|
|
||||||
lyon-1.0.0
|
|
||||||
lyon_algorithms-1.0.0
|
|
||||||
lyon_geom-1.0.1
|
|
||||||
lyon_path-1.0.0
|
|
||||||
lyon_tessellation-1.0.1
|
|
||||||
lzma-rs-0.2.0
|
|
||||||
mach-0.3.2
|
|
||||||
malloc_buf-0.0.6
|
|
||||||
matches-0.1.9
|
|
||||||
memchr-2.5.0
|
|
||||||
memmap2-0.3.1
|
|
||||||
memoffset-0.6.5
|
|
||||||
metal-0.24.0
|
|
||||||
mime-0.3.16
|
|
||||||
minimal-lexical-0.2.1
|
|
||||||
minimp3-0.5.1
|
|
||||||
minimp3-sys-0.3.2
|
|
||||||
miniz_oxide-0.5.3
|
|
||||||
mio-0.8.4
|
|
||||||
naga-0.9.0
|
|
||||||
nanorand-0.7.0
|
|
||||||
ndk-0.5.0
|
|
||||||
ndk-0.6.0
|
|
||||||
ndk-context-0.1.1
|
|
||||||
ndk-glue-0.5.2
|
|
||||||
ndk-glue-0.6.2
|
|
||||||
ndk-macro-0.3.0
|
|
||||||
ndk-sys-0.2.2
|
|
||||||
ndk-sys-0.3.0
|
|
||||||
nix-0.22.3
|
|
||||||
nix-0.23.1
|
|
||||||
nom-6.1.2
|
|
||||||
nom-7.1.1
|
|
||||||
num-complex-0.4.2
|
|
||||||
num-derive-0.3.3
|
|
||||||
num-integer-0.1.45
|
|
||||||
num-rational-0.4.1
|
|
||||||
num-traits-0.2.15
|
|
||||||
num_cpus-1.13.1
|
|
||||||
num_enum-0.5.7
|
|
||||||
num_enum_derive-0.5.7
|
|
||||||
number_prefix-0.4.0
|
|
||||||
objc-0.2.7
|
|
||||||
objc-foundation-0.1.1
|
|
||||||
objc_exception-0.1.2
|
|
||||||
objc_id-0.1.1
|
|
||||||
oboe-0.4.6
|
|
||||||
oboe-sys-0.4.5
|
|
||||||
once_cell-1.13.0
|
|
||||||
openssl-probe-0.1.5
|
|
||||||
openssl-sys-0.9.75
|
|
||||||
os_str_bytes-6.2.0
|
|
||||||
output_vt100-0.1.3
|
|
||||||
pango-sys-0.15.10
|
|
||||||
parking-2.0.0
|
|
||||||
parking_lot-0.11.2
|
|
||||||
parking_lot-0.12.1
|
|
||||||
parking_lot_core-0.8.5
|
|
||||||
parking_lot_core-0.9.3
|
|
||||||
path-slash-0.2.0
|
|
||||||
peeking_take_while-0.1.2
|
|
||||||
percent-encoding-2.1.0
|
|
||||||
pin-project-1.0.11
|
|
||||||
pin-project-internal-1.0.11
|
|
||||||
pin-project-lite-0.2.9
|
|
||||||
pin-utils-0.1.0
|
|
||||||
pkg-config-0.3.25
|
|
||||||
png-0.17.5
|
|
||||||
polling-2.2.0
|
|
||||||
ppv-lite86-0.2.16
|
|
||||||
pretty_assertions-1.2.1
|
|
||||||
primal-check-0.3.1
|
|
||||||
proc-macro-crate-1.1.3
|
|
||||||
proc-macro-error-1.0.4
|
|
||||||
proc-macro-error-attr-1.0.4
|
|
||||||
proc-macro2-1.0.41
|
|
||||||
profiling-1.0.6
|
|
||||||
quote-1.0.20
|
|
||||||
radium-0.5.3
|
|
||||||
rand-0.8.5
|
|
||||||
rand_chacha-0.3.1
|
|
||||||
rand_core-0.6.3
|
|
||||||
range-alloc-0.1.2
|
|
||||||
raw-window-handle-0.4.3
|
|
||||||
rayon-1.5.3
|
|
||||||
rayon-core-1.9.3
|
|
||||||
redox_syscall-0.2.15
|
|
||||||
redox_users-0.4.3
|
|
||||||
regex-1.6.0
|
|
||||||
regex-automata-0.1.10
|
|
||||||
regex-syntax-0.6.27
|
|
||||||
regress-0.4.1
|
|
||||||
renderdoc-sys-0.7.1
|
|
||||||
rfd-0.9.1
|
|
||||||
rle-decode-fast-1.0.3
|
|
||||||
ron-0.7.1
|
|
||||||
rustc-hash-1.1.0
|
|
||||||
rustc_version-0.4.0
|
|
||||||
rustdct-0.7.0
|
|
||||||
rustfft-6.0.1
|
|
||||||
ryu-1.0.10
|
|
||||||
safe_arch-0.6.0
|
|
||||||
same-file-1.0.6
|
|
||||||
schannel-0.1.20
|
|
||||||
scoped-tls-1.0.0
|
|
||||||
scoped_threadpool-0.1.9
|
|
||||||
scopeguard-1.1.0
|
|
||||||
semver-1.0.12
|
|
||||||
serde-1.0.140
|
|
||||||
serde_derive-1.0.140
|
|
||||||
serde_json-1.0.82
|
|
||||||
sha2-0.10.2
|
|
||||||
shlex-1.1.0
|
|
||||||
slab-0.4.7
|
|
||||||
slice-deque-0.3.0
|
|
||||||
slotmap-1.0.6
|
|
||||||
sluice-0.5.5
|
|
||||||
smallvec-1.9.0
|
|
||||||
smithay-client-toolkit-0.15.4
|
|
||||||
socket2-0.4.4
|
|
||||||
spin-0.9.4
|
|
||||||
spirv-0.2.0+1.5.4
|
|
||||||
static_assertions-1.1.0
|
|
||||||
stdweb-0.1.3
|
|
||||||
strength_reduce-0.2.3
|
|
||||||
strsim-0.10.0
|
|
||||||
symphonia-0.5.1
|
|
||||||
symphonia-bundle-mp3-0.5.1
|
|
||||||
symphonia-core-0.5.1
|
|
||||||
symphonia-metadata-0.5.1
|
|
||||||
syn-1.0.98
|
|
||||||
synstructure-0.12.6
|
|
||||||
system-deps-6.0.2
|
|
||||||
tap-1.0.1
|
|
||||||
termcolor-1.1.3
|
|
||||||
terminal_size-0.1.17
|
|
||||||
textwrap-0.15.0
|
|
||||||
thiserror-1.0.31
|
|
||||||
thiserror-impl-1.0.31
|
|
||||||
threadpool-1.8.1
|
|
||||||
tiff-0.7.3
|
|
||||||
time-0.1.44
|
|
||||||
tinyvec-1.6.0
|
|
||||||
tinyvec_macros-0.1.0
|
|
||||||
toml-0.5.8
|
|
||||||
tracing-0.1.35
|
|
||||||
tracing-attributes-0.1.22
|
|
||||||
tracing-core-0.1.28
|
|
||||||
tracing-futures-0.2.5
|
|
||||||
transpose-0.2.1
|
|
||||||
typenum-1.15.0
|
|
||||||
unicode-bidi-0.3.8
|
|
||||||
unicode-ident-1.0.2
|
|
||||||
unicode-normalization-0.1.21
|
|
||||||
unicode-width-0.1.9
|
|
||||||
unicode-xid-0.2.3
|
|
||||||
url-2.2.2
|
|
||||||
vcpkg-0.2.15
|
|
||||||
version-compare-0.1.0
|
|
||||||
version_check-0.9.4
|
|
||||||
vswhom-0.1.0
|
|
||||||
vswhom-sys-0.1.1
|
|
||||||
waker-fn-1.1.0
|
|
||||||
walkdir-2.3.2
|
|
||||||
wasi-0.10.0+wasi-snapshot-preview1
|
|
||||||
wasi-0.11.0+wasi-snapshot-preview1
|
|
||||||
wasm-bindgen-0.2.82
|
|
||||||
wasm-bindgen-backend-0.2.82
|
|
||||||
wasm-bindgen-futures-0.4.32
|
|
||||||
wasm-bindgen-macro-0.2.82
|
|
||||||
wasm-bindgen-macro-support-0.2.82
|
|
||||||
wasm-bindgen-shared-0.2.82
|
|
||||||
wayland-client-0.29.4
|
|
||||||
wayland-commons-0.29.4
|
|
||||||
wayland-cursor-0.29.4
|
|
||||||
wayland-protocols-0.29.4
|
|
||||||
wayland-scanner-0.29.4
|
|
||||||
wayland-sys-0.29.4
|
|
||||||
weak-table-0.3.2
|
|
||||||
web-sys-0.3.58
|
|
||||||
webbrowser-0.7.1
|
|
||||||
weezl-0.1.7
|
|
||||||
wepoll-ffi-0.1.2
|
|
||||||
wgpu-0.13.1
|
|
||||||
wgpu-core-0.13.2
|
|
||||||
wgpu-hal-0.13.2
|
|
||||||
wgpu-types-0.13.2
|
|
||||||
wide-0.7.4
|
|
||||||
widestring-0.5.1
|
|
||||||
winapi-0.3.9
|
|
||||||
winapi-i686-pc-windows-gnu-0.4.0
|
|
||||||
winapi-util-0.1.5
|
|
||||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
|
||||||
windows-0.37.0
|
|
||||||
windows-sys-0.36.1
|
|
||||||
windows_aarch64_msvc-0.36.1
|
|
||||||
windows_aarch64_msvc-0.37.0
|
|
||||||
windows_i686_gnu-0.36.1
|
|
||||||
windows_i686_gnu-0.37.0
|
|
||||||
windows_i686_msvc-0.36.1
|
|
||||||
windows_i686_msvc-0.37.0
|
|
||||||
windows_x86_64_gnu-0.36.1
|
|
||||||
windows_x86_64_gnu-0.37.0
|
|
||||||
windows_x86_64_msvc-0.36.1
|
|
||||||
windows_x86_64_msvc-0.37.0
|
|
||||||
winit-0.26.1
|
|
||||||
winreg-0.10.1
|
|
||||||
wyz-0.2.0
|
|
||||||
x11-clipboard-0.3.3
|
|
||||||
x11-dl-2.19.1
|
|
||||||
xcb-0.8.2
|
|
||||||
xcursor-0.3.4
|
|
||||||
xml-rs-0.8.4"
|
|
||||||
# python is needed by xcb-0.8.2 until update to >=0.10
|
|
||||||
PYTHON_COMPAT=( python3_{8..11} )
|
|
||||||
PYTHON_REQ_USE="xml(+)"
|
|
||||||
inherit cargo desktop flag-o-matic python-any-r1 xdg
|
|
||||||
|
|
||||||
# 0(github) 1(repo) 2(commit hash) 3(crate:workspace,...) [see core/Cargo.toml]
|
|
||||||
RUFFLE_GIT=(
|
|
||||||
"RustAudio dasp f05a703d247bb504d7e812b51e95f3765d9c5e94 dasp"
|
|
||||||
"ruffle-rs gc-arena 4882182850be9df64565509d8489587a2f60171c gc-arena:src/gc-arena"
|
|
||||||
"ruffle-rs h263-rs 023e14c73e565c4c778d41f66cfbac5ece6419b2 h263-rs:h263,h263-rs-yuv:yuv"
|
|
||||||
"ruffle-rs nellymoser 4a33521c29a918950df8ae9fe07e527ac65553f5 nellymoser-rs:."
|
|
||||||
"ruffle-rs nihav-vp6 9416fcc9fc8aab8f4681aa9093b42922214abbd3 nihav_codec_support:nihav-codec-support,nihav_core:nihav-core,nihav_duck:nihav-duck"
|
|
||||||
"ruffle-rs quick-xml 8496365ec1412eb5ba5de350937b6bce352fa0ba quick-xml:."
|
|
||||||
"ruffle-rs rust-flash-lso 19fecd07b9888c4bdaa66771c468095783b52bed flash-lso"
|
|
||||||
)
|
|
||||||
ruffle_uris() {
|
|
||||||
cargo_crate_uris
|
|
||||||
|
|
||||||
local g
|
|
||||||
for g in "${RUFFLE_GIT[@]}"; do
|
|
||||||
g=(${g})
|
|
||||||
echo "https://github.com/${g[0]}/${g[1]}/archive/${g[2]}.tar.gz -> ${g[1]}-${g[2]}.tar.gz"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# using _pYYYYMMDD over YYYY.MM.DD given ruffle has an underlaying version
|
|
||||||
# (0.1.0) which could get a non-nightly release eventually (YYYY. > 0.1.0)
|
|
||||||
MY_PV="nightly-${PV:3:4}-${PV:7:2}-${PV:9:2}"
|
|
||||||
MY_P="${PN}-${MY_PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="Flash Player emulator written in Rust"
|
|
||||||
HOMEPAGE="https://ruffle.rs/"
|
|
||||||
SRC_URI="
|
|
||||||
https://github.com/ruffle-rs/ruffle/archive/refs/tags/${MY_PV}.tar.gz -> ${MY_P}.tar.gz
|
|
||||||
$(ruffle_uris)"
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0 ZLIB curl unicode"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-libs/openssl:=
|
|
||||||
media-libs/alsa-lib
|
|
||||||
sys-libs/zlib:=
|
|
||||||
x11-libs/gtk+:3
|
|
||||||
x11-libs/libxcb:="
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
virtual/jre:*
|
|
||||||
virtual/pkgconfig
|
|
||||||
>=virtual/rust-1.62"
|
|
||||||
|
|
||||||
QA_FLAGS_IGNORED="
|
|
||||||
usr/bin/${PN}
|
|
||||||
usr/bin/${PN}_exporter
|
|
||||||
usr/bin/${PN}_scanner"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# use [patch] directive to register git snapshots of needed crates
|
|
||||||
local crate g
|
|
||||||
for g in "${RUFFLE_GIT[@]}"; do
|
|
||||||
g=(${g})
|
|
||||||
echo "[patch.\"https://github.com/${g[0]}/${g[1]}\"]"
|
|
||||||
for crate in ${g[3]//,/ }; do
|
|
||||||
echo "${crate%:*} = { path = \"../${g[1]}-${g[2]}/${crate#*:}\" }"
|
|
||||||
done
|
|
||||||
done >> Cargo.toml || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
filter-lto # undefined references with ring crate and more
|
|
||||||
|
|
||||||
cargo_src_compile --bins # note: configure --bins would skip tests
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dodoc README.md
|
|
||||||
|
|
||||||
newicon web/packages/extension/assets/images/icon180.png ${PN}.png
|
|
||||||
make_desktop_entry ${PN} ${PN^} ${PN} "AudioVideo;Player;Emulator;" \
|
|
||||||
"MimeType=application/x-shockwave-flash;application/vnd.adobe.flash.movie;"
|
|
||||||
|
|
||||||
cd target/$(usex debug{,} release) || die
|
|
||||||
|
|
||||||
newbin ${PN}_desktop ${PN}
|
|
||||||
newbin exporter ${PN}_exporter
|
|
||||||
dobin ${PN}_scanner
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
xdg_pkg_postinst
|
|
||||||
|
|
||||||
if [[ ! ${REPLACING_VERSIONS} ]]; then
|
|
||||||
elog "${PN} is experimental software that is still under heavy development"
|
|
||||||
elog "and only receiving nightly releases. Plans in Gentoo is to update"
|
|
||||||
elog "roughly every two weeks if no known major regressions."
|
|
||||||
elog
|
|
||||||
elog "There is currently no plans to support wasm builds / browser"
|
|
||||||
elog "extensions, this provides the desktop viewer and other tools."
|
|
||||||
fi
|
|
||||||
}
|
|
@ -0,0 +1,527 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..11} )
|
||||||
|
PYTHON_REQ_USE='ncurses,xml(+),threads(+)'
|
||||||
|
|
||||||
|
inherit bash-completion-r1 flag-o-matic multilib python-single-r1 readme.gentoo-r1 toolchain-funcs
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
REPO="xen.git"
|
||||||
|
EGIT_REPO_URI="git://xenbits.xen.org/${REPO}"
|
||||||
|
S="${WORKDIR}/${REPO}"
|
||||||
|
else
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||||
|
|
||||||
|
SEABIOS_VER="1.14.0"
|
||||||
|
EDK2_COMMIT="7b4a99be8a39c12d3a7fc4b8db9f0eab4ac688d5"
|
||||||
|
EDK2_OPENSSL_VERSION="1_1_1j"
|
||||||
|
EDK2_SOFTFLOAT_COMMIT="b64af41c3276f97f0e181920400ee056b9c88037"
|
||||||
|
EDK2_BROTLI_COMMIT="666c3280cc11dc433c303d79a83d4ffbdd12cc8d"
|
||||||
|
IPXE_COMMIT="3c040ad387099483102708bb1839110bc788cefb"
|
||||||
|
|
||||||
|
XEN_GENTOO_PATCHSET_NUM=2
|
||||||
|
XEN_GENTOO_PATCHSET_BASE=4.16.1
|
||||||
|
XEN_PRE_PATCHSET_NUM=
|
||||||
|
XEN_PRE_VERSION_BASE=
|
||||||
|
|
||||||
|
XEN_BASE_PV="${PV}"
|
||||||
|
if [[ -n "${XEN_PRE_VERSION_BASE}" ]]; then
|
||||||
|
XEN_BASE_PV="${XEN_PRE_VERSION_BASE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
SRC_URI="
|
||||||
|
https://downloads.xenproject.org/release/xen/${XEN_BASE_PV}/xen-${XEN_BASE_PV}.tar.gz
|
||||||
|
https://www.seabios.org/downloads/seabios-${SEABIOS_VER}.tar.gz
|
||||||
|
ipxe? ( https://xenbits.xen.org/xen-extfiles/ipxe-git-${IPXE_COMMIT}.tar.gz )
|
||||||
|
ovmf? ( https://github.com/tianocore/edk2/archive/${EDK2_COMMIT}.tar.gz -> edk2-${EDK2_COMMIT}.tar.gz
|
||||||
|
https://github.com/openssl/openssl/archive/OpenSSL_${EDK2_OPENSSL_VERSION}.tar.gz
|
||||||
|
https://github.com/ucb-bar/berkeley-softfloat-3/archive/${EDK2_SOFTFLOAT_COMMIT}.tar.gz -> berkeley-softfloat-${EDK2_SOFTFLOAT_COMMIT}.tar.gz
|
||||||
|
https://github.com/google/brotli/archive/${EDK2_BROTLI_COMMIT}.tar.gz -> brotli-${EDK2_BROTLI_COMMIT}.tar.gz
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
if [[ -n "${XEN_PRE_PATCHSET_NUM}" ]]; then
|
||||||
|
XEN_UPSTREAM_PATCHES_TAG="$(ver_cut 1-3)-pre-patchset-${XEN_PRE_PATCHSET_NUM}"
|
||||||
|
XEN_UPSTREAM_PATCHES_NAME="xen-upstream-patches-${XEN_UPSTREAM_PATCHES_TAG}"
|
||||||
|
SRC_URI+=" https://gitweb.gentoo.org/proj/xen-upstream-patches.git/snapshot/${XEN_UPSTREAM_PATCHES_NAME}.tar.bz2"
|
||||||
|
XEN_UPSTREAM_PATCHES_DIR="${WORKDIR}/${XEN_UPSTREAM_PATCHES_NAME}"
|
||||||
|
fi
|
||||||
|
if [[ -n "${XEN_GENTOO_PATCHSET_NUM}" ]]; then
|
||||||
|
XEN_GENTOO_PATCHES_TAG="$(ver_cut 1-3 ${XEN_GENTOO_PATCHSET_BASE})-gentoo-patchset-${XEN_GENTOO_PATCHSET_NUM}"
|
||||||
|
XEN_GENTOO_PATCHES_NAME="xen-gentoo-patches-${XEN_GENTOO_PATCHES_TAG}"
|
||||||
|
SRC_URI+=" https://gitweb.gentoo.org/proj/xen-gentoo-patches.git/snapshot/${XEN_GENTOO_PATCHES_NAME}.tar.bz2"
|
||||||
|
XEN_GENTOO_PATCHES_DIR="${WORKDIR}/${XEN_GENTOO_PATCHES_NAME}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Xen tools including QEMU and xl"
|
||||||
|
HOMEPAGE="https://xenproject.org"
|
||||||
|
DOCS=( README )
|
||||||
|
|
||||||
|
S="${WORKDIR}/xen-$(ver_cut 1-3 ${XEN_BASE_PV})"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0/$(ver_cut 1-2)"
|
||||||
|
# Inclusion of IUSE ocaml on stabalizing requires maintainer of ocaml to (get off his hands and) make
|
||||||
|
# >=dev-lang/ocaml-4 stable
|
||||||
|
# Masked in profiles/eapi-5-files instead
|
||||||
|
IUSE="api debug doc +hvm +ipxe lzma ocaml ovmf pygrub python +qemu +qemu-traditional +rombios screen selinux sdl static-libs system-ipxe system-qemu system-seabios systemd zstd"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
${PYTHON_REQUIRED_USE}
|
||||||
|
ipxe? ( rombios )
|
||||||
|
ovmf? ( hvm )
|
||||||
|
pygrub? ( python )
|
||||||
|
rombios? ( hvm )
|
||||||
|
system-ipxe? ( rombios )
|
||||||
|
?? ( ipxe system-ipxe )
|
||||||
|
?? ( qemu system-qemu )"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
lzma? ( app-arch/xz-utils )
|
||||||
|
qemu? (
|
||||||
|
dev-libs/glib:2
|
||||||
|
sys-libs/pam
|
||||||
|
)
|
||||||
|
zstd? ( app-arch/zstd )
|
||||||
|
app-arch/bzip2
|
||||||
|
app-arch/zstd
|
||||||
|
dev-libs/libnl:3
|
||||||
|
dev-libs/lzo:2
|
||||||
|
dev-libs/yajl
|
||||||
|
sys-apps/util-linux
|
||||||
|
sys-fs/e2fsprogs
|
||||||
|
sys-libs/ncurses
|
||||||
|
sys-libs/zlib
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
sys-apps/iproute2[-minimal]
|
||||||
|
net-misc/bridge-utils
|
||||||
|
screen? (
|
||||||
|
app-misc/screen
|
||||||
|
app-admin/logrotate
|
||||||
|
)
|
||||||
|
selinux? ( sec-policy/selinux-xen )"
|
||||||
|
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
app-misc/pax-utils
|
||||||
|
>=sys-kernel/linux-headers-4.11
|
||||||
|
x11-libs/pixman
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/lxml[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
x86? ( sys-devel/dev86
|
||||||
|
system-ipxe? ( sys-firmware/ipxe[qemu] )
|
||||||
|
sys-power/iasl )
|
||||||
|
api? ( dev-libs/libxml2
|
||||||
|
net-misc/curl )
|
||||||
|
|
||||||
|
ovmf? (
|
||||||
|
!arm? ( !arm64? ( dev-lang/nasm ) )
|
||||||
|
$(python_gen_impl_dep sqlite)
|
||||||
|
)
|
||||||
|
!amd64? ( >=sys-apps/dtc-1.4.0 )
|
||||||
|
amd64? ( sys-power/iasl
|
||||||
|
system-seabios? ( sys-firmware/seabios )
|
||||||
|
system-ipxe? ( sys-firmware/ipxe[qemu] )
|
||||||
|
rombios? ( sys-devel/bin86 sys-devel/dev86 ) )
|
||||||
|
arm64? ( sys-power/iasl
|
||||||
|
rombios? ( sys-devel/bin86 sys-devel/dev86 ) )
|
||||||
|
doc? (
|
||||||
|
app-text/ghostscript-gpl
|
||||||
|
app-text/pandoc
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/markdown[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
dev-texlive/texlive-latexextra
|
||||||
|
media-gfx/transfig
|
||||||
|
)
|
||||||
|
hvm? ( x11-base/xorg-proto )
|
||||||
|
qemu? (
|
||||||
|
app-arch/snappy:=
|
||||||
|
dev-util/meson
|
||||||
|
sdl? (
|
||||||
|
media-libs/libsdl[X]
|
||||||
|
media-libs/libsdl2[X]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
system-qemu? ( app-emulation/qemu[xen] )
|
||||||
|
ocaml? ( dev-ml/findlib
|
||||||
|
dev-lang/ocaml[ocamlopt] )
|
||||||
|
python? ( >=dev-lang/swig-4.0.0 )"
|
||||||
|
|
||||||
|
BDEPEND="dev-lang/perl
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/gettext"
|
||||||
|
|
||||||
|
# hvmloader is used to bootstrap a fully virtualized kernel
|
||||||
|
# Approved by QA team in bug #144032
|
||||||
|
QA_WX_LOAD="
|
||||||
|
usr/libexec/xen/boot/hvmloader
|
||||||
|
usr/libexec/xen/boot/ovmf.bin
|
||||||
|
usr/libexec/xen/boot/xen-shim
|
||||||
|
usr/share/qemu-xen/qemu/hppa-firmware.img
|
||||||
|
usr/share/qemu-xen/qemu/opensbi-riscv32-generic-fw_dynamic.elf
|
||||||
|
usr/share/qemu-xen/qemu/opensbi-riscv64-generic-fw_dynamic.elf
|
||||||
|
usr/share/qemu-xen/qemu/s390-ccw.img
|
||||||
|
usr/share/qemu-xen/qemu/u-boot.e500
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_EXECSTACK="
|
||||||
|
usr/share/qemu-xen/qemu/hppa-firmware.img
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_PREBUILT="
|
||||||
|
usr/libexec/xen/bin/elf2dmp
|
||||||
|
usr/libexec/xen/bin/ivshmem-client
|
||||||
|
usr/libexec/xen/bin/ivshmem-server
|
||||||
|
usr/libexec/xen/bin/qemu-edid
|
||||||
|
usr/libexec/xen/bin/qemu-img
|
||||||
|
usr/libexec/xen/bin/qemu-io
|
||||||
|
usr/libexec/xen/bin/qemu-keymap
|
||||||
|
usr/libexec/xen/bin/qemu-nbd
|
||||||
|
usr/libexec/xen/bin/qemu-pr-helper
|
||||||
|
usr/libexec/xen/bin/qemu-storage-daemon
|
||||||
|
usr/libexec/xen/bin/qemu-system-i386
|
||||||
|
usr/libexec/xen/bin/virtfs-proxy-helper
|
||||||
|
usr/libexec/xen/boot/ovmf.bin
|
||||||
|
usr/libexec/xen/boot/xen-shim
|
||||||
|
usr/libexec/xen/libexec/qemu-pr-helper
|
||||||
|
usr/libexec/xen/libexec/virtfs-proxy-helper
|
||||||
|
usr/libexec/xen/libexec/virtiofsd
|
||||||
|
usr/libexec/xen/libexec/xen-bridge-helper
|
||||||
|
usr/share/qemu-xen/qemu/s390-ccw.img
|
||||||
|
usr/share/qemu-xen/qemu/s390-netboot.img
|
||||||
|
usr/share/qemu-xen/qemu/u-boot.e500
|
||||||
|
"
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
python_setup
|
||||||
|
export "CONFIG_LOMOUNT=y"
|
||||||
|
|
||||||
|
#bug 522642, disable compile tools/tests
|
||||||
|
export "CONFIG_TESTS=n"
|
||||||
|
|
||||||
|
if [[ -z ${XEN_TARGET_ARCH} ]] ; then
|
||||||
|
if use x86 && use amd64; then
|
||||||
|
die "Confusion! Both x86 and amd64 are set in your use flags!"
|
||||||
|
elif use x86; then
|
||||||
|
export XEN_TARGET_ARCH="x86_32"
|
||||||
|
elif use amd64 ; then
|
||||||
|
export XEN_TARGET_ARCH="x86_64"
|
||||||
|
elif use arm; then
|
||||||
|
export XEN_TARGET_ARCH="arm32"
|
||||||
|
elif use arm64; then
|
||||||
|
export XEN_TARGET_ARCH="arm64"
|
||||||
|
else
|
||||||
|
die "Unsupported architecture!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
|
||||||
|
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
||||||
|
pushd tools/firmware/ > /dev/null
|
||||||
|
ln -s seabios-dir-remote seabios-dir || die
|
||||||
|
popd > /dev/null
|
||||||
|
|
||||||
|
if [[ -v XEN_UPSTREAM_PATCHES_DIR ]]; then
|
||||||
|
eapply "${XEN_UPSTREAM_PATCHES_DIR}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -v XEN_GENTOO_PATCHES_DIR ]]; then
|
||||||
|
eapply "${XEN_GENTOO_PATCHES_DIR}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Rename qemu-bridge-helper to xen-bridge-helper to avoid file
|
||||||
|
# collisions with app-emulation/qemu.
|
||||||
|
sed -i 's/qemu-bridge-helper/xen-bridge-helper/g' \
|
||||||
|
tools/qemu-xen/include/net/net.h \
|
||||||
|
tools/qemu-xen/meson.build \
|
||||||
|
tools/qemu-xen/qemu-bridge-helper.c \
|
||||||
|
tools/qemu-xen/qemu-options.hx \
|
||||||
|
|| die
|
||||||
|
mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
|
||||||
|
|
||||||
|
if use ovmf; then
|
||||||
|
mv ../edk2-${EDK2_COMMIT} tools/firmware/ovmf-dir-remote || die
|
||||||
|
rm -r tools/firmware/ovmf-dir-remote/CryptoPkg/Library/OpensslLib/openssl || die
|
||||||
|
rm -r tools/firmware/ovmf-dir-remote/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 || die
|
||||||
|
rm -r tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli || die
|
||||||
|
rm -r tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli || die
|
||||||
|
mv ../openssl-OpenSSL_${EDK2_OPENSSL_VERSION} tools/firmware/ovmf-dir-remote/CryptoPkg/Library/OpensslLib/openssl || die
|
||||||
|
mv ../berkeley-softfloat-3-${EDK2_SOFTFLOAT_COMMIT} tools/firmware/ovmf-dir-remote/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 || die
|
||||||
|
cp -r ../brotli-${EDK2_BROTLI_COMMIT} tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli || die
|
||||||
|
cp -r ../brotli-${EDK2_BROTLI_COMMIT} tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli || die
|
||||||
|
cp tools/firmware/ovmf-makefile tools/firmware/ovmf-dir-remote/Makefile || die
|
||||||
|
|
||||||
|
# Bug #816987
|
||||||
|
pushd tools/firmware/ovmf-dir-remote/BaseTools/Source/C/BrotliCompress/brotli > /dev/null
|
||||||
|
eapply "${XEN_GENTOO_PATCHES_DIR}/ovmf/${PN}-4.15.1-brotli-gcc11.patch"
|
||||||
|
popd > /dev/null
|
||||||
|
|
||||||
|
pushd tools/firmware/ovmf-dir-remote/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli > /dev/null
|
||||||
|
eapply "${XEN_GENTOO_PATCHES_DIR}/ovmf/${PN}-4.15.1-brotli-gcc11.patch"
|
||||||
|
popd > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ipxe
|
||||||
|
if use ipxe; then
|
||||||
|
cp "${DISTDIR}/ipxe-git-${IPXE_COMMIT}.tar.gz" tools/firmware/etherboot/ipxe.tar.gz || die
|
||||||
|
|
||||||
|
# gcc 11
|
||||||
|
cp "${XEN_GENTOO_PATCHES_DIR}/ipxe/${PN}-4.15.0-ipxe-gcc11.patch" tools/firmware/etherboot/patches/ipxe-gcc11.patch || die
|
||||||
|
echo ipxe-gcc11.patch >> tools/firmware/etherboot/patches/series || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fix texi2html build error with new texi2html, qemu.doc.html
|
||||||
|
sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/Makefile || die
|
||||||
|
|
||||||
|
# Drop .config, fixes to gcc-4.6
|
||||||
|
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
||||||
|
|
||||||
|
# drop flags
|
||||||
|
unset CFLAGS
|
||||||
|
unset LDFLAGS
|
||||||
|
unset ASFLAGS
|
||||||
|
unset CPPFLAGS
|
||||||
|
|
||||||
|
if ! use pygrub; then
|
||||||
|
sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use python; then
|
||||||
|
sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use hvm; then
|
||||||
|
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
||||||
|
# Bug 351648
|
||||||
|
elif ! use x86 && ! has x86 $(get_all_abis); then
|
||||||
|
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
||||||
|
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
||||||
|
export CPATH="${WORKDIR}"/extra-headers
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use qemu; then
|
||||||
|
if use sdl; then
|
||||||
|
sed -i -e "s:\$\$source/configure:\0 --enable-sdl:" \
|
||||||
|
tools/Makefile || die
|
||||||
|
else
|
||||||
|
sed -i -e "s:\${QEMU_ROOT\:\-\.}/configure:\0 --disable-sdl:" \
|
||||||
|
tools/qemu-xen-traditional/xen-setup || die
|
||||||
|
sed -i -e "s:\$\$source/configure:\0 --disable-sdl:" \
|
||||||
|
tools/Makefile || die
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# Don't bother with qemu, only needed for fully virtualised guests
|
||||||
|
sed -i '/SUBDIRS-$(CONFIG_QEMU_XEN)/s/^/#/g' tools/Makefile || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Reset bash completion dir; Bug 472438
|
||||||
|
sed -e "s;^BASH_COMPLETION_DIR :=.*;BASH_COMPLETION_DIR := $(get_bashcompdir);" \
|
||||||
|
-i config/Paths.mk.in || die
|
||||||
|
|
||||||
|
# xencommons, Bug #492332, sed lighter weight than patching
|
||||||
|
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
||||||
|
-i tools/hotplug/Linux/init.d/xencommons.in || die
|
||||||
|
|
||||||
|
# fix bashishm
|
||||||
|
sed -e '/Usage/s/\$//g' \
|
||||||
|
-i tools/hotplug/Linux/init.d/xendriverdomain.in || die
|
||||||
|
|
||||||
|
# respect multilib, usr/lib/libcacard.so.0.0.0
|
||||||
|
sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
|
||||||
|
-i tools/qemu-xen/configure || die
|
||||||
|
|
||||||
|
#bug 518136, don't build 32bit exactuable for nomultilib profile
|
||||||
|
if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
|
||||||
|
sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# uncomment lines in xl.conf
|
||||||
|
sed -e 's:^#autoballoon=:autoballoon=:' \
|
||||||
|
-e 's:^#lockfile=:lockfile=:' \
|
||||||
|
-e 's:^#vif.default.script=:vif.default.script=:' \
|
||||||
|
-i tools/examples/xl.conf || die
|
||||||
|
|
||||||
|
# disable capstone (Bug #673474)
|
||||||
|
sed -e "s:\$\$source/configure:\0 --disable-capstone:" \
|
||||||
|
-i tools/Makefile || die
|
||||||
|
|
||||||
|
# disable glusterfs
|
||||||
|
sed -e "s:\$\$source/configure:\0 --disable-glusterfs:" \
|
||||||
|
-i tools/Makefile || die
|
||||||
|
|
||||||
|
# disable jpeg automagic
|
||||||
|
sed -e "s:\$\$source/configure:\0 --disable-vnc-jpeg:" \
|
||||||
|
-i tools/Makefile || die
|
||||||
|
|
||||||
|
# disable png automagic
|
||||||
|
sed -e "s:\$\$source/configure:\0 --disable-vnc-png:" \
|
||||||
|
-i tools/Makefile || die
|
||||||
|
|
||||||
|
# disable docker (Bug #732970)
|
||||||
|
sed -e "s:\$\$source/configure:\0 --disable-containers:" \
|
||||||
|
-i tools/Makefile || die
|
||||||
|
|
||||||
|
# disable abi-dumper (Bug #791172)
|
||||||
|
sed -e 's/$(ABI_DUMPER) /echo /g' \
|
||||||
|
-i tools/libs/libs.mk || die
|
||||||
|
|
||||||
|
# Remove -Werror
|
||||||
|
find . -type f \( -name Makefile -o -name "*.mk" \) \
|
||||||
|
-exec sed -i \
|
||||||
|
-e 's/-Werror //g' \
|
||||||
|
-e '/^CFLAGS *+= -Werror$/d' \
|
||||||
|
-e 's/, "-Werror"//' \
|
||||||
|
{} + || die
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=(
|
||||||
|
--libdir="${EPREFIX}/usr/$(get_libdir)"
|
||||||
|
--libexecdir="${EPREFIX}/usr/libexec"
|
||||||
|
--localstatedir="${EPREFIX}/var"
|
||||||
|
--disable-golang
|
||||||
|
--disable-werror
|
||||||
|
--disable-xen
|
||||||
|
--enable-tools
|
||||||
|
--enable-docs
|
||||||
|
$(use_enable api xenapi)
|
||||||
|
$(use_enable ipxe)
|
||||||
|
$(usex system-ipxe '--with-system-ipxe=/usr/share/ipxe' '')
|
||||||
|
$(use_enable ocaml ocamltools)
|
||||||
|
$(use_enable ovmf)
|
||||||
|
$(use_enable rombios)
|
||||||
|
$(use_enable systemd)
|
||||||
|
--with-xenstored=$(usex ocaml 'oxenstored' 'xenstored')
|
||||||
|
)
|
||||||
|
|
||||||
|
use system-seabios && myconf+=( --with-system-seabios=/usr/share/seabios/bios.bin )
|
||||||
|
use system-qemu && myconf+=( --with-system-qemu=/usr/bin/qemu-system-x86_64 )
|
||||||
|
use amd64 && myconf+=( $(use_enable qemu-traditional) )
|
||||||
|
tc-ld-disable-gold # Bug 669570
|
||||||
|
econf ${myconf[@]}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local myopt
|
||||||
|
use debug && myopt="${myopt} debug=y"
|
||||||
|
use python && myopt="${myopt} XENSTAT_PYTHON_BINDINGS=y"
|
||||||
|
|
||||||
|
if test-flag-CC -fno-strict-overflow; then
|
||||||
|
append-flags -fno-strict-overflow
|
||||||
|
fi
|
||||||
|
|
||||||
|
# bug #845099
|
||||||
|
if use ipxe; then
|
||||||
|
local -x NO_WERROR=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
emake \
|
||||||
|
HOSTCC="$(tc-getBUILD_CC)" \
|
||||||
|
HOSTCXX="$(tc-getBUILD_CXX)" \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
CXX="$(tc-getCXX)" \
|
||||||
|
LD="$(tc-getLD)" \
|
||||||
|
AR="$(tc-getAR)" \
|
||||||
|
OBJDUMP="$(tc-getOBJDUMP)" \
|
||||||
|
RANLIB="$(tc-getRANLIB)" \
|
||||||
|
build-tools ${myopt}
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
emake -C docs build
|
||||||
|
else
|
||||||
|
emake -C docs man-pages
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# Override auto-detection in the build system, bug #382573
|
||||||
|
export INITD_DIR=/tmp/init.d
|
||||||
|
export CONFIG_LEAF_DIR=../tmp/default
|
||||||
|
|
||||||
|
# Let the build system compile installed Python modules.
|
||||||
|
local PYTHONDONTWRITEBYTECODE
|
||||||
|
export PYTHONDONTWRITEBYTECODE
|
||||||
|
|
||||||
|
emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \
|
||||||
|
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
||||||
|
|
||||||
|
# Created at runtime
|
||||||
|
rm -rv "${ED}/var/run" || die
|
||||||
|
|
||||||
|
# Fix the remaining Python shebangs.
|
||||||
|
python_fix_shebang "${D}"
|
||||||
|
|
||||||
|
# Remove RedHat-specific stuff
|
||||||
|
rm -rf "${D}"/tmp || die
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs
|
||||||
|
dodoc -r docs/{pdf,txt}
|
||||||
|
else
|
||||||
|
emake -C docs DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-man-pages # Bug 668032
|
||||||
|
fi
|
||||||
|
dodoc ${DOCS[@]}
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}"/xendomains.confd xendomains
|
||||||
|
newconfd "${FILESDIR}"/xenstored.confd xenstored
|
||||||
|
newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled
|
||||||
|
newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains
|
||||||
|
newinitd "${FILESDIR}"/xenstored.initd-r1 xenstored
|
||||||
|
newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled
|
||||||
|
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
||||||
|
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
||||||
|
newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
|
||||||
|
newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
|
||||||
|
newinitd "${FILESDIR}"/xen-watchdog.initd xen-watchdog
|
||||||
|
|
||||||
|
if use screen; then
|
||||||
|
cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die
|
||||||
|
cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die
|
||||||
|
keepdir /var/log/xen-consoles
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For -static-libs wrt Bug 384355
|
||||||
|
if ! use static-libs; then
|
||||||
|
rm -f "${D}"/usr/$(get_libdir)/*.a "${D}"/usr/$(get_libdir)/ocaml/*/*.a
|
||||||
|
fi
|
||||||
|
|
||||||
|
# for xendomains
|
||||||
|
keepdir /etc/xen/auto
|
||||||
|
|
||||||
|
# Remove files failing QA AFTER emake installs them, avoiding seeking absent files
|
||||||
|
find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \
|
||||||
|
-o -name openbios-ppc -o -name palcode-clipper \) -delete || die
|
||||||
|
|
||||||
|
keepdir /var/lib/xen/dump
|
||||||
|
keepdir /var/lib/xen/xenpaging
|
||||||
|
keepdir /var/lib/xenstored
|
||||||
|
keepdir /var/log/xen
|
||||||
|
|
||||||
|
if use python; then
|
||||||
|
python_domodule "${S}/tools/libs/stat/bindings/swig/python/xenstat.py"
|
||||||
|
python_domodule "${S}/tools/libs/stat/bindings/swig/python/_xenstat.so"
|
||||||
|
fi
|
||||||
|
|
||||||
|
python_optimize
|
||||||
|
|
||||||
|
readme.gentoo_create_doc
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
readme.gentoo_print_elog
|
||||||
|
}
|
@ -1,5 +1,6 @@
|
|||||||
DIST xen-4.15.3.tar.gz 40793144 BLAKE2B 33932d855a0502cfe2768a7c8ae19d7da285d70b4970d96fd703daf0ee24a77ad47a3d1b4bcf5f465aa81aa7eb7f9295bce96302b2149ca208fa662cd966d6af SHA512 c25903cc263891885ec76500488405226c8e025bb461d2bf0d590b9bd2d7ca5c2693de7ecc38b3655bfd6793cc96314826559f14a09cc139de8cfdbeb914cbd3
|
DIST xen-4.15.3.tar.gz 40793144 BLAKE2B 33932d855a0502cfe2768a7c8ae19d7da285d70b4970d96fd703daf0ee24a77ad47a3d1b4bcf5f465aa81aa7eb7f9295bce96302b2149ca208fa662cd966d6af SHA512 c25903cc263891885ec76500488405226c8e025bb461d2bf0d590b9bd2d7ca5c2693de7ecc38b3655bfd6793cc96314826559f14a09cc139de8cfdbeb914cbd3
|
||||||
DIST xen-4.16.1.tar.gz 44964667 BLAKE2B 190d9c330b5dcdd47bae26b6ef42111c9c63b71b8b92e20eae268054c6b40aaabadef78c0c9634cb3c3b1bde32a746cbb1404b5eed2a82ab829ba10632103856 SHA512 eeabba9c263cd2425bca083e32b5ebfc6c716c00553759c144fd4b6f64a89836b260787fa25ba22c1f5c4ea65aaad7c95b8c2c1070d3377b1c43c9517aa7032a
|
DIST xen-4.16.1.tar.gz 44964667 BLAKE2B 190d9c330b5dcdd47bae26b6ef42111c9c63b71b8b92e20eae268054c6b40aaabadef78c0c9634cb3c3b1bde32a746cbb1404b5eed2a82ab829ba10632103856 SHA512 eeabba9c263cd2425bca083e32b5ebfc6c716c00553759c144fd4b6f64a89836b260787fa25ba22c1f5c4ea65aaad7c95b8c2c1070d3377b1c43c9517aa7032a
|
||||||
|
DIST xen-4.16.2.tar.gz 44995249 BLAKE2B a221d1e4578ab6eb3250754b3b0f36fb30133c1c83246532ebb9648c3d025b3f5132227371b5d3dd82099594f4ee738227480528ee944b8de6231d9c89892d15 SHA512 b6cd036c1073798dffa167ca14c954fbdfb4c0ef99662f7c435e7e5de687d1bde8856ff6bd030d0d2e661bd17ab631551f01b2cc728cad7e70b59aaa6e692783
|
||||||
DIST xen-gentoo-patches-4.16.1-gentoo-patchset-2.tar.bz2 5403 BLAKE2B 7fa3b4aa123b2deed260d02b8d34a35dd205207038edb92569278b25c6fe32e0f0e3857c07755553e047f0eb0d9fe7f8b0816e0f3d7f68aee7929afaf6611dfd SHA512 9e7d25640b24235acf756b031b8b7cee582dded65fe7b94a706c990232e9704d574036c3a9605f285e8e9534578d100a3f38719b27b22775f17ef8f68287997e
|
DIST xen-gentoo-patches-4.16.1-gentoo-patchset-2.tar.bz2 5403 BLAKE2B 7fa3b4aa123b2deed260d02b8d34a35dd205207038edb92569278b25c6fe32e0f0e3857c07755553e047f0eb0d9fe7f8b0816e0f3d7f68aee7929afaf6611dfd SHA512 9e7d25640b24235acf756b031b8b7cee582dded65fe7b94a706c990232e9704d574036c3a9605f285e8e9534578d100a3f38719b27b22775f17ef8f68287997e
|
||||||
DIST xen-upstream-patches-4.15.4-pre-patchset-0.1.tar.bz2 28980 BLAKE2B 5bdabed3bce4306fe5f656a965d1e537608c03b4706dc801a0b0b9649d001b875b1a2543c68c6b459483991570f0fbf2490a97ea1776761c9f61e9876f240fdf SHA512 4f6bbf0dab57ad58292f32fab55294b2eedd0442be7f62341a2df922a1d21880fe33cc29956ccbbb8b4aee4c10b38d4aa090e4db9496d6e0f5256e60999cad7d
|
DIST xen-upstream-patches-4.15.4-pre-patchset-0.1.tar.bz2 28980 BLAKE2B 5bdabed3bce4306fe5f656a965d1e537608c03b4706dc801a0b0b9649d001b875b1a2543c68c6b459483991570f0fbf2490a97ea1776761c9f61e9876f240fdf SHA512 4f6bbf0dab57ad58292f32fab55294b2eedd0442be7f62341a2df922a1d21880fe33cc29956ccbbb8b4aee4c10b38d4aa090e4db9496d6e0f5256e60999cad7d
|
||||||
DIST xen-upstream-patches-4.16.2-pre-patchset-1.tar.bz2 56760 BLAKE2B 4c8030347f9e1ad3c2c4f440645656452daa1f087c34b8a3baba3cae1e7623a910e5727395e8c6f4a8573f3a37e58a318c485fa2f878c8e2f3240fb75cee0c03 SHA512 5e279845052addfbf7681ad5ccab9e692e4a1d69b73e51e1782e498f98217de77bfc4f5158307ee90164393edb023165e032b9f9f7123c0c614ee2336c021259
|
DIST xen-upstream-patches-4.16.2-pre-patchset-1.tar.bz2 56760 BLAKE2B 4c8030347f9e1ad3c2c4f440645656452daa1f087c34b8a3baba3cae1e7623a910e5727395e8c6f4a8573f3a37e58a318c485fa2f878c8e2f3240fb75cee0c03 SHA512 5e279845052addfbf7681ad5ccab9e692e4a1d69b73e51e1782e498f98217de77bfc4f5158307ee90164393edb023165e032b9f9f7123c0c614ee2336c021259
|
||||||
|
@ -0,0 +1,174 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..11} )
|
||||||
|
|
||||||
|
inherit flag-o-matic mount-boot python-any-r1 toolchain-funcs
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
|
||||||
|
SRC_URI=""
|
||||||
|
else
|
||||||
|
KEYWORDS="~amd64 ~arm -x86"
|
||||||
|
|
||||||
|
XEN_GENTOO_PATCHSET_NUM=2
|
||||||
|
XEN_GENTOO_PATCHSET_BASE=4.16.1
|
||||||
|
XEN_PRE_PATCHSET_NUM=
|
||||||
|
XEN_PRE_VERSION_BASE=
|
||||||
|
|
||||||
|
XEN_BASE_PV="${PV}"
|
||||||
|
if [[ -n "${XEN_PRE_VERSION_BASE}" ]]; then
|
||||||
|
XEN_BASE_PV="${XEN_PRE_VERSION_BASE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
SRC_URI="https://downloads.xenproject.org/release/xen/${XEN_BASE_PV}/xen-${XEN_BASE_PV}.tar.gz"
|
||||||
|
|
||||||
|
if [[ -n "${XEN_PRE_PATCHSET_NUM}" ]]; then
|
||||||
|
XEN_UPSTREAM_PATCHES_TAG="$(ver_cut 1-3)-pre-patchset-${XEN_PRE_PATCHSET_NUM}"
|
||||||
|
XEN_UPSTREAM_PATCHES_NAME="xen-upstream-patches-${XEN_UPSTREAM_PATCHES_TAG}"
|
||||||
|
SRC_URI+=" https://gitweb.gentoo.org/proj/xen-upstream-patches.git/snapshot/${XEN_UPSTREAM_PATCHES_NAME}.tar.bz2"
|
||||||
|
XEN_UPSTREAM_PATCHES_DIR="${WORKDIR}/${XEN_UPSTREAM_PATCHES_NAME}"
|
||||||
|
fi
|
||||||
|
if [[ -n "${XEN_GENTOO_PATCHSET_NUM}" ]]; then
|
||||||
|
XEN_GENTOO_PATCHES_TAG="$(ver_cut 1-3 ${XEN_GENTOO_PATCHSET_BASE})-gentoo-patchset-${XEN_GENTOO_PATCHSET_NUM}"
|
||||||
|
XEN_GENTOO_PATCHES_NAME="xen-gentoo-patches-${XEN_GENTOO_PATCHES_TAG}"
|
||||||
|
SRC_URI+=" https://gitweb.gentoo.org/proj/xen-gentoo-patches.git/snapshot/${XEN_GENTOO_PATCHES_NAME}.tar.bz2"
|
||||||
|
XEN_GENTOO_PATCHES_DIR="${WORKDIR}/${XEN_GENTOO_PATCHES_NAME}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="The Xen virtual machine monitor"
|
||||||
|
HOMEPAGE="https://xenproject.org"
|
||||||
|
|
||||||
|
S="${WORKDIR}/xen-$(ver_cut 1-3 ${XEN_BASE_PV})"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="+boot-symlinks debug efi flask"
|
||||||
|
REQUIRED_USE="arm? ( debug )"
|
||||||
|
|
||||||
|
DEPEND="${PYTHON_DEPS}
|
||||||
|
efi? ( >=sys-devel/binutils-2.22[multitarget] )
|
||||||
|
!efi? ( >=sys-devel/binutils-2.22 )
|
||||||
|
flask? ( sys-apps/checkpolicy )"
|
||||||
|
RDEPEND=""
|
||||||
|
PDEPEND="~app-emulation/xen-tools-${PV}"
|
||||||
|
|
||||||
|
# no tests are available for the hypervisor
|
||||||
|
# prevent the silliness of /usr/lib/debug/usr/lib/debug files
|
||||||
|
# prevent stripping of the debug info from the /usr/lib/debug/xen-syms
|
||||||
|
RESTRICT="test splitdebug strip"
|
||||||
|
|
||||||
|
# Approved by QA team in bug #144032
|
||||||
|
QA_WX_LOAD="boot/xen-syms-${PV}"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
python-any-r1_pkg_setup
|
||||||
|
if [[ -z ${XEN_TARGET_ARCH} ]]; then
|
||||||
|
if use amd64; then
|
||||||
|
export XEN_TARGET_ARCH="x86_64"
|
||||||
|
elif use arm; then
|
||||||
|
export XEN_TARGET_ARCH="arm32"
|
||||||
|
elif use arm64; then
|
||||||
|
export XEN_TARGET_ARCH="arm64"
|
||||||
|
else
|
||||||
|
die "Unsupported architecture!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if [[ -v XEN_UPSTREAM_PATCHES_DIR ]]; then
|
||||||
|
eapply "${XEN_UPSTREAM_PATCHES_DIR}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -v XEN_GENTOO_PATCHES_DIR ]]; then
|
||||||
|
eapply "${XEN_GENTOO_PATCHES_DIR}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Symlinks do not work on fat32 volumes # 829765
|
||||||
|
if ! use boot-symlinks || use efi; then
|
||||||
|
eapply "${XEN_GENTOO_PATCHES_DIR}"/no-boot-symlinks/${PN}-4.16-no-symlinks.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Workaround new gcc-11 options
|
||||||
|
sed -e '/^CFLAGS/s/-Werror//g' -i xen/Makefile || die
|
||||||
|
|
||||||
|
# Drop .config
|
||||||
|
sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
|
||||||
|
|
||||||
|
if use efi; then
|
||||||
|
export EFI_VENDOR="gentoo"
|
||||||
|
export EFI_MOUNTPOINT="/boot"
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
xen_make() {
|
||||||
|
# Setting clang to either 'y' or 'n' tells Xen's build system
|
||||||
|
# whether or not clang is used.
|
||||||
|
local clang=n
|
||||||
|
if tc-is-clang; then
|
||||||
|
clang=y
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Send raw LDFLAGS so that --as-needed works
|
||||||
|
emake \
|
||||||
|
V=1 \
|
||||||
|
LDFLAGS="$(raw-ldflags)" \
|
||||||
|
HOSTCC="$(tc-getBUILD_CC)" \
|
||||||
|
HOSTCXX="$(tc-getBUILD_CXX)" \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
CXX="$(tc-getCXX)" \
|
||||||
|
LD="$(tc-getLD)" \
|
||||||
|
AR="$(tc-getAR)" \
|
||||||
|
OBJDUMP="$(tc-getOBJDUMP)" \
|
||||||
|
RANLIB="$(tc-getRANLIB)" \
|
||||||
|
clang="${clang}" \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
cd xen || die
|
||||||
|
|
||||||
|
touch gentoo-config || die
|
||||||
|
if use arm; then
|
||||||
|
echo "CONFIG_EARLY_PRINTK=sun7i" >> gentoo-config || die
|
||||||
|
fi
|
||||||
|
if use debug; then
|
||||||
|
cat <<-EOF >> gentoo-config || die
|
||||||
|
CONFIG_DEBUG=y
|
||||||
|
CONFIG_CRASH_DEBUG=y
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
if use flask; then
|
||||||
|
echo "CONFIG_XSM=y" >> gentoo-config || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# remove flags
|
||||||
|
unset CFLAGS
|
||||||
|
|
||||||
|
tc-ld-disable-gold # Bug 700374
|
||||||
|
|
||||||
|
xen_make KCONFIG_ALLCONFIG=gentoo-config alldefconfig
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
xen_make -C xen
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# The 'make install' doesn't 'mkdir -p' the subdirs
|
||||||
|
if use efi; then
|
||||||
|
mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
xen_make DESTDIR="${D}" -C xen install
|
||||||
|
|
||||||
|
# make install likes to throw in some extra EFI bits if it built
|
||||||
|
use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,72 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="8"
|
||||||
|
|
||||||
|
inherit bash-completion-r1 systemd
|
||||||
|
|
||||||
|
DESCRIPTION="Security and system auditing tool"
|
||||||
|
HOMEPAGE="https://cisofy.com/lynis/"
|
||||||
|
SRC_URI="https://cisofy.com/files/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="+cron systemd"
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND="
|
||||||
|
app-shells/bash
|
||||||
|
cron? ( !systemd? ( virtual/cron ) )"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
doman lynis.8
|
||||||
|
dodoc FAQ README
|
||||||
|
newdoc CHANGELOG.md CHANGELOG
|
||||||
|
|
||||||
|
# Remove the old one during the next stabilize progress
|
||||||
|
exeinto /etc/cron.daily
|
||||||
|
newexe "${FILESDIR}"/lynis.cron-new lynis
|
||||||
|
|
||||||
|
dobashcomp extras/bash_completion.d/lynis
|
||||||
|
|
||||||
|
# stricter default perms - bug 507436
|
||||||
|
diropts -m0700
|
||||||
|
insopts -m0600
|
||||||
|
|
||||||
|
insinto /usr/share/${PN}
|
||||||
|
doins -r db/ include/ plugins/
|
||||||
|
|
||||||
|
dosbin lynis
|
||||||
|
|
||||||
|
insinto /etc/${PN}
|
||||||
|
doins default.prf
|
||||||
|
sed -i -e 's/\/path\/to\///' "${S}/extras/systemd/${PN}.service" || die "Sed Failed!"
|
||||||
|
systemd_dounit "${S}/extras/systemd/${PN}.service" || die "Sed Failed!"
|
||||||
|
systemd_dounit "${S}/extras/systemd/${PN}.timer"
|
||||||
|
|
||||||
|
if ! use cron; then
|
||||||
|
ebegin "removing cron files from installation image"
|
||||||
|
rm -rfv "${ED}/etc/cron.daily" || die
|
||||||
|
eend "$?"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if use cron; then
|
||||||
|
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||||
|
echo
|
||||||
|
ewarn "Both 'cron' and 'systemd' flags are enabled."
|
||||||
|
ewarn "So both ${PN}.target and cron files were installed."
|
||||||
|
ewarn "Please don't use 2 implementations at the same time."
|
||||||
|
ewarn "Cronjobs are usually enabled by default via /etc/cron.* jobs"
|
||||||
|
ewarn "If you want to use systemd ${PN}.target timers"
|
||||||
|
ewarn "disable 'cron' flag and reinstall ${PN}"
|
||||||
|
echo
|
||||||
|
else
|
||||||
|
einfo "A cron script has been installed to ${ROOT}/etc/cron.daily/lynis."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,46 @@
|
|||||||
|
https://gerrit.libreoffice.org/c/core/+/139249
|
||||||
|
|
||||||
|
From 8bad83bf044661357b02b695e6f53e2e19dea396 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sam James <sam@gentoo.org>
|
||||||
|
Date: Fri, 2 Sep 2022 04:31:18 +0100
|
||||||
|
Subject: [PATCH] Fix build with Poppler 22.09.0
|
||||||
|
|
||||||
|
With Poppler 22.09.0, LO fails to build with:
|
||||||
|
```
|
||||||
|
/var/tmp/portage/app-office/libreoffice-7.3.5.2/work/libreoffice-7.3.5.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx:682:36: error: too many arguments to function call, expected single argument 'start', have 3 arguments
|
||||||
|
state->getLineDash(&dashArray, &arrayLen, &startOffset);
|
||||||
|
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
/usr/include/poppler/GfxState.h:1506:32: note: 'getLineDash' declared here
|
||||||
|
const std::vector<double> &getLineDash(double *start)
|
||||||
|
^
|
||||||
|
1 error generated.
|
||||||
|
```
|
||||||
|
|
||||||
|
Poppler changed the getLineDash interface:
|
||||||
|
```
|
||||||
|
- void getLineDash(double **dash, int *length, double *start)
|
||||||
|
+ const std::vector<double> &getLineDash(double *start)
|
||||||
|
```
|
||||||
|
|
||||||
|
Signed-off-by: Sam James <sam@gentoo.org>
|
||||||
|
Change-Id: I29e18f20d7650a7fcac1bc8ab4aaa04aaa2ab8fb
|
||||||
|
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
|
||||||
|
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
|
||||||
|
@@ -678,8 +678,16 @@ void PDFOutDev::updateLineDash(GfxState *state)
|
||||||
|
return;
|
||||||
|
assert(state);
|
||||||
|
|
||||||
|
- double* dashArray; int arrayLen; double startOffset;
|
||||||
|
+ int arrayLen; double startOffset;
|
||||||
|
+#if POPPLER_CHECK_VERSION(22, 9, 0)
|
||||||
|
+ const double* dashArray;
|
||||||
|
+ const std::vector<double> &dash = state->getLineDash(&startOffset);
|
||||||
|
+ dashArray = dash.data();
|
||||||
|
+ arrayLen = dash.size();
|
||||||
|
+#else
|
||||||
|
+ double* dashArray;
|
||||||
|
state->getLineDash(&dashArray, &arrayLen, &startOffset);
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
printf( "updateLineDash" );
|
||||||
|
if( arrayLen && dashArray )
|
@ -0,0 +1,20 @@
|
|||||||
|
--- a/scribus/plugins/import/pdf/slaoutput.cpp
|
||||||
|
+++ b/scribus/plugins/import/pdf/slaoutput.cpp
|
||||||
|
@@ -3741,9 +3741,16 @@ void SlaOutputDev::getPenState(GfxState *state)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
double lw = state->getLineWidth();
|
||||||
|
- double *dashPattern;
|
||||||
|
int dashLength;
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(22, 9, 0)
|
||||||
|
+ const double *dashPattern;
|
||||||
|
+ const std::vector<double> &dash = state->getLineDash(&DashOffset);
|
||||||
|
+ dashPattern = dash.data();
|
||||||
|
+ dashLength = dash.size();
|
||||||
|
+#else
|
||||||
|
+ double *dashPattern;
|
||||||
|
state->getLineDash(&dashPattern, &dashLength, &DashOffset);
|
||||||
|
+#endif
|
||||||
|
QVector<double> pattern(dashLength);
|
||||||
|
for (int i = 0; i < dashLength; ++i)
|
||||||
|
{
|
Binary file not shown.
@ -1,59 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit cmake xdg-utils
|
|
||||||
|
|
||||||
DESCRIPTION="Qt Bible-study application using the SWORD library"
|
|
||||||
HOMEPAGE="https://bibletime.info/"
|
|
||||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
|
|
||||||
RDEPEND=">=app-text/sword-1.8.1
|
|
||||||
dev-cpp/clucene
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5
|
|
||||||
dev-qt/qtprintsupport:5
|
|
||||||
dev-qt/qtsvg:5
|
|
||||||
dev-qt/qtwebchannel:5
|
|
||||||
dev-qt/qtwebengine:5
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
dev-qt/qtxml:5"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-libs/boost
|
|
||||||
dev-libs/icu:=
|
|
||||||
dev-qt/linguist-tools:5
|
|
||||||
dev-qt/qttest:5
|
|
||||||
net-misc/curl
|
|
||||||
sys-libs/zlib"
|
|
||||||
|
|
||||||
DOCS=( ChangeLog README.md )
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cmake_src_prepare
|
|
||||||
|
|
||||||
sed -e "s:Dictionary;Qt:Dictionary;Office;TextTools;Utility;Qt:" \
|
|
||||||
-i cmake/platforms/linux/bibletime.desktop.cmake || die "fixing .desktop file failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local mycmakeargs=(
|
|
||||||
-DBUILD_HANDBOOK_HTML=no
|
|
||||||
-DBUILD_HANDBOOK_PDF=no
|
|
||||||
-DBUILD_HOWTO_HTML=no
|
|
||||||
-DBUILD_HOWTO_PDF=no
|
|
||||||
)
|
|
||||||
cmake_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
xdg_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
xdg_icon_cache_update
|
|
||||||
}
|
|
@ -0,0 +1,134 @@
|
|||||||
|
# Copyright 2005-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit cmake toolchain-funcs xdg-utils
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999* ]] ; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://anongit.freedesktop.org/git/poppler/poppler.git"
|
||||||
|
SLOT="0/9999"
|
||||||
|
else
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/aacid.asc
|
||||||
|
inherit verify-sig
|
||||||
|
|
||||||
|
SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
|
||||||
|
SRC_URI+=" verify-sig? ( https://poppler.freedesktop.org/${P}.tar.xz.sig )"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
SLOT="0/124" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
||||||
|
HOMEPAGE="https://poppler.freedesktop.org/"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
IUSE="boost cairo cjk curl +cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt5 tiff +utils"
|
||||||
|
|
||||||
|
# No test data provided
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
media-libs/fontconfig
|
||||||
|
>=media-libs/freetype-2.8
|
||||||
|
sys-libs/zlib
|
||||||
|
cairo? (
|
||||||
|
dev-libs/glib:2
|
||||||
|
x11-libs/cairo
|
||||||
|
introspection? ( dev-libs/gobject-introspection:= )
|
||||||
|
)
|
||||||
|
curl? ( net-misc/curl )
|
||||||
|
jpeg? ( media-libs/libjpeg-turbo:= )
|
||||||
|
jpeg2k? ( >=media-libs/openjpeg-2.3.0-r1:2= )
|
||||||
|
lcms? ( media-libs/lcms:2 )
|
||||||
|
nss? ( >=dev-libs/nss-3.19:0 )
|
||||||
|
png? ( media-libs/libpng:0= )
|
||||||
|
qt5? (
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtxml:5
|
||||||
|
)
|
||||||
|
tiff? ( media-libs/tiff:0 )
|
||||||
|
"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
cjk? ( app-text/poppler-data )
|
||||||
|
"
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
boost? ( dev-libs/boost )
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
dev-util/glib-utils
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
if [[ ${PV} != *9999* ]] ; then
|
||||||
|
BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-aacid )"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DOCS=( AUTHORS NEWS README.md README-XPDF )
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-20.12.1-qt5-deps.patch"
|
||||||
|
"${FILESDIR}/${PN}-21.09.0-respect-cflags.patch"
|
||||||
|
"${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cmake_src_prepare
|
||||||
|
|
||||||
|
# Clang doesn't grok this flag, the configure nicely tests that, but
|
||||||
|
# cmake just uses it, so remove it if we use clang
|
||||||
|
if tc-is-clang ; then
|
||||||
|
sed -e 's/-fno-check-new//' -i cmake/modules/PopplerMacros.cmake || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then
|
||||||
|
sed -e '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \
|
||||||
|
-i CMakeLists.txt || die
|
||||||
|
else
|
||||||
|
einfo "policy(SET CMP0002 OLD) - workaround can be removed"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
xdg_environment_reset
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DBUILD_GTK_TESTS=OFF
|
||||||
|
-DBUILD_QT5_TESTS=OFF
|
||||||
|
-DBUILD_CPP_TESTS=OFF
|
||||||
|
-DBUILD_MANUAL_TESTS=OFF
|
||||||
|
-DRUN_GPERF_IF_PRESENT=OFF
|
||||||
|
-DENABLE_BOOST="$(usex boost)"
|
||||||
|
-DENABLE_ZLIB=ON
|
||||||
|
-DENABLE_ZLIB_UNCOMPRESS=OFF
|
||||||
|
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON
|
||||||
|
-DUSE_FLOAT=OFF
|
||||||
|
-DWITH_Cairo=$(usex cairo)
|
||||||
|
-DENABLE_LIBCURL=$(usex curl)
|
||||||
|
-DENABLE_CPP=$(usex cxx)
|
||||||
|
-DWITH_JPEG=$(usex jpeg)
|
||||||
|
-DENABLE_DCTDECODER=$(usex jpeg libjpeg none)
|
||||||
|
-DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none)
|
||||||
|
-DENABLE_CMS=$(usex lcms lcms2 none)
|
||||||
|
-DWITH_NSS3=$(usex nss)
|
||||||
|
-DWITH_PNG=$(usex png)
|
||||||
|
$(cmake_use_find_package qt5 Qt5Core)
|
||||||
|
-DWITH_TIFF=$(usex tiff)
|
||||||
|
-DENABLE_UTILS=$(usex utils)
|
||||||
|
-DENABLE_QT6=OFF
|
||||||
|
)
|
||||||
|
use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) )
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake_src_install
|
||||||
|
|
||||||
|
# live version doesn't provide html documentation
|
||||||
|
if use cairo && use doc && [[ ${PV} != *9999* ]]; then
|
||||||
|
# For now install gtk-doc there
|
||||||
|
insinto /usr/share/gtk-doc/html/poppler
|
||||||
|
doins -r "${S}"/glib/reference/html/*
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST vim-go-1.20.tar.gz 232322 BLAKE2B f72664c79d781152748b6d5e48e9363a924e257eb0054931127d83fe4dc56d5b3e3592800ae3be3812609ec92c9b66fbcba8a1b1ca76891573408db14a0b2865 SHA512 1f5499dd33b72466127c1fbbd7a10dca41d9e8c3add6a0b2b3efa8dc0caf2aaa26311357a5b5eaecf2461a3465aabbf608a9ca35203139ead083bbcc806ea552
|
DIST vim-go-1.20.tar.gz 232322 BLAKE2B f72664c79d781152748b6d5e48e9363a924e257eb0054931127d83fe4dc56d5b3e3592800ae3be3812609ec92c9b66fbcba8a1b1ca76891573408db14a0b2865 SHA512 1f5499dd33b72466127c1fbbd7a10dca41d9e8c3add6a0b2b3efa8dc0caf2aaa26311357a5b5eaecf2461a3465aabbf608a9ca35203139ead083bbcc806ea552
|
||||||
|
DIST vim-go-1.26.tar.gz 285900 BLAKE2B 4492138e4689fbe2408717ecd7895fe2a98227a8399ebeaec6a23c21acc1eb23ee66dea3947df9fa62c17e0f980c48101b62e331e05c43503f9bba657ca0f9b8 SHA512 30722557c2c66e3601a001b490bf4949bf9949a2b41db838f0fa3fba91abb30469d3726cee293afdd1afd385871d62db09e9e9bf2acf48d947b469a5a19888ac
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit vim-plugin
|
||||||
|
|
||||||
|
DESCRIPTION="vim plugin: Go development plugin for Vim"
|
||||||
|
HOMEPAGE="https://github.com/fatih/vim-go"
|
||||||
|
SRC_URI="https://github.com/fatih/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
RDEPEND="dev-go/gopls"
|
||||||
|
|
||||||
|
DOCS=( README.md CHANGELOG.md )
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# safely skip `make test` triggered by `make` as it runs `go get` commands
|
||||||
|
# TODO: Is :GoInstallBinaries still necessary? For details see:
|
||||||
|
# https://github.com/fatih/vim-go/blob/master/doc/vim-go.txt
|
||||||
|
:;
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install(){
|
||||||
|
insinto /usr/share/vim/vimfiles/
|
||||||
|
doins -r templates
|
||||||
|
|
||||||
|
vim-plugin_src_install
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST htmlcleaner-2.25-src.zip 414193 BLAKE2B e840b65665b23a6c55eda49a522994208b7178ddf924e60bdca9304c58df9bde343b31bbd4b7491db7bfd4fe0930283f9019d9213450618e0d50036563cced86 SHA512 fb49f0298b05008a727e7ba97a3444c6f8c31f65a9962e42bae63e1dab76fc7302f282daa45177daffcadbb73565685735f44b57107c62819bafa0db030c5ea3
|
|
||||||
DIST htmlcleaner-2.26-src.zip 414195 BLAKE2B c73533054bf7a8a66a767e53cbafecca1f174cb3be16e116ddd0e025e627603e225323e9095ea40b38a06c661ebe9f2a9e1f53736bf74fd8a2e41d909381c4fb SHA512 df1f9ccc696d538289a0addd19f8d955a3bcb0da88640208c513b2f4f0c4a3ee516b459aa3aae25d36d6ec09c4082b96484df287fb422add2eb160072668af5a
|
DIST htmlcleaner-2.26-src.zip 414195 BLAKE2B c73533054bf7a8a66a767e53cbafecca1f174cb3be16e116ddd0e025e627603e225323e9095ea40b38a06c661ebe9f2a9e1f53736bf74fd8a2e41d909381c4fb SHA512 df1f9ccc696d538289a0addd19f8d955a3bcb0da88640208c513b2f4f0c4a3ee516b459aa3aae25d36d6ec09c4082b96484df287fb422add2eb160072668af5a
|
||||||
|
@ -1,73 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
JAVA_PKG_IUSE="doc source"
|
|
||||||
|
|
||||||
inherit java-pkg-2 java-pkg-simple
|
|
||||||
|
|
||||||
DESCRIPTION="HTML parser written in Java that can be used as a tool, library or Ant task"
|
|
||||||
HOMEPAGE="http://htmlcleaner.sourceforge.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/htmlcleaner/files/${P}-src.zip"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
CDEPEND="dev-java/jdom:2"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
>=virtual/jre-1.8:*"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
${CDEPEND}
|
|
||||||
dev-java/ant-core:0
|
|
||||||
test? ( dev-java/junit:4 )
|
|
||||||
>=virtual/jdk-1.8:*"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
app-arch/unzip"
|
|
||||||
|
|
||||||
JAVA_SRC_DIR="src/main/java"
|
|
||||||
JAVA_GENTOO_CLASSPATH="jdom-2"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-2.24-fix-tests.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
# Don't require default.xml to be in the current directory.
|
|
||||||
sed -i "s:\"default\.xml\":\"${JAVA_PKG_SHAREPATH}/default.xml\":g" \
|
|
||||||
src/main/java/org/htmlcleaner/ConfigFileTagProvider.java || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
JAVA_GENTOO_CLASSPATH_EXTRA=$(java-pkg_getjars --build-only ant-core)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
java-pkg-simple_src_install
|
|
||||||
java-pkg_register-ant-task
|
|
||||||
java-pkg_dolauncher ${PN} --main org.${PN}.CommandLine
|
|
||||||
|
|
||||||
insinto "${JAVA_PKG_SHAREPATH}"
|
|
||||||
newins example.xml default.xml
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
local DIR="src/test/java"
|
|
||||||
local CP="${DIR}:${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})"
|
|
||||||
|
|
||||||
local TESTS=$(find "${DIR}" -name "*Test.java" ! -name "Abstract*")
|
|
||||||
TESTS="${TESTS//src\/test\/java\/}"
|
|
||||||
TESTS="${TESTS//.java}"
|
|
||||||
TESTS="${TESTS//\//.}"
|
|
||||||
|
|
||||||
ejavac -classpath "${CP}" -d "${DIR}" $(find "${DIR}" -name "*.java")
|
|
||||||
ejunit4 -classpath "${CP}" ${TESTS}
|
|
||||||
}
|
|
Binary file not shown.
@ -1,3 +1,2 @@
|
|||||||
DIST R-4.2.0.tar.gz 37585694 BLAKE2B 5ba4d3b9397e92b72af729d88ff562655e0dd7c547bd371638aa76d4f1701f4f8a7911d500cf4f10d87b62457f8f8ce7a946d893477ceb7268b06bd59bc10f3d SHA512 99e71dad00b63e44bfcb8dc9539ff1951809112882d9ee7e06a4e99bce2e6ceac24e8348fd598c21e6d5ab0e0629a85170cde208bfa8145af91c398ac4ef7bcd
|
|
||||||
DIST R-4.2.1.tar.gz 37601544 BLAKE2B b898262a05c92e125c36a661a89be34b1698177832002f7aa21ccfcf0b30a06481e2154eea9e77a94b1ad8ca35c7bc4aead2be99b862dca7450acee1bec6a99f SHA512 c1baf46d22304c425dde79301183f80f99f2752300137b0b6f902c3e55e2419d5e9185c97de6e3c840a38f6345a6c334aa24161656d4a7f6fa01570390f1122f
|
DIST R-4.2.1.tar.gz 37601544 BLAKE2B b898262a05c92e125c36a661a89be34b1698177832002f7aa21ccfcf0b30a06481e2154eea9e77a94b1ad8ca35c7bc4aead2be99b862dca7450acee1bec6a99f SHA512 c1baf46d22304c425dde79301183f80f99f2752300137b0b6f902c3e55e2419d5e9185c97de6e3c840a38f6345a6c334aa24161656d4a7f6fa01570390f1122f
|
||||||
DIST R-78d6830e28ea90a046da79a9b4f70c39594bb6d6.bash_completion 13596 BLAKE2B 53338e4a1c4f68beb69247216e553dbcac47f660fbf032bfebf7a660e32d2cff5b11ed35411c52de7e1fd6e00bbf5b5ea19369a325fa0a38bd93d63dc3288cbd SHA512 9ccd19bb1b0c18a2f13035ccd6809447429e197e298fb4d1df808ef345d723b42f75a1b91c349f6dbb46e4a82e59ef33e11300c495d79b63d670d0c0f2b16a06
|
DIST R-78d6830e28ea90a046da79a9b4f70c39594bb6d6.bash_completion 13596 BLAKE2B 53338e4a1c4f68beb69247216e553dbcac47f660fbf032bfebf7a660e32d2cff5b11ed35411c52de7e1fd6e00bbf5b5ea19369a325fa0a38bd93d63dc3288cbd SHA512 9ccd19bb1b0c18a2f13035ccd6809447429e197e298fb4d1df808ef345d723b42f75a1b91c349f6dbb46e4a82e59ef33e11300c495d79b63d670d0c0f2b16a06
|
||||||
|
@ -1,256 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit bash-completion-r1 autotools flag-o-matic fortran-2 toolchain-funcs
|
|
||||||
|
|
||||||
# latest git commit for R bash completion: https://github.com/deepayan/rcompletion
|
|
||||||
BCPV=78d6830e28ea90a046da79a9b4f70c39594bb6d6
|
|
||||||
|
|
||||||
DESCRIPTION="Language and environment for statistical computing and graphics"
|
|
||||||
HOMEPAGE="https://www.r-project.org/"
|
|
||||||
SRC_URI="
|
|
||||||
mirror://cran/src/base/R-4/${P}.tar.gz
|
|
||||||
https://raw.githubusercontent.com/deepayan/rcompletion/${BCPV}/bash_completion/R -> ${PN}-${BCPV}.bash_completion"
|
|
||||||
|
|
||||||
LICENSE="|| ( GPL-2 GPL-3 ) LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 arm64 ~hppa ~ia64 sparc x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="cairo doc icu java jpeg lapack lto minimal nls openmp perl png prefix profile readline test tiff tk X"
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
png? ( || ( cairo X ) )
|
|
||||||
jpeg? ( || ( cairo X ) )
|
|
||||||
tiff? ( || ( cairo X ) )"
|
|
||||||
RESTRICT="
|
|
||||||
minimal? ( test )
|
|
||||||
!test? ( test )"
|
|
||||||
|
|
||||||
# At least one package installation in the test suite requires TeX,
|
|
||||||
# and will fail without it (bug #718056).
|
|
||||||
BDEPEND="
|
|
||||||
virtual/pkgconfig
|
|
||||||
doc? (
|
|
||||||
virtual/latex-base
|
|
||||||
dev-texlive/texlive-fontsrecommended
|
|
||||||
)
|
|
||||||
test? ( virtual/latex-base )"
|
|
||||||
DEPEND="
|
|
||||||
app-arch/bzip2
|
|
||||||
app-arch/xz-utils
|
|
||||||
app-text/ghostscript-gpl
|
|
||||||
dev-libs/libpcre2:=
|
|
||||||
>=dev-libs/tre-0.8.0_p20210321[approx]
|
|
||||||
net-libs/libtirpc
|
|
||||||
net-misc/curl
|
|
||||||
virtual/blas
|
|
||||||
sys-libs/zlib[minizip]
|
|
||||||
|| (
|
|
||||||
sys-apps/coreutils
|
|
||||||
app-misc/realpath
|
|
||||||
)
|
|
||||||
cairo? (
|
|
||||||
x11-libs/cairo:=[X=]
|
|
||||||
x11-libs/pango:=
|
|
||||||
)
|
|
||||||
icu? ( dev-libs/icu:= )
|
|
||||||
jpeg? ( media-libs/libjpeg-turbo:= )
|
|
||||||
lapack? ( virtual/lapack )
|
|
||||||
perl? ( dev-lang/perl )
|
|
||||||
png? ( media-libs/libpng:= )
|
|
||||||
readline? ( sys-libs/readline:= )
|
|
||||||
tiff? ( media-libs/tiff:= )
|
|
||||||
tk? ( dev-lang/tk:= )
|
|
||||||
X? (
|
|
||||||
x11-libs/libXmu
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-misc/xdg-utils
|
|
||||||
)"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
java? ( >=virtual/jre-1.8:* )"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-3.4.1-parallel.patch
|
|
||||||
"${FILESDIR}"/${PN}-3.4.1-rmath-shared.patch
|
|
||||||
"${FILESDIR}"/${PN}-3.6.2-no-LDFLAGS-in-libR-pkg-config.patch
|
|
||||||
"${FILESDIR}"/${PN}-3.6.2-no-gzip-doc.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
|
|
||||||
tc-check-openmp
|
|
||||||
FORTRAN_NEED_OPENMP=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
fortran-2_pkg_setup
|
|
||||||
|
|
||||||
# avoid using existing R installation
|
|
||||||
unset R_HOME
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# fix packages.html for doc (gentoo bug #205103)
|
|
||||||
sed -e "s:../../../library:../../../../$(get_libdir)/R/library:g" \
|
|
||||||
-i src/library/tools/R/Rd.R || die
|
|
||||||
|
|
||||||
# fix Rscript path when installed (gentoo bug #221061)
|
|
||||||
sed -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"${EPREFIX}/usr/$(get_libdir)/${PN}\"':" \
|
|
||||||
-i src/unix/Makefile.in || die "sed unix Makefile failed"
|
|
||||||
|
|
||||||
# fix HTML links to manual (gentoo bug #273957)
|
|
||||||
sed -e 's:\.\./manual/:manual/:g' \
|
|
||||||
-i $(grep -Flr ../manual/ doc) || die "sed for HTML links failed"
|
|
||||||
|
|
||||||
# Disable this test until it passes again,
|
|
||||||
# https://bugs.r-project.org/show_bug.cgi?id=18338
|
|
||||||
sed -e 's/ reg-packages.R / /' \
|
|
||||||
-i tests/Makefile.common || die
|
|
||||||
|
|
||||||
use lapack && \
|
|
||||||
export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
|
|
||||||
|
|
||||||
if use X; then
|
|
||||||
export R_BROWSER="$(type -p xdg-open)"
|
|
||||||
export R_PDFVIEWER="$(type -p xdg-open)"
|
|
||||||
fi
|
|
||||||
use perl && \
|
|
||||||
export PERL5LIB="${S}/share/perl:${PERL5LIB:+:}${PERL5LIB}"
|
|
||||||
|
|
||||||
# don't search /usr/local
|
|
||||||
sed -i -e '/FLAGS=.*\/local\//c\: # removed by ebuild' configure.ac || die
|
|
||||||
|
|
||||||
# Fix for Darwin (macOS)
|
|
||||||
if use prefix; then
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
sed -e 's:-install_name libR.dylib:-install_name ${libdir}/R/lib/libR.dylib:' \
|
|
||||||
-e 's:-install_name libRlapack.dylib:-install_name ${libdir}/R/lib/libRlapack.dylib:' \
|
|
||||||
-e 's:-install_name libRblas.dylib:-install_name ${libdir}/R/lib/libRblas.dylib:' \
|
|
||||||
-e "/SHLIB_EXT/s/\.so/.dylib/" \
|
|
||||||
-i configure.ac || die
|
|
||||||
# sort of "undo" 2.14.1-rmath-shared.patch
|
|
||||||
sed -e "s:-Wl,-soname=libRmath.so:-install_name ${EPREFIX}/usr/$(get_libdir)/libRmath.dylib:" \
|
|
||||||
-i src/nmath/standalone/Makefile.in || die
|
|
||||||
else
|
|
||||||
append-ldflags -Wl,-rpath="${EPREFIX}/usr/$(get_libdir)/R/lib"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
AT_M4DIR=m4 eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
filter-ldflags -Wl,-Bdirect -Bdirect
|
|
||||||
|
|
||||||
econf \
|
|
||||||
--enable-byte-compiled-packages \
|
|
||||||
--enable-R-shlib \
|
|
||||||
--disable-R-framework \
|
|
||||||
--disable-R-static-lib \
|
|
||||||
--with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
|
|
||||||
rdocdir="${EPREFIX}/usr/share/doc/${PF}" \
|
|
||||||
--with-system-tre \
|
|
||||||
$(use_enable java) \
|
|
||||||
$(use_enable lto lto R) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable openmp) \
|
|
||||||
$(use_enable profile R-profiling) \
|
|
||||||
$(use_enable profile memory-profiling) \
|
|
||||||
$(use_with cairo) \
|
|
||||||
$(use_with icu ICU) \
|
|
||||||
$(use_with jpeg jpeglib) \
|
|
||||||
$(use_with lapack) \
|
|
||||||
$(use_with !minimal recommended-packages) \
|
|
||||||
$(use_with png libpng) \
|
|
||||||
$(use_with readline) \
|
|
||||||
$(use_with tiff libtiff) \
|
|
||||||
$(use_with tk tcltk) \
|
|
||||||
$(use_with tk tk-config "${ESYSROOT}"/usr/$(get_libdir)/tkConfig.sh) \
|
|
||||||
$(use_with tk tcl-config "${ESYSROOT}"/usr/$(get_libdir)/tclConfig.sh) \
|
|
||||||
$(use_with X x)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
export VARTEXFONTS="${T}"/fonts
|
|
||||||
emake AR="$(tc-getAR)"
|
|
||||||
emake -C src/nmath/standalone shared AR="$(tc-getAR)"
|
|
||||||
use doc && emake info pdf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
emake -j1 -C src/nmath/standalone DESTDIR="${D}" install
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" install-info install-pdf
|
|
||||||
dosym ../manual /usr/share/doc/${PF}/html/manual
|
|
||||||
fi
|
|
||||||
|
|
||||||
newenvd - 99R <<-_EOF_
|
|
||||||
LDPATH=${EPREFIX}/usr/$(get_libdir)/${PN}/lib
|
|
||||||
R_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}
|
|
||||||
_EOF_
|
|
||||||
|
|
||||||
newbashcomp "${DISTDIR}"/${PN}-${BCPV}.bash_completion ${PN}
|
|
||||||
# The buildsystem has a different understanding of install_names than
|
|
||||||
# we require. Since it builds modules like shared objects (wrong), many
|
|
||||||
# objects (all modules) get an incorrect install_name. Fixing the build
|
|
||||||
# system here is not really trivial.
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
local mod
|
|
||||||
pushd "${ED}"/usr/$(get_libdir)/R >/dev/null || die
|
|
||||||
for mod in $(find . -name "*.dylib") ; do
|
|
||||||
mod=${mod#./}
|
|
||||||
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/R/${mod}" \
|
|
||||||
"${mod}"
|
|
||||||
done
|
|
||||||
popd >/dev/null || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Users are encouraged to access some of the the R documentation
|
|
||||||
# interactively, through functions like "contributors()" that
|
|
||||||
# tries to open the "AUTHORS" file. Other files can be accessed
|
|
||||||
# by name with RShowDoc(), and the documentation for e.g. license()
|
|
||||||
# and RShowDoc() suggests a few of these names. Here we try to
|
|
||||||
# collect as many names as possible that a user might actually
|
|
||||||
# try to view through R, because if we don't decompress them,
|
|
||||||
# then R doesn't know what to do with 'em. Bug #556706.
|
|
||||||
local INTERACTIVE_DOCS=(
|
|
||||||
AUTHORS
|
|
||||||
COPYING
|
|
||||||
FAQ
|
|
||||||
NEWS
|
|
||||||
THANKS
|
|
||||||
)
|
|
||||||
|
|
||||||
# Other data sources that are shipped as "documentation," but which
|
|
||||||
# need to be accessible via their original unmolested filenames.
|
|
||||||
local INTERACTIVE_DATA=(
|
|
||||||
BioC_mirrors.csv
|
|
||||||
CRAN_mirrors.csv
|
|
||||||
KEYWORDS.db
|
|
||||||
NEWS.rds
|
|
||||||
)
|
|
||||||
|
|
||||||
local f NOCOMPRESS_DOCS=( "${INTERACTIVE_DOCS[@]}" "${INTERACTIVE_DATA[@]}" )
|
|
||||||
|
|
||||||
for f in "${NOCOMPRESS_DOCS[@]}"; do
|
|
||||||
docompress -x "/usr/share/doc/${PF}/${f}"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Finally, an extra copy of this started showing up at some point...
|
|
||||||
rm "${ED}/usr/$(get_libdir)/R/COPYING" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if use java; then
|
|
||||||
einfo "Re-initializing java paths for ${P}"
|
|
||||||
R CMD javareconf
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,3 +1,3 @@
|
|||||||
DIST dafny-3.7.2-x64-ubuntu-16.04.zip 76166815 BLAKE2B a0b2531dedbe413298b6d92a65c854d70785d8732688d1e3556a5e5dc8c268b36dbb994e35960f2a18ecf40e64a6ff0912fa8df79beb6f2f81164be51907d262 SHA512 e472b1c848aece2980e67134a27bc1cab4a531b048790b7b36638e618d59f3f3e8ddcb538cd24723135266899a02b7c8952a73d81c4848e672c21c99c40c5af0
|
|
||||||
DIST dafny-3.7.3-x64-ubuntu-16.04.zip 76169341 BLAKE2B eb8bee64a0bd39b8af0996e298590c83bcf306dbfda5bc486ef70b13187b4fc0131fd2b98d5eb1b87a3177b1f25c5cd64b82522e4d57cf1b0d2aa1eb34869789 SHA512 0bdda39e8ae22eff72bd57e4ef5f07495e27156b11ff553a2e1f76731d7daa5ce6ac4f4d8b16b3365eacbbd25bc81d88cbfece9a0350e2a0faac2a035f3d5561
|
DIST dafny-3.7.3-x64-ubuntu-16.04.zip 76169341 BLAKE2B eb8bee64a0bd39b8af0996e298590c83bcf306dbfda5bc486ef70b13187b4fc0131fd2b98d5eb1b87a3177b1f25c5cd64b82522e4d57cf1b0d2aa1eb34869789 SHA512 0bdda39e8ae22eff72bd57e4ef5f07495e27156b11ff553a2e1f76731d7daa5ce6ac4f4d8b16b3365eacbbd25bc81d88cbfece9a0350e2a0faac2a035f3d5561
|
||||||
DIST dafny-3.8.0-x64-ubuntu-16.04.zip 76181911 BLAKE2B 9fbae78bb08ed448a164188758c53de6eb928f16e941ee2830c5d8ed3980e3f4ccdd4f1b99c30061a5838ef96dd71ad0ac4a69ffdf45ca8a428e37cbd1f8049d SHA512 43628709dfe34d91fda3b723e4f9deacace463a4002c520d62b319f3618b2e62dec93e2fd913926e41c8ef75dd3535a909c4eeb2e58e00faa6ffdd1f028f8277
|
DIST dafny-3.8.0-x64-ubuntu-16.04.zip 76181911 BLAKE2B 9fbae78bb08ed448a164188758c53de6eb928f16e941ee2830c5d8ed3980e3f4ccdd4f1b99c30061a5838ef96dd71ad0ac4a69ffdf45ca8a428e37cbd1f8049d SHA512 43628709dfe34d91fda3b723e4f9deacace463a4002c520d62b319f3618b2e62dec93e2fd913926e41c8ef75dd3535a909c4eeb2e58e00faa6ffdd1f028f8277
|
||||||
|
DIST dafny-3.8.1-x64-ubuntu-16.04.zip 76192825 BLAKE2B fbfe65f917fb1c04151969e466097ea5703b70fea5c2e04ed6ed756d05c3c46796951d641cca66c30b59d4b70dcee2bef9c7ccac6cd04fe3204b41a08910197c SHA512 ae10f912977827525902317a2215b3066f4271efd2dfdf314859b8c82cfb18ea881bafba5bde0d9f31f3b1429bef252774ca7a495f6661dff7f9f0d5fe042806
|
||||||
|
Binary file not shown.
@ -1,146 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
VALA_MIN_API_VERSION=0.16
|
|
||||||
VALA_USE_DEPEND=vapigen
|
|
||||||
VIRTUALX_REQUIRED=manual
|
|
||||||
|
|
||||||
inherit autotools flag-o-matic multilib-minimal vala virtualx xdg-utils
|
|
||||||
|
|
||||||
DESCRIPTION="Library to pass menu structure across DBus"
|
|
||||||
HOMEPAGE="https://launchpad.net/libdbusmenu"
|
|
||||||
SRC_URI="https://launchpad.net/${PN/lib}/${PV%.*}/${PV}/+download/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1 LGPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
|
|
||||||
IUSE="debug gtk gtk3 +introspection test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/dbus-glib-0.100[${MULTILIB_USEDEP}]
|
|
||||||
>=dev-libs/glib-2.35.4[${MULTILIB_USEDEP}]
|
|
||||||
dev-libs/libxml2[${MULTILIB_USEDEP}]
|
|
||||||
gtk? ( x11-libs/gtk+:2[introspection?,${MULTILIB_USEDEP}] )
|
|
||||||
gtk3? ( >=x11-libs/gtk+-3.2:3[introspection?,${MULTILIB_USEDEP}] )
|
|
||||||
introspection? ( >=dev-libs/gobject-introspection-1 )"
|
|
||||||
# tests also have optional dep on valgrind which we do not enforce
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
app-text/gnome-doc-utils
|
|
||||||
dev-util/glib-utils
|
|
||||||
dev-util/intltool
|
|
||||||
sys-devel/gettext
|
|
||||||
virtual/pkgconfig
|
|
||||||
introspection? ( $(vala_depend) )
|
|
||||||
test? (
|
|
||||||
>=dev-libs/json-glib-0.13.4[${MULTILIB_USEDEP}]
|
|
||||||
>=dev-util/dbus-test-runner-15.04.0_p100
|
|
||||||
gtk? ( ${VIRTUALX_DEPEND} )
|
|
||||||
gtk3? ( ${VIRTUALX_DEPEND} )
|
|
||||||
)"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
xdg_environment_reset
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use introspection; then
|
|
||||||
vala_src_prepare
|
|
||||||
export VALA_API_GEN="${VAPIGEN}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
eapply "${FILESDIR}/${P}-configure-fix.patch"
|
|
||||||
eapply "${FILESDIR}/${P}-werror.patch"
|
|
||||||
eapply_user
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
append-flags -Wno-error #414323
|
|
||||||
|
|
||||||
local myconf=(
|
|
||||||
--cache-file="${BUILD_DIR}"/config.cache
|
|
||||||
--disable-gtk
|
|
||||||
--disable-static
|
|
||||||
# dumper extra tool is only for GTK+-2.x
|
|
||||||
--disable-dumper
|
|
||||||
$(multilib_native_use_enable introspection)
|
|
||||||
$(multilib_native_use_enable introspection vala)
|
|
||||||
$(use_enable debug massivedebugging)
|
|
||||||
$(use_enable test tests)
|
|
||||||
)
|
|
||||||
local ECONF_SOURCE=${S}
|
|
||||||
econf "${myconf[@]}"
|
|
||||||
|
|
||||||
GTK_VARIANTS=( $(usex gtk 2 '') $(usex gtk3 3 '') )
|
|
||||||
local MULTIBUILD_VARIANTS=( "${GTK_VARIANTS[@]}" )
|
|
||||||
local top_builddir=${BUILD_DIR}
|
|
||||||
|
|
||||||
gtk_configure() {
|
|
||||||
local gtkconf=(
|
|
||||||
"${myconf[@]}"
|
|
||||||
--enable-gtk
|
|
||||||
--with-gtk="${MULTIBUILD_VARIANT}"
|
|
||||||
)
|
|
||||||
mkdir -p "${BUILD_DIR}" || die
|
|
||||||
cd "${BUILD_DIR}" || die
|
|
||||||
econf "${gtkconf[@]}"
|
|
||||||
|
|
||||||
rm -r libdbusmenu-glib || die
|
|
||||||
ln -s "${top_builddir}"/libdbusmenu-glib libdbusmenu-glib || die
|
|
||||||
}
|
|
||||||
[[ ${GTK_VARIANTS[@]} ]] && multibuild_foreach_variant gtk_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
gtk_emake() {
|
|
||||||
emake -C "${BUILD_DIR}"/libdbusmenu-gtk "${@}"
|
|
||||||
multilib_is_native_abi && \
|
|
||||||
emake -C "${BUILD_DIR}"/docs/libdbusmenu-gtk "${@}"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
emake
|
|
||||||
|
|
||||||
local MULTIBUILD_VARIANTS=( "${GTK_VARIANTS[@]}" )
|
|
||||||
[[ ${GTK_VARIANTS[@]} ]] && multibuild_foreach_variant \
|
|
||||||
gtk_emake
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_test() {
|
|
||||||
emake check
|
|
||||||
|
|
||||||
gtk_test() {
|
|
||||||
# please keep the list of GTK+ tests up-to-date
|
|
||||||
emake -C "${BUILD_DIR}"/tests check \
|
|
||||||
TESTS="test-gtk-objects-test test-gtk-label
|
|
||||||
test-gtk-shortcut test-gtk-reorder test-gtk-remove"
|
|
||||||
}
|
|
||||||
local MULTIBUILD_VARIANTS=( "${GTK_VARIANTS[@]}" )
|
|
||||||
[[ ${GTK_VARIANTS[@]} ]] && virtx multibuild_foreach_variant \
|
|
||||||
gtk_test
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install() {
|
|
||||||
emake -j1 DESTDIR="${D}" install
|
|
||||||
|
|
||||||
local MULTIBUILD_VARIANTS=( "${GTK_VARIANTS[@]}" )
|
|
||||||
[[ ${GTK_VARIANTS[@]} ]] && multibuild_foreach_variant \
|
|
||||||
gtk_emake -j1 install DESTDIR="${D}"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install_all() {
|
|
||||||
einstalldocs
|
|
||||||
find "${D}" -name '*.la' -delete || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# kill old symlinks that Portage will preserve and break install
|
|
||||||
if [[ -L ${EROOT}/usr/share/gtk-doc/html/libdbusmenu-glib ]]; then
|
|
||||||
rm -v "${EROOT}/usr/share/gtk-doc/html/libdbusmenu-glib" || die
|
|
||||||
fi
|
|
||||||
if [[ -L ${EROOT}/usr/share/gtk-doc/html/libdbusmenu-gtk ]]; then
|
|
||||||
rm -v "${EROOT}/usr/share/gtk-doc/html/libdbusmenu-gtk" || die
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1 +1,2 @@
|
|||||||
DIST libtraceevent-1.5.2.tar.gz 135283 BLAKE2B e4202fc3c9b09d20bed375bc1833a4f49b63cf484e63ecf3cc5f1f3950a1de7607464e6c2ae194085e78978e5f480a7ae392a4cde739c3a244367eaf1000f70d SHA512 3804a84d2a4771335ba14a7383f977d641e6437f055837c2faece811b8ef931cfa9d38082bef48d96092aeae8cdcb543222a3042b2c11c41749dddbbb4813d94
|
DIST libtraceevent-1.5.2.tar.gz 135283 BLAKE2B e4202fc3c9b09d20bed375bc1833a4f49b63cf484e63ecf3cc5f1f3950a1de7607464e6c2ae194085e78978e5f480a7ae392a4cde739c3a244367eaf1000f70d SHA512 3804a84d2a4771335ba14a7383f977d641e6437f055837c2faece811b8ef931cfa9d38082bef48d96092aeae8cdcb543222a3042b2c11c41749dddbbb4813d94
|
||||||
|
DIST libtraceevent-1.6.2.tar.gz 135857 BLAKE2B c5384d9bb8dc5977cfb412c22d9692ed757f94dcd01b6a93e8368cd3368bf2731c0c4eff764fd81b4627925e0fd370acd509710b538842708836b5d0ce777003 SHA512 8e951f66c339de2bc78c7c7f347f9283553ae62adc9e2bb96de1ed0aaadf91d59b2e93785c5030b0dd6d946488dc5e688d504eba54d674454c808c320127cfbf
|
||||||
|
@ -0,0 +1,50 @@
|
|||||||
|
# Copyright 2019-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Linux kernel trace event library"
|
||||||
|
HOMEPAGE="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/"
|
||||||
|
|
||||||
|
if [[ ${PV} =~ [9]{4,} ]]; then
|
||||||
|
EGIT_REPO_URI="git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="doc"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
!<dev-util/trace-cmd-3.0
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
doc? ( app-text/xmlto app-text/asciidoc )
|
||||||
|
"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
EMAKE_FLAGS=(
|
||||||
|
"prefix=${EPREFIX}/usr"
|
||||||
|
"libdir=${EPREFIX}/usr/$(get_libdir)"
|
||||||
|
"CC=$(tc-getCC)"
|
||||||
|
"AR=$(tc-getAR)"
|
||||||
|
VERBOSE=1
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake "${EMAKE_FLAGS[@]}"
|
||||||
|
use doc && emake doc
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install
|
||||||
|
# can't prevent installation of the static lib with parameters
|
||||||
|
rm "${ED}/usr/$(get_libdir)/libtraceevent.a" || die
|
||||||
|
use doc && emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install-doc
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue