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: unetbootin-584.ebuild ChangeLog
Date: Thu, 06 Jun 2013 14:23:45
Message-Id: 20130606142339.C31CB2171D@flycatcher.gentoo.org
1 jer 13/06/06 14:23:39
2
3 Modified: ChangeLog
4 Added: unetbootin-584.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key A792A613)
9
10 Revision Changes Path
11 1.98 sys-boot/unetbootin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/ChangeLog?rev=1.98&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/ChangeLog?rev=1.98&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/ChangeLog?r1=1.97&r2=1.98
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/ChangeLog,v
20 retrieving revision 1.97
21 retrieving revision 1.98
22 diff -u -r1.97 -r1.98
23 --- ChangeLog 2 Mar 2013 23:34:41 -0000 1.97
24 +++ ChangeLog 6 Jun 2013 14:23:39 -0000 1.98
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-boot/unetbootin
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/ChangeLog,v 1.97 2013/03/02 23:34:41 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/ChangeLog,v 1.98 2013/06/06 14:23:39 jer Exp $
30 +
31 +*unetbootin-584 (06 Jun 2013)
32 +
33 + 06 Jun 2013; Jeroen Roovers <jer@g.o> +unetbootin-584.ebuild:
34 + Version bump.
35
36 02 Mar 2013; Markos Chandras <hwoarang@g.o> unetbootin-583.ebuild:
37 Move Qt dependencies to the new category
38
39
40
41 1.1 sys-boot/unetbootin/unetbootin-584.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/unetbootin-584.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/unetbootin-584.ebuild?rev=1.1&content-type=text/plain
45
46 Index: unetbootin-584.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/unetbootin-584.ebuild,v 1.1 2013/06/06 14:23:39 jer Exp $
51
52 EAPI=5
53
54 inherit eutils qt4-r2
55
56 DESCRIPTION="Universal Netboot Installer creates Live USB systems for various OS
57 distributions."
58 HOMEPAGE="http://unetbootin.sourceforge.net/"
59 SRC_URI="mirror://sourceforge/${PN}/${PN}-source-${PV}.tar.gz"
60
61 SLOT="0"
62 LICENSE="GPL-2"
63 KEYWORDS="~amd64 ~x86"
64 IUSE=""
65
66 UNBI_LINGUAS="
67 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
68 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
69 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="dev-qt/qtgui:4"
79 RDEPEND="${DEPEND}
80 sys-fs/mtools
81 sys-boot/syslinux
82 app-arch/p7zip"
83
84 src_prepare() {
85 epatch "${FILESDIR}/${PN}-581-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 # Make room between the last line of TRANSLATIONS and the next definition
96 sed -i \
97 -e '/^DEFINES/s|.*|\n&|g' \
98 ${PN}.pro || 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 "/\.*${PN}_${lingua}\.ts.*/d" || 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 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 linguas_${lingua}; then
131 insinto /usr/share/${PN}
132 doins ${PN}_${lingua}.qm
133 fi
134 done
135 }