diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2011-04-20 08:34:29 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2011-04-20 08:34:29 +0000 |
commit | de2eab7499aeefdac5311f3669a0830db860d437 (patch) | |
tree | 0facb74bee65c98f8433ea19be9ec793e122a13d /app-cdr | |
parent | Work around build failure w/ GCC 4.6 (bug #346825). (diff) | |
download | historical-de2eab7499aeefdac5311f3669a0830db860d437.tar.gz historical-de2eab7499aeefdac5311f3669a0830db860d437.tar.bz2 historical-de2eab7499aeefdac5311f3669a0830db860d437.zip |
Apply upstream patches wrt #346571 by Daniel Pielmeier <billie@gentoo.org>
Package-Manager: portage-2.2.0_alpha30/cvs/Linux x86_64
Diffstat (limited to 'app-cdr')
-rw-r--r-- | app-cdr/xcdroast/ChangeLog | 11 | ||||
-rw-r--r-- | app-cdr/xcdroast/Manifest | 17 | ||||
-rw-r--r-- | app-cdr/xcdroast/files/cdda2wav_version.patch | 54 | ||||
-rw-r--r-- | app-cdr/xcdroast/files/fix_cddb_hidden_tracks.patch | 45 | ||||
-rw-r--r-- | app-cdr/xcdroast/xcdroast-0.98_alpha16-r1.ebuild | 68 |
5 files changed, 192 insertions, 3 deletions
diff --git a/app-cdr/xcdroast/ChangeLog b/app-cdr/xcdroast/ChangeLog index dcfa4ff03680..f5bea1f6c1ff 100644 --- a/app-cdr/xcdroast/ChangeLog +++ b/app-cdr/xcdroast/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-cdr/xcdroast -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-cdr/xcdroast/ChangeLog,v 1.67 2009/06/01 16:21:33 nixnut Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-cdr/xcdroast/ChangeLog,v 1.68 2011/04/20 08:34:29 xarthisius Exp $ + +*xcdroast-0.98_alpha16-r1 (20 Apr 2011) + + 20 Apr 2011; Kacper Kowalik <xarthisius@gentoo.org> + +files/cdda2wav_version.patch, +xcdroast-0.98_alpha16-r1.ebuild, + +files/fix_cddb_hidden_tracks.patch: + Apply upstream patches wrt #346571 by Daniel Pielmeier <billie@gentoo.org> 01 Jun 2009; nixnut <nixnut@gentoo.org> xcdroast-0.98_alpha16.ebuild: ppc stable #269032 diff --git a/app-cdr/xcdroast/Manifest b/app-cdr/xcdroast/Manifest index 7d1ed04c81d4..3b0e67117ad9 100644 --- a/app-cdr/xcdroast/Manifest +++ b/app-cdr/xcdroast/Manifest @@ -1,5 +1,20 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX cdda2wav_version.patch 1494 RMD160 d28c6508440f97811d3eaa130e3b4d2e33396dc1 SHA1 0367568a2ed3e773c10279e52101fb70a8adf133 SHA256 95b071ce347dd71cdb083d42cb10db7423adcc077a6251754ccd62ee66753ccb +AUX fix_cddb_hidden_tracks.patch 1252 RMD160 e5442b93b505e3432979f0fe4623c6dac73d72ae SHA1 730c1c3624668240faad4a5c4b7b57123d84f582 SHA256 8e0c8eb5af3dad4b4d4af6c136b7e0eedef1f06623c7e0929f1f09d828a30c7c AUX io_compile.patch 621 RMD160 bcfaba2e4b6c9ee1bd9cbffd1d1a02dd20e7ca25 SHA1 03149229d3a09015a32cc9c4b8490efcae456271 SHA256 84e76124579e1b21969d25e7511333b8daed05e94c9cec564c9b79dd7a0d09d2 DIST xcdroast-0.98alpha16.tar.gz 3563666 RMD160 d0d63b6387d9aeace5aaef8ee935b6c6d4836259 SHA1 bbb3184a7e2bfd80d931698002dc9f74f136241d SHA256 a2b96bb9799b5880befe2d01c5e6a0b63110dd61f59384935b750e72bc73984d +EBUILD xcdroast-0.98_alpha16-r1.ebuild 1450 RMD160 6db281ca0fd5142c00d76a07d8c27dd878b20523 SHA1 acdfcb872856189d4c7e2e23ae8fa1bea044d682 SHA256 cc846d10a5aec84e2dba34b1ea3dd91cff5197a7263ff4c3286db7a2fbba9697 EBUILD xcdroast-0.98_alpha16.ebuild 1393 RMD160 7d59b0ba39e17a8ca51608ff8bcfbce7cf756fdd SHA1 517c1dcb044cdc50df7184e02580186a7bbafdcd SHA256 869641d8fe353bae6094d003676c7759b4058b50d7a231229b255e0af466dc82 -MISC ChangeLog 11037 RMD160 98e4f46de65e620687f411c039327e5c13aa069e SHA1 ee04ed6b47ecc3622672d9ae42cd943f950e6543 SHA256 af71921b15ba43e4e512015e80a44bafdd1a182758b60e96c35372acfe8ee52b +MISC ChangeLog 11320 RMD160 e624264e58eb211a8730367154ceb03e590a2ac0 SHA1 cba1b59865cb2c20b40aaa76d5f6b54278cf0930 SHA256 2972f77b01def489d65e95a88425145180f307a82e59594fa28e257d3d439223 MISC metadata.xml 247 RMD160 7a2b92c08eec2dc74474226529601870161ced75 SHA1 30e2f8e33a1a0ccd255272d40b84fadfe13c90d5 SHA256 4e1e94075219a6cc8cde9d7249eeacbb64f0ec101401aa58aec45e5ad901f2ed +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iJwEAQECAAYFAk2ump4ACgkQIiMqcbOVdxTCqwP/a4wLDGxdOGCsHV/4NiZ5mobw +NAJI320k1or9m66x4CxInM4NJ4suza5K4erdND2xl5xs+wQfFv6izHg0fjz+zRAc +v5hlOwQSpHjrJtrKXcGMSG98GGlvP95E2ijIHbNFTuqyfsjQyIU1imXJFtJVFU6o +5yCTGoa804m8ymROlSA= +=FYK6 +-----END PGP SIGNATURE----- diff --git a/app-cdr/xcdroast/files/cdda2wav_version.patch b/app-cdr/xcdroast/files/cdda2wav_version.patch new file mode 100644 index 000000000000..cd001e0ee7bf --- /dev/null +++ b/app-cdr/xcdroast/files/cdda2wav_version.patch @@ -0,0 +1,54 @@ +diff -urNad xcdroast-0.98+0alpha16~/src/io.c xcdroast-0.98+0alpha16/src/io.c +--- xcdroast-0.98+0alpha16~/src/io.c 2008-08-21 15:11:40.000000000 +0200 ++++ xcdroast-0.98+0alpha16/src/io.c 2009-12-29 22:54:08.571188849 +0100 +@@ -10062,6 +10062,7 @@ + + gint check_version_cdda2wav(gchar *match, gchar *found) { + gchar line[MAXLINE]; ++gchar vline[MAXLINE]; + gchar ver[MAXLINE]; + FILE *fpin; + gchar *p; +@@ -10076,32 +10077,38 @@ + } + + strcpy(line,""); ++ strcpy(vline,""); + for (;;) { + if (fgets(line,MAXLINE,fpin) == NULL) + break; + dodebug(10,"got: %s",line); ++ ++ /* only get first line */ ++ if (strcmp(vline,"") == 0) { ++ strncpy(vline, line, MAXLINE); ++ } + } + + if (pclose(fpin) == -1) { + g_error("pclose error\n"); + } + +- if (strcmp(line,"") == 0 || strstr(line,"sh:") != NULL) { ++ if (strcmp(vline,"") == 0 || strstr(vline,"sh:") != NULL) { + /* failed to open - permission denied */ + return 2; + } + +- /* now line contains the version string of cdda2wav */ ++ /* now vline contains the version string of cdda2wav */ + /* try to extract the version number */ + +- p = strstr(line,"version"); ++ p = strstr(vline,"version"); + if (p != NULL) { + p = strtok(p+8, " _"); + if (p != NULL) { + strcpy(ver,p); + } + } else { +- p = strstr(line,"cdda2wav"); ++ p = strstr(vline,"cdda2wav"); + if (p != NULL) { + p = strtok(p+9, " "); + if (p != NULL) { diff --git a/app-cdr/xcdroast/files/fix_cddb_hidden_tracks.patch b/app-cdr/xcdroast/files/fix_cddb_hidden_tracks.patch new file mode 100644 index 000000000000..d2e15ef54c69 --- /dev/null +++ b/app-cdr/xcdroast/files/fix_cddb_hidden_tracks.patch @@ -0,0 +1,45 @@ +--- src/io.c ++++ src/io.c +@@ -2665,6 +2665,8 @@ + g_error("Unexpected output in cdda2wav toc-output\n"); + } + trackinfo[tocnr]->track_nr = atoi(p1); ++ if (trackinfo[tocnr]->track_nr == 0) ++ cdinfo.nr_tracks++; + trackinfo[tocnr]->isosize = -1; + + /* reststring into tmp2 - strip to remove leading spaces */ +@@ -8401,6 +8403,9 @@ + if (extract_quoted(tmp) != 0) + return; + ++ if (matchnr == 0 && trackinfo[matchnr]->track_nr == 0) ++ matchnr++; ++ + if (mode == 0) { + if (matchnr >= cdinfo.nr_tracks) { + g_warning("invalid track count from cddb-server\n"); +@@ -8482,14 +8487,20 @@ + + /* build of command line */ + if (mode == 0 || mode == 2) { ++ gint ntr = cdinfo.nr_tracks; ++ ++ if (ntr > 0 && trackinfo[0]->track_nr == 0) ++ ntr--; + g_snprintf(tmp,MAXLINE,"cddb query %s %d ", +- cdinfo.cddb_discid, cdinfo.nr_tracks); ++ cdinfo.cddb_discid, ntr); + for (i = 0; i < cdinfo.nr_tracks; i++) { ++ if (trackinfo[i]->track_nr == 0) ++ continue; + g_snprintf(tmp2,MAXLINE,"%d ", + trackinfo[i]->start_sec + 150); + strcat(tmp,tmp2); + } +- g_snprintf(tmp2,MAXLINE,"%d",cdinfo.total_size / 75); ++ g_snprintf(tmp2,MAXLINE,"%d",(cdinfo.leadout + 150) / 75); + strcat(tmp,tmp2); + } else { + /* get data from toc file */ + diff --git a/app-cdr/xcdroast/xcdroast-0.98_alpha16-r1.ebuild b/app-cdr/xcdroast/xcdroast-0.98_alpha16-r1.ebuild new file mode 100644 index 000000000000..b096fbc9ea18 --- /dev/null +++ b/app-cdr/xcdroast/xcdroast-0.98_alpha16-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-cdr/xcdroast/xcdroast-0.98_alpha16-r1.ebuild,v 1.1 2011/04/20 08:34:29 xarthisius Exp $ + +EAPI=2 +inherit gnome2-utils eutils + +DESCRIPTION="Lightweight cdrtools front-end for CD and DVD writing" +HOMEPAGE="http://www.xcdroast.org/" +SRC_URI="mirror://sourceforge/xcdroast/${P/_/}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="nls" + +RDEPEND=">=x11-libs/gtk+-2:2 + app-cdr/cdrtools" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S=${WORKDIR}/${P/_/} + +src_prepare() { + epatch "${FILESDIR}"/cdda2wav_version.patch \ + "${FILESDIR}"/fix_cddb_hidden_tracks.patch \ + "${FILESDIR}"/io_compile.patch + +} + +src_configure() { + econf \ + $(use_enable nls) \ + --enable-gtk2 \ + --disable-dependency-tracking \ + --mandir=/usr/share/man \ + --sysconfdir=/etc +} + +src_compile() { + emake PREFIX=/usr || die +} + +src_install() { + emake PREFIX=/usr DESTDIR="${D}" install || die + + dodoc AUTHORS ChangeLog README doc/* doc/manual/README.txt + + insinto /usr/share/doc/${PF}/manual + doins doc/manual/xcdroast-manual.pdf + + insinto /usr/share/icons/hicolor/48x48/apps + newins xpms/xcdricon.xpm xcdroast.xpm + + make_desktop_entry xcdroast "X-CD-Roast" xcdroast "AudioVideo;DiscBurning" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |