summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2017-06-30 12:42:59 +0200
committerJeroen Roovers <jer@gentoo.org>2017-06-30 12:43:19 +0200
commit05e129e39182eeb2ec4c10f9e89ba6f7c6b36993 (patch)
treeed58b8e697ef4f6d661ea1aae196e81406744aaf /sys-boot
parentnet-print/cups-filters: Removed old. (diff)
downloadgentoo-05e129e39182eeb2ec4c10f9e89ba6f7c6b36993.tar.gz
gentoo-05e129e39182eeb2ec4c10f9e89ba6f7c6b36993.tar.bz2
gentoo-05e129e39182eeb2ec4c10f9e89ba6f7c6b36993.zip
sys-boot/unetbootin: Version bump.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'sys-boot')
-rw-r--r--sys-boot/unetbootin/Manifest1
-rw-r--r--sys-boot/unetbootin/files/unetbootin-647-frebootbutton.patch10
-rw-r--r--sys-boot/unetbootin/unetbootin-647.ebuild89
3 files changed, 100 insertions, 0 deletions
diff --git a/sys-boot/unetbootin/Manifest b/sys-boot/unetbootin/Manifest
index 1bfce6702513..fdc71835683e 100644
--- a/sys-boot/unetbootin/Manifest
+++ b/sys-boot/unetbootin/Manifest
@@ -1 +1,2 @@
DIST unetbootin-625.tar.gz 22671470 SHA256 1c63265cbbeccfb0c45978e5235a35fcdb6f40fdd6a8b438539c1785703d05a1 SHA512 0dc672097eb857f8516208f8cbe5a0ec3229aa5dbe56108f64c415d2d9d4679a41e3f8a4b7279c511197303a2e020c95293a305de4df2dc63dc4522b3d13259b WHIRLPOOL 2444d5ca7be19d1747de641e92bb4c255c0298faac9d446eadbb3ce0b28ed7a57822c83fdebce2aaeacefa3ca0718250ca967d12e2b4fb0e4135d88f042bc93c
+DIST unetbootin-647.tar.gz 16253287 SHA256 895e67366fa4b225037d7c74fc70f17932e4176fe0f784bdbb4062d5b838715f SHA512 487be195286dd1e7712afa86cb75f8a79a3acce77f5cbd2571ddad74533d84a90e17b96afecfd2c9831825975b6c562bfb218b583a042600c49a14179129e8bb WHIRLPOOL 72ab1d5598cdb4f1b456626d013bc27cd8871e301a8e36f5cfe01a3cadf6c94ccca37042641ae9fcb4a35287eed39f01a4f6e7ad115060efe279510eeaeafb41
diff --git a/sys-boot/unetbootin/files/unetbootin-647-frebootbutton.patch b/sys-boot/unetbootin/files/unetbootin-647-frebootbutton.patch
new file mode 100644
index 000000000000..d616d12c7406
--- /dev/null
+++ b/sys-boot/unetbootin/files/unetbootin-647-frebootbutton.patch
@@ -0,0 +1,10 @@
+--- a/unetbootin.ui
++++ b/unetbootin.ui
+@@ -708,7 +708,6 @@
+ <tabstop>driveselect</tabstop>
+ <tabstop>okbutton</tabstop>
+ <tabstop>cancelbutton</tabstop>
+- <tabstop>frebootbutton</tabstop>
+ <tabstop>fexitbutton</tabstop>
+ <tabstop>intromessage</tabstop>
+ <tabstop>rebootmsgtext</tabstop>
diff --git a/sys-boot/unetbootin/unetbootin-647.ebuild b/sys-boot/unetbootin/unetbootin-647.ebuild
new file mode 100644
index 000000000000..e449aefee55a
--- /dev/null
+++ b/sys-boot/unetbootin/unetbootin-647.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils qmake-utils
+
+DESCRIPTION="UNetbootin installs Linux/BSD distributions to a partition or USB drive"
+HOMEPAGE="https://github.com/unetbootin/unetbootin"
+SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+UNBI_LINGUAS="
+ am ar ast be bg bn ca cs da de el eo es et eu fa fi fo fr gl he hr hu id it
+ ja lt lv ml ms nan nb nl nn pl pt_BR pt ro ru si sk sl sr sv sw tr uk ur vi
+ zh_CN zh_TW
+"
+
+for lingua in ${UNBI_LINGUAS}; do
+ IUSE="${IUSE} linguas_${lingua}"
+done
+
+S=${WORKDIR}/${P}/src/${PN}
+
+DEPEND="dev-qt/qtgui:4"
+RDEPEND="
+ ${DEPEND}
+ app-arch/p7zip
+ sys-boot/syslinux
+ sys-fs/mtools
+"
+PATCHES=(
+ "${FILESDIR}/${PN}-581-desktop.patch"
+ "${FILESDIR}/${PN}-647-frebootbutton.patch"
+)
+
+src_prepare() {
+ default
+
+ # QA check in case linguas are added or removed
+ enum() {
+ echo ${#}
+ }
+ [[ $(enum ${UNBI_LINGUAS}) -eq $(( $(enum $(echo ${PN}_*.ts) ) -1 )) ]] \
+ || die "Numbers of recorded and actual linguas do not match"
+ unset enum
+
+ # Remove localisations
+ local lingua
+ for lingua in ${UNBI_LINGUAS}; do
+ if ! use linguas_${lingua}; then
+ sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
+ rm ${PN}_${lingua}.ts || die
+ fi
+ done
+}
+
+src_configure() {
+ sed -i -e '/^RESOURCES/d' unetbootin.pro || die
+
+ UNBN_QTPATH="$(qt4_get_bindir)/"
+ "${UNBN_QTPATH}"lrelease ${PN}.pro || die
+
+ eqmake4 ${PN}.pro || die
+}
+
+src_install() {
+ dobin ${PN}
+
+ domenu ${PN}.desktop
+
+ for file in ${PN}*.png; do
+ size="${file/${PN}_}"
+ size="${size/.png}x${size/.png}"
+ insinto /usr/share/icons/hicolor/${size}/apps
+ newins ${file} ${PN}.png
+ done
+
+ local lingua
+ for lingua in ${UNBI_LINGUAS}; do
+ if use linguas_${lingua}; then
+ insinto /usr/share/${PN}
+ doins ${PN}_${lingua}.qm
+ fi
+ done
+}