Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-boot/unetbootin: ChangeLog unetbootin-581.ebuild
Date: Mon, 27 Aug 2012 10:07:00
Message-Id: 20120827100648.A5812208DA@flycatcher.gentoo.org
1 jer 12/08/27 10:06:48
2
3 Modified: ChangeLog
4 Added: unetbootin-581.ebuild
5 Log:
6 Version bump. Fix desktop file issues.
7
8 (Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.87 sys-boot/unetbootin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/ChangeLog?rev=1.87&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/ChangeLog?rev=1.87&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/ChangeLog?r1=1.86&r2=1.87
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/ChangeLog,v
20 retrieving revision 1.86
21 retrieving revision 1.87
22 diff -u -r1.86 -r1.87
23 --- ChangeLog 16 Aug 2012 08:07:05 -0000 1.86
24 +++ ChangeLog 27 Aug 2012 10:06:48 -0000 1.87
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-boot/unetbootin
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/ChangeLog,v 1.86 2012/08/16 08:07:05 johu Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/ChangeLog,v 1.87 2012/08/27 10:06:48 jer Exp $
30 +
31 +*unetbootin-581 (27 Aug 2012)
32 +
33 + 27 Aug 2012; Jeroen Roovers <jer@g.o> +unetbootin-581.ebuild,
34 + +files/unetbootin-581-desktop.patch:
35 + Version bump. Fix desktop file issues.
36
37 16 Aug 2012; Johannes Huber <johu@g.o> unetbootin-578.ebuild:
38 Stable for x86, wrt bug #431592
39
40
41
42 1.1 sys-boot/unetbootin/unetbootin-581.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/unetbootin-581.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/unetbootin-581.ebuild?rev=1.1&content-type=text/plain
46
47 Index: unetbootin-581.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/unetbootin-581.ebuild,v 1.1 2012/08/27 10:06:48 jer Exp $
52
53 EAPI="4"
54
55 inherit qt4-r2
56
57 DESCRIPTION="Universal Netboot Installer creates Live USB systems for various OS
58 distributions."
59 HOMEPAGE="http://unetbootin.sourceforge.net/"
60 SRC_URI="mirror://sourceforge/${PN}/${PN}-source-${PV}.tar.gz"
61
62 SLOT="0"
63 LICENSE="GPL-2"
64 KEYWORDS="~amd64 ~x86"
65 IUSE=""
66
67 UNBI_LINGUAS="
68 am ar ast be bg bn ca cs da de el eo es et eu fi fo fr gl he hr hu id it ja lt
69 lv ml ms nan nb nl nn pl pt pt_BR ro ru sk sl sr sv sw tr uk ur vi zh_CN zh_TW
70 "
71
72 for lingua in ${UNBI_LINGUAS}; do
73 IUSE="${IUSE} linguas_${lingua}"
74 done
75
76 S="${WORKDIR}"
77
78 DEPEND="x11-libs/qt-gui:4"
79 RDEPEND="${DEPEND}
80 sys-fs/mtools
81 sys-boot/syslinux
82 app-arch/p7zip"
83
84 src_prepare() {
85 epatch "${FILESDIR}/${P}-desktop.patch"
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 # Put all localisation file names on a single line
96 sed -i ${PN}.pro \
97 -e ':a;/unetbootin_[[:graph:]]*\.ts \\/{N;s|\\\n| |;s| ||g;ba}' \
98 || die
99
100 # Remove localisations
101 local lingua
102 for lingua in ${UNBI_LINGUAS}; do
103 if ! use linguas_${lingua}; then
104 sed -i ${PN}.pro -e "s| ${PN}_${lingua}.ts||g" || die
105 rm ${PN}_${lingua}.ts || die
106 fi
107 done
108 }
109
110 src_configure() {
111 lupdate ${PN}.pro || die
112 lrelease ${PN}.pro || die
113 eqmake4 ${PN}.pro || die
114 }
115
116 src_install() {
117 dobin ${PN}
118
119 insinto /usr/share/applications
120 doins ${PN}.desktop
121
122 for file in ${PN}*.png; do
123 size="${file/${PN}_}"
124 size="${size/.png}x${size/.png}"
125 insinto /usr/share/icons/hicolor/${size}/apps
126 newins ${file} ${PN}.png
127 done
128
129 local lingua
130 for lingua in ${UNBI_LINGUAS}; do
131 if use linguas_${lingua}; then
132 insinto /usr/share/${PN}
133 doins ${PN}_${lingua}.qm
134 fi
135 done
136 }