app-emulation/nemu: Bump to nemu-2.6.0_p20210413

This bump contains some improvements like discarding/fstrim[1], qemu's internal
user mode networking[2] and better readable cursors[3].

[1] https://github.com/nemuTUI/nemu/issues/49
[2] https://github.com/nemuTUI/nemu/issues/50
[3] https://github.com/nemuTUI/nemu/issues/51

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Manifest-Sign-Key: 00EFD31F1B60D5DBADB831C1C0ECE6960E54475B
Signed-off-by: Nils Freydank <holgersson@posteo.de>
This commit is contained in:
Nils Freydank 2021-04-24 09:31:44 +02:00
parent 2d0b6c4b3f
commit 61b3c7b7e8
No known key found for this signature in database
GPG Key ID: BC5DC2998AAD2B21
2 changed files with 104 additions and 13 deletions

View File

@ -2,21 +2,22 @@
Hash: SHA256
DIST nemu-2.6.0.tar.gz 115360 BLAKE2B 618d303aabce0b66d7237ef26f725506a26452a6e507acc98f749998d429b39764ea1a60e86c2a8989a67ec777ea12506db7e9cfb4acf0ae52520fff8af6a636 SHA512 1cb8cb6c9f8770efa20d0eba58dc00f11233a0dd4148a3a9d20fa5cb588bbc9ae8091192841e363992580e483cc152f9a4ccc6a57b97d9103e66922e0e989745
DIST nemu-2.6.0_p20210413.tar.gz 122374 BLAKE2B 87e7b39f6c4a70719c58c5bfc1353adc74bcfe498b9a80a16ceb74268d58619d50643b672d8b907cd409a164770cf7b06f8a1f97b503adfeb8bd297ea188d04e SHA512 a33f9ef72d70ca3af13397c873ae60d2c40e74491d46988116809c3caec76413d4a310c9c1e98416c6a0f170c0760563b008b41f813b5861799c8379303ce4ad
-----BEGIN PGP SIGNATURE-----
iQKTBAEBCAB9FiEEcg3s4uUa4XE72XWQvF3CmYqtKyEFAmBXe8BfFIAAAAAALgAo
iQKTBAEBCAB9FiEEcg3s4uUa4XE72XWQvF3CmYqtKyEFAmCDWL9fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDcy
MERFQ0UyRTUxQUUxNzEz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h04E8VKN5RClv1S
TfpGmqz06ENIOB3kMoz8j9Ue5q6KAudwnk6aikF9T8+d5EWSLfJv9Xji0IJ86Mt2
HSp/AoDlnL2YUzEiiY7329fxiV1olcxxPIeDiCSzvKzy3dPPluwyHBIp/U1qKNJK
seJZqqvPAiqhWD5rtbNuHM1EbRRWn0mHiMHv5CDTUXqKXNs+OdEfIZ8ax+WpOaf+
cBAFaMJB/cF5tNsG8Jt0PRe7++y8PQhlq4q0+00Mbb1W7cZtOTW1dgoCul56IsFS
PotK3sCAcZU4+ffEH5c5ku3/Cme66HTO7XSpSihUKeNNYzmWzKz1o+aHnRHdgqhm
5UCY6Fg/KPiGzgziWKrpj01SEPchmqIqr+8szk0gMZw3gcGLhB8=
=qU2S
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,90 @@
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake linux-info
MY_PV="${PV/_rc/-RC}"
COMMIT_ID="88bae5482a9bf73126e9f638c84f2e6bbc4dfc59"
DESCRIPTION="ncurses interface for QEMU"
HOMEPAGE="https://github.com/nemuTUI/nemu"
if [[ ${PV} == *9999 ]]; then
EGIT_REPO_URI="https://github.com/nemuTUI/${PN}.git"
inherit git-r3
else
if [[ ${PV} == *_p* ]]; then
SRC_URI="https://github.com/nemuTUI/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT_ID}"
KEYWORDS="~amd64 ~x86"
else
SRC_URI="https://github.com/nemuTUI/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/$PN-${MY_PV}/"
fi
fi
LICENSE="BSD-2"
SLOT="0"
IUSE="dbus network-map +ovf +savevm spice +vnc-client"
RDEPEND="
app-emulation/qemu[vnc,virtfs,spice?]
dev-db/sqlite:3=
sys-libs/ncurses:0=[unicode]
virtual/libusb:1
virtual/libudev:=
dbus? ( sys-apps/dbus )
network-map? ( media-gfx/graphviz[svg] )
ovf? (
dev-libs/libxml2:2
app-arch/libarchive
)
spice? ( app-emulation/virt-viewer )
vnc-client? ( net-misc/tigervnc )
"
DEPEND="${RDEPEND}"
BDEPEND="sys-devel/gettext"
pkg_pretend() {
if use kernel_linux; then
if ! linux_config_exists; then
eerror "Unable to check your kernel"
else
CONFIG_CHECK="~VETH ~MACVTAP"
ERROR_VETH="You will need the Virtual ethernet pair device driver compiled"
ERROR_VETH+=" into your kernel or loaded as a module to use the"
ERROR_VETH+=" local network settings feature."
ERROR_MACVTAP="You will also need support for MAC-VLAN based tap driver."
check_extra_config
fi
fi
}
src_configure() {
# -DNM_USE_UTF: Enable unicode unconditionally. We already
# depended on ncurses[unicode].
# -DNM_WITH_QEMU: Do not embbed qemu.
local mycmakeargs=(
-DNM_SAVEVM_SNAPSHOTS=$(usex savevm)
-DNM_USE_UTF=on
-DNM_WITH_DBUS=$(usex dbus)
-DNM_WITH_NETWORK_MAP=$(usex network-map)
-DNM_WITH_OVF_SUPPORT=$(usex ovf)
-DNM_WITH_QEMU=off
-DNM_WITH_SPICE=$(usex spice)
-DNM_WITH_VNC_CLIENT=$(usex vnc-client)
)
cmake_src_configure
}
pkg_postinst() {
elog "For non-root usage execute script:"
elog "/usr/share/nemu/scripts/setup_nemu_nonroot.sh linux <username>"
elog "and add udev rule:"
elog "cp /usr/share/nemu/scripts/42-net-macvtap-perm.rules /etc/udev/rules.d"
elog "Afterwards reboot or reload udev with"
elog "udevadm control --reload-rules && udevadm trigger"
}