Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/unetbootin/, sys-boot/unetbootin/files/
Date: Fri, 30 Jun 2017 10:43:29
Message-Id: 1498819399.05e129e39182eeb2ec4c10f9e89ba6f7c6b36993.jer@gentoo
1 commit: 05e129e39182eeb2ec4c10f9e89ba6f7c6b36993
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 30 10:42:59 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 30 10:43:19 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05e129e3
7
8 sys-boot/unetbootin: Version bump.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 sys-boot/unetbootin/Manifest | 1 +
13 .../files/unetbootin-647-frebootbutton.patch | 10 +++
14 sys-boot/unetbootin/unetbootin-647.ebuild | 89 ++++++++++++++++++++++
15 3 files changed, 100 insertions(+)
16
17 diff --git a/sys-boot/unetbootin/Manifest b/sys-boot/unetbootin/Manifest
18 index 1bfce670251..fdc71835683 100644
19 --- a/sys-boot/unetbootin/Manifest
20 +++ b/sys-boot/unetbootin/Manifest
21 @@ -1 +1,2 @@
22 DIST unetbootin-625.tar.gz 22671470 SHA256 1c63265cbbeccfb0c45978e5235a35fcdb6f40fdd6a8b438539c1785703d05a1 SHA512 0dc672097eb857f8516208f8cbe5a0ec3229aa5dbe56108f64c415d2d9d4679a41e3f8a4b7279c511197303a2e020c95293a305de4df2dc63dc4522b3d13259b WHIRLPOOL 2444d5ca7be19d1747de641e92bb4c255c0298faac9d446eadbb3ce0b28ed7a57822c83fdebce2aaeacefa3ca0718250ca967d12e2b4fb0e4135d88f042bc93c
23 +DIST unetbootin-647.tar.gz 16253287 SHA256 895e67366fa4b225037d7c74fc70f17932e4176fe0f784bdbb4062d5b838715f SHA512 487be195286dd1e7712afa86cb75f8a79a3acce77f5cbd2571ddad74533d84a90e17b96afecfd2c9831825975b6c562bfb218b583a042600c49a14179129e8bb WHIRLPOOL 72ab1d5598cdb4f1b456626d013bc27cd8871e301a8e36f5cfe01a3cadf6c94ccca37042641ae9fcb4a35287eed39f01a4f6e7ad115060efe279510eeaeafb41
24
25 diff --git a/sys-boot/unetbootin/files/unetbootin-647-frebootbutton.patch b/sys-boot/unetbootin/files/unetbootin-647-frebootbutton.patch
26 new file mode 100644
27 index 00000000000..d616d12c740
28 --- /dev/null
29 +++ b/sys-boot/unetbootin/files/unetbootin-647-frebootbutton.patch
30 @@ -0,0 +1,10 @@
31 +--- a/unetbootin.ui
32 ++++ b/unetbootin.ui
33 +@@ -708,7 +708,6 @@
34 + <tabstop>driveselect</tabstop>
35 + <tabstop>okbutton</tabstop>
36 + <tabstop>cancelbutton</tabstop>
37 +- <tabstop>frebootbutton</tabstop>
38 + <tabstop>fexitbutton</tabstop>
39 + <tabstop>intromessage</tabstop>
40 + <tabstop>rebootmsgtext</tabstop>
41
42 diff --git a/sys-boot/unetbootin/unetbootin-647.ebuild b/sys-boot/unetbootin/unetbootin-647.ebuild
43 new file mode 100644
44 index 00000000000..e449aefee55
45 --- /dev/null
46 +++ b/sys-boot/unetbootin/unetbootin-647.ebuild
47 @@ -0,0 +1,89 @@
48 +# Copyright 1999-2017 Gentoo Foundation
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=6
52 +
53 +inherit eutils qmake-utils
54 +
55 +DESCRIPTION="UNetbootin installs Linux/BSD distributions to a partition or USB drive"
56 +HOMEPAGE="https://github.com/unetbootin/unetbootin"
57 +SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
58 +
59 +SLOT="0"
60 +LICENSE="GPL-2"
61 +KEYWORDS="~amd64 ~x86"
62 +
63 +UNBI_LINGUAS="
64 + 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
65 + 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
66 + zh_CN zh_TW
67 +"
68 +
69 +for lingua in ${UNBI_LINGUAS}; do
70 + IUSE="${IUSE} linguas_${lingua}"
71 +done
72 +
73 +S=${WORKDIR}/${P}/src/${PN}
74 +
75 +DEPEND="dev-qt/qtgui:4"
76 +RDEPEND="
77 + ${DEPEND}
78 + app-arch/p7zip
79 + sys-boot/syslinux
80 + sys-fs/mtools
81 +"
82 +PATCHES=(
83 + "${FILESDIR}/${PN}-581-desktop.patch"
84 + "${FILESDIR}/${PN}-647-frebootbutton.patch"
85 +)
86 +
87 +src_prepare() {
88 + default
89 +
90 + # QA check in case linguas are added or removed
91 + enum() {
92 + echo ${#}
93 + }
94 + [[ $(enum ${UNBI_LINGUAS}) -eq $(( $(enum $(echo ${PN}_*.ts) ) -1 )) ]] \
95 + || die "Numbers of recorded and actual linguas do not match"
96 + unset enum
97 +
98 + # Remove localisations
99 + local lingua
100 + for lingua in ${UNBI_LINGUAS}; do
101 + if ! use linguas_${lingua}; then
102 + sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
103 + rm ${PN}_${lingua}.ts || die
104 + fi
105 + done
106 +}
107 +
108 +src_configure() {
109 + sed -i -e '/^RESOURCES/d' unetbootin.pro || die
110 +
111 + UNBN_QTPATH="$(qt4_get_bindir)/"
112 + "${UNBN_QTPATH}"lrelease ${PN}.pro || die
113 +
114 + eqmake4 ${PN}.pro || die
115 +}
116 +
117 +src_install() {
118 + dobin ${PN}
119 +
120 + domenu ${PN}.desktop
121 +
122 + for file in ${PN}*.png; do
123 + size="${file/${PN}_}"
124 + size="${size/.png}x${size/.png}"
125 + insinto /usr/share/icons/hicolor/${size}/apps
126 + newins ${file} ${PN}.png
127 + done
128 +
129 + local lingua
130 + for lingua in ${UNBI_LINGUAS}; do
131 + if use linguas_${lingua}; then
132 + insinto /usr/share/${PN}
133 + doins ${PN}_${lingua}.qm
134 + fi
135 + done
136 +}