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-608.ebuild |
Date: | Thu, 05 Jun 2014 21:24:29 |
Message-Id: | 20140605212422.3B1652004E@flycatcher.gentoo.org |
1 | jer 14/06/05 21:24:22 |
2 | |
3 | Modified: ChangeLog |
4 | Added: unetbootin-608.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
9 | |
10 | Revision Changes Path |
11 | 1.105 sys-boot/unetbootin/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/ChangeLog?rev=1.105&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/ChangeLog?rev=1.105&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/ChangeLog?r1=1.104&r2=1.105 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/ChangeLog,v |
20 | retrieving revision 1.104 |
21 | retrieving revision 1.105 |
22 | diff -u -r1.104 -r1.105 |
23 | --- ChangeLog 22 Apr 2014 15:14:55 -0000 1.104 |
24 | +++ ChangeLog 5 Jun 2014 21:24:22 -0000 1.105 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for sys-boot/unetbootin |
27 | # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/ChangeLog,v 1.104 2014/04/22 15:14:55 jer Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/ChangeLog,v 1.105 2014/06/05 21:24:22 jer Exp $ |
30 | + |
31 | +*unetbootin-608 (05 Jun 2014) |
32 | + |
33 | + 05 Jun 2014; Jeroen Roovers <jer@g.o> +unetbootin-608.ebuild: |
34 | + Version bump. |
35 | |
36 | *unetbootin-603 (22 Apr 2014) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 sys-boot/unetbootin/unetbootin-608.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/unetbootin-608.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/unetbootin/unetbootin-608.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: unetbootin-608.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2014 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/sys-boot/unetbootin/unetbootin-608.ebuild,v 1.1 2014/06/05 21:24:22 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=" |
80 | ${DEPEND} |
81 | sys-fs/mtools |
82 | <sys-boot/syslinux-5 |
83 | app-arch/p7zip |
84 | " |
85 | |
86 | src_prepare() { |
87 | epatch "${FILESDIR}/${PN}-581-desktop.patch" |
88 | |
89 | # QA check in case linguas are added or removed |
90 | enum() { |
91 | echo ${#} |
92 | } |
93 | [[ $(enum ${UNBI_LINGUAS}) -eq $(( $(enum $(echo ${PN}_*.ts) ) -1 )) ]] \ |
94 | || die "Numbers of recorded and actual linguas do not match" |
95 | unset enum |
96 | |
97 | # Make room between the last line of TRANSLATIONS and the next definition |
98 | sed -i \ |
99 | -e '/^DEFINES/s|.*|\n&|g' \ |
100 | ${PN}.pro || die |
101 | |
102 | # Remove localisations |
103 | local lingua |
104 | for lingua in ${UNBI_LINGUAS}; do |
105 | if ! use linguas_${lingua}; then |
106 | sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die |
107 | rm ${PN}_${lingua}.ts || die |
108 | fi |
109 | done |
110 | } |
111 | |
112 | src_configure() { |
113 | lupdate ${PN}.pro || die |
114 | lrelease ${PN}.pro || die |
115 | eqmake4 ${PN}.pro || die |
116 | } |
117 | |
118 | src_install() { |
119 | dobin ${PN} |
120 | |
121 | domenu ${PN}.desktop |
122 | |
123 | for file in ${PN}*.png; do |
124 | size="${file/${PN}_}" |
125 | size="${size/.png}x${size/.png}" |
126 | insinto /usr/share/icons/hicolor/${size}/apps |
127 | newins ${file} ${PN}.png |
128 | done |
129 | |
130 | local lingua |
131 | for lingua in ${UNBI_LINGUAS}; do |
132 | if use linguas_${lingua}; then |
133 | insinto /usr/share/${PN} |
134 | doins ${PN}_${lingua}.qm |
135 | fi |
136 | done |
137 | } |