1 |
commit: 2cd7311fb41e95132c973528d161cf045562753a |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 3 21:31:45 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 3 22:05:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cd7311f |
7 |
|
8 |
app-emulation/nemu: Version bump (v2.2.0) |
9 |
|
10 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
app-emulation/nemu/Manifest | 1 + |
14 |
app-emulation/nemu/metadata.xml | 2 + |
15 |
app-emulation/nemu/nemu-2.2.0.ebuild | 73 ++++++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 76 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/nemu/Manifest b/app-emulation/nemu/Manifest |
19 |
index f5a1065c960..3e18fd604fb 100644 |
20 |
--- a/app-emulation/nemu/Manifest |
21 |
+++ b/app-emulation/nemu/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST nemu-2.0.0.tar.gz 85769 BLAKE2B daadbd5925d56d3747b59a3a8f28ceeeb24a674e57f003cf07c67c24dc0ed73f024d35e2f02836d89c7568b7ac51bfc3c6131afb4864febdd6ac6f86a827bfee SHA512 74c489e35b96699fcc5f9cabdbe4445c1cdad5b06c2a18928e2270e169b76e009463177990c4f4d80b160e06118b0b4e87209132cc0ae0ee3d77e2d811865f5a |
24 |
DIST nemu-2.1.0.tar.gz 89117 BLAKE2B a44bf67990d79af0b73caf077266c4775f302ffc81d2394993da45870a72f462d487a92d63abdbe875c382d11b8d691f446a5e0b7270355770838ea86328fb1d SHA512 7e655227e22f5e2dd5ec1f77ef1635f1aaab2e57e417fb33d83d35cc67d7b802c35fa9174cf4282287213a1a825714743773260b96b452a382a8248fbef238bf |
25 |
+DIST nemu-2.2.0.tar.gz 94061 BLAKE2B 95304e8834f1d5c1e31065728363de5d797ae79554733dd3fecd90388b2766bc8907acfeded36676272967153eed5a7f30baba9ef2384fca67d19f3519461fa6 SHA512 2f427a560ea5ac4112b7d5cdd8524366521ca3d185676a4faa9bc480331c3381b7a362aed20025dc1acc0f576f07fb627b03137e1998926761a169c5be0eaf97 |
26 |
|
27 |
diff --git a/app-emulation/nemu/metadata.xml b/app-emulation/nemu/metadata.xml |
28 |
index ad75c6dc879..b2ce9edb914 100644 |
29 |
--- a/app-emulation/nemu/metadata.xml |
30 |
+++ b/app-emulation/nemu/metadata.xml |
31 |
@@ -8,6 +8,8 @@ |
32 |
<use> |
33 |
<flag name="vnc-client">Adds support for external VNC client</flag> |
34 |
<flag name="savevm">Adds support for QEMU savevm snapshots (experimental, QEMU must be patched)</flag> |
35 |
+ <flag name="spice">Adds Spice protocol support</flag> |
36 |
<flag name="ovf">Adds support for OVA/OVF import</flag> |
37 |
+ <flag name="network-map">Adds possibility of exporting network map to SVG</flag> |
38 |
</use> |
39 |
</pkgmetadata> |
40 |
|
41 |
diff --git a/app-emulation/nemu/nemu-2.2.0.ebuild b/app-emulation/nemu/nemu-2.2.0.ebuild |
42 |
new file mode 100644 |
43 |
index 00000000000..7b885f4f50c |
44 |
--- /dev/null |
45 |
+++ b/app-emulation/nemu/nemu-2.2.0.ebuild |
46 |
@@ -0,0 +1,73 @@ |
47 |
+# Copyright 2019 Gentoo Authors |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+ |
50 |
+EAPI=7 |
51 |
+ |
52 |
+inherit cmake-utils linux-info |
53 |
+ |
54 |
+DESCRIPTION="ncurses interface for QEMU" |
55 |
+HOMEPAGE="https://lib.void.so/nemu/ https://bitbucket.org/PascalRD/nemu/" |
56 |
+SRC_URI="https://lib.void.so/src/${P}.tar.gz" |
57 |
+ |
58 |
+LICENSE="BSD-2" |
59 |
+SLOT="0" |
60 |
+KEYWORDS="~amd64 ~x86" |
61 |
+IUSE="debug network-map +ovf savevm spice +vnc-client" |
62 |
+ |
63 |
+RDEPEND="app-emulation/qemu[vnc,virtfs,spice?] |
64 |
+ dev-db/sqlite:3= |
65 |
+ sys-libs/ncurses:0=[unicode] |
66 |
+ virtual/libusb:1 |
67 |
+ virtual/libudev:= |
68 |
+ network-map? ( media-gfx/graphviz ) |
69 |
+ ovf? ( |
70 |
+ |
71 |
+ dev-libs/libxml2:2 |
72 |
+ app-arch/libarchive |
73 |
+ |
74 |
+ ) |
75 |
+ vnc-client? ( net-misc/tigervnc )" |
76 |
+ |
77 |
+DEPEND="${RDEPEND}" |
78 |
+ |
79 |
+BDEPEND="sys-devel/gettext" |
80 |
+ |
81 |
+pkg_pretend() { |
82 |
+ if use kernel_linux; then |
83 |
+ if ! linux_config_exists; then |
84 |
+ eerror "Unable to check your kernel" |
85 |
+ else |
86 |
+ CONFIG_CHECK="~VETH ~MACVTAP" |
87 |
+ ERROR_VETH="You will need the Virtual ethernet pair device driver compiled" |
88 |
+ ERROR_VETH+=" into your kernel or loaded as a module to use the" |
89 |
+ ERROR_VETH+=" local network settings feature." |
90 |
+ ERROR_MACVTAP="You will also need support for MAC-VLAN based tap driver." |
91 |
+ |
92 |
+ check_extra_config |
93 |
+ fi |
94 |
+ fi |
95 |
+} |
96 |
+ |
97 |
+src_configure() { |
98 |
+ local mycmakeargs=( |
99 |
+ -DNM_DEBUG=$(usex debug) |
100 |
+ -DNM_WITH_NETWORK_MAP=$(usex network-map) |
101 |
+ -DNM_WITH_OVF_SUPPORT=$(usex ovf) |
102 |
+ -DNM_SAVEVM_SNAPSHOTS=$(usex savevm) |
103 |
+ -DNM_WITH_SPICE=$(usex spice) |
104 |
+ -DNM_WITH_VNC_CLIENT=$(usex vnc-client) |
105 |
+ ) |
106 |
+ cmake-utils_src_configure |
107 |
+} |
108 |
+ |
109 |
+pkg_postinst() { |
110 |
+ elog "For non-root usage execute script:" |
111 |
+ elog "/usr/share/nemu/scripts/setup_nemu_nonroot.sh linux <username>" |
112 |
+ elog "and add udev rule:" |
113 |
+ elog "cp /usr/share/nemu/scripts/42-net-macvtap-perm.rules /lib/udev/rules.d" |
114 |
+ if use savevm; then |
115 |
+ elog "" |
116 |
+ elog "QEMU must be patched with qemu-qmp-savevm-VERSION.patch" |
117 |
+ elog "Get this patch from nEMU repository" |
118 |
+ fi |
119 |
+} |