1 |
commit: 3f55b89dc08b6106907082106d605a971e71ad3b |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 26 18:14:03 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 26 18:16:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f55b89d |
7 |
|
8 |
sys-boot/woeusb: Add woeusb |
9 |
|
10 |
To have a working tool to generate bootable Win7 (and others) pendrives |
11 |
|
12 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
13 |
|
14 |
sys-boot/woeusb/Manifest | 1 + |
15 |
sys-boot/woeusb/metadata.xml | 10 +++++++ |
16 |
sys-boot/woeusb/woeusb-3.1.5.ebuild | 58 +++++++++++++++++++++++++++++++++++++ |
17 |
3 files changed, 69 insertions(+) |
18 |
|
19 |
diff --git a/sys-boot/woeusb/Manifest b/sys-boot/woeusb/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..4bd4f091734 |
22 |
--- /dev/null |
23 |
+++ b/sys-boot/woeusb/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST woeusb-3.1.5.tar.gz 399712 BLAKE2B d52b29249af680577299a02cb9a2c1436aef73a0240bff2525c494657c197a2fc0709e0ff6f35eb5d18592145347af284a998deacecff37effd95b75ab13bc9a SHA512 5cf4eb45b126d71bcb376148383faf9713bc06ec4ee3ccc2dfa6528d9fba382bceaae2cdd47f2d8ba775dad1ca8e6258af40fc6362336927894398193600c965 |
26 |
|
27 |
diff --git a/sys-boot/woeusb/metadata.xml b/sys-boot/woeusb/metadata.xml |
28 |
new file mode 100644 |
29 |
index 00000000000..8e2305513d4 |
30 |
--- /dev/null |
31 |
+++ b/sys-boot/woeusb/metadata.xml |
32 |
@@ -0,0 +1,10 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+<maintainer type="person"> |
37 |
+ <email>pacho@g.o</email> |
38 |
+</maintainer> |
39 |
+<use> |
40 |
+ <flag name="minimal">Install only woeusb tool</flag> |
41 |
+</use> |
42 |
+</pkgmetadata> |
43 |
|
44 |
diff --git a/sys-boot/woeusb/woeusb-3.1.5.ebuild b/sys-boot/woeusb/woeusb-3.1.5.ebuild |
45 |
new file mode 100644 |
46 |
index 00000000000..0ba1d2aa896 |
47 |
--- /dev/null |
48 |
+++ b/sys-boot/woeusb/woeusb-3.1.5.ebuild |
49 |
@@ -0,0 +1,58 @@ |
50 |
+# Copyright 1999-2018 Gentoo Foundation |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI=6 |
54 |
+WX_GTK_VER="3.0-gtk3" |
55 |
+ |
56 |
+inherit autotools wxwidgets |
57 |
+ |
58 |
+DESCRIPTION="Creates windows installer on usb media from an iso image" |
59 |
+HOMEPAGE="https://github.com/slacka/WoeUSB" |
60 |
+SRC_URI="https://github.com/slacka/WoeUSB/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
61 |
+ |
62 |
+LICENSE="GPL-3" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="~amd64 ~x86" |
65 |
+IUSE="minimal" |
66 |
+ |
67 |
+DEPEND="" |
68 |
+RDEPEND="${DEPEND} |
69 |
+ sys-apps/util-linux |
70 |
+ sys-block/parted |
71 |
+ sys-fs/dosfstools |
72 |
+ sys-fs/ntfs3g |
73 |
+ sys-boot/grub:2[grub_platforms_pc] |
74 |
+ !minimal? ( x11-libs/wxGTK:${WX_GTK_VER} ) |
75 |
+" |
76 |
+ |
77 |
+S="${WORKDIR}/WoeUSB-${PV}" |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ default |
81 |
+ find . -type f -print0 | xargs -0 sed -i "s/@@WOEUSB_VERSION@@/${PV}/" || die |
82 |
+ if ! use minimal; then |
83 |
+ setup-wxwidgets |
84 |
+ eautoreconf |
85 |
+ fi |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ ! use minimal && default |
90 |
+} |
91 |
+ |
92 |
+src_compile() { |
93 |
+ ! use minimal && default |
94 |
+} |
95 |
+ |
96 |
+src_test() { |
97 |
+ ! use minimal && default |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ if use minimal; then |
102 |
+ dosbin src/woeusb |
103 |
+ einstalldocs |
104 |
+ else |
105 |
+ default |
106 |
+ fi |
107 |
+} |