Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-cdr/xcdroast/files/, app-cdr/xcdroast/
Date: Sat, 09 Jul 2016 09:23:33
Message-Id: 1468056180.19d1d7845571a51ec360845fb876558dcc84a18e.bircoph@gentoo
1 commit: 19d1d7845571a51ec360845fb876558dcc84a18e
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 9 09:15:03 2016 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 9 09:23:00 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19d1d784
7
8 app-cdr/xcdroast: multiple improvements
9
10 - Add USE=suid to control optional nonroot-mode as suggested by
11 Martin Väth, bug 345337 comment 23.
12 - Disable obsolete version check, patch by Helmut Jarausch
13 <jarausch at skynet.be>, see
14 https://archives.gentoo.org/gentoo-user/message/7c5e8669966103a9099efa3a8c808971
15 - Fix format-security issue, bug 520996.
16
17 Package-Manager: portage-2.3.0
18 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
19
20 app-cdr/xcdroast/files/disable_version_check.patch | 11 +++
21 app-cdr/xcdroast/files/format-security.patch | 11 +++
22 app-cdr/xcdroast/xcdroast-0.98_alpha16-r3.ebuild | 78 ++++++++++++++++++++++
23 3 files changed, 100 insertions(+)
24
25 diff --git a/app-cdr/xcdroast/files/disable_version_check.patch b/app-cdr/xcdroast/files/disable_version_check.patch
26 new file mode 100644
27 index 0000000..e72c4d0
28 --- /dev/null
29 +++ b/app-cdr/xcdroast/files/disable_version_check.patch
30 @@ -0,0 +1,11 @@
31 +--- a/src/init.c 2016-07-08 12:00:17.705356781 +0200
32 ++++ b/src/init.c 2016-07-08 12:02:35.914358133 +0200
33 +@@ -790,7 +790,7 @@
34 + debug = 0;
35 + oldfontcode = 0;
36 + *altdevscan = 1;
37 +- no_versioncheck = 0;
38 ++ no_versioncheck = 1;
39 + support_ontheflyaudio = 0;
40 + c_locale_is_utf8 = 0;
41 + ignoreProDVD = 0;
42
43 diff --git a/app-cdr/xcdroast/files/format-security.patch b/app-cdr/xcdroast/files/format-security.patch
44 new file mode 100644
45 index 0000000..9d01cf4
46 --- /dev/null
47 +++ b/app-cdr/xcdroast/files/format-security.patch
48 @@ -0,0 +1,11 @@
49 +--- xcdroast-0.98alpha16/src/setup.c.orig 2008-08-21 12:07:18.000000000 +0400
50 ++++ xcdroast-0.98alpha16/src/setup.c 2016-07-09 11:26:54.724084818 +0300
51 +@@ -4468,7 +4468,7 @@
52 + if (!textonly) {
53 + show_dialog(ICO_ERROR,tmp, T_OK, NULL, NULL, 0);
54 + } else {
55 +- g_warning(tmp);
56 ++ g_warning("%s",tmp);
57 + }
58 + }
59 + }
60
61 diff --git a/app-cdr/xcdroast/xcdroast-0.98_alpha16-r3.ebuild b/app-cdr/xcdroast/xcdroast-0.98_alpha16-r3.ebuild
62 new file mode 100644
63 index 0000000..53aa57c
64 --- /dev/null
65 +++ b/app-cdr/xcdroast/xcdroast-0.98_alpha16-r3.ebuild
66 @@ -0,0 +1,78 @@
67 +# Copyright 1999-2016 Gentoo Foundation
68 +# Distributed under the terms of the GNU General Public License v2
69 +# $Id$
70 +
71 +EAPI=6
72 +inherit gnome2-utils
73 +
74 +DESCRIPTION="Lightweight cdrtools front-end for CD and DVD writing"
75 +HOMEPAGE="http://www.xcdroast.org/"
76 +SRC_URI="mirror://sourceforge/xcdroast/${P/_/}.tar.gz"
77 +
78 +LICENSE="GPL-2"
79 +SLOT="0"
80 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
81 +IUSE="nls suid"
82 +
83 +RDEPEND=">=x11-libs/gtk+-2:2
84 + app-cdr/cdrtools"
85 +DEPEND="${RDEPEND}
86 + sys-devel/gettext
87 + virtual/pkgconfig"
88 +
89 +S=${WORKDIR}/${P/_/}
90 +
91 +PATCHES=(
92 + "${FILESDIR}"/cdda2wav_version.patch
93 + "${FILESDIR}"/fix_cddb_hidden_tracks.patch
94 + "${FILESDIR}"/io_compile.patch
95 + "${FILESDIR}"/io_progressbar_fix.patch
96 + "${FILESDIR}"/suid-perms.patch
97 + "${FILESDIR}"/disable_version_check.patch
98 + "${FILESDIR}"/format-security.patch
99 +)
100 +
101 +src_prepare() {
102 + default
103 +
104 + # fix Norwegian locales
105 + mv po/{no,nb}.po || die
106 + mv po/{no,nb}.gmo || die
107 + sed -i -e 's/no/nb/' po/LINGUAS || die
108 +}
109 +
110 +src_configure() {
111 + econf \
112 + $(use_enable nls) \
113 + $(use_enable suid nonrootmode) \
114 + --enable-gtk2 \
115 + --disable-dependency-tracking \
116 + --mandir=/usr/share/man \
117 + --sysconfdir=/etc
118 +}
119 +
120 +src_compile() {
121 + emake PREFIX=/usr
122 +}
123 +
124 +src_install() {
125 + emake PREFIX=/usr DESTDIR="${D}" install
126 + dodoc -r AUTHORS ChangeLog README doc/*
127 +
128 + insinto /usr/share/icons/hicolor/48x48/apps
129 + newins xpms/xcdricon.xpm xcdroast.xpm
130 +
131 + make_desktop_entry xcdroast "X-CD-Roast" xcdroast "AudioVideo;DiscBurning"
132 +}
133 +
134 +pkg_preinst() {
135 + gnome2_icon_savelist
136 +}
137 +
138 +pkg_postinst() {
139 + gnome2_icon_cache_update
140 +}
141 +
142 +pkg_postrm() {
143 + gnome2_icon_cache_update
144 +}