parent
942c55a7af
commit
c762817603
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST kontrast-23.04.3.tar.xz 205832 BLAKE2B cd85476a137c19b00fd86686d1adf76ff9942208c5b5f435d352a949f11d1d34c75dbcb7d235869bed5aa2152f19e70e801eb6ab0c8c40350118b2a4ad144407 SHA512 f4c00bcee75999008a227156f169cb642646ff7e4ca2496103502011a6637c35c42d48bdc04aa630f119d03fc4d07cbb3619670fa45e1f03f7bfa9620805c24c
|
||||
DIST kontrast-23.08.3.tar.xz 211828 BLAKE2B 44cc6550c70d1074a45a9c0aea430cd257b69b327311474fa601f1cf79114131bf8960ddcc994c0bad46359066f0e83fd365aa732f256ac1dc308bba4ad99665 SHA512 da6d6573cab87ae46a812ae49416e94a1c07c296890024352c9225aa16858e5a5a6d2ae4b3edca4a657f9422f6c236446cab1b681421e27e6ff6027b9bd43b1d
|
||||
DIST kontrast-23.08.4.tar.xz 211820 BLAKE2B 74021a40cf60fe7f04b8e926f4e1e487885f60ae630299c6ffddf34b4f0bfa4f9ae4bf3b46884d943738f028635412ff1ade164731c03c254b8057844ddad7c3 SHA512 d4fa6f210fa387501ff3a62c79c47639e43370a71976677de31ce38cdf87bd7f78eaec2988120f4b82428c1adfb80e18d3491f9a7fcd025001e976f0e777802d
|
||||
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_HANDBOOK="forceoptional"
|
||||
KFMIN=5.106.0
|
||||
QTMIN=5.15.9
|
||||
inherit ecm gear.kde.org
|
||||
|
||||
DESCRIPTION="Tool to check contrast for colors to verify they are correctly accessible"
|
||||
HOMEPAGE="https://apps.kde.org/kontrast/"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="5"
|
||||
KEYWORDS="amd64 arm64 ~riscv x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
>=dev-qt/qtdbus-${QTMIN}:5
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtquickcontrols2-${QTMIN}:5
|
||||
>=dev-qt/qtsql-${QTMIN}:5
|
||||
>=dev-qt/qtsvg-${QTMIN}:5
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kirigami-${KFMIN}:5
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
kde-plasma/xdg-desktop-portal-kde
|
||||
"
|
Binary file not shown.
@ -0,0 +1,88 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
MY_P=aws-cli-${PV}
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="
|
||||
https://github.com/aws/aws-cli/
|
||||
https://pypi.org/project/awscli/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
# botocore is x.(y+2).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||
RDEPEND="
|
||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||
dev-python/colorama[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/rsa[${PYTHON_USEDEP}]
|
||||
>=dev-python/s3transfer-0.9.0[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
!app-admin/awscli-bin
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# do not rely on bundled deps in botocore (sic!)
|
||||
find -name '*.py' -exec sed -i \
|
||||
-e 's:from botocore[.]vendored import:import:' \
|
||||
-e 's:from botocore[.]vendored[.]:from :' \
|
||||
{} + || die
|
||||
# strip overzealous upper bounds on requirements
|
||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local serial_tests=(
|
||||
tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success
|
||||
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_{fails,success}
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows
|
||||
tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking
|
||||
tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success
|
||||
tests/unit/customizations/test_sessionmanager.py
|
||||
tests/unit/test_compat.py::TestIgnoreUserSignals
|
||||
tests/unit/test_help.py
|
||||
tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignored
|
||||
)
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
EPYTEST_XDIST= epytest "${serial_tests[@]}"
|
||||
|
||||
local EPYTEST_DESELECT=( "${serial_tests[@]}" )
|
||||
# integration tests require AWS credentials and Internet access
|
||||
epytest tests/{functional,unit}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp bin/aws_bash_completer aws
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins bin/aws_zsh_completer.sh _aws
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST linode-cli-5.45.2.tar.gz 126870 BLAKE2B adfb0862159fbd1dc887726a9d40c2534526b9fe7326c6340c52ed928aff5c9960b20a5961ed6aac7e276201e52a254fd6ba5e6aaa80da7d68e95cc0dc949f27 SHA512 9a6697b3306434cc4f59ef695d0b51e33f71b2d1be4d942e369a22328c3cbf78da0efc939f39f8da928ba5fb5bc2bc06a6ee5d0c9a8e0deb78b657738f19501d
|
||||
DIST linode-cli-5.46.0.tar.gz 127805 BLAKE2B a1ef51195bb853d57c41763c465885e3d3b429ede4cac4abb6408f9375499122780f5fc45c52e83a60772e88f3ed82d3e4e093e419d651e116a7b8430079cc4e SHA512 70751b1609ae6888325937e6a6855763c170682e9dad7ce82303199922fb48cd5eecc5e86bb25b578c1019ae74a6eee9850b10f6c10852154e91095ad6b38e11
|
||||
DIST linode-cli-5.47.1.tar.gz 128364 BLAKE2B db21cdd9a1bfbe17fb17b8b0e27ca36bb15c7d3b16ddde4dcc59a9ce64cd34d644d3d5d120efb88bb146767cf9b2c3ee820a847a2fcff487a11bc3abd6973870 SHA512 b61ac1e7c97a1395b150227fe822bc2e7199ed15a44c6d93d71bfdbc2f919827e87e89cf41a47b069be06144a849f5ab11c9dd7f38d138f80ce80563f55bf75a
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST keysmith-23.04.3.tar.xz 161996 BLAKE2B a160501a3fd29f83814611b0d738d6df487af0f98ffb7f9bb2c39b5ae67a3cc7af605f9d6c894d0e8ce351bd4d740b7247e1cf7541f4a1c1079110f384ce2de0 SHA512 a7ad96c91f5b50954aa185bdec81af8feafc1190105d28a3166b84442e5d58bd8a6dddcabd9d1f907b585f4082fe2dd16991b0c922bde087e1edfcc0b28027a1
|
||||
DIST keysmith-23.08.3.tar.xz 163456 BLAKE2B cebf12dfe695814355bf154083b2c751864983bf2f8862264f7926eb5d89f408fd9973fcfbc4182bdc1bf56b6ed22e111ae286a53e7f3c36d790c05648276a7e SHA512 321df891912e4b49d4701cf7261e6bd7b936b5bfaaf85935c12a8230d007e749153b91c2161db03bfb86beb52b6ce9c503c5e5d3b208ddf11977db4d31d9e78f
|
||||
DIST keysmith-23.08.4.tar.xz 163460 BLAKE2B 4abf8a070bd7bbdd0fcb8bcc5197da71868722b59622f9b522521cf5d277d41c757846411d4d67a5397eae6503666b041cf42955eecb8beafe2f3840d35d879e SHA512 752c4cf112d61633b33baa2649f8fd40ade43148349679cf16d6f11d35e3f9e4ec1f18f67c0484c9072904d7d09d129943c3dc557b1bee3acdded8318acf12c2
|
||||
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KDE_ORG_CATEGORY="utilities"
|
||||
ECM_TEST="true"
|
||||
KFMIN=5.106.0
|
||||
QTMIN=5.15.9
|
||||
inherit ecm gear.kde.org
|
||||
|
||||
DESCRIPTION="OTP client for Plasma Mobile and Desktop"
|
||||
HOMEPAGE="https://apps.kde.org/keysmith/"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~loong ~ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libsodium:=
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtquickcontrols2-${QTMIN}:5
|
||||
>=dev-qt/qtsvg-${QTMIN}:5
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=kde-frameworks/kdbusaddons-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kirigami-${KFMIN}:5
|
||||
>=kde-frameworks/kwindowsystem-${KFMIN}:5
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-qt/qtconcurrent-${QTMIN}:5
|
||||
"
|
@ -0,0 +1,19 @@
|
||||
https://bugs.gentoo.org/914173
|
||||
https://sourceforge.net/p/mhash/patches/12/
|
||||
https://sourceforge.net/p/mhash/bugs/43/
|
||||
|
||||
Fixes a segfault due to use-after-free on x86 & ARM in the test suite.
|
||||
|
||||
Index: mhash-0.9.9.9/src/hmac_test.c
|
||||
===================================================================
|
||||
--- mhash-0.9.9.9/src/hmac_test.c
|
||||
+++ mhash-0.9.9.9/src/hmac_test.c 2020-04-01 00:04:44.039815882 +0200
|
||||
@@ -76,8 +76,6 @@
|
||||
|
||||
/* Test No 2 */
|
||||
|
||||
- mutils_memset(tmp, 0, sizeof(tmp));
|
||||
-
|
||||
passlen=sizeof(KEY2) - 1;
|
||||
password = (mutils_word8 *) mutils_malloc(passlen+1);
|
||||
mutils_memcpy(password, KEY2, passlen);
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST ghostwriter-23.04.3.tar.xz 3074336 BLAKE2B 89314147c3222d0e83d26cedb81e6bf917e4f4e3d95650ba1d3096f06491343046dd5684d13014002a5249ec26af43cb050457c6f5d7c241b352a605b529b5af SHA512 d14e8c9928ec0638b98ca152d35ae88a7a4a582d4268e8f251252f080e4490b5c9433a814e6306acf7856c6a253f6e7aa9ed326328f90e0da8ef1214ef5a432c
|
||||
DIST ghostwriter-23.08.3.tar.xz 3626304 BLAKE2B 558b63152817d90443fcc78c9a5ac609643cd7a5b9c595ddbcccdb05bcb38af4c300974b852a9bf7b002aaf67ee84df0dddc357bc3b4cf558b0dc5a55876ae66 SHA512 b8281bc286132997ae6aeba95a6382546d556d6b5c6385d08c4660b385264cc60040efd3a71865166aee55ab5c979b2b80e72423b523400141dd74c4ba256ae3
|
||||
DIST ghostwriter-23.08.4.tar.xz 3626652 BLAKE2B 7c02c04cee3a499135e96add0bb128c2b7b368a73e39a9b55225b2f252240e0e0c1c052ac6bf8539d85dee7552e092af6886297a7ead8f6c671dbb80c9eafb9e SHA512 217d512d338a4beb8c56c6c7c6e7d48fe1d06da8d6845700e92373c37450082ffe310281aeaeff78050e2cc89a59d46cf439e1e54e83a82c0b510f9e2c8533e8
|
||||
|
@ -1,27 +0,0 @@
|
||||
https://github.com/KDE/ghostwriter/commit/b76b14a00069a2d544b615ad6dc8f9cbdc678982
|
||||
|
||||
From b76b14a00069a2d544b615ad6dc8f9cbdc678982 Mon Sep 17 00:00:00 2001
|
||||
From: Pino Toscano <pino@kde.org>
|
||||
Date: Wed, 26 Jul 2023 04:19:19 +0200
|
||||
Subject: [PATCH] Include <cstdint> where needed
|
||||
|
||||
Include it where std::uint32_t is explicitly used.
|
||||
|
||||
(cherry picked from commit 9e1a2ba2e01c7172a04e41b5d487461aa73c87d6)
|
||||
---
|
||||
src/markdownnode.cpp | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/markdownnode.cpp b/src/markdownnode.cpp
|
||||
index dce179d4a..f7a4eab49 100644
|
||||
--- a/src/markdownnode.cpp
|
||||
+++ b/src/markdownnode.cpp
|
||||
@@ -4,6 +4,8 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
+#include <cstdint>
|
||||
+
|
||||
#include "../3rdparty/cmark-gfm/src/cmark-gfm.h"
|
||||
#include "../3rdparty/cmark-gfm/extensions/cmark-gfm-core-extensions.h"
|
||||
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KDE_ORG_CATEGORY="office"
|
||||
ECM_HANDBOOK="optional"
|
||||
KFMIN=5.106.0
|
||||
QTMIN=5.15.9
|
||||
inherit ecm gear.kde.org
|
||||
|
||||
DESCRIPTION="Cross-platform, aesthetic, distraction-free markdown editor"
|
||||
HOMEPAGE="https://ghostwriter.kde.org/"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
app-text/hunspell:=
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtsvg-${QTMIN}:5
|
||||
>=dev-qt/qtwebchannel-${QTMIN}:5
|
||||
>=dev-qt/qtwebengine-${QTMIN}:5[widgets]
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:5
|
||||
>=kde-frameworks/sonnet-${KFMIN}:5
|
||||
virtual/opengl
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-qt/qtconcurrent-${QTMIN}:5
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-qt/linguist-tools-${QTMIN}:5
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DOCS=( CHANGELOG.md README.md )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-23.0.4-stdint.patch
|
||||
)
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST emacs-eat-0.9.2.tar.gz 274950 BLAKE2B 2b0378a20d1fec511c7b24e4e5cc1937bb8b01f4a0a76f794d847d77de54fb87bc0806082a2ceeb3793eb034d2e0b1aa916441b5b931e00e935d9399b1c84e14 SHA512 69db9aef6ba4037561bb2a344878ece7912140ff42a4c285b355ef2ef2351282d048af78949fe52959c6e5543f8a9a63bd07fc931b802abaa981effbb65e9c20
|
||||
DIST emacs-eat-0.9.4.tar.gz 275390 BLAKE2B 2d51cb8ca5e67092bab1764cbf20b9c5043ff95fe03662f55bdc931d7360050110295fd37a0eb4cd6cdf44b5ee9460f0c5f26788626a65297f194dcabef95198 SHA512 6b3fb29665687d0bdaa48ffe00a8e3ff6ed1448e6abd6fba447b58663b6a444d368a1ef0f49d20d8c3f3bf49feb2cd2f33a0f725d80c83596e74a55224b8effc
|
||||
|
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="Emulate A Terminal, in a region, in a buffer and in Eshell"
|
||||
HOMEPAGE="https://codeberg.org/akib/emacs-eat/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://codeberg.org/akib/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://codeberg.org/akib/${PN}/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
|
||||
DOCS=( ChangeLog NEWS README.org )
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
RDEPEND="
|
||||
>=app-emacs/compat-29.1.4.2
|
||||
"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
sys-apps/texinfo
|
||||
"
|
||||
|
||||
elisp-enable-tests ert . -l eat-tests.el
|
||||
|
||||
src_compile() {
|
||||
rm -r terminfo || die
|
||||
emake EMACS="${EMACS}" EMACSFLAGS="${EMACSFLAGS}"
|
||||
|
||||
elisp-compile term/eat.el
|
||||
|
||||
elisp-make-autoload-file
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm eat-tests.el || die
|
||||
elisp_src_install
|
||||
|
||||
insinto "${SITELISP}/${PN}"
|
||||
doins -r term
|
||||
|
||||
insinto "${SITEETC}/${PN}"
|
||||
doins -r integration
|
||||
doins -r terminfo
|
||||
|
||||
insinto /usr/share
|
||||
doins -r terminfo
|
||||
|
||||
doinfo eat.info
|
||||
}
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST free42-nologo-2.5.24.tgz 7423183 BLAKE2B e10425af8d5c30be6ab5b728130bbe3068c414e24f033b65623951f915bcfeea0672857ff8def3e9f2766aba79411a1022d4b83592281567de38e82613d8a832 SHA512 a0702c3e4b2f3f38f73c54de4e51da8d1dc90585b253d1ae087d59dfabbe83be9c80086df8540cb6420dae8c6e766cd1ccce875d9bcb94ecbc85791e3fa89b8b
|
||||
DIST free42-nologo-3.0.19.tgz 7462639 BLAKE2B 6c916b7226b39b0fda3607b52b08572d41d3bced4523485ac1d4d322c30af492d2218a6bccfbba7d41f85691fc0be9c47b6b651fb10e1d37d06b6bae7e770cce SHA512 b489c6459be3fb4f6be503830087935cbf9aca43bbd71bad51999197922d83a5f291052f5ead63557ac3c039b84baa73bdea7e06aa3335bcc3b5e63c3355bdbd
|
||||
DIST free42-nologo-3.0.21.tgz 7463253 BLAKE2B d271af7fb450e327a900b41c5ff8af46d0aedd9355cdee449fc1af55cb110dda3d27f0c8e74541b27db06f7d815597a8b20daa81bea154ed4d690b54e2dd301b SHA512 5ce81fa2b30cf7ae18caeb5bd68538c3d63fccb0b19cf48ef89054e128d38e91a6edbfbe349ef5dd80397c8a2023edc782441581336a8e7837df6d2e39cb84c6
|
||||
DIST free42-nologo-3.1.2.tgz 7459860 BLAKE2B 61e12a542847982c4349d99545f2eb32861d6280e57944646d26aa061307f7d357970ead63532bd46a7f6ff5a650f5ba39b446a4aab06eba9275745b2b8629b6 SHA512 6f01e9305d72499576f8330c350bd54b1f6164a39be412ebe690b87546b22b40492b771478fe3302fc7afafe850a9a6a5661d9305c20252e359c038181962c1e
|
||||
|
@ -1,3 +1,2 @@
|
||||
DIST plus42-upstream-1.0.17.tgz 7592298 BLAKE2B 262b985bb9f42ff98a218676ce9d831494cd4cb72db8c6557e3ebb2b5e43f7545c1f7c20a3c7297921a3fc77dea366b1cf4c7745cc9d473e18c395fbe43c05ea SHA512 79e1310f2fb34b34b827c84ca6749b7af6a800a97fb9ada4bba19cc477f3ff7077fe51b82c3e8845049f65d9abd83dc4f8bac9ea522f8a8ca46bb5a43b786623
|
||||
DIST plus42-upstream-1.0.20.tgz 7595277 BLAKE2B 17ab2955a7408436756709362026590c4be40ad1049106c17a596c5e370343457e0f26d01099c89c40f1f57d2c90b066f4e6c4a4bd6e39263d6bd1301e39f814 SHA512 a91853b61cb72f61d2cc3cbf1e700c64d9ffabde87037017230513fc908bd35a2310e460e73e0d9d3eb459db41a082527ad32ff4714737376d735434bbb140bd
|
||||
DIST plus42-upstream-1.0.21.tgz 7596740 BLAKE2B 2710ec70682ea8a68ff07388c210bd253f5a91736caa017efed036b0cba41a9895721287246982477adaf4288d79d195cf6543b79d5e0905b62acc91becd4da8 SHA512 55b42e006ce003c9e619fa10ec7e28319f82444bce0f811f9ebdd16c0ceeded9e978a3f7c0b134bdc17c39a55f1071b8245d099d1c7d9a7b81bfe850d30bd962
|
||||
DIST plus42-upstream-1.1.2.tgz 7607688 BLAKE2B 3d353898cf9ad51388ab40d86265dc83822f6ac658ca8c8c1a2c0ce8b7801b64c2d454d129743049c46723caf5b82f90e5939b3e1e08431a8246472256033c5e SHA512 7418dce2d31deb3b4d5275921bfd84eafd15546c0a3f0110c463ec620e8b53c99c6ce74401aafa89e7658843711ef5b02ca144edafbcd8b4aad4a26f93ba9d70
|
||||
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_PV="${PN}-upstream-${PV}"
|
||||
|
||||
DESCRIPTION="An Enhanced HP-42S Calculator Simulator"
|
||||
HOMEPAGE="https://thomasokken.com/plus42/"
|
||||
SRC_URI="https://thomasokken.com/plus42/upstream/${MY_PV}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+alsa"
|
||||
|
||||
DEPEND="app-accessibility/at-spi2-core
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf
|
||||
x11-libs/gtk+:3
|
||||
alsa? ( media-libs/alsa-lib )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( CREDITS HISTORY README )
|
||||
S="${WORKDIR}/${MY_PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.0.9-fix-makefile.patch"
|
||||
"${FILESDIR}/${PN}-1.0.12-fix-build-intel-lib.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconf
|
||||
use alsa && myconf="AUDIO_ALSA=yes"
|
||||
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" ${myconf} -C gtk
|
||||
emake -C gtk clean
|
||||
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" BCD_MATH=1 ${myconf} -C gtk
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dobin gtk/plus42bin gtk/plus42dec
|
||||
}
|
@ -0,0 +1,991 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Generate using https://github.com/thesamesam/sam-gentoo-scripts/blob/main/niche/generate-qemu-docs
|
||||
# Set to 1 if prebuilt, 0 if not
|
||||
# (the construct below is to allow overriding from env for script)
|
||||
QEMU_DOCS_PREBUILT=${QEMU_DOCS_PREBUILT:-1}
|
||||
QEMU_DOCS_PREBUILT_DEV=sam
|
||||
QEMU_DOCS_VERSION=$(ver_cut 1-2).0
|
||||
# Default to generating docs (inc. man pages) if no prebuilt; overridden later
|
||||
# bug #830088
|
||||
QEMU_DOC_USEFLAG="+doc"
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_REQ_USE="ncurses,readline"
|
||||
|
||||
FIRMWARE_ABI_VERSION="7.2.0"
|
||||
|
||||
inherit linux-info toolchain-funcs python-r1 udev fcaps readme.gentoo-r1 \
|
||||
pax-utils xdg-utils
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
QEMU_DOCS_PREBUILT=0
|
||||
|
||||
EGIT_REPO_URI="https://gitlab.com/qemu-project/qemu.git/"
|
||||
EGIT_SUBMODULES=()
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
declare -A SUBPROJECTS=(
|
||||
[keycodemapdb]="f5772a62ec52591ff6870b7e8ef32482371f22c6"
|
||||
[berkeley-softfloat-3]="b64af41c3276f97f0e181920400ee056b9c88037"
|
||||
[berkeley-testfloat-3]="40619cbb3bf32872df8c53cc457039229428a263"
|
||||
)
|
||||
|
||||
for proj in "${!SUBPROJECTS[@]}"; do
|
||||
c=${SUBPROJECTS[${proj}]}
|
||||
SRC_URI+=" https://gitlab.com/qemu-project/${proj}/-/archive/${c}/${proj}-${c}.tar.bz2"
|
||||
done
|
||||
else
|
||||
MY_P="${PN}-${PV/_rc/-rc}"
|
||||
SRC_URI="https://download.qemu.org/${MY_P}.tar.xz"
|
||||
|
||||
if [[ ${QEMU_DOCS_PREBUILT} == 1 ]] ; then
|
||||
SRC_URI+=" !doc? ( https://dev.gentoo.org/~${QEMU_DOCS_PREBUILT_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${QEMU_DOCS_VERSION}-docs.tar.xz )"
|
||||
fi
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
[[ "${PV}" != *_rc* ]] && KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools"
|
||||
HOMEPAGE="https://www.qemu.org https://www.linux-kvm.org"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2 BSD-2"
|
||||
SLOT="0"
|
||||
|
||||
[[ ${QEMU_DOCS_PREBUILT} == 1 ]] && QEMU_DOC_USEFLAG="doc"
|
||||
|
||||
IUSE="accessibility +aio alsa bpf bzip2 capstone +curl debug ${QEMU_DOC_USEFLAG}
|
||||
+fdt fuse glusterfs +gnutls gtk infiniband iscsi io-uring
|
||||
jack jemalloc +jpeg keyutils
|
||||
lzo multipath
|
||||
ncurses nfs nls numa opengl +oss pam +pin-upstream-blobs pipewire
|
||||
plugins +png pulseaudio python rbd sasl +seccomp sdl sdl-image selinux
|
||||
+slirp
|
||||
smartcard snappy spice ssh static-user systemtap test udev usb
|
||||
usbredir vde +vhost-net virgl virtfs +vnc vte xattr xen
|
||||
zstd"
|
||||
|
||||
COMMON_TARGETS="
|
||||
aarch64
|
||||
alpha
|
||||
arm
|
||||
cris
|
||||
hppa
|
||||
i386
|
||||
loongarch64
|
||||
m68k
|
||||
microblaze
|
||||
microblazeel
|
||||
mips
|
||||
mips64
|
||||
mips64el
|
||||
mipsel
|
||||
nios2
|
||||
or1k
|
||||
ppc
|
||||
ppc64
|
||||
riscv32
|
||||
riscv64
|
||||
s390x
|
||||
sh4
|
||||
sh4eb
|
||||
sparc
|
||||
sparc64
|
||||
x86_64
|
||||
xtensa
|
||||
xtensaeb
|
||||
"
|
||||
IUSE_SOFTMMU_TARGETS="
|
||||
${COMMON_TARGETS}
|
||||
avr
|
||||
rx
|
||||
tricore
|
||||
"
|
||||
IUSE_USER_TARGETS="
|
||||
${COMMON_TARGETS}
|
||||
aarch64_be
|
||||
armeb
|
||||
hexagon
|
||||
mipsn32
|
||||
mipsn32el
|
||||
ppc64le
|
||||
sparc32plus
|
||||
"
|
||||
|
||||
use_softmmu_targets=$(printf ' qemu_softmmu_targets_%s' ${IUSE_SOFTMMU_TARGETS})
|
||||
use_user_targets=$(printf ' qemu_user_targets_%s' ${IUSE_USER_TARGETS})
|
||||
IUSE+=" ${use_softmmu_targets} ${use_user_targets}"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Allow no targets to be built so that people can get a tools-only build.
|
||||
# Block USE flag configurations known to not work.
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
qemu_softmmu_targets_arm? ( fdt )
|
||||
qemu_softmmu_targets_microblaze? ( fdt )
|
||||
qemu_softmmu_targets_mips64el? ( fdt )
|
||||
qemu_softmmu_targets_ppc64? ( fdt )
|
||||
qemu_softmmu_targets_ppc? ( fdt )
|
||||
qemu_softmmu_targets_riscv32? ( fdt )
|
||||
qemu_softmmu_targets_riscv64? ( fdt )
|
||||
qemu_softmmu_targets_x86_64? ( fdt )
|
||||
sdl-image? ( sdl )
|
||||
static-user? ( !plugins )
|
||||
virgl? ( opengl )
|
||||
virtfs? ( xattr )
|
||||
vnc? ( gnutls )
|
||||
vte? ( gtk )
|
||||
multipath? ( udev )
|
||||
plugins? ( !static-user )
|
||||
"
|
||||
for smname in ${IUSE_SOFTMMU_TARGETS} ; do
|
||||
REQUIRED_USE+=" qemu_softmmu_targets_${smname}? ( kernel_linux? ( seccomp ) )"
|
||||
done
|
||||
|
||||
# Dependencies required for qemu tools (qemu-nbd, qemu-img, qemu-io, ...)
|
||||
# and user/softmmu targets (qemu-*, qemu-system-*).
|
||||
#
|
||||
# Yep, you need both libcap and libcap-ng since virtfs only uses libcap.
|
||||
#
|
||||
# The attr lib isn't always linked in (although the USE flag is always
|
||||
# respected). This is because qemu supports using the C library's API
|
||||
# when available rather than always using the external library.
|
||||
ALL_DEPEND="
|
||||
dev-libs/glib:2[static-libs(+)]
|
||||
sys-libs/zlib[static-libs(+)]
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
xattr? ( sys-apps/attr[static-libs(+)] )
|
||||
"
|
||||
|
||||
# Dependencies required for qemu tools (qemu-nbd, qemu-img, qemu-io, ...)
|
||||
# softmmu targets (qemu-system-*).
|
||||
SOFTMMU_TOOLS_DEPEND="
|
||||
>=x11-libs/pixman-0.28.0[static-libs(+)]
|
||||
accessibility? (
|
||||
app-accessibility/brltty[api]
|
||||
app-accessibility/brltty[static-libs(+)]
|
||||
)
|
||||
aio? ( dev-libs/libaio[static-libs(+)] )
|
||||
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
||||
bpf? ( dev-libs/libbpf:= )
|
||||
bzip2? ( app-arch/bzip2[static-libs(+)] )
|
||||
capstone? ( dev-libs/capstone:=[static-libs(+)] )
|
||||
curl? ( >=net-misc/curl-7.15.4[static-libs(+)] )
|
||||
fdt? ( >=sys-apps/dtc-1.5.1[static-libs(+)] )
|
||||
fuse? ( >=sys-fs/fuse-3.1:3[static-libs(+)] )
|
||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] )
|
||||
gnutls? (
|
||||
>=net-libs/gnutls-3.0:=[static-libs(+)]
|
||||
dev-libs/nettle:=[static-libs(+)]
|
||||
)
|
||||
gtk? (
|
||||
x11-libs/gtk+:3
|
||||
vte? ( x11-libs/vte:2.91 )
|
||||
)
|
||||
infiniband? ( sys-cluster/rdma-core[static-libs(+)] )
|
||||
iscsi? ( net-libs/libiscsi )
|
||||
io-uring? ( sys-libs/liburing:=[static-libs(+)] )
|
||||
jack? ( virtual/jack )
|
||||
jemalloc? ( dev-libs/jemalloc )
|
||||
jpeg? ( media-libs/libjpeg-turbo:=[static-libs(+)] )
|
||||
kernel_linux? ( sys-libs/libcap-ng[static-libs(+)] )
|
||||
keyutils? ( sys-apps/keyutils[static-libs(+)] )
|
||||
lzo? ( dev-libs/lzo:2[static-libs(+)] )
|
||||
multipath? ( sys-fs/multipath-tools )
|
||||
ncurses? (
|
||||
sys-libs/ncurses:=[unicode(+)]
|
||||
sys-libs/ncurses:=[static-libs(+)]
|
||||
)
|
||||
nfs? ( >=net-fs/libnfs-1.9.3:=[static-libs(+)] )
|
||||
numa? ( sys-process/numactl[static-libs(+)] )
|
||||
opengl? (
|
||||
virtual/opengl
|
||||
media-libs/libepoxy[static-libs(+)]
|
||||
media-libs/mesa[static-libs(+)]
|
||||
media-libs/mesa[egl(+),gbm(+)]
|
||||
)
|
||||
pam? ( sys-libs/pam )
|
||||
pipewire? ( >=media-video/pipewire-0.3.60 )
|
||||
png? ( >=media-libs/libpng-1.6.34:=[static-libs(+)] )
|
||||
pulseaudio? ( media-libs/libpulse )
|
||||
rbd? ( sys-cluster/ceph )
|
||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
||||
sdl? (
|
||||
media-libs/libsdl2[video]
|
||||
media-libs/libsdl2[static-libs(+)]
|
||||
)
|
||||
sdl-image? ( media-libs/sdl2-image[static-libs(+)] )
|
||||
seccomp? ( >=sys-libs/libseccomp-2.1.0[static-libs(+)] )
|
||||
slirp? ( net-libs/libslirp[static-libs(+)] )
|
||||
smartcard? ( >=app-emulation/libcacard-2.5.0[static-libs(+)] )
|
||||
snappy? ( app-arch/snappy:= )
|
||||
spice? (
|
||||
>=app-emulation/spice-protocol-0.14.0
|
||||
>=app-emulation/spice-0.14.0[static-libs(+)]
|
||||
)
|
||||
ssh? ( >=net-libs/libssh-0.8.6[static-libs(+)] )
|
||||
udev? ( virtual/libudev:= )
|
||||
usb? ( >=virtual/libusb-1-r2:1[static-libs(+)] )
|
||||
usbredir? ( >=sys-apps/usbredir-0.6[static-libs(+)] )
|
||||
vde? ( net-misc/vde[static-libs(+)] )
|
||||
virgl? ( media-libs/virglrenderer[static-libs(+)] )
|
||||
virtfs? ( sys-libs/libcap )
|
||||
xen? ( app-emulation/xen-tools:= )
|
||||
zstd? ( >=app-arch/zstd-1.4.0[static-libs(+)] )
|
||||
"
|
||||
|
||||
EDK2_OVMF_VERSION="202202"
|
||||
SEABIOS_VERSION="1.16.0"
|
||||
|
||||
X86_FIRMWARE_DEPEND="
|
||||
pin-upstream-blobs? (
|
||||
~sys-firmware/edk2-ovmf-bin-${EDK2_OVMF_VERSION}
|
||||
~sys-firmware/ipxe-1.21.1[binary,qemu]
|
||||
~sys-firmware/seabios-bin-${SEABIOS_VERSION}
|
||||
~sys-firmware/sgabios-0.1_pre10[binary]
|
||||
)
|
||||
!pin-upstream-blobs? (
|
||||
|| (
|
||||
>=sys-firmware/edk2-ovmf-${EDK2_OVMF_VERSION}
|
||||
>=sys-firmware/edk2-ovmf-bin-${EDK2_OVMF_VERSION}
|
||||
)
|
||||
sys-firmware/ipxe[qemu]
|
||||
|| (
|
||||
>=sys-firmware/seabios-${SEABIOS_VERSION}[seavgabios]
|
||||
>=sys-firmware/seabios-bin-${SEABIOS_VERSION}
|
||||
)
|
||||
sys-firmware/sgabios
|
||||
)
|
||||
"
|
||||
PPC_FIRMWARE_DEPEND="
|
||||
pin-upstream-blobs? (
|
||||
~sys-firmware/seabios-bin-${SEABIOS_VERSION}
|
||||
)
|
||||
!pin-upstream-blobs? (
|
||||
|| (
|
||||
>=sys-firmware/seabios-${SEABIOS_VERSION}[seavgabios]
|
||||
>=sys-firmware/seabios-bin-${SEABIOS_VERSION}
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
# See bug #913084 for pip dep
|
||||
BDEPEND="
|
||||
$(python_gen_impl_dep)
|
||||
dev-lang/perl
|
||||
>=dev-util/meson-0.63.0
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
>=dev-python/sphinx-1.6.0[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]
|
||||
)
|
||||
gtk? ( nls? ( sys-devel/gettext ) )
|
||||
test? (
|
||||
dev-libs/glib[utils]
|
||||
sys-devel/bc
|
||||
)
|
||||
"
|
||||
CDEPEND="
|
||||
${ALL_DEPEND//\[static-libs(+)]}
|
||||
${SOFTMMU_TOOLS_DEPEND//\[static-libs(+)]}
|
||||
qemu_softmmu_targets_i386? ( ${X86_FIRMWARE_DEPEND} )
|
||||
qemu_softmmu_targets_x86_64? ( ${X86_FIRMWARE_DEPEND} )
|
||||
qemu_softmmu_targets_ppc? ( ${PPC_FIRMWARE_DEPEND} )
|
||||
qemu_softmmu_targets_ppc64? ( ${PPC_FIRMWARE_DEPEND} )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
kernel_linux? ( >=sys-kernel/linux-headers-2.6.35 )
|
||||
static-user? ( ${ALL_DEPEND} )
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
acct-group/kvm
|
||||
selinux? (
|
||||
sec-policy/selinux-qemu
|
||||
sys-libs/libselinux
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-8.0.0-disable-keymap.patch
|
||||
"${FILESDIR}"/${PN}-7.1.0-capstone-include-path.patch
|
||||
"${FILESDIR}"/${PN}-8.1.0-also-build-virtfs-proxy-helper.patch
|
||||
"${FILESDIR}"/${PN}-8.1.0-skip-tests.patch
|
||||
"${FILESDIR}"/${PN}-8.1.0-find-sphinx.patch
|
||||
)
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/share/qemu/hppa-firmware.img
|
||||
usr/share/qemu/openbios-ppc
|
||||
usr/share/qemu/openbios-sparc64
|
||||
usr/share/qemu/openbios-sparc32
|
||||
usr/share/qemu/opensbi-riscv64-generic-fw_dynamic.elf
|
||||
usr/share/qemu/opensbi-riscv32-generic-fw_dynamic.elf
|
||||
usr/share/qemu/palcode-clipper
|
||||
usr/share/qemu/s390-ccw.img
|
||||
usr/share/qemu/s390-netboot.img
|
||||
usr/share/qemu/u-boot.e500
|
||||
"
|
||||
|
||||
QA_WX_LOAD="
|
||||
usr/bin/qemu-i386
|
||||
usr/bin/qemu-x86_64
|
||||
usr/bin/qemu-alpha
|
||||
usr/bin/qemu-arm
|
||||
usr/bin/qemu-cris
|
||||
usr/bin/qemu-m68k
|
||||
usr/bin/qemu-microblaze
|
||||
usr/bin/qemu-microblazeel
|
||||
usr/bin/qemu-mips
|
||||
usr/bin/qemu-mipsel
|
||||
usr/bin/qemu-or1k
|
||||
usr/bin/qemu-ppc
|
||||
usr/bin/qemu-ppc64
|
||||
usr/bin/qemu-sh4
|
||||
usr/bin/qemu-sh4eb
|
||||
usr/bin/qemu-sparc
|
||||
usr/bin/qemu-sparc64
|
||||
usr/bin/qemu-armeb
|
||||
usr/bin/qemu-sparc32plus
|
||||
usr/bin/qemu-s390x
|
||||
usr/bin/qemu-unicore32
|
||||
"
|
||||
|
||||
DOC_CONTENTS="If you don't have kvm compiled into the kernel, make sure you have the
|
||||
kernel module loaded before running kvm. The easiest way to ensure that the
|
||||
kernel module is loaded is to load it on boot.
|
||||
For AMD CPUs the module is called 'kvm-amd'.
|
||||
For Intel CPUs the module is called 'kvm-intel'.
|
||||
Please review /etc/conf.d/modules for how to load these.
|
||||
|
||||
Make sure your user is in the 'kvm' group. Just run
|
||||
$ gpasswd -a <USER> kvm
|
||||
then have <USER> re-login.
|
||||
|
||||
For brand new installs, the default permissions on /dev/kvm might not let
|
||||
you access it. You can tell udev to reset ownership/perms:
|
||||
$ udevadm trigger -c add /dev/kvm
|
||||
|
||||
If you want to register binfmt handlers for qemu user targets:
|
||||
For openrc:
|
||||
# rc-update add qemu-binfmt
|
||||
For systemd:
|
||||
# ln -s /usr/share/qemu/binfmt.d/qemu.conf /etc/binfmt.d/qemu.conf"
|
||||
|
||||
pkg_pretend() {
|
||||
if use kernel_linux && kernel_is lt 2 6 25; then
|
||||
eerror "This version of KVM requires a host kernel of 2.6.25 or higher."
|
||||
elif use kernel_linux; then
|
||||
if ! linux_config_exists; then
|
||||
eerror "Unable to check your kernel for KVM support"
|
||||
else
|
||||
CONFIG_CHECK="~KVM ~TUN ~BRIDGE"
|
||||
ERROR_KVM="You must enable KVM in your kernel to continue"
|
||||
ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in"
|
||||
ERROR_KVM_AMD+=" your kernel configuration."
|
||||
ERROR_KVM_INTEL="If you have an Intel CPU, you must enable"
|
||||
ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration."
|
||||
ERROR_TUN="You will need the Universal TUN/TAP driver compiled"
|
||||
ERROR_TUN+=" into your kernel or loaded as a module to use the"
|
||||
ERROR_TUN+=" virtual network device if using -net tap."
|
||||
ERROR_BRIDGE="You will also need support for 802.1d"
|
||||
ERROR_BRIDGE+=" Ethernet Bridging for some network configurations."
|
||||
use vhost-net && CONFIG_CHECK+=" ~VHOST_NET"
|
||||
ERROR_VHOST_NET="You must enable VHOST_NET to have vhost-net"
|
||||
ERROR_VHOST_NET+=" support"
|
||||
|
||||
if use amd64 || use x86 || use amd64-linux || use x86-linux; then
|
||||
if grep -q AuthenticAMD /proc/cpuinfo; then
|
||||
CONFIG_CHECK+=" ~KVM_AMD"
|
||||
elif grep -q GenuineIntel /proc/cpuinfo; then
|
||||
CONFIG_CHECK+=" ~KVM_INTEL"
|
||||
fi
|
||||
fi
|
||||
|
||||
use python && CONFIG_CHECK+=" ~DEBUG_FS"
|
||||
ERROR_DEBUG_FS="debugFS support required for kvm_stat"
|
||||
|
||||
# Now do the actual checks setup above
|
||||
check_extra_config
|
||||
fi
|
||||
fi
|
||||
|
||||
if grep -qs '/usr/bin/qemu-kvm' "${EROOT}"/etc/libvirt/qemu/*.xml; then
|
||||
eerror "The kvm/qemu-kvm wrappers no longer exist, but your libvirt"
|
||||
eerror "instances are still pointing to it. Please update your"
|
||||
eerror "configs in /etc/libvirt/qemu/ to use the -enable-kvm flag"
|
||||
eerror "and the right system binary (e.g. qemu-system-x86_64)."
|
||||
die "update your virt configs to not use qemu-kvm"
|
||||
fi
|
||||
}
|
||||
|
||||
# Sanity check to make sure target lists are kept up-to-date.
|
||||
check_targets() {
|
||||
local var=$1 mak=$2
|
||||
local detected sorted
|
||||
|
||||
pushd "${S}"/configs/targets/ >/dev/null || die
|
||||
|
||||
# Force C locale until glibc is updated. #564936
|
||||
detected=$(echo $(printf '%s\n' *-${mak}.mak | sed "s:-${mak}.mak::" | LC_COLLATE=C sort -u))
|
||||
sorted=$(echo $(printf '%s\n' ${!var} | LC_COLLATE=C sort -u))
|
||||
if [[ ${sorted} != "${detected}" ]] ; then
|
||||
eerror "The ebuild needs to be kept in sync."
|
||||
eerror "${var}: ${sorted}"
|
||||
eerror "$(printf '%-*s' ${#var} configure): ${detected}"
|
||||
die "sync ${var} to the list of targets"
|
||||
fi
|
||||
|
||||
popd >/dev/null
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
git-r3_src_unpack
|
||||
for file in ${A}; do
|
||||
unpack "${file}"
|
||||
done
|
||||
cd "${WORKDIR}" || die
|
||||
for proj in "${!SUBPROJECTS[@]}"; do
|
||||
mv "${proj}-${SUBPROJECTS[${proj}]}" "${S}/subprojects/${proj}" || die
|
||||
done
|
||||
cd "${S}" || die
|
||||
meson subprojects packagefiles --apply || die
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
check_targets IUSE_SOFTMMU_TARGETS softmmu
|
||||
check_targets IUSE_USER_TARGETS linux-user
|
||||
|
||||
default
|
||||
|
||||
# Use correct toolchain to fix cross-compiling
|
||||
tc-export AR AS LD NM OBJCOPY PKG_CONFIG RANLIB STRINGS
|
||||
export WINDRES=${CHOST}-windres
|
||||
|
||||
# Verbose builds
|
||||
MAKEOPTS+=" V=1"
|
||||
|
||||
# Remove bundled modules
|
||||
rm -r roms/*/ || die
|
||||
}
|
||||
|
||||
##
|
||||
# configures qemu based on the build directory and the build type
|
||||
# we are using.
|
||||
#
|
||||
qemu_src_configure() {
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
local buildtype=$1
|
||||
local builddir="${S}/${buildtype}-build"
|
||||
|
||||
mkdir "${builddir}" || die
|
||||
|
||||
local conf_opts=(
|
||||
--prefix=/usr
|
||||
--sysconfdir=/etc
|
||||
--bindir=/usr/bin
|
||||
--libdir=/usr/$(get_libdir)
|
||||
--datadir=/usr/share
|
||||
--docdir=/usr/share/doc/${PF}/html
|
||||
--mandir=/usr/share/man
|
||||
--localstatedir=/var
|
||||
--disable-bsd-user
|
||||
--disable-containers # bug #732972
|
||||
--disable-guest-agent
|
||||
--disable-strip
|
||||
--disable-download
|
||||
|
||||
# bug #746752: TCG interpreter has a few limitations:
|
||||
# - it does not support FPU
|
||||
# - it's generally slower on non-self-modifying code
|
||||
# It's advantage is support for host architectures
|
||||
# where native codegeneration is not implemented.
|
||||
# Gentoo has qemu keyworded only on targets with
|
||||
# native code generation available. Avoid the interpreter.
|
||||
--disable-tcg-interpreter
|
||||
|
||||
--disable-werror
|
||||
# We support gnutls/nettle for crypto operations. It is possible
|
||||
# to use gcrypt when gnutls/nettle are disabled (but not when they
|
||||
# are enabled), but it's not really worth the hassle. Disable it
|
||||
# all the time to avoid automatically detecting it. #568856
|
||||
--disable-gcrypt
|
||||
--cc="$(tc-getCC)"
|
||||
--cxx="$(tc-getCXX)"
|
||||
--objcc="$(tc-getCC)"
|
||||
--host-cc="$(tc-getBUILD_CC)"
|
||||
|
||||
$(use_enable alsa)
|
||||
$(use_enable debug debug-info)
|
||||
$(use_enable debug debug-tcg)
|
||||
$(use_enable jack)
|
||||
$(use_enable nls gettext)
|
||||
$(use_enable oss)
|
||||
$(use_enable pipewire)
|
||||
$(use_enable plugins)
|
||||
$(use_enable pulseaudio pa)
|
||||
$(use_enable selinux)
|
||||
$(use_enable xattr attr)
|
||||
)
|
||||
|
||||
# Disable options not used by user targets. This simplifies building
|
||||
# static user targets (USE=static-user) considerably.
|
||||
conf_notuser() {
|
||||
if [[ ${buildtype} == "user" ]] ; then
|
||||
echo "--disable-${2:-$1}"
|
||||
else
|
||||
use_enable "$@"
|
||||
fi
|
||||
}
|
||||
# Enable option only for softmmu build, but not 'user' or 'tools'
|
||||
conf_softmmu() {
|
||||
if [[ ${buildtype} == "softmmu" ]] ; then
|
||||
use_enable "$@"
|
||||
else
|
||||
echo "--disable-${2:-$1}"
|
||||
fi
|
||||
}
|
||||
# Enable option only for tools build, but not 'user' or 'softmmu'
|
||||
conf_tools() {
|
||||
if [[ ${buildtype} == "tools" ]] ; then
|
||||
use_enable "$@"
|
||||
else
|
||||
echo "--disable-${2:-$1}"
|
||||
fi
|
||||
}
|
||||
# Special case for the malloc flag, because the --disable flag does
|
||||
# not exist and trying like above will break configuring.
|
||||
conf_malloc() {
|
||||
if [[ ! ${buildtype} == "user" ]] ; then
|
||||
usex "${1}" "--enable-malloc=${1}" ""
|
||||
fi
|
||||
}
|
||||
conf_opts+=(
|
||||
$(conf_notuser accessibility brlapi)
|
||||
$(conf_notuser aio linux-aio)
|
||||
$(conf_softmmu bpf)
|
||||
$(conf_notuser bzip2)
|
||||
$(conf_notuser capstone)
|
||||
$(conf_notuser curl)
|
||||
$(conf_tools doc docs)
|
||||
$(conf_notuser fdt)
|
||||
$(conf_notuser fuse)
|
||||
$(conf_notuser glusterfs)
|
||||
$(conf_notuser gnutls)
|
||||
$(conf_notuser gnutls nettle)
|
||||
$(conf_notuser gtk)
|
||||
$(conf_notuser infiniband rdma)
|
||||
$(conf_notuser iscsi libiscsi)
|
||||
$(conf_notuser io-uring linux-io-uring)
|
||||
$(conf_malloc jemalloc)
|
||||
$(conf_notuser jpeg vnc-jpeg)
|
||||
$(conf_notuser kernel_linux kvm)
|
||||
$(conf_notuser keyutils libkeyutils)
|
||||
$(conf_notuser lzo)
|
||||
$(conf_notuser multipath mpath)
|
||||
$(conf_notuser ncurses curses)
|
||||
$(conf_notuser nfs libnfs)
|
||||
$(conf_notuser numa)
|
||||
$(conf_notuser opengl)
|
||||
$(conf_notuser pam auth-pam)
|
||||
$(conf_notuser png)
|
||||
$(conf_notuser rbd)
|
||||
$(conf_notuser sasl vnc-sasl)
|
||||
$(conf_notuser sdl)
|
||||
$(conf_softmmu sdl-image)
|
||||
$(conf_notuser seccomp)
|
||||
$(conf_notuser slirp)
|
||||
$(conf_notuser smartcard)
|
||||
$(conf_notuser snappy)
|
||||
$(conf_notuser spice)
|
||||
$(conf_notuser ssh libssh)
|
||||
$(conf_notuser udev libudev)
|
||||
$(conf_notuser usb libusb)
|
||||
$(conf_notuser usbredir usb-redir)
|
||||
$(conf_notuser vde)
|
||||
$(conf_notuser vhost-net)
|
||||
$(conf_notuser virgl virglrenderer)
|
||||
$(conf_softmmu virtfs)
|
||||
$(conf_notuser vnc)
|
||||
$(conf_notuser vte)
|
||||
$(conf_notuser xen)
|
||||
$(conf_notuser xen xen-pci-passthrough)
|
||||
# use prebuilt keymaps, bug #759604
|
||||
--disable-xkbcommon
|
||||
$(conf_notuser zstd)
|
||||
)
|
||||
|
||||
if [[ ! ${buildtype} == "user" ]] ; then
|
||||
# audio options
|
||||
local audio_opts=(
|
||||
# Note: backend order matters here: #716202
|
||||
# We iterate from higher-level to lower level.
|
||||
$(usex pulseaudio pa "")
|
||||
$(usev pipewire)
|
||||
$(usev jack)
|
||||
$(usev sdl)
|
||||
$(usev alsa)
|
||||
$(usev oss)
|
||||
)
|
||||
conf_opts+=(
|
||||
--audio-drv-list=$(IFS=,; echo "${audio_opts[*]}")
|
||||
)
|
||||
fi
|
||||
|
||||
case ${buildtype} in
|
||||
user)
|
||||
conf_opts+=(
|
||||
--enable-linux-user
|
||||
--disable-system
|
||||
--disable-tools
|
||||
--disable-cap-ng
|
||||
--disable-seccomp
|
||||
)
|
||||
local static_flag="static-user"
|
||||
;;
|
||||
softmmu)
|
||||
conf_opts+=(
|
||||
--disable-linux-user
|
||||
--enable-system
|
||||
--disable-tools
|
||||
--enable-cap-ng
|
||||
--enable-seccomp
|
||||
)
|
||||
local static_flag="none"
|
||||
;;
|
||||
tools)
|
||||
conf_opts+=(
|
||||
--disable-linux-user
|
||||
--disable-system
|
||||
--enable-tools
|
||||
--enable-cap-ng
|
||||
)
|
||||
local static_flag="none"
|
||||
;;
|
||||
esac
|
||||
|
||||
local targets="${buildtype}_targets"
|
||||
[[ -n ${targets} ]] && conf_opts+=( --target-list="${!targets}" )
|
||||
|
||||
# Add support for SystemTAP
|
||||
use systemtap && conf_opts+=( --enable-trace-backends="dtrace" )
|
||||
|
||||
# We always want to attempt to build with PIE support as it results
|
||||
# in a more secure binary. But it doesn't work with static or if
|
||||
# the current GCC doesn't have PIE support.
|
||||
if [[ ${static_flag} != "none" ]] && use ${static_flag}; then
|
||||
conf_opts+=( --static --disable-pie )
|
||||
else
|
||||
tc-enables-pie && conf_opts+=( --enable-pie )
|
||||
fi
|
||||
|
||||
# Meson will not use a cross-file unless cross_prefix is set.
|
||||
tc-is-cross-compiler && conf_opts+=( --cross-prefix="${CHOST}-" )
|
||||
|
||||
# Plumb through equivalent of EXTRA_ECONF to allow experiments
|
||||
# like bug #747928.
|
||||
conf_opts+=( ${EXTRA_CONF_QEMU} )
|
||||
|
||||
echo "../configure ${conf_opts[*]}"
|
||||
cd "${builddir}"
|
||||
../configure "${conf_opts[@]}" || die "configure failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local target
|
||||
|
||||
python_setup
|
||||
|
||||
softmmu_targets= softmmu_bins=()
|
||||
user_targets= user_bins=()
|
||||
|
||||
for target in ${IUSE_SOFTMMU_TARGETS} ; do
|
||||
if use "qemu_softmmu_targets_${target}"; then
|
||||
softmmu_targets+=",${target}-softmmu"
|
||||
softmmu_bins+=( "qemu-system-${target}" )
|
||||
fi
|
||||
done
|
||||
|
||||
for target in ${IUSE_USER_TARGETS} ; do
|
||||
if use "qemu_user_targets_${target}"; then
|
||||
user_targets+=",${target}-linux-user"
|
||||
user_bins+=( "qemu-${target}" )
|
||||
fi
|
||||
done
|
||||
|
||||
softmmu_targets=${softmmu_targets#,}
|
||||
user_targets=${user_targets#,}
|
||||
|
||||
[[ -n ${softmmu_targets} ]] && qemu_src_configure "softmmu"
|
||||
[[ -n ${user_targets} ]] && qemu_src_configure "user"
|
||||
qemu_src_configure "tools"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build" || die
|
||||
default
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build" || die
|
||||
default
|
||||
fi
|
||||
|
||||
cd "${S}/tools-build" || die
|
||||
default
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build" || die
|
||||
pax-mark m */qemu-system-* #515550
|
||||
emake check
|
||||
fi
|
||||
}
|
||||
|
||||
qemu_python_install() {
|
||||
python_domodule "${S}/python/qemu"
|
||||
|
||||
python_doscript "${S}/scripts/kvm/vmxcap"
|
||||
python_doscript "${S}/scripts/qmp/qmp-shell"
|
||||
python_doscript "${S}/scripts/qmp/qemu-ga-client"
|
||||
}
|
||||
|
||||
# Generate binfmt support files.
|
||||
# - /etc/init.d/qemu-binfmt script which registers the user handlers (openrc)
|
||||
# - /usr/share/qemu/binfmt.d/qemu.conf (for use with systemd-binfmt)
|
||||
generate_initd() {
|
||||
local out="${T}/qemu-binfmt"
|
||||
local out_systemd="${T}/qemu.conf"
|
||||
local d="${T}/binfmt.d"
|
||||
|
||||
einfo "Generating qemu binfmt scripts and configuration files"
|
||||
|
||||
# Generate the debian fragments first.
|
||||
mkdir -p "${d}"
|
||||
"${S}"/scripts/qemu-binfmt-conf.sh \
|
||||
--debian \
|
||||
--exportdir "${d}" \
|
||||
--qemu-path "${EPREFIX}/usr/bin" \
|
||||
|| die
|
||||
# Then turn the fragments into a shell script we can source.
|
||||
sed -E -i \
|
||||
-e 's:^([^ ]+) (.*)$:\1="\2":' \
|
||||
"${d}"/* || die
|
||||
|
||||
# Generate the init.d script by assembling the fragments from above.
|
||||
local f qcpu package interpreter magic mask
|
||||
cat "${FILESDIR}"/qemu-binfmt.initd.head >"${out}" || die
|
||||
for f in "${d}"/qemu-* ; do
|
||||
source "${f}"
|
||||
|
||||
# Normalize the cpu logic like we do in the init.d for the native cpu.
|
||||
qcpu=${package#qemu-}
|
||||
case ${qcpu} in
|
||||
arm*) qcpu="arm";;
|
||||
mips*) qcpu="mips";;
|
||||
ppc*) qcpu="ppc";;
|
||||
s390*) qcpu="s390";;
|
||||
sh*) qcpu="sh";;
|
||||
sparc*) qcpu="sparc";;
|
||||
esac
|
||||
|
||||
# we use 'printf' here to be portable across 'sh'
|
||||
# implementations: #679168
|
||||
cat <<EOF >>"${out}"
|
||||
if [ "\${cpu}" != "${qcpu}" -a -x "${interpreter}" ] ; then
|
||||
printf '%s\n' ':${package}:M::${magic}:${mask}:${interpreter}:'"\${QEMU_BINFMT_FLAGS}" >/proc/sys/fs/binfmt_misc/register
|
||||
fi
|
||||
EOF
|
||||
|
||||
echo ":${package}:M::${magic}:${mask}:${interpreter}:OC" >>"${out_systemd}"
|
||||
|
||||
done
|
||||
cat "${FILESDIR}"/qemu-binfmt.initd.tail >>"${out}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if [[ -n ${user_targets} ]]; then
|
||||
cd "${S}/user-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# Install binfmt handler init script for user targets.
|
||||
generate_initd
|
||||
doinitd "${T}/qemu-binfmt"
|
||||
|
||||
# Install binfmt/qemu.conf.
|
||||
insinto "/usr/share/qemu/binfmt.d"
|
||||
doins "${T}/qemu.conf"
|
||||
fi
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
cd "${S}/softmmu-build"
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# This might not exist if the test failed. #512010
|
||||
[[ -e check-report.html ]] && dodoc check-report.html
|
||||
|
||||
if use kernel_linux; then
|
||||
udev_newrules "${FILESDIR}"/65-kvm.rules-r2 65-kvm.rules
|
||||
fi
|
||||
|
||||
if use python; then
|
||||
python_foreach_impl qemu_python_install
|
||||
fi
|
||||
fi
|
||||
|
||||
cd "${S}/tools-build" || die
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
# If USE=doc, there'll be newly generated docs which we install instead.
|
||||
if ! use doc && [[ ${QEMU_DOCS_PREBUILT} == 1 ]] ; then
|
||||
doman "${WORKDIR}"/${PN}-${QEMU_DOCS_VERSION}-docs/docs/*.[0-8]
|
||||
fi
|
||||
|
||||
# Disable mprotect on the qemu binaries as they use JITs to be fast #459348
|
||||
pushd "${ED}"/usr/bin >/dev/null || die
|
||||
pax-mark mr "${softmmu_bins[@]}" "${user_bins[@]}" # bug 575594
|
||||
popd >/dev/null || die
|
||||
|
||||
# Install config file example for qemu-bridge-helper
|
||||
insinto "/etc/qemu"
|
||||
doins "${FILESDIR}/bridge.conf"
|
||||
|
||||
cd "${S}" || die
|
||||
dodoc MAINTAINERS
|
||||
newdoc pc-bios/README README.pc-bios
|
||||
|
||||
# Disallow stripping of prebuilt firmware files.
|
||||
dostrip -x ${QA_PREBUILT}
|
||||
|
||||
if [[ -n ${softmmu_targets} ]]; then
|
||||
# Remove SeaBIOS since we're using the SeaBIOS packaged one
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../seabios/bios-256k.bin /usr/share/qemu/bios-256k.bin
|
||||
fi
|
||||
|
||||
# Remove vgabios since we're using the seavgabios packaged one
|
||||
rm "${ED}/usr/share/qemu/vgabios.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-cirrus.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-qxl.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-stdvga.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-virtio.bin"
|
||||
rm "${ED}/usr/share/qemu/vgabios-vmware.bin"
|
||||
|
||||
# PPC/PPC64 loads vgabios-stdvga
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386 || use qemu_softmmu_targets_ppc || use qemu_softmmu_targets_ppc64; then
|
||||
dosym ../seavgabios/vgabios-isavga.bin /usr/share/qemu/vgabios.bin
|
||||
dosym ../seavgabios/vgabios-cirrus.bin /usr/share/qemu/vgabios-cirrus.bin
|
||||
dosym ../seavgabios/vgabios-qxl.bin /usr/share/qemu/vgabios-qxl.bin
|
||||
dosym ../seavgabios/vgabios-stdvga.bin /usr/share/qemu/vgabios-stdvga.bin
|
||||
dosym ../seavgabios/vgabios-virtio.bin /usr/share/qemu/vgabios-virtio.bin
|
||||
dosym ../seavgabios/vgabios-vmware.bin /usr/share/qemu/vgabios-vmware.bin
|
||||
fi
|
||||
|
||||
# Remove sgabios since we're using the sgabios packaged one
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../sgabios/sgabios.bin /usr/share/qemu/sgabios.bin
|
||||
fi
|
||||
|
||||
# Remove iPXE since we're using the iPXE packaged one
|
||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
||||
dosym ../ipxe/8086100e.rom /usr/share/qemu/pxe-e1000.rom
|
||||
dosym ../ipxe/80861209.rom /usr/share/qemu/pxe-eepro100.rom
|
||||
dosym ../ipxe/10500940.rom /usr/share/qemu/pxe-ne2k_pci.rom
|
||||
dosym ../ipxe/10222000.rom /usr/share/qemu/pxe-pcnet.rom
|
||||
dosym ../ipxe/10ec8139.rom /usr/share/qemu/pxe-rtl8139.rom
|
||||
dosym ../ipxe/1af41000.rom /usr/share/qemu/pxe-virtio.rom
|
||||
fi
|
||||
fi
|
||||
|
||||
DISABLE_AUTOFORMATTING=true
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
firmware_abi_change() {
|
||||
local pv
|
||||
for pv in ${REPLACING_VERSIONS}; do
|
||||
if ver_test ${pv} -lt ${FIRMWARE_ABI_VERSION}; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n ${softmmu_targets} ]] && use kernel_linux; then
|
||||
udev_reload
|
||||
fi
|
||||
|
||||
xdg_icon_cache_update
|
||||
|
||||
[[ -z ${EPREFIX} ]] && [[ -f ${EROOT}/usr/libexec/qemu-bridge-helper ]] && \
|
||||
fcaps cap_net_admin "${EROOT}"/usr/libexec/qemu-bridge-helper
|
||||
|
||||
DISABLE_AUTOFORMATTING=true
|
||||
readme.gentoo_print_elog
|
||||
|
||||
if use pin-upstream-blobs && firmware_abi_change; then
|
||||
ewarn "This version of qemu pins new versions of firmware blobs:"
|
||||
|
||||
if has_version 'sys-firmware/edk2-ovmf-bin'; then
|
||||
ewarn " $(best_version sys-firmware/edk2-ovmf-bin)"
|
||||
else
|
||||
ewarn " $(best_version sys-firmware/edk2-ovmf)"
|
||||
fi
|
||||
|
||||
if has_version 'sys-firmware/seabios-bin'; then
|
||||
ewarn " $(best_version sys-firmware/seabios-bin)"
|
||||
else
|
||||
ewarn " $(best_version sys-firmware/seabios)"
|
||||
fi
|
||||
|
||||
ewarn " $(best_version sys-firmware/ipxe)"
|
||||
ewarn " $(best_version sys-firmware/sgabios)"
|
||||
ewarn "This might break resume of hibernated guests (started with a different"
|
||||
ewarn "firmware version) and live migration to/from qemu versions with different"
|
||||
ewarn "firmware. Please (cold) restart all running guests. For functional"
|
||||
ewarn "guest migration ensure that all"
|
||||
ewarn "hosts run at least"
|
||||
ewarn " app-emulation/qemu-${FIRMWARE_ABI_VERSION}."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_info() {
|
||||
echo "Using:"
|
||||
echo " $(best_version app-emulation/spice-protocol)"
|
||||
|
||||
if has_version 'sys-firmware/edk2-ovmf-bin'; then
|
||||
echo " $(best_version sys-firmware/edk2-ovmf-bin)"
|
||||
else
|
||||
echo " $(best_version sys-firmware/edk2-ovmf)"
|
||||
fi
|
||||
|
||||
if has_version 'sys-firmware/seabios-bin'; then
|
||||
echo " $(best_version sys-firmware/seabios-bin)"
|
||||
else
|
||||
echo " $(best_version sys-firmware/seabios)"
|
||||
fi
|
||||
|
||||
echo " $(best_version sys-firmware/ipxe)"
|
||||
echo " $(best_version sys-firmware/sgabios)"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
udev_reload
|
||||
}
|
Binary file not shown.
@ -0,0 +1,35 @@
|
||||
Make specifying `.jsonc` suffix for configs optional
|
||||
|
||||
https://github.com/fastfetch-cli/fastfetch/commit/456a58c8f57aaf22c51571ec0ead1e7c40c3d860
|
||||
|
||||
From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= <zhangsongcui3371@sina.com>
|
||||
Date: Tue, 19 Dec 2023 15:26:51 +0800
|
||||
Subject: [PATCH] fastfetch: default preset names to `.jsonc`
|
||||
|
||||
Fix #666
|
||||
--- a/src/fastfetch.c
|
||||
+++ b/src/fastfetch.c
|
||||
@@ -501,6 +501,11 @@ static void optionParseConfigFile(FFdata* data, const char* key, const char* val
|
||||
ffStrbufAppendS(&absolutePath, value);
|
||||
|
||||
bool success = isJsonConfig ? parseJsoncFile(absolutePath.chars) : parseConfigFile(data, absolutePath.chars);
|
||||
+ if (!success)
|
||||
+ {
|
||||
+ ffStrbufAppendS(&absolutePath, ".jsonc");
|
||||
+ success = parseJsoncFile(absolutePath.chars);
|
||||
+ }
|
||||
|
||||
if(success)
|
||||
return;
|
||||
@@ -514,6 +519,11 @@ static void optionParseConfigFile(FFdata* data, const char* key, const char* val
|
||||
ffStrbufAppendS(&absolutePath, value);
|
||||
|
||||
bool success = isJsonConfig ? parseJsoncFile(absolutePath.chars) : parseConfigFile(data, absolutePath.chars);
|
||||
+ if (!success)
|
||||
+ {
|
||||
+ ffStrbufAppendS(&absolutePath, ".jsonc");
|
||||
+ success = parseJsoncFile(absolutePath.chars);
|
||||
+ }
|
||||
|
||||
if(success)
|
||||
return;
|
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST kalendar-23.04.3.tar.xz 824472 BLAKE2B 0b60122066b0b1d63d631a397a6e417592dcce236fcf86dddc0a73b704a79fc4728225fb694559a15e46c0177b92ec5dc925c0564ca48c08652521194fd87cca SHA512 15bf7ce051ed56b4178e72a35d0aace00bd8650fac387bd4b63cc541aa92fd433eee2c5711663af4cd29606ddc69c838dbe58780a0e2e35f1fc4ef8be64dbb75
|
||||
DIST merkuro-23.08.3.tar.xz 979728 BLAKE2B fba3c2ecb8fdd7da86dd08fa550144acc5727f294d6595e1df9d0b7c509ecf51df7aab0f2eceadabc6fcfb6ac91aed1f2b769d04ff026591d849e77f92f537b6 SHA512 6ee5501a6eea8a1121c014e408775f0e4f1bc997259250476547ec8fb75a1a7e369ed76d53d30f5027b48d6f9015283978741fe5b93934326fe0232778be1aaa
|
||||
DIST merkuro-23.08.4.tar.xz 981940 BLAKE2B e5cd7b057cfa143a1f90e0f2c3359bbdc10bdf2dca5c5ec397db140b9c7e298d32888a86158e9f60ae10f6e51978efd4df4d8c295166bda642d377a687d145dc SHA512 efa4fd461dff049799412578b4b29999987fb81c10b4a5b8e3404e5d488be386936daf41ce9fd43e9c57c98eb00a3a6e2ea60d02e9e08df5305d61f17a9efbec
|
||||
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
KDE_ORG_CATEGORY="pim"
|
||||
KDE_ORG_NAME="kalendar"
|
||||
ECM_TEST="forceoptional"
|
||||
PVCUT=$(ver_cut 1-3)
|
||||
KFMIN=5.106.0
|
||||
QTMIN=5.15.9
|
||||
inherit ecm gear.kde.org
|
||||
|
||||
DESCRIPTION="Calendar application using Akonadi"
|
||||
HOMEPAGE="https://apps.kde.org/kalendar/"
|
||||
|
||||
LICENSE="|| ( GPL-2 GPL-3 ) CC0-1.0"
|
||||
SLOT="5"
|
||||
KEYWORDS="amd64 arm64 ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
# All of the tests involve interacting with akonadi right now (as of 22.04)
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="
|
||||
app-crypt/gpgme:=[cxx]
|
||||
>=dev-libs/kirigami-addons-0.7.2:5
|
||||
>=dev-qt/qtdbus-${QTMIN}:5
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtquickcontrols2-${QTMIN}:5
|
||||
>=dev-qt/qtsvg-${QTMIN}:5
|
||||
>=kde-apps/akonadi-${PVCUT}:5
|
||||
>=kde-apps/akonadi-calendar-${PVCUT}:5
|
||||
>=kde-apps/akonadi-contacts-${PVCUT}:5
|
||||
>=kde-apps/akonadi-mime-${PVCUT}:5
|
||||
>=kde-apps/calendarsupport-${PVCUT}:5
|
||||
>=kde-apps/eventviews-${PVCUT}:5
|
||||
>=kde-apps/mailcommon-${PVCUT}:5
|
||||
>=kde-apps/pimcommon-${PVCUT}:5
|
||||
>=kde-frameworks/kcalendarcore-${KFMIN}:5
|
||||
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kcontacts-${KFMIN}:5
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kdbusaddons-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kiconthemes-${KFMIN}:5
|
||||
>=kde-frameworks/kio-${KFMIN}:5
|
||||
>=kde-frameworks/kirigami-${KFMIN}:5
|
||||
>=kde-frameworks/kitemmodels-${KFMIN}:5
|
||||
>=kde-frameworks/kwindowsystem-${KFMIN}:5
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:5
|
||||
"
|
||||
# qtlocation is needed at runtime only or fails to start
|
||||
RDEPEND="${DEPEND}
|
||||
>=dev-qt/qtgraphicaleffects-${QTMIN}:5
|
||||
>=dev-qt/qtlocation-${QTMIN}:5
|
||||
>=dev-qt/qtwebengine-${QTMIN}:5
|
||||
>=kde-apps/kdepim-runtime-${PVCUT}:5
|
||||
>=kde-frameworks/qqc2-desktop-style-${KFMIN}:5
|
||||
"
|
@ -1 +1,2 @@
|
||||
DIST planner-0.14.91.tar.xz 3887084 BLAKE2B 7719ead3f9794aa29ec67f8bfd9e3d7b7541d79542befe767c2f41381a9c62493790df314e940731cf5deefb6ac4dcece67623fc5ae8d8b792b0c95793682b39 SHA512 579ad60d3282124f9cf954163c27feaa1d505ce3135b3d668e1fe0ca036d7e7290bbd3a6d9c30f32a77594c5d60988feee670266c34c0a8b9240510609ab46e2
|
||||
DIST planner-0.14.92.tar.xz 3888436 BLAKE2B 5fde169da3787bdebbd0d49448b602a904a3cb6b1fed3047ef76162b070d2ab1f0793da591936ac8f10c8951cba86185d2b3ac580aeeb2a61595ab6b1814e560 SHA512 35f0ea6bb04937c164c42082db717962eba6e0353a4750d3213cb7a0e93b8649c99c52060c95c4c6037b6c7019f90161b3c531d5e75eabe453d0fad50c887f27
|
||||
|
@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit gnome.org gnome2-utils meson xdg
|
||||
|
||||
DESCRIPTION="Project manager for Gnome"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Planner https://gitlab.gnome.org/World/planner"
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://gitlab.gnome.org/World/planner.git"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
fi
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2+"
|
||||
IUSE="examples libgda"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.56:2
|
||||
>=x11-libs/gtk+-3.22:3
|
||||
>=dev-libs/libxml2-2.6.27:2
|
||||
>=dev-libs/libxslt-1.1.23
|
||||
libgda? ( >=gnome-extra/libgda-1.0:5 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
sys-devel/gettext
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_feature libgda database-gda)
|
||||
-Deds=disabled # Doesn't provide much value, not very tested
|
||||
$(meson_use examples)
|
||||
-Dgtk_doc=false # Only for a private library
|
||||
-Dsimple-priority-scheduling=false # experimental
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
if use examples; then
|
||||
mv "${ED}"/usr/share/doc/planner "${ED}"/usr/share/doc/${PF} || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,6 @@
|
||||
DIST build2-toolchain-0.13.0.tar.xz 4218940 BLAKE2B ed27290df21e5db843325b3e42c43c6934ce8f2b9b157538b921f9cfe3a7dccc3b56e261053373553cbd7fbff39e912ffe2282f812d0e6f158749ed5748d5e33 SHA512 0485872acd40beb700739b2995f76efcc9811dd52a38ee049576e45fcb5a7d7ae9c718beca8aeab9ab3f1c5e0270d3946f2335f88ec19476577c195417c2dbd4
|
||||
DIST build2-toolchain-0.14.0.tar.xz 4687616 BLAKE2B 98b2ec93c18027cbb3294650b3ad5d3dc97c1f06a6580437eac2db0297d3517cf327179f3a7c6efc611bffed5d028a034382d408ca58a976311d50a26534323c SHA512 d238a4ddfce8506b51b3b775738e818e7e0b36961a09ae0912c0c8688057b8393afebd4c0a28c6e6827c2e72ad5b82bc5e1231f798a66c2bb86b2b1e4ece73ef
|
||||
DIST build2-toolchain-0.15.0.tar.xz 5122496 BLAKE2B 6170ccf7e251e189369873ae81a4c24fdfd7b3beb38728da0c40284a8e6329d1dd152e861bbb5d2dbc0b4931af6e72c191c52abe98111c5dbf7922df888b046e SHA512 3dba63813a227a1542bcec52406c98e6d61fb366f0fe2617fac130906d0811d00356330bcd03faabf83f30604044f92e40476669a4b04060f83ede7a4db88ecb
|
||||
DIST libodb-sqlite-2.5.0-b.19.tar.gz 74822 BLAKE2B e9a5d3be8b453bcdc026b6349572c3bd88eb468329216bee535f4e1ac72bfe6c88b485efe2476303600209df42023099fdda88b410d9295e8cab73ed9dd03fc0 SHA512 be6dbc731d9f45dfc7e9246f404edad78d59c9d38cff6599aed56d60d4f0e8391336e2da3608f66d74559f0a8d34243eb38e7e6a1221188959321810193ae901
|
||||
DIST libodb-sqlite-2.5.0-b.21.tar.gz 79975 BLAKE2B f9dca03ba909276ed137c15cbe32a8227b688f8b1c2d3e98b7040f3463359400fd5116088ae77722651589788e2d8e1367bc135ed2104dbc2d624ff4910f3fce SHA512 a84ea3847c64e5beffcb1f3958583bc02d371a4eb354ad32d0083b01e27362905bdcf09913c9b4cd6fc977eeaba95fd46cf953332e4fd0d673ca2f7521c71a1f
|
||||
DIST libodb-sqlite-2.5.0-b.25.tar.gz 77096 BLAKE2B 594e805428c4b6f20cefa9838175831278166e6d5612be4a79da972ca85ca95f6f8b18adadfd11ba4adcb7751f83bea8b5e3ce1f6e7ae76c5b361fcabfc633be SHA512 886119c8524939fa7c094afc157ada1797dca338d6e1a488aca8552615e2050c9d555e3784226e2d28faee58019a8e51b990ee9df1af1bdfe00d591d7268d673
|
||||
|
@ -0,0 +1,124 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_P="${PN}-$(ver_cut 1-3)-b.$(ver_cut 5)"
|
||||
|
||||
# Compare BUILD2_PV with the version in the tarball in the 'manifest' file.
|
||||
# e.g. from 2.5.0_beta25's manifest:
|
||||
# +depends: * build2 >= 0.15.0
|
||||
# +depends: * bpkg >= 0.15.0
|
||||
BUILD2_PN=build2-toolchain
|
||||
BUILD2_PV="0.15.0"
|
||||
BUILD2_P="${BUILD2_PN}-${BUILD2_PV}"
|
||||
|
||||
inherit toolchain-funcs multiprocessing
|
||||
|
||||
DESCRIPTION="Common ODB runtime library"
|
||||
HOMEPAGE="https://codesynthesis.com/products/odb/"
|
||||
SRC_URI="
|
||||
https://pkg.cppget.org/1/beta/odb/${MY_P}.tar.gz
|
||||
https://download.build2.org/${BUILD2_PV}/${BUILD2_P}.tar.xz
|
||||
"
|
||||
BS="${WORKDIR}/${BUILD2_P}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="|| ( Code-Synthesis-ODB GPL-2 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
dev-cpp/libodb
|
||||
dev-db/sqlite:3
|
||||
"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
!<dev-util/build2-${BUILD2_PV}
|
||||
"
|
||||
|
||||
b() {
|
||||
local myargs=(
|
||||
--jobs $(makeopts_jobs)
|
||||
--verbose 3
|
||||
)
|
||||
export LD_LIBRARY_PATH="${BS}/libbutl/libbutl:${BS}/build2/libbuild2:${BS}/build2/libbuild2/bash:${BS}/build2/libbuild2/in:${BS}/build2/libbuild2/bin:${BS}/build2/libbuild2/c:${BS}/build2/libbuild2/cc:${BS}/build2/libbuild2/cxx:${BS}/build2/libbuild2/version:${BS}/libpkgconf/libpkgconf:${LD_LIBRARY_PATH}"
|
||||
set -- "${BS}"/build2/build2/b-boot "${@}" "${myargs[@]}"
|
||||
echo "${@}"
|
||||
"${@}" || die "${@} failed"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cd "${WORKDIR}" || die
|
||||
for i in ${BUILD2_P}/libodb-sqlite/buildfile ${MY_P}/buildfile; do
|
||||
printf 'cxx.libs += %s\ncxx.poptions += %s\n' \
|
||||
"-L${EPREFIX}/usr/$(get_libdir) $($(tc-getPKG_CONFIG) sqlite3 --libs)" \
|
||||
"$($(tc-getPKG_CONFIG) sqlite3 --cflags)" >> \
|
||||
${i} \
|
||||
|| die
|
||||
done
|
||||
|
||||
cd "${BS}" || die
|
||||
eapply "${FILESDIR}"/build2-0.13.0_alpha0_pre20200710-nousrlocal.patch
|
||||
sed \
|
||||
-e 's:libsqlite3[/]\?::' \
|
||||
-i buildfile build/bootstrap.build \
|
||||
|| die
|
||||
|
||||
if has_version dev-util/pkgconf; then
|
||||
for i in build2/build2/buildfile build2/libbuild2/buildfile; do
|
||||
printf 'cxx.libs += %s\ncxx.poptions += %s\n' \
|
||||
"$($(tc-getPKG_CONFIG) libpkgconf --libs)" \
|
||||
"$($(tc-getPKG_CONFIG) libpkgconf --cflags)" >> \
|
||||
"${i}" \
|
||||
|| die
|
||||
done
|
||||
sed \
|
||||
-e 's:libpkgconf[/]\?::' \
|
||||
-i buildfile build/bootstrap.build \
|
||||
|| die
|
||||
fi
|
||||
|
||||
cd "${S}" || die
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
pushd ${BS} || die
|
||||
emake -C build2 -f bootstrap.gmake \
|
||||
CXX=$(tc-getCXX) \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
popd || die
|
||||
|
||||
b configure \
|
||||
config.cxx="$(tc-getCXX)" \
|
||||
config.cxx.coptions="${CXXFLAGS}" \
|
||||
config.cxx.loptions="${LDFLAGS}" \
|
||||
config.c="$(tc-getCC)" \
|
||||
config.cc.coptions="${CFLAGS}" \
|
||||
config.cc.loptions="${LDFLAGS}" \
|
||||
config.bin.ar="$(tc-getAR)" \
|
||||
config.bin.ranlib="$(tc-getRANLIB)" \
|
||||
config.bin.lib=shared \
|
||||
config.install.root="${EPREFIX}"/usr \
|
||||
config.install.lib="${EPREFIX}"/usr/$(get_libdir) \
|
||||
config.install.doc="${EPREFIX}"/usr/share/doc/${PF}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
b update-for-install
|
||||
use test && b update-for-test
|
||||
}
|
||||
|
||||
src_test() {
|
||||
b test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
b install \
|
||||
config.install.chroot="${D}"
|
||||
}
|
@ -1,4 +1,6 @@
|
||||
DIST build2-toolchain-0.13.0.tar.xz 4218940 BLAKE2B ed27290df21e5db843325b3e42c43c6934ce8f2b9b157538b921f9cfe3a7dccc3b56e261053373553cbd7fbff39e912ffe2282f812d0e6f158749ed5748d5e33 SHA512 0485872acd40beb700739b2995f76efcc9811dd52a38ee049576e45fcb5a7d7ae9c718beca8aeab9ab3f1c5e0270d3946f2335f88ec19476577c195417c2dbd4
|
||||
DIST build2-toolchain-0.14.0.tar.xz 4687616 BLAKE2B 98b2ec93c18027cbb3294650b3ad5d3dc97c1f06a6580437eac2db0297d3517cf327179f3a7c6efc611bffed5d028a034382d408ca58a976311d50a26534323c SHA512 d238a4ddfce8506b51b3b775738e818e7e0b36961a09ae0912c0c8688057b8393afebd4c0a28c6e6827c2e72ad5b82bc5e1231f798a66c2bb86b2b1e4ece73ef
|
||||
DIST build2-toolchain-0.15.0.tar.xz 5122496 BLAKE2B 6170ccf7e251e189369873ae81a4c24fdfd7b3beb38728da0c40284a8e6329d1dd152e861bbb5d2dbc0b4931af6e72c191c52abe98111c5dbf7922df888b046e SHA512 3dba63813a227a1542bcec52406c98e6d61fb366f0fe2617fac130906d0811d00356330bcd03faabf83f30604044f92e40476669a4b04060f83ede7a4db88ecb
|
||||
DIST libodb-2.5.0-b.19.tar.gz 101239 BLAKE2B d6c32e4e5bbacafbecf9e992f91604dac4bb50359d41709b81116f09ce805cd2a3388cf14b47acc60d9b5a52867de0725c1dbbc7603dda8ffaf64589b3057ecb SHA512 0a3e70afd2c2ba573676e1a2630986215b4c8e57a004f7d2f2227f301b6c58f739397a0efc8877902baf88b93aff83c9b67c9f5b5e87cc570d64bb76b7b8f66b
|
||||
DIST libodb-2.5.0-b.21.tar.gz 101775 BLAKE2B 5417c5dd4540ab6014005803ec505e9dfc8f30125f573bac045306470eb8947fe800717fc02d8af138f7dd50bb82d19f01099f28421733809ccd1858bdc0f941 SHA512 68fa486b3a6f1254fb57e480bdf8e1d008fe38f29c47d5a4648ff44dc964dd7f3ee9d07510d742db15120f272aa6152bf08ca9d7689e4b34b0f5e5910ea71c0e
|
||||
DIST libodb-2.5.0-b.25.tar.gz 100681 BLAKE2B 8fbb1a4db2fc994ae490f7e72be2109e0973fb6f29a6435535446e8769d7e123e85b4e6a56566e96485c9b36116a0580f2b2d32b68116e39f1a63baa63618842 SHA512 f99eba87130f7c3ed0b707e1f4efdb839c97c221fee24056d955072767c36106297abe76e5f82054cf5bc3bf0fda631e7c92e4943645d6ff2be57831006505ef
|
||||
|
@ -0,0 +1,113 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_P="${PN}-$(ver_cut 1-3)-b.$(ver_cut 5)"
|
||||
|
||||
# Compare BUILD2_PV with the version in the tarball in the 'manifest' file.
|
||||
# e.g. from 2.5.0_beta25's manifest:
|
||||
# +depends: * build2 >= 0.15.0
|
||||
# +depends: * bpkg >= 0.15.0
|
||||
BUILD2_PN=build2-toolchain
|
||||
BUILD2_PV="0.15.0"
|
||||
BUILD2_P="${BUILD2_PN}-${BUILD2_PV}"
|
||||
|
||||
inherit toolchain-funcs multiprocessing
|
||||
|
||||
DESCRIPTION="Common ODB runtime library"
|
||||
HOMEPAGE="https://codesynthesis.com/products/odb/"
|
||||
SRC_URI="
|
||||
https://pkg.cppget.org/1/beta/odb/${MY_P}.tar.gz
|
||||
https://download.build2.org/${BUILD2_PV}/${BUILD2_P}.tar.xz
|
||||
"
|
||||
BS="${WORKDIR}/${BUILD2_P}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="|| ( Code-Synthesis-ODB GPL-2 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
RDEPEND="!<dev-util/build2-${BUILD2_PV}"
|
||||
|
||||
b() {
|
||||
local myargs=(
|
||||
--jobs $(makeopts_jobs)
|
||||
--verbose 3
|
||||
)
|
||||
export LD_LIBRARY_PATH="${BS}/libbutl/libbutl:${BS}/build2/libbuild2:${BS}/build2/libbuild2/bash:${BS}/build2/libbuild2/in:${BS}/build2/libbuild2/bin:${BS}/build2/libbuild2/c:${BS}/build2/libbuild2/cc:${BS}/build2/libbuild2/cxx:${BS}/build2/libbuild2/version:${BS}/libpkgconf/libpkgconf:${LD_LIBRARY_PATH}"
|
||||
set -- "${BS}"/build2/build2/b-boot "${@}" "${myargs[@]}"
|
||||
echo "${@}"
|
||||
"${@}" || die "${@} failed"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
pushd "${BS}" || die
|
||||
eapply "${FILESDIR}"/build2-0.13.0_alpha0_pre20200710-nousrlocal.patch
|
||||
printf 'cxx.libs += %s\ncxx.poptions += %s\n' \
|
||||
"-L${EPREFIX}/usr/$(get_libdir) $($(tc-getPKG_CONFIG) sqlite3 --libs)" \
|
||||
"$($(tc-getPKG_CONFIG) sqlite3 --cflags)" >> \
|
||||
libodb-sqlite/buildfile \
|
||||
|| die
|
||||
sed \
|
||||
-e 's:libsqlite3[/]\?::' \
|
||||
-i buildfile build/bootstrap.build \
|
||||
|| die
|
||||
|
||||
if has_version dev-util/pkgconf; then
|
||||
for i in build2/build2/buildfile build2/libbuild2/buildfile; do
|
||||
printf 'cxx.libs += %s\ncxx.poptions += %s\n' \
|
||||
"$($(tc-getPKG_CONFIG) libpkgconf --libs)" \
|
||||
"$($(tc-getPKG_CONFIG) libpkgconf --cflags)" >> \
|
||||
"${i}" \
|
||||
|| die
|
||||
done
|
||||
sed \
|
||||
-e 's:libpkgconf[/]\?::' \
|
||||
-i buildfile build/bootstrap.build \
|
||||
|| die
|
||||
fi
|
||||
popd || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
pushd "${BS}" || die
|
||||
emake -C build2 -f bootstrap.gmake \
|
||||
CXX=$(tc-getCXX) \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
popd || die
|
||||
|
||||
b configure \
|
||||
config.cxx="$(tc-getCXX)" \
|
||||
config.cxx.coptions="${CXXFLAGS}" \
|
||||
config.cxx.loptions="${LDFLAGS}" \
|
||||
config.c="$(tc-getCC)" \
|
||||
config.cc.coptions="${CFLAGS}" \
|
||||
config.cc.loptions="${LDFLAGS}" \
|
||||
config.bin.ar="$(tc-getAR)" \
|
||||
config.bin.ranlib="$(tc-getRANLIB)" \
|
||||
config.bin.lib=shared \
|
||||
config.install.root="${EPREFIX}"/usr \
|
||||
config.install.lib="${EPREFIX}"/usr/$(get_libdir) \
|
||||
config.install.doc="${EPREFIX}"/usr/share/doc/${PF}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
b update-for-install
|
||||
use test && b update-for-test
|
||||
}
|
||||
|
||||
src_test() {
|
||||
b test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
b install \
|
||||
config.install.chroot="${D}"
|
||||
}
|
Binary file not shown.
@ -0,0 +1,53 @@
|
||||
Bug: https://bugs.gentoo.org/894750
|
||||
https://sourceforge.net/p/libdbi-drivers/bugs/28/
|
||||
|
||||
Fix type errors in the cgreen with constraints facility.
|
||||
|
||||
diff --git a/tests/cgreen/src/constraint.c b/tests/cgreen/src/constraint.c
|
||||
index c19c0ddd41a7bfa7..95673dd3e222a3cf 100644
|
||||
--- a/tests/cgreen/src/constraint.c
|
||||
+++ b/tests/cgreen/src/constraint.c
|
||||
@@ -22,8 +22,7 @@ static double unbox_double(intptr_t box);
|
||||
static double as_double(intptr_t box);
|
||||
|
||||
static int compare_using_matcher(Constraint *constraint, intptr_t actual);
|
||||
-static void test_with_matcher(Constraint *constraint, const char *function, const char* matcher_name, intptr_t actual, const char *test_file, int test_line, TestReporter *reporter);
|
||||
-
|
||||
+static void test_with_matcher(Constraint *constraint, const char *function, intptr_t matcher_function, const char *test_file, int test_line, TestReporter *reporter);
|
||||
|
||||
void destroy_constraint(void *abstract) {
|
||||
Constraint *constraint = (Constraint *)abstract;
|
||||
@@ -164,11 +163,11 @@ static void test_want_double(Constraint *constraint, const char *function, intpt
|
||||
}
|
||||
|
||||
static int compare_using_matcher(Constraint *constraint, intptr_t actual) {
|
||||
- int (*matches)(const void*) = constraint->expected;
|
||||
- return matches(actual);
|
||||
+ int (*matches)(const void*) = (int (*)(const void*)) constraint->expected;
|
||||
+ return matches((const void *)actual);
|
||||
}
|
||||
|
||||
-static void test_with_matcher(Constraint *constraint, const char *function, const char* matcher_name, intptr_t matcher_function, const char *test_file, int test_line, TestReporter *reporter) {
|
||||
+static void test_with_matcher(Constraint *constraint, const char *function, intptr_t matcher_function, const char *test_file, int test_line, TestReporter *reporter) {
|
||||
(*reporter->assert_true)(
|
||||
reporter,
|
||||
test_file,
|
||||
@@ -176,7 +175,7 @@ static void test_with_matcher(Constraint *constraint, const char *function, cons
|
||||
(*constraint->compare)(constraint, matcher_function),
|
||||
"Wanted parameter [%s] to match [%s] in function [%s]",
|
||||
constraint->parameter,
|
||||
- matcher_name,
|
||||
+ constraint->name,
|
||||
function);
|
||||
}
|
||||
|
||||
--- a/tests/cgreen/src/unit.c
|
||||
+++ b/tests/cgreen/src/unit.c
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
+#include <sys/wait.h>
|
||||
|
||||
enum {test_function, test_suite};
|
||||
|
@ -0,0 +1,87 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="The libdbi-drivers project maintains drivers for libdbi"
|
||||
HOMEPAGE="https://libdbi-drivers.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${P}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="doc firebird mysql oci8 postgres +sqlite static-libs"
|
||||
|
||||
REQUIRED_USE="|| ( mysql postgres sqlite firebird oci8 )"
|
||||
RESTRICT="firebird? ( bindist )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-db/libdbi-0.9.0
|
||||
firebird? ( dev-db/firebird )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
postgres? ( dev-db/postgresql:* )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="doc? ( app-text/openjade )"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README README.osx TODO )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.9.0-doc-build-fix.patch
|
||||
"${FILESDIR}"/${PN}-0.9.0-slibtool-libdir.patch
|
||||
"${FILESDIR}"/${PN}-0.9.0-clang16-build-fix.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
use oci8 && [[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
# WARNING: the configure script does NOT work correctly
|
||||
# --without-$driver does NOT work
|
||||
# so do NOT use `use_with...`
|
||||
# Future additions:
|
||||
# msql
|
||||
# freetds
|
||||
# ingres
|
||||
# db2
|
||||
use mysql && myconf+=" --with-mysql"
|
||||
use postgres && myconf+=" --with-pgsql"
|
||||
use sqlite && myconf+=" --with-sqlite3"
|
||||
use firebird && myconf+=" --with-firebird"
|
||||
if use oci8; then
|
||||
[[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!"
|
||||
myconf+=" --with-oracle-dir=${ORACLE_HOME} --with-oracle"
|
||||
fi
|
||||
|
||||
econf \
|
||||
$(use_enable doc docs) \
|
||||
$(use_enable static-libs static) \
|
||||
--with-dbi-libdir=/usr/$(get_libdir) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if [[ -z "${WANT_INTERACTIVE_TESTS}" ]]; then
|
||||
ewarn "Tests disabled due to interactivity."
|
||||
ewarn "Run with WANT_INTERACTIVE_TESTS=1 if you want them."
|
||||
return 0
|
||||
fi
|
||||
einfo "Running interactive tests"
|
||||
emake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -type f -delete || die
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
DIST auto-service-1.1.1.tar.gz 422101 BLAKE2B 9050607917f6637e77d234074787662b32f0e245a8e61b233cb664834e50ad41523bf89869e7e7b44a9e77db22c99481dce6b7c8051934b4e159fab37f060b36 SHA512 4e18c422103d6857724d5fcb28fc2f12cdaeacd7a47ebdc1982e9cd2e9d83a90e571c5e14332e3fcaac3a9e1ecf947f0e9e89a87c0c3bb1dc2e401b1a76ca044
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
MAVEN_ID="com.google.auto.service:auto-service-annotations:${PV}"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Provider-configuration files for ServiceLoader"
|
||||
HOMEPAGE="https://github.com/google/auto/"
|
||||
SRC_URI="https://github.com/google/auto/archive/auto-service-${PV}.tar.gz"
|
||||
S="${WORKDIR}/auto-auto-service-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.8:*"
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
|
||||
JAVA_AUTOMATIC_MODULE_NAME="com.google.auto.service"
|
||||
JAVA_SRC_DIR="service/annotations/src/main/java"
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">google/auto</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST icu-73.2.tar.gz 81522943 BLAKE2B 006d7ccab04385f0aa60e2e60b616be9598f448f27d9b0f6dba554874bfe1dd442ba0719a7677ba8aba7e4e0f05e5e50dca74855a900da1f496aad0cd54c3cdc SHA512 f234fb9c76af62dad59e159ef7f7792aca563d88f2988d3d1ecc8be6250837beb9a530ec121e0949f6925ee8e5171a0d04fa41a0c50d9993c4061fa55be6836e
|
||||
DIST icu-74.1.tar.gz 65889935 BLAKE2B e9dc354a795b69cf22152db437027f099e65b02f352e3ec9f0203b465b4f01a7844229ed5a7954e9b7f7f55f0d2d93a8e1f984c70de47555c230ec8b42cb7949 SHA512 eec8858cb37200fffce9bc60a8bd0c56d7024d9e2574d030c7e726aa4b2a105b1362548c0be163c720048bd7a7bfe9374b3c5954ba14e2e34beab346a8af8df4
|
||||
DIST icu-74.2.tar.gz 65888936 BLAKE2B 81d5acddbfc58a859906cb61660b6f230b88f4a1b1cfd56838843e9445b5858d3dd4888707026340581322143f6a4b7b81f53b6431fd5d4cc3fb90531c4d82fb SHA512 728ae0f09ffc802d675bcf5b849e3081472de8417736bf8b7df0f4db9d1fb8073779be76536764c9111f7cb0e5ab2d2af6c644cc24be432b9eeae9063802ad6c
|
||||
|
@ -0,0 +1,193 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_PROVIDES="
|
||||
com.ibm.icu:icu4j:${PV}
|
||||
com.ibm.icu:icu4j-charset:${PV}
|
||||
com.ibm.icu:icu4j-localespi:${PV}
|
||||
"
|
||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="A set of Java libraries providing Unicode and Globalization support"
|
||||
HOMEPAGE="https://icu.unicode.org"
|
||||
SRC_URI="https://github.com/unicode-org/icu/archive/release-${PV/./-}.tar.gz -> icu-${PV}.tar.gz"
|
||||
S="${WORKDIR}/icu-release-${PV/./-}/icu4j/main"
|
||||
|
||||
LICENSE="icu"
|
||||
SLOT="70"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
|
||||
DEPEND="
|
||||
>=virtual/jdk-1.8:*
|
||||
test? ( dev-java/junitparams:0 )
|
||||
"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
|
||||
DOCS=( ../../{CONTRIBUTING,README,SECURITY}.md )
|
||||
HTML_DOCS=( ../{APIChangeReport,readme}.html )
|
||||
|
||||
src_compile() {
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA="icu4j.jar:icu4j-charset.jar:icu4j-localespi.jar"
|
||||
|
||||
einfo "Compiling icu4j.jar"
|
||||
JAVA_AUTOMATIC_MODULE_NAME="com.ibm.icu"
|
||||
JAVA_JAR_FILENAME="icu4j.jar"
|
||||
JAVA_MAIN_CLASS="com.ibm.icu.util.VersionInfo"
|
||||
JAVA_RESOURCE_DIRS=(
|
||||
collate/src/main/resources
|
||||
core/src/main/resources
|
||||
currdata/src/main/resources
|
||||
langdata/src/main/resources
|
||||
regiondata/src/main/resources
|
||||
translit/src/main/resources
|
||||
)
|
||||
JAVA_SRC_DIR=(
|
||||
collate/src/main/java
|
||||
core/src/main/java
|
||||
currdata/src/main/java
|
||||
langdata/src/main/java
|
||||
regiondata/src/main/java
|
||||
translit/src/main/java
|
||||
)
|
||||
java-pkg-simple_src_compile
|
||||
rm -r target || die
|
||||
|
||||
einfo "Compiling icu4j-charset.jar"
|
||||
JAVA_AUTOMATIC_MODULE_NAME="com.ibm.icu.charset"
|
||||
JAVA_JAR_FILENAME="icu4j-charset.jar"
|
||||
JAVA_MAIN_CLASS=""
|
||||
JAVA_RESOURCE_DIRS=( charset/src/main/resources )
|
||||
JAVA_SRC_DIR=( charset/src/main/java )
|
||||
java-pkg-simple_src_compile
|
||||
rm -r target || die
|
||||
|
||||
einfo "Compiling icu4j-localespi.jar"
|
||||
JAVA_AUTOMATIC_MODULE_NAME="com.ibm.icu.localespi"
|
||||
JAVA_JAR_FILENAME="icu4j-localespi.jar"
|
||||
JAVA_RESOURCE_DIRS=( localespi/src/main/resources )
|
||||
JAVA_SRC_DIR=( localespi/src/main/java )
|
||||
java-pkg-simple_src_compile
|
||||
rm -r target || die
|
||||
|
||||
# javadocs
|
||||
if use doc; then
|
||||
einfo "Compiling javadocs"
|
||||
JAVA_JAR_FILENAME="ignoreme.jar"
|
||||
JAVA_SRC_DIR=(
|
||||
collate/src/main/java
|
||||
core/src/main/java
|
||||
currdata/src/main/java
|
||||
langdata/src/main/java
|
||||
regiondata/src/main/java
|
||||
translit/src/main/java
|
||||
charset/src/main/java
|
||||
localespi/src/main/java
|
||||
)
|
||||
java-pkg-simple_src_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_test () {
|
||||
# TZ needed for some tests in com/ibm/icu/dev/test/format/DateFormatTest
|
||||
export LC_ALL="en_US.UTF-8" TZ="US/Pacific"
|
||||
|
||||
JAVA_TEST_EXTRA_ARGS="-Djava.locale.providers=CLDR,COMPAT,SPI"
|
||||
JAVA_TEST_GENTOO_CLASSPATH="junit-4,junitparams"
|
||||
|
||||
einfo "Compiling framework-tests.jar"
|
||||
JAVA_AUTOMATIC_MODULE_NAME="com.ibm.icu.framework"
|
||||
JAVA_JAR_FILENAME="framework-tests.jar"
|
||||
JAVA_MAIN_CLASS="com.ibm.icu.dev.test.TestAll"
|
||||
JAVA_RESOURCE_DIRS=( framework/src/test/resources )
|
||||
JAVA_SRC_DIR=( framework/src/test/java )
|
||||
java-pkg-simple_src_compile
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA+=":framework-tests.jar"
|
||||
|
||||
einfo "Testing core aka icu4j.jar"
|
||||
JAVA_TEST_RESOURCE_DIRS="core/src/test/resources"
|
||||
JAVA_TEST_SRC_DIR="core/src/test/java"
|
||||
pushd "${JAVA_TEST_SRC_DIR}" || die
|
||||
# exclude invalid tests, not run by "mvn test"
|
||||
local JAVA_TEST_RUN_ONLY=$(find * \
|
||||
-name "*Test*.java" \
|
||||
! -name "ChineseTestCase.java" \
|
||||
! -name "DataDrivenNumberFormatTestUtility.java" \
|
||||
! -name "*Helper.java" \
|
||||
! -name "ModuleTest.java" \
|
||||
! -name "*Sample.java" \
|
||||
! -name "TestCase.java" \
|
||||
! -name "*TestData*.java" \
|
||||
! -name "*TestFmwk.java" \
|
||||
! -name "TestMessages.java" \
|
||||
! -name "TestUtils.java" \
|
||||
)
|
||||
popd
|
||||
JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}"
|
||||
JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}"
|
||||
java-pkg-simple_src_test
|
||||
|
||||
einfo "Creating core-tests.jar"
|
||||
jar cvf core-tests.jar -C target/test-classes .
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA+=":core-tests.jar"
|
||||
JAVA_TEST_RUN_ONLY=""
|
||||
|
||||
einfo "Testing collate"
|
||||
JAVA_TEST_RESOURCE_DIRS="collate/src/test/resources"
|
||||
JAVA_TEST_SRC_DIR="collate/src/test/java"
|
||||
java-pkg-simple_src_test
|
||||
|
||||
einfo "Testing translit"
|
||||
JAVA_TEST_EXCLUDES=(
|
||||
# Invalid test classes, No runnable methods
|
||||
com.ibm.icu.dev.test.TestBoilerplate
|
||||
com.ibm.icu.dev.test.translit.TestUtility
|
||||
)
|
||||
JAVA_TEST_RESOURCE_DIRS="translit/src/test/resources"
|
||||
JAVA_TEST_SRC_DIR="translit/src/test/java"
|
||||
java-pkg-simple_src_test
|
||||
|
||||
einfo "Testing charset"
|
||||
JAVA_TEST_RESOURCE_DIRS=""
|
||||
JAVA_TEST_SRC_DIR="charset/src/test/java"
|
||||
java-pkg-simple_src_test
|
||||
|
||||
einfo "Testing common_tests"
|
||||
# "mvn test" runs only 90 tests here, Gentoo runs 99 but 9 of them fail.
|
||||
# coverage tests fail because test handlers for the parametrized tests
|
||||
# are not defined so the tests are broken and cannot succeed
|
||||
JAVA_TEST_EXCLUDES=( com.ibm.icu.dev.test.serializable.CoverageTest )
|
||||
JAVA_TEST_RESOURCE_DIRS=""
|
||||
JAVA_TEST_SRC_DIR="common_tests/src/test/java"
|
||||
java-pkg-simple_src_test
|
||||
|
||||
einfo "Testing localespi"
|
||||
JAVA_TEST_RESOURCE_DIRS=""
|
||||
JAVA_TEST_SRC_DIR="localespi/src/test/java"
|
||||
# Invalid test classes, No runnable methods
|
||||
JAVA_TEST_EXCLUDES=( com.ibm.icu.dev.test.localespi.TestUtil )
|
||||
# https://bugs.gentoo.org/827212, "mvn test" does not run it at all
|
||||
local vm_version="$(java-config -g PROVIDES_VERSION)"
|
||||
if [[ "${vm_version}" != "1.8" ]] ; then
|
||||
java-pkg-simple_src_test
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
java-pkg_dojar "icu4j.jar"
|
||||
java-pkg_dojar "icu4j-charset.jar"
|
||||
java-pkg_dojar "icu4j-localespi.jar"
|
||||
|
||||
if use doc; then
|
||||
java-pkg_dojavadoc target/api
|
||||
fi
|
||||
if use source; then
|
||||
java-pkg_dosrc "classes"
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST jmh-1.37.tar.gz 658673 BLAKE2B 696997907f3505f84ed400d75f46625b9f2aa9faf8a6d4250e6380db9088a8d6a61792eed8163703cb0003dba6ee5a2061d08a1b09bed5c058612142cd594469 SHA512 a3aac7d2e774dd7e7457cc1dce9edbe5923fcdae266854d709b926580638a28057bd6b32b8d7dedc4707ab2ae9aa7d5cda04eb72b0116f1cb98480a8b8b02707
|
||||
DIST jmh-core-1.35.tar.gz 645087 BLAKE2B ce33167a58c2eaf64c38148f27493c86ac9c0084cb58a438b49148b41d3e2db66d8a78e0be8a78db39aebf06fc0b5767be61100b22ce77e018ac8ca29c05c17f SHA512 53ce7300f5e10f1efcb639f0d4d01adad48cadc8daea2e00db34113e42b192e49a6a04cc2b5fd4d291ac81a73a5b30613d22390722d35f54139f14ebbb01013c
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_ID="org.openjdk.jmh:jmh-core:${PV}"
|
||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Harness for building, running, and analysing nano/micro/milli/macro benchmarks"
|
||||
HOMEPAGE="https://openjdk.org/projects/code-tools/jmh/"
|
||||
SRC_URI="https://github.com/openjdk/jmh/archive/${PV}.tar.gz -> jmh-${PV}.tar.gz"
|
||||
S="${WORKDIR}/jmh-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
|
||||
CP_DEPEND="
|
||||
dev-java/commons-math:3
|
||||
dev-java/jopt-simple:0"
|
||||
|
||||
DEPEND="${CP_DEPEND}
|
||||
>=virtual/jdk-1.8:*"
|
||||
|
||||
RDEPEND="${CP_DEPEND}
|
||||
>=virtual/jre-1.8:*"
|
||||
|
||||
JAVA_RESOURCE_DIRS="jmh-core/src/main/resources"
|
||||
JAVA_SRC_DIR="jmh-core/src/main/java"
|
||||
|
||||
JAVA_TEST_GENTOO_CLASSPATH="junit-4"
|
||||
JAVA_TEST_RESOURCE_DIRS="jmh-core/src/test/resources"
|
||||
JAVA_TEST_SRC_DIR="jmh-core/src/test/java"
|
@ -0,0 +1 @@
|
||||
DIST jmh-1.37.tar.gz 658673 BLAKE2B 696997907f3505f84ed400d75f46625b9f2aa9faf8a6d4250e6380db9088a8d6a61792eed8163703cb0003dba6ee5a2061d08a1b09bed5c058612142cd594469 SHA512 a3aac7d2e774dd7e7457cc1dce9edbe5923fcdae266854d709b926580638a28057bd6b32b8d7dedc4707ab2ae9aa7d5cda04eb72b0116f1cb98480a8b8b02707
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
MAVEN_ID="org.openjdk.jmh:jmh-generator-annprocess:${PV}"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
DESCRIPTION="Harness for building, running, and analysing nano/micro/milli/macro benchmarks"
|
||||
HOMEPAGE="https://openjdk.org/projects/code-tools/jmh/"
|
||||
SRC_URI="https://github.com/openjdk/jmh/archive/${PV}.tar.gz -> jmh-${PV}.tar.gz"
|
||||
S="${WORKDIR}/jmh-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
|
||||
DEPEND="
|
||||
dev-java/jmh-core:0
|
||||
>=virtual/jdk-1.8:*
|
||||
"
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
|
||||
JAVA_CLASSPATH_EXTRA="jmh-core"
|
||||
JAVA_RESOURCE_DIRS="jmh-generator-annprocess/src/main/resources"
|
||||
JAVA_SRC_DIR="jmh-generator-annprocess/src/main/java"
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
<name>Java</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">openjdk/jmh</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +1,2 @@
|
||||
DIST jna-5.13.0.tar.gz 116027625 BLAKE2B 1f2bc7ab28adefa0bbad122957ed2c6ef55ab88e79b30c05f0d2d88e0e05152f7bb5e28097906a7e24f78304dfa2b225587adb0ada205ca3c2ceac1cdbab3f04 SHA512 aefd0becc03bb7fd753e8c5cdcbcb20f6d590125a5fb03048bef0024e826ab0254b750e22a8bb26bea38cc89262ad45e5030b666cb2c857b01b15a6a55379a0f
|
||||
DIST jna-5.14.0.tar.gz 116167104 BLAKE2B 3ccb9e53e843690f9c90272c2e94fb2d903dd9bbcb7b6294a6ed3d973d3945c2b3fe5ac5e4c472830a7d07f4f32d84e781bb2ae3bd73cdd1894392331554e2cd SHA512 5758898052b3b099cd8b40046f764813377970a428e66370ba2a7125403661e25379d55fdb0ff75de32d66cbff20f0a05f438b2ca18804cc53f2edf4b1927ff0
|
||||
|
@ -0,0 +1,197 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
MAVEN_PROVIDES="
|
||||
net.java.dev.jna:jna:${PV}
|
||||
net.java.dev.jna:jna-platform:${PV}
|
||||
"
|
||||
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple toolchain-funcs
|
||||
|
||||
DESCRIPTION="Java Native Access"
|
||||
HOMEPAGE="https://github.com/java-native-access/jna"
|
||||
SRC_URI="https://github.com/java-native-access/jna/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 LGPL-2.1+ )"
|
||||
SLOT="4"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
CDEPEND="
|
||||
>=dev-libs/libffi-3.4:=
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
>=virtual/jdk-1.8:*
|
||||
test? (
|
||||
dev-java/reflections:0
|
||||
)
|
||||
${CDEPEND}
|
||||
x11-libs/libXt
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=virtual/jre-1.8:*
|
||||
${CDEPEND}
|
||||
"
|
||||
|
||||
DOCS=( README.md CHANGES.md OTHERS TODO )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/5.11.0-makefile-flags.patch"
|
||||
"${FILESDIR}/jna-5.11.0-no-Werror.patch"
|
||||
"${FILESDIR}/jna-5.13.0-testpath.patch"
|
||||
"${FILESDIR}/jna-5.13.0-LibCTest.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
java-pkg-2_src_prepare
|
||||
java-pkg_clean
|
||||
mkdir -p "res/META-INF" || die
|
||||
echo "Main-Class: com.sun.jna.Native" > "res/META-INF/MANIFEST.MF" || die
|
||||
|
||||
# https://github.com/java-native-access/jna/blob/5.13.0/build.xml#L402-L407
|
||||
sed \
|
||||
-e "/VERSION =/s:TEMPLATE:${PV}:" \
|
||||
-e '/VERSION_NATIVE =/s:TEMPLATE:5.1.0:' \
|
||||
-i src/com/sun/jna/Version.java || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "Compiling jna.jar"
|
||||
JAVA_AUTOMATIC_MODULE_NAME="com.sun.jna"
|
||||
JAVA_JAR_FILENAME="jna.jar"
|
||||
JAVA_RESOURCE_DIRS="res"
|
||||
JAVA_SRC_DIR="src"
|
||||
java-pkg-simple_src_compile
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA+=":jna.jar"
|
||||
rm -r target || die
|
||||
|
||||
einfo "Compiling jna-platform.jar"
|
||||
JAVA_AUTOMATIC_MODULE_NAME="com.sun.jna.platform"
|
||||
JAVA_JAR_FILENAME="jna-platform.jar"
|
||||
JAVA_RESOURCE_DIRS=""
|
||||
JAVA_SRC_DIR="contrib/platform/src"
|
||||
java-pkg-simple_src_compile
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA+=":jna-platform.jar"
|
||||
rm -r target || die
|
||||
|
||||
if use doc; then
|
||||
einfo "Compiling javadocs"
|
||||
JAVA_SRC_DIR=(
|
||||
"src"
|
||||
"contrib/platform/src"
|
||||
)
|
||||
JAVA_JAR_FILENAME="ignoreme.jar"
|
||||
java-pkg-simple_src_compile
|
||||
fi
|
||||
|
||||
einfo "Generating headers com_sun_jna_Native.h com_sun_jna_Function.h"
|
||||
ejavac -h native -classpath "src" \
|
||||
"src/com/sun/jna/Function.java" \
|
||||
"src/com/sun/jna/Native.java" || die
|
||||
|
||||
einfo "Building native library"
|
||||
cd native || die
|
||||
local args=(
|
||||
CC="$(tc-getCC)"
|
||||
STRIP=true
|
||||
DYNAMIC_LIBFFI=true
|
||||
)
|
||||
# Using -j1 since otherwise fails to build:
|
||||
# cannot find ../build/native/libtestlib.so: No such file or directory
|
||||
# [Makefile:505: ../build/native/libtestlib2.so] Error 1
|
||||
emake -j1 "${args[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
JAVA_TEST_EXTRA_ARGS=(
|
||||
-Djna.nosys=true
|
||||
-Djna.boot.library.path=build/native
|
||||
-Djna.library.path=build/native
|
||||
)
|
||||
JAVA_TEST_GENTOO_CLASSPATH="
|
||||
junit-4
|
||||
reflections
|
||||
"
|
||||
|
||||
JAVA_TEST_SRC_DIR="contrib/platform/test"
|
||||
rm -r contrib/platform/test/com/sun/jna/platform/{mac,unix,win32} || die
|
||||
JAVA_TEST_EXCLUDES=(
|
||||
# 1) testGetXAttr(com.sun.jna.platform.linux.XAttrUtilTest)
|
||||
# java.io.IOException: errno: 95
|
||||
# at com.sun.jna.platform.linux.XAttrUtil.setXAttr(XAttrUtil.java:85)
|
||||
# at com.sun.jna.platform.linux.XAttrUtil.setXAttr(XAttrUtil.java:70)
|
||||
# at com.sun.jna.platform.linux.XAttrUtil.setXAttr(XAttrUtil.java:56)
|
||||
# at com.sun.jna.platform.linux.XAttrUtilTest.testGetXAttr(XAttrUtilTest.java:83)
|
||||
# 2) setXAttr(com.sun.jna.platform.linux.XAttrUtilTest)
|
||||
# java.io.IOException: errno: 95
|
||||
# at com.sun.jna.platform.linux.XAttrUtil.setXAttr(XAttrUtil.java:85)
|
||||
# at com.sun.jna.platform.linux.XAttrUtil.setXAttr(XAttrUtil.java:70)
|
||||
# at com.sun.jna.platform.linux.XAttrUtil.setXAttr(XAttrUtil.java:56)
|
||||
# at com.sun.jna.platform.linux.XAttrUtilTest.setXAttr(XAttrUtilTest.java:53)
|
||||
com.sun.jna.platform.linux.XAttrUtilTest
|
||||
)
|
||||
java-pkg-simple_src_test
|
||||
|
||||
JAVA_TEST_SRC_DIR="test"
|
||||
rm -r test/com/sun/jna/wince || die
|
||||
rm -r test/com/sun/jna/win32 || die
|
||||
|
||||
# 1) testLoadFromJarAbsolute(com.sun.jna.LibraryLoadTest)
|
||||
# java.lang.UnsatisfiedLinkError: Unable to load library '/libtestlib-jar.so':
|
||||
# /libtestlib-jar.so: cannot open shared object file: No such file or directory
|
||||
jar cvf build/jna-test.jar \
|
||||
-C build/native libtestlib-jar.so \
|
||||
-C test com/sun/jna/data || die
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA+=":build/jna-test.jar"
|
||||
|
||||
JAVA_TEST_EXCLUDES=(
|
||||
com.sun.jna.CallbacksTest # Needs to run separately
|
||||
com.sun.jna.DirectTest # Needs to run separately
|
||||
com.sun.jna.NativeTest # Needs to run separately
|
||||
com.sun.jna.TypeMapperTest # Needs to run separately
|
||||
com.sun.jna.UnionTest # Needs to run separately
|
||||
com.sun.jna.VMCrashProtectionTest # Needs to run separately
|
||||
)
|
||||
java-pkg-simple_src_test
|
||||
|
||||
JAVA_TEST_RUN_ONLY=(
|
||||
com.sun.jna.CallbacksTest
|
||||
com.sun.jna.DirectTest
|
||||
com.sun.jna.UnionTest
|
||||
)
|
||||
java-pkg-simple_src_test
|
||||
|
||||
JAVA_TEST_RUN_ONLY=( com.sun.jna.NativeTest )
|
||||
java-pkg-simple_src_test
|
||||
|
||||
JAVA_TEST_RUN_ONLY=( com.sun.jna.VMCrashProtectionTest )
|
||||
java-pkg-simple_src_test
|
||||
|
||||
JAVA_TEST_RUN_ONLY=( com.sun.jna.TypeMapperTest )
|
||||
java-pkg-simple_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
java-pkg_dojar jna.jar jna-platform.jar
|
||||
java-pkg_doso build/native/libjnidispatch.so
|
||||
|
||||
if use doc; then
|
||||
java-pkg_dojavadoc target/api
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
java-pkg_dosrc "src/*"
|
||||
java-pkg_dosrc "contrib/platform/src/*"
|
||||
fi
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST kopeninghours-23.04.3.tar.xz 71808 BLAKE2B 734d938145fd386b6314f0e861a1b148e4a5dfac83f8b0263f8840e07f629c528f4945be16e3c6d8240b72b2be442a28071dc86982ee42b6faa60780ae15c0ee SHA512 6faddbf3da09fb4d3616abbc230c269f0ccb827f081ca3b2bf40874d7878efe69ea197ccf54f1b4db0e997eee11cca41891d64196b77062763d62e286ce4aa4c
|
||||
DIST kopeninghours-23.08.3.tar.xz 71932 BLAKE2B 368f75ef0884a909b916497d9e5578a19288cebb1d12bf073938633a37a53a00c7f34256ee03a8ca2bd73759f72a16aa1b677c8a75305865446c2e5d935026a1 SHA512 e62794d4405321ef7c81b3981e2610e3a5f91a0a65a1899fd1e24681f4bb6296e8ad26532bb039e0fa3f47a0c33269a8c46c87658e407c87b77619ea0a09f155
|
||||
DIST kopeninghours-23.08.4.tar.xz 72316 BLAKE2B 041df496387bf6e128419decc6529c380c4ddee8bc22f6f052c8e621aac644442f739ecc563ed4e18fadcb05ebbd275f58a13e8418ec6cb4f18b1e260c2bcfd7 SHA512 76b4b46fc9bc0541636bf53aefc85bd24ecdbd243baafafc13da847281293a780410e1000930d805b710b3828234ab35b91369c5b70f86e7bdc21dff7d8c70d7
|
||||
|
@ -1,64 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_QTHELP="true"
|
||||
ECM_TEST="true"
|
||||
PVCUT=$(ver_cut 1-3)
|
||||
KFMIN=5.106.0
|
||||
QTMIN=5.15.9
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
inherit ecm gear.kde.org python-single-r1
|
||||
|
||||
DESCRIPTION="Library for parsing and evaluating OSM opening hours expressions"
|
||||
HOMEPAGE="https://api.kde.org/kopeninghours/html/index.html
|
||||
https://invent.kde.org/libraries/kopeninghours"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="5"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="python"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/kpublictransport-${PVCUT}:5
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:5
|
||||
>=kde-frameworks/kholidays-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
sys-libs/zlib
|
||||
python? (
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-libs/boost-1.70:=[python,${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
${PYTHON_DEPS}
|
||||
>=dev-qt/qtquickcontrols2-${QTMIN}:5
|
||||
"
|
||||
BDEPEND="
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-22.04.0-boostpython.patch )
|
||||
|
||||
pkg_setup() {
|
||||
ecm_pkg_setup
|
||||
python_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBOOSTPYTHON_VERSION_MAJOR_MINOR=${EPYTHON}
|
||||
$(cmake_use_find_package python Boost)
|
||||
)
|
||||
ecm_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
ecm_src_install
|
||||
python_optimize
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST kosmindoormap-23.04.3.tar.xz 375680 BLAKE2B 306336b33c7b03e67531f11163c579dab5b68614f4fd582eb14858a7c80e601e848aaf933c846a144d07e59c215b59f3a0021429f675a76750903144e02829d1 SHA512 1ad5acc7143842005cc02c146e90090d57d8fbafbac6a4401ab94ec966c709f66f7f832169982a808ab21911b16e6f837137c2fd9cf284c540ce03e6647c3405
|
||||
DIST kosmindoormap-23.08.3.tar.xz 379980 BLAKE2B 5dae843d121543c5bd7fc3021f436b0d5ea4f7554c5f186479036af191946f57c67b95d41fef3b2ea74c71a315be159f49aab1f89afd03cd21bf326d605be1f6 SHA512 5a5d158eb6f231b6975ff24db73eaf4a1969606999fca7b3944a5bbb77393612bc2df3591b320ad8b9c42b0fca751b7f50e990636c22c3748141c20fcfb0c78e
|
||||
DIST kosmindoormap-23.08.4.tar.xz 380016 BLAKE2B d7e6d940ccdac8a17404dc40e5948fed1674d789ba2796e704c71d9b8cae4e79bcc385bd4a245a5b85301f51c37517bc19c17977556e6c4d83bc9f2cd03cc82d SHA512 ea27d24c1623c40b39a8681bc5b119187d463575b3e888aed0c0b2c0549b5997809ebc74e2e08427238586b9f2ee77350d34874862c6084c91245a6040dbfd2a
|
||||
|
@ -1,31 +0,0 @@
|
||||
From eac8c57528b5ef8e694df4072ed7a60be799c270 Mon Sep 17 00:00:00 2001
|
||||
From: Antonio Rojas <arojas@archlinux.org>
|
||||
Date: Wed, 5 Jul 2023 16:16:02 +0200
|
||||
Subject: [PATCH] Use protobuf's cmake config if available
|
||||
|
||||
---
|
||||
CMakeLists.txt | 8 +++++++-
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 466c9add..da9881cd 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -73,7 +73,13 @@ find_package(BISON REQUIRED)
|
||||
set_package_properties(BISON PROPERTIES PURPOSE "MapCSS parser for indoor map rendering.")
|
||||
|
||||
if (NOT WIN32)
|
||||
- find_package(Protobuf)
|
||||
+ # try upstream cmake config first
|
||||
+ set(protobuf_MODULE_COMPATIBLE ON)
|
||||
+ find_package(Protobuf CONFIG)
|
||||
+ if(NOT Protobuf_FOUND)
|
||||
+ # fall back to cmake's protobuf module
|
||||
+ find_package(Protobuf)
|
||||
+ endif()
|
||||
set_package_properties(Protobuf PROPERTIES TYPE OPTIONAL PURPOSE "Parsing of OSM PBF files.")
|
||||
endif()
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
@ -1,35 +0,0 @@
|
||||
From 6dfceab2bacef67ea27b4d1045100b6e0d2be430 Mon Sep 17 00:00:00 2001
|
||||
From: Antonio Rojas <arojas@archlinux.org>
|
||||
Date: Wed, 5 Jul 2023 14:00:29 +0200
|
||||
Subject: [PATCH] Use protobuf cmake targets instead of variables
|
||||
|
||||
Makes it compatible with protobuf's upstream cmake config, which is required for protobuf>=22 as the cmake provided module is broken with it.
|
||||
---
|
||||
src/osm/io/CMakeLists.txt | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/osm/io/CMakeLists.txt b/src/osm/io/CMakeLists.txt
|
||||
index bf1d02c9..ec95f7e5 100644
|
||||
--- a/src/osm/io/CMakeLists.txt
|
||||
+++ b/src/osm/io/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
# SPDX-FileCopyrightText: 2020-2022 Volker Krause <vkrause@kde.org>
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
-if (Protobuf_FOUND AND Protobuf_PROTOC_EXECUTABLE)
|
||||
+if (Protobuf_FOUND AND TARGET protobuf::protoc)
|
||||
PROTOBUF_GENERATE_CPP(pbf_srcs pbf_hdrs
|
||||
../pbf/fileformat.proto
|
||||
../pbf/osmformat.proto
|
||||
@@ -19,7 +19,7 @@ if (Protobuf_FOUND AND Protobuf_PROTOC_EXECUTABLE)
|
||||
set_target_properties(KOSM_pbfioplugin PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||
target_link_libraries(KOSM_pbfioplugin
|
||||
PUBLIC KOSM
|
||||
- PRIVATE ${Protobuf_LIBRARIES} ZLIB::ZLIB
|
||||
+ PRIVATE protobuf::libprotobuf ZLIB::ZLIB
|
||||
)
|
||||
endif()
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_TEST="true"
|
||||
PVCUT=$(ver_cut 1-3)
|
||||
KFMIN=5.106.0
|
||||
QTMIN=5.15.9
|
||||
inherit ecm gear.kde.org
|
||||
|
||||
DESCRIPTION="Data Model and Extraction System for Travel Reservation information"
|
||||
HOMEPAGE="https://invent.kde.org/libraries/kosmindoormap"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="5"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+openinghours"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-libs/kpublictransport-${PVCUT}:5
|
||||
dev-libs/protobuf:=
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtnetwork-${QTMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
sys-libs/zlib
|
||||
openinghours? ( >=dev-libs/kopeninghours-${PVCUT}:5 )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
test? ( >=dev-qt/qtwidgets-${QTMIN}:5 )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=dev-qt/qtquickcontrols2-${QTMIN}:5
|
||||
"
|
||||
BDEPEND="
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-protobuf-23-{1,2}.patch ) # bug 909081, in 23.08.0
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_OsmTools=ON # we have no use for it
|
||||
$(cmake_use_find_package openinghours KOpeningHours)
|
||||
)
|
||||
ecm_src_configure
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST kpublictransport-23.04.3.tar.xz 537716 BLAKE2B ee477dba15626a66cab15be59a1438c03d378df1e6686e5345211fa2139f0bec49ce3138f5e6cbdbd7ffb3ff6a58bd8ec1fcaa87c235af7aee7a23e926648953 SHA512 41597bf9e7c3366575a9a6698cace1f127f8c69094de906d0ab662cc563b0a440ae89c074909083d82c8d94e1cd5f2442470f45369663252b5cf6dd8f6ae7e47
|
||||
DIST kpublictransport-23.08.3.tar.xz 570316 BLAKE2B 9b98fdb1039273468becbe018a2904d12dcb7489e58b7354b25c79e72286917462ebff3807b14d2d5c71ee4ee2d48a223d19988329b66a23c63ef1d970321622 SHA512 278912f30881c46aa516e73f4be27e47a07fc97b6769ce120e9649c69e9cc68087bca58c1565bd66967559303caedd8c3d46b9ec4b26f481ecc12f1db58629a3
|
||||
DIST kpublictransport-23.08.4.tar.xz 571292 BLAKE2B 952829fc61b9b52938407e75b80396a3e3669b124883cb7c53b65dbbef69200ef2f5b39b2e4e03620e35dd235cd9ee22f588ecdf272bb9a84400265493515638 SHA512 bea032b8032cd99f8dddbbfb02cd52935062f204bde450b5da70d70dfdf3dab90acbf4148c45a3c9aed02e56e4ebce3811dcda8bd4bd92038896c2f9a8238869
|
||||
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_QTHELP="true"
|
||||
ECM_TEST="true"
|
||||
KFMIN=5.106.0
|
||||
QTMIN=5.15.9
|
||||
inherit ecm gear.kde.org
|
||||
|
||||
DESCRIPTION="Library for accessing public transport timetables and other information"
|
||||
HOMEPAGE="https://invent.kde.org/libraries/kpublictransport
|
||||
https://www.volkerkrause.eu/2019/03/02/kpublictransport-introduction.html"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="5"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="networkmanager"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/protobuf:=
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtnetwork-${QTMIN}:5[ssl]
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
sys-libs/zlib
|
||||
networkmanager? ( >=kde-frameworks/networkmanager-qt-${KFMIN}:5 )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( >=dev-qt/qtwidgets-${QTMIN}:5 )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_OsmTools=ON # we have no use for it
|
||||
$(cmake_use_find_package networkmanager KF5NetworkManagerQt)
|
||||
)
|
||||
ecm_src_configure
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue