commit:     3f55b89dc08b6106907082106d605a971e71ad3b
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 26 18:14:03 2018 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Thu Apr 26 18:16:11 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f55b89d

sys-boot/woeusb: Add woeusb

To have a working tool to generate bootable Win7 (and others) pendrives

Package-Manager: Portage-2.3.31, Repoman-2.3.9

 sys-boot/woeusb/Manifest            |  1 +
 sys-boot/woeusb/metadata.xml        | 10 +++++++
 sys-boot/woeusb/woeusb-3.1.5.ebuild | 58 +++++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+)

diff --git a/sys-boot/woeusb/Manifest b/sys-boot/woeusb/Manifest
new file mode 100644
index 00000000000..4bd4f091734
--- /dev/null
+++ b/sys-boot/woeusb/Manifest
@@ -0,0 +1 @@
+DIST woeusb-3.1.5.tar.gz 399712 BLAKE2B 
d52b29249af680577299a02cb9a2c1436aef73a0240bff2525c494657c197a2fc0709e0ff6f35eb5d18592145347af284a998deacecff37effd95b75ab13bc9a
 SHA512 
5cf4eb45b126d71bcb376148383faf9713bc06ec4ee3ccc2dfa6528d9fba382bceaae2cdd47f2d8ba775dad1ca8e6258af40fc6362336927894398193600c965

diff --git a/sys-boot/woeusb/metadata.xml b/sys-boot/woeusb/metadata.xml
new file mode 100644
index 00000000000..8e2305513d4
--- /dev/null
+++ b/sys-boot/woeusb/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<maintainer type="person">
+       <email>[email protected]</email>
+</maintainer>
+<use>
+       <flag name="minimal">Install only woeusb tool</flag>
+</use>
+</pkgmetadata>

diff --git a/sys-boot/woeusb/woeusb-3.1.5.ebuild 
b/sys-boot/woeusb/woeusb-3.1.5.ebuild
new file mode 100644
index 00000000000..0ba1d2aa896
--- /dev/null
+++ b/sys-boot/woeusb/woeusb-3.1.5.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WX_GTK_VER="3.0-gtk3"
+
+inherit autotools wxwidgets
+
+DESCRIPTION="Creates windows installer on usb media from an iso image"
+HOMEPAGE="https://github.com/slacka/WoeUSB";
+SRC_URI="https://github.com/slacka/WoeUSB/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="minimal"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+       sys-apps/util-linux
+       sys-block/parted
+       sys-fs/dosfstools
+       sys-fs/ntfs3g
+       sys-boot/grub:2[grub_platforms_pc]
+       !minimal? ( x11-libs/wxGTK:${WX_GTK_VER} )
+"
+
+S="${WORKDIR}/WoeUSB-${PV}"
+
+src_prepare() {
+       default
+       find . -type f -print0 | xargs -0 sed -i "s/@@WOEUSB_VERSION@@/${PV}/" 
|| die
+       if ! use minimal; then
+               setup-wxwidgets
+               eautoreconf
+       fi
+}
+
+src_configure() {
+       ! use minimal && default
+}
+
+src_compile() {
+       ! use minimal && default
+}
+
+src_test() {
+       ! use minimal && default
+}
+
+src_install() {
+       if use minimal; then
+               dosbin src/woeusb
+               einstalldocs
+       else
+               default
+       fi
+}

Reply via email to