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