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