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: Tue, 21 Jan 2020 11:00:29
Message-Id: 1579604420.3ffac2b4fe2f1e05afd0c70536eaf083b1ccaaf9.jer@gentoo
1 commit: 3ffac2b4fe2f1e05afd0c70536eaf083b1ccaaf9
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 21 11:00:12 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 21 11:00:20 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ffac2b4
7
8 sys-boot/unetbootin: Version 677
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 sys-boot/unetbootin/Manifest | 1 +
14 sys-boot/unetbootin/unetbootin-677.ebuild | 103 ++++++++++++++++++++++++++++++
15 2 files changed, 104 insertions(+)
16
17 diff --git a/sys-boot/unetbootin/Manifest b/sys-boot/unetbootin/Manifest
18 index a92b40cc63c..a32b84281cc 100644
19 --- a/sys-boot/unetbootin/Manifest
20 +++ b/sys-boot/unetbootin/Manifest
21 @@ -2,3 +2,4 @@ DIST unetbootin-661-qt5.patch.tar.xz 8060 BLAKE2B 58cb323166e344ecabf5d372e80ff0
22 DIST unetbootin-661.tar.gz 16257579 BLAKE2B 2f92cf286c8010a80d4d4cc48a7ece55e159af9f3729277d97eb99ef2ebe8945023d03c51d6e97d7101d8547240e3c2152004222ec4c825ef4ab954c4018e7b0 SHA512 bbf74a4c4ca9b52f4da672eb54524b7fcb796c65ba80700dc3c6f2677bde37574f42a11c213cc4d4eee38783aed650beee1e2894f60185745e509a2e9571f70a
23 DIST unetbootin-675-qt5.patch.xz 7636 BLAKE2B f8c475491e6cf0557a192380726376c1dadba2e52478139d42023e867de86c5c1727719fa123fb412dbb20fca5763a3192889618e75ef6d8bba2d20eb1cf9403 SHA512 da636a3f6cd6a45d6786d92e94741d74f6c5de7d74570af45eac08718a822cdef5baac6c62d7ed68a788e9518e050f3a48a46f8f374c07e0b4c0d90c3613185d
24 DIST unetbootin-675.tar.gz 23221792 BLAKE2B fb3a6fce9d2a47b83e2e4c1a579d20594a637215b7c6456d6b0a59a592da660b13bdbea52aa5a4f902e410e9d0e2d447d085f040d321029a96b7ff957a59d11e SHA512 7cb5da4a876125ff010fc6a5aab2b5bb6eeec0f1ac6f2dd86efa2c3eaebaedff8c2167f9dc77053936955703cd2a98dd11a84b8de930dcfc1c2b0f6aeaf7ee61
25 +DIST unetbootin-677.tar.gz 23479226 BLAKE2B b5a5b111c5f96cc603975f535b55dd8e6191cc92972f54591ae6673394abae15e2652f737b8dc02f8b26a1247a9663cbda3b0d2d7b8b8dfe9eb117711f08d053 SHA512 f86b25dabc27f12bdb65a590c4ffa25aa509a78aa29cecde73918d8bc36dc3e6597b2b7e1803f7fa86a884347506e9c25b361ce89c26e0f6449e0c1ef29355d1
26
27 diff --git a/sys-boot/unetbootin/unetbootin-677.ebuild b/sys-boot/unetbootin/unetbootin-677.ebuild
28 new file mode 100644
29 index 00000000000..9742705bd49
30 --- /dev/null
31 +++ b/sys-boot/unetbootin/unetbootin-677.ebuild
32 @@ -0,0 +1,103 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +inherit desktop flag-o-matic 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="
42 + https://github.com/unetbootin/unetbootin/archive/${PV}.tar.gz -> ${P}.tar.gz
43 + https://dev.gentoo.org/~jer/${PN}-675-qt5.patch.xz
44 +"
45 +
46 +SLOT="0"
47 +LICENSE="GPL-2"
48 +KEYWORDS="~amd64 ~x86"
49 +
50 +UNBI_LINGUAS="
51 + 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
52 + 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
53 + zh_CN zh_TW
54 +"
55 +
56 +for lingua in ${UNBI_LINGUAS}; do
57 + IUSE="${IUSE} l10n_${lingua/_/-}"
58 +done
59 +
60 +S=${WORKDIR}/${P}/src/${PN}
61 +
62 +COMMON_DEPEND="
63 + dev-qt/qtcore:5
64 + dev-qt/qtgui:5
65 + dev-qt/qtnetwork:5
66 + dev-qt/qtwidgets:5
67 +"
68 +BDEPEND="
69 + ${COMMON_DEPEND}
70 + dev-qt/linguist-tools:5
71 +"
72 +RDEPEND="
73 + ${COMMON_DEPEND}
74 + app-arch/p7zip
75 + sys-boot/syslinux
76 + sys-fs/mtools
77 +"
78 +
79 +PATCHES=(
80 + "${FILESDIR}"/${PN}-675-desktop.patch
81 + "${WORKDIR}"/${PN}-675-qt5.patch
82 +)
83 +
84 +src_prepare() {
85 + default
86 +
87 + # QA check in case linguas are added or removed
88 + enum() {
89 + echo ${#}
90 + }
91 + [[ $(enum ${UNBI_LINGUAS}) -eq $(( $(enum $(echo ${PN}_*.ts) ) -1 )) ]] \
92 + || die "Numbers of recorded and actual linguas do not match"
93 + unset enum
94 +
95 + # Remove localisations
96 + local lingua
97 + for lingua in ${UNBI_LINGUAS}; do
98 + if ! use l10n_${lingua/_/-}; then
99 + sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die
100 + rm ${PN}_${lingua}.ts || die
101 + fi
102 + done
103 + append-cflags -DNOSTATIC
104 + append-cxxflags -DNOSTATIC
105 +}
106 +
107 +src_configure() {
108 + sed -i -e '/^RESOURCES/d' unetbootin.pro || die
109 +
110 + UNBN_QTPATH="$(qt5_get_bindir)/"
111 + "${UNBN_QTPATH}"lrelease ${PN}.pro || die
112 +
113 + eqmake5 ${PN}.pro || die
114 +}
115 +
116 +src_install() {
117 + dobin ${PN}
118 +
119 + domenu ${PN}.desktop
120 +
121 + for file in ${PN}*.png; do
122 + size="${file/${PN}_}"
123 + size="${size/.png}x${size/.png}"
124 + insinto /usr/share/icons/hicolor/${size}/apps
125 + newins ${file} ${PN}.png
126 + done
127 +
128 + local lingua
129 + for lingua in ${UNBI_LINGUAS}; do
130 + if use l10n_${lingua/_/-}; then
131 + insinto /usr/share/${PN}
132 + doins ${PN}_${lingua}.qm
133 + fi
134 + done
135 +}