app-emulation/nemu: Bump to 3.0.0

Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Nils Freydank <holgersson@posteo.de>
This commit is contained in:
Nils Freydank 2021-08-31 13:42:06 +02:00
parent 027114de75
commit 76df217e83
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
3 changed files with 105 additions and 11 deletions

View File

@ -1 +1,2 @@
DIST nemu-2.6.0_p20210824.tar.gz 145793 BLAKE2B 6b4752cd8c5c7db83eff69fa8fa867d18ee0cfd36ebfbacf86626bbf996abc91ea6cacafb4b6a9fe4ab4c699a9c4366c04d1d84161712e3d8b742728d0dab6f8 SHA512 1b2d3abc9bf14d8276f90a6c4926106dee943ef8caf1575ae534f106c8c4a70b202ecb65f0e1bbd0bf6b1ddfb748c8ed36ccaee7fea71bdc4657669dc6a38f36 DIST nemu-2.6.0_p20210824.tar.gz 145793 BLAKE2B 6b4752cd8c5c7db83eff69fa8fa867d18ee0cfd36ebfbacf86626bbf996abc91ea6cacafb4b6a9fe4ab4c699a9c4366c04d1d84161712e3d8b742728d0dab6f8 SHA512 1b2d3abc9bf14d8276f90a6c4926106dee943ef8caf1575ae534f106c8c4a70b202ecb65f0e1bbd0bf6b1ddfb748c8ed36ccaee7fea71bdc4657669dc6a38f36
DIST nemu-3.0.0.tar.gz 151091 BLAKE2B 67a1d5d28da33107d65ed192c6b996a685b780ce5c3942ef2d7c1db471d38c8fc4c1c5f97228544802791751713d29443c3ea1ab34341103f3a43d4a3a1fec14 SHA512 fe7dc6410a86032cd83bb705ec2666dc5c5563543d092cd91390869206b7006676c4ff11213186bac54da1aa1702f664f1f0a65438eb77fb4f8f84fee97c6d86

View File

@ -1,15 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata> <pkgmetadata>
<maintainer type="person"> <maintainer type="person">
<email>holgersson@posteo.de</email> <email>holgersson@posteo.de</email>
<name>Nils Freydank</name> <name>Nils Freydank</name>
</maintainer> </maintainer>
<use> <use>
<flag name="vnc-client">Adds support for external VNC client</flag> <flag name="vnc-client">Adds support for external VNC client</flag>
<flag name="savevm">Adds support for QEMU savevm snapshots (experimental, QEMU must be patched)</flag> <flag name="remote-control">Adds support for TLS encrypted remote access</flag>
<flag name="spice">Adds Spice protocol support</flag> <flag name="savevm">Adds support for QEMU savevm snapshots (experimental, QEMU must be patched)</flag>
<flag name="ovf">Adds support for OVA/OVF import</flag> <flag name="spice">Adds Spice protocol support</flag>
<flag name="network-map">Adds possibility of exporting network map to SVG</flag> <flag name="ovf">Adds support for OVA/OVF import</flag>
</use> <flag name="network-map">Adds possibility of exporting network map to SVG</flag>
</use>
</pkgmetadata> </pkgmetadata>

View File

@ -0,0 +1,92 @@
# Copyright 2020-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="a9846ea1dbb186188bde72026a932f32831dc85e"
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}"
else
SRC_URI="https://github.com/nemuTUI/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/$PN-${MY_PV}/"
fi
fi
KEYWORDS="~amd64 ~x86"
LICENSE="BSD-2"
SLOT="0"
IUSE="dbus network-map +ovf remote-control spice +vnc-client"
RDEPEND="
app-emulation/qemu[vnc,virtfs,spice?]
dev-db/sqlite:3=
>=sys-libs/ncurses-6.2_p20210619:0=
virtual/libusb:1
virtual/libudev:=
dbus? ( sys-apps/dbus )
network-map? ( media-gfx/graphviz[svg] )
ovf? (
dev-libs/libxml2:2
app-arch/libarchive
)
remote-control? (
dev-libs/openssl:=
)
spice? ( app-emulation/virt-viewer[spice] )
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_WITH_NCURSES: Don't build the embbeded ncurses.
# -DNM_WITH_QEMU: Don't build the embbeded qemu.
local mycmakeargs=(
-DNM_WITH_UNICODE_GLYPHS=on
-DNM_WITH_NCURSES=off
-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_REMOTE=$(usex remote-control)
-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"
}