1 |
commit: 24d7224ac9e01b3da45520f9204d4d4393f5cb4b |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 29 13:41:36 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 29 13:41:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24d7224a |
7 |
|
8 |
sys-boot/unetbootin: 661 version bump w/ Qt5 patch |
9 |
|
10 |
Disabling FTP sources. |
11 |
|
12 |
See also: https://github.com/unetbootin/unetbootin/pull/137 |
13 |
|
14 |
Bug: https://bugs.gentoo.org/644360 |
15 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
16 |
|
17 |
sys-boot/unetbootin/Manifest | 2 + |
18 |
sys-boot/unetbootin/unetbootin-661.ebuild | 97 +++++++++++++++++++++++++++++++ |
19 |
2 files changed, 99 insertions(+) |
20 |
|
21 |
diff --git a/sys-boot/unetbootin/Manifest b/sys-boot/unetbootin/Manifest |
22 |
index b88b338d6af..17aef8fed7e 100644 |
23 |
--- a/sys-boot/unetbootin/Manifest |
24 |
+++ b/sys-boot/unetbootin/Manifest |
25 |
@@ -1 +1,3 @@ |
26 |
DIST unetbootin-657.tar.gz 16258176 BLAKE2B 7124e3a4cace41b1ca61ca468e37adc90ae7d3099f54dc5da200cc7b7d94567afa5b4a597ba7d7e3a1327951fd7e61f320bc676b72ba68c7255e9145e5791adc SHA512 69ffdbc23f372c795e84267dfbed2221783a7efc9b1d5f589e7c308384cdfd0d9cf0950058f665e2c10bf6f17e0efd3eff81a1bedb98da316583f2462dfed2d9 |
27 |
+DIST unetbootin-661-qt5.patch.tar.xz 8060 BLAKE2B 58cb323166e344ecabf5d372e80ff0367a1344866a6e8dea4b2677a85ea6ae0b5591480a3bcbbfc3a51d391b07adf0d5f370ee77e4c7e1d6f2b727aedf274cf0 SHA512 c1226575484fa63c94ca4da875a26c7bd64bcb27d8e07ea5b67bb3f2546f31d1360d10c363cd7301476811e332c9524c96d6ba482c894b86a5b28ca8a1c8b385 |
28 |
+DIST unetbootin-661.tar.gz 16257579 BLAKE2B 2f92cf286c8010a80d4d4cc48a7ece55e159af9f3729277d97eb99ef2ebe8945023d03c51d6e97d7101d8547240e3c2152004222ec4c825ef4ab954c4018e7b0 SHA512 bbf74a4c4ca9b52f4da672eb54524b7fcb796c65ba80700dc3c6f2677bde37574f42a11c213cc4d4eee38783aed650beee1e2894f60185745e509a2e9571f70a |
29 |
|
30 |
diff --git a/sys-boot/unetbootin/unetbootin-661.ebuild b/sys-boot/unetbootin/unetbootin-661.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..7f9aafaf7b2 |
33 |
--- /dev/null |
34 |
+++ b/sys-boot/unetbootin/unetbootin-661.ebuild |
35 |
@@ -0,0 +1,97 @@ |
36 |
+# Copyright 1999-2018 Gentoo Foundation |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=6 |
40 |
+ |
41 |
+PATCHSET="${P}-qt5.patch.tar.xz" |
42 |
+inherit desktop qmake-utils |
43 |
+ |
44 |
+DESCRIPTION="UNetbootin installs Linux/BSD distributions to a partition or USB drive" |
45 |
+HOMEPAGE="https://github.com/unetbootin/unetbootin" |
46 |
+SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz |
47 |
+ https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" |
48 |
+ |
49 |
+SLOT="0" |
50 |
+LICENSE="GPL-2" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+ |
53 |
+UNBI_LINGUAS=" |
54 |
+ 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 |
55 |
+ 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 |
56 |
+ zh_CN zh_TW |
57 |
+" |
58 |
+ |
59 |
+for lingua in ${UNBI_LINGUAS}; do |
60 |
+ IUSE="${IUSE} l10n_${lingua/_/-}" |
61 |
+done |
62 |
+ |
63 |
+S=${WORKDIR}/${P}/src/${PN} |
64 |
+ |
65 |
+DEPEND=" |
66 |
+ dev-qt/qtcore:5 |
67 |
+ dev-qt/qtgui:5 |
68 |
+ dev-qt/qtnetwork:5 |
69 |
+ dev-qt/qtwidgets:5 |
70 |
+" |
71 |
+RDEPEND=" |
72 |
+ ${DEPEND} |
73 |
+ app-arch/p7zip |
74 |
+ sys-boot/syslinux |
75 |
+ sys-fs/mtools |
76 |
+" |
77 |
+ |
78 |
+PATCHES=( |
79 |
+ "${FILESDIR}/${PN}-581-desktop.patch" |
80 |
+ "${WORKDIR}"/${PATCHSET/.tar.xz/} |
81 |
+) |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ default |
85 |
+ |
86 |
+ # QA check in case linguas are added or removed |
87 |
+ enum() { |
88 |
+ echo ${#} |
89 |
+ } |
90 |
+ [[ $(enum ${UNBI_LINGUAS}) -eq $(( $(enum $(echo ${PN}_*.ts) ) -1 )) ]] \ |
91 |
+ || die "Numbers of recorded and actual linguas do not match" |
92 |
+ unset enum |
93 |
+ |
94 |
+ # Remove localisations |
95 |
+ local lingua |
96 |
+ for lingua in ${UNBI_LINGUAS}; do |
97 |
+ if ! use l10n_${lingua/_/-}; then |
98 |
+ sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die |
99 |
+ rm ${PN}_${lingua}.ts || die |
100 |
+ fi |
101 |
+ done |
102 |
+} |
103 |
+ |
104 |
+src_configure() { |
105 |
+ sed -i -e '/^RESOURCES/d' unetbootin.pro || die |
106 |
+ |
107 |
+ UNBN_QTPATH="$(qt5_get_bindir)/" |
108 |
+ "${UNBN_QTPATH}"lrelease ${PN}.pro || die |
109 |
+ |
110 |
+ eqmake5 ${PN}.pro || die |
111 |
+} |
112 |
+ |
113 |
+src_install() { |
114 |
+ dobin ${PN} |
115 |
+ |
116 |
+ domenu ${PN}.desktop |
117 |
+ |
118 |
+ for file in ${PN}*.png; do |
119 |
+ size="${file/${PN}_}" |
120 |
+ size="${size/.png}x${size/.png}" |
121 |
+ insinto /usr/share/icons/hicolor/${size}/apps |
122 |
+ newins ${file} ${PN}.png |
123 |
+ done |
124 |
+ |
125 |
+ local lingua |
126 |
+ for lingua in ${UNBI_LINGUAS}; do |
127 |
+ if use l10n_${lingua/_/-}; then |
128 |
+ insinto /usr/share/${PN} |
129 |
+ doins ${PN}_${lingua}.qm |
130 |
+ fi |
131 |
+ done |
132 |
+} |