1 |
commit: 2db6835d5b74ac3b7007d690c74d054605c738dc |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 4 06:22:44 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 4 06:23:24 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2db6835d |
7 |
|
8 |
sys-boot/unetbootin: Version 675 |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
sys-boot/unetbootin/Manifest | 2 + |
14 |
.../unetbootin/files/unetbootin-675-desktop.patch | 23 +++++ |
15 |
sys-boot/unetbootin/unetbootin-675.ebuild | 103 +++++++++++++++++++++ |
16 |
3 files changed, 128 insertions(+) |
17 |
|
18 |
diff --git a/sys-boot/unetbootin/Manifest b/sys-boot/unetbootin/Manifest |
19 |
index 159bd8d25cf..a92b40cc63c 100644 |
20 |
--- a/sys-boot/unetbootin/Manifest |
21 |
+++ b/sys-boot/unetbootin/Manifest |
22 |
@@ -1,2 +1,4 @@ |
23 |
DIST unetbootin-661-qt5.patch.tar.xz 8060 BLAKE2B 58cb323166e344ecabf5d372e80ff0367a1344866a6e8dea4b2677a85ea6ae0b5591480a3bcbbfc3a51d391b07adf0d5f370ee77e4c7e1d6f2b727aedf274cf0 SHA512 c1226575484fa63c94ca4da875a26c7bd64bcb27d8e07ea5b67bb3f2546f31d1360d10c363cd7301476811e332c9524c96d6ba482c894b86a5b28ca8a1c8b385 |
24 |
DIST unetbootin-661.tar.gz 16257579 BLAKE2B 2f92cf286c8010a80d4d4cc48a7ece55e159af9f3729277d97eb99ef2ebe8945023d03c51d6e97d7101d8547240e3c2152004222ec4c825ef4ab954c4018e7b0 SHA512 bbf74a4c4ca9b52f4da672eb54524b7fcb796c65ba80700dc3c6f2677bde37574f42a11c213cc4d4eee38783aed650beee1e2894f60185745e509a2e9571f70a |
25 |
+DIST unetbootin-675-qt5.patch.xz 7636 BLAKE2B f8c475491e6cf0557a192380726376c1dadba2e52478139d42023e867de86c5c1727719fa123fb412dbb20fca5763a3192889618e75ef6d8bba2d20eb1cf9403 SHA512 da636a3f6cd6a45d6786d92e94741d74f6c5de7d74570af45eac08718a822cdef5baac6c62d7ed68a788e9518e050f3a48a46f8f374c07e0b4c0d90c3613185d |
26 |
+DIST unetbootin-675.tar.gz 23221792 BLAKE2B fb3a6fce9d2a47b83e2e4c1a579d20594a637215b7c6456d6b0a59a592da660b13bdbea52aa5a4f902e410e9d0e2d447d085f040d321029a96b7ff957a59d11e SHA512 7cb5da4a876125ff010fc6a5aab2b5bb6eeec0f1ac6f2dd86efa2c3eaebaedff8c2167f9dc77053936955703cd2a98dd11a84b8de930dcfc1c2b0f6aeaf7ee61 |
27 |
|
28 |
diff --git a/sys-boot/unetbootin/files/unetbootin-675-desktop.patch b/sys-boot/unetbootin/files/unetbootin-675-desktop.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..b71907db38d |
31 |
--- /dev/null |
32 |
+++ b/sys-boot/unetbootin/files/unetbootin-675-desktop.patch |
33 |
@@ -0,0 +1,23 @@ |
34 |
+ * unetbootin.desktop: error: key "GenericName[en_US]" in group "Desktop Entry" |
35 |
+ is a localized key, but there is no non-localized key "GenericName" |
36 |
+ * unetbootin.desktop: warning: value "Application;System;" for key |
37 |
+ "Categories" in group "Desktop Entry" contains a deprecated value |
38 |
+ * "Application" |
39 |
+ |
40 |
+--- a/unetbootin.desktop |
41 |
++++ b/unetbootin.desktop |
42 |
+@@ -2,11 +2,9 @@ |
43 |
+ Version=1.0 |
44 |
+ Name=UNetbootin |
45 |
+ Comment=Tool for creating Live USB drives |
46 |
+-Categories=Application;System; |
47 |
+-Exec=/usr/bin/unetbootin_asroot |
48 |
++Categories=System; |
49 |
++Exec=/usr/bin/unetbootin |
50 |
+ Terminal=false |
51 |
+ Type=Application |
52 |
+-Name[en_US]=UNetbootin |
53 |
+-GenericName[en_US]=UNetbootin |
54 |
+-Comment[en_US]=Tool for creating Live USB drives |
55 |
++GenericName=UNetbootin |
56 |
+ Icon=unetbootin |
57 |
|
58 |
diff --git a/sys-boot/unetbootin/unetbootin-675.ebuild b/sys-boot/unetbootin/unetbootin-675.ebuild |
59 |
new file mode 100644 |
60 |
index 00000000000..cfc39c26a04 |
61 |
--- /dev/null |
62 |
+++ b/sys-boot/unetbootin/unetbootin-675.ebuild |
63 |
@@ -0,0 +1,103 @@ |
64 |
+# Copyright 1999-2019 Gentoo Authors |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+ |
67 |
+EAPI=7 |
68 |
+inherit desktop flag-o-matic qmake-utils |
69 |
+ |
70 |
+DESCRIPTION="UNetbootin installs Linux/BSD distributions to a partition or USB drive" |
71 |
+HOMEPAGE="https://github.com/unetbootin/unetbootin" |
72 |
+SRC_URI=" |
73 |
+ ${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz |
74 |
+ https://dev.gentoo.org/~jer/${P}-qt5.patch.xz |
75 |
+" |
76 |
+ |
77 |
+SLOT="0" |
78 |
+LICENSE="GPL-2" |
79 |
+KEYWORDS="~amd64 ~x86" |
80 |
+ |
81 |
+UNBI_LINGUAS=" |
82 |
+ 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 |
83 |
+ 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 |
84 |
+ zh_CN zh_TW |
85 |
+" |
86 |
+ |
87 |
+for lingua in ${UNBI_LINGUAS}; do |
88 |
+ IUSE="${IUSE} l10n_${lingua/_/-}" |
89 |
+done |
90 |
+ |
91 |
+S=${WORKDIR}/${P}/src/${PN} |
92 |
+ |
93 |
+COMMON_DEPEND=" |
94 |
+ dev-qt/qtcore:5 |
95 |
+ dev-qt/qtgui:5 |
96 |
+ dev-qt/qtnetwork:5 |
97 |
+ dev-qt/qtwidgets:5 |
98 |
+" |
99 |
+BDEPEND=" |
100 |
+ ${COMMON_DEPEND} |
101 |
+ dev-qt/linguist-tools:5 |
102 |
+" |
103 |
+RDEPEND=" |
104 |
+ ${COMMON_DEPEND} |
105 |
+ app-arch/p7zip |
106 |
+ sys-boot/syslinux |
107 |
+ sys-fs/mtools |
108 |
+" |
109 |
+ |
110 |
+PATCHES=( |
111 |
+ "${FILESDIR}"/${PN}-675-desktop.patch |
112 |
+ "${WORKDIR}"/${PN}-675-qt5.patch |
113 |
+) |
114 |
+ |
115 |
+src_prepare() { |
116 |
+ default |
117 |
+ |
118 |
+ # QA check in case linguas are added or removed |
119 |
+ enum() { |
120 |
+ echo ${#} |
121 |
+ } |
122 |
+ [[ $(enum ${UNBI_LINGUAS}) -eq $(( $(enum $(echo ${PN}_*.ts) ) -1 )) ]] \ |
123 |
+ || die "Numbers of recorded and actual linguas do not match" |
124 |
+ unset enum |
125 |
+ |
126 |
+ # Remove localisations |
127 |
+ local lingua |
128 |
+ for lingua in ${UNBI_LINGUAS}; do |
129 |
+ if ! use l10n_${lingua/_/-}; then |
130 |
+ sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die |
131 |
+ rm ${PN}_${lingua}.ts || die |
132 |
+ fi |
133 |
+ done |
134 |
+ append-cflags -DNOSTATIC |
135 |
+ append-cxxflags -DNOSTATIC |
136 |
+} |
137 |
+ |
138 |
+src_configure() { |
139 |
+ sed -i -e '/^RESOURCES/d' unetbootin.pro || die |
140 |
+ |
141 |
+ UNBN_QTPATH="$(qt5_get_bindir)/" |
142 |
+ "${UNBN_QTPATH}"lrelease ${PN}.pro || die |
143 |
+ |
144 |
+ eqmake5 ${PN}.pro || die |
145 |
+} |
146 |
+ |
147 |
+src_install() { |
148 |
+ dobin ${PN} |
149 |
+ |
150 |
+ domenu ${PN}.desktop |
151 |
+ |
152 |
+ for file in ${PN}*.png; do |
153 |
+ size="${file/${PN}_}" |
154 |
+ size="${size/.png}x${size/.png}" |
155 |
+ insinto /usr/share/icons/hicolor/${size}/apps |
156 |
+ newins ${file} ${PN}.png |
157 |
+ done |
158 |
+ |
159 |
+ local lingua |
160 |
+ for lingua in ${UNBI_LINGUAS}; do |
161 |
+ if use l10n_${lingua/_/-}; then |
162 |
+ insinto /usr/share/${PN} |
163 |
+ doins ${PN}_${lingua}.qm |
164 |
+ fi |
165 |
+ done |
166 |
+} |