# ChangeLog for app-cdr/xcdroast
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-cdr/xcdroast/ChangeLog,v 1.56 2007/01/24 02:35:01 genone Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/xcdroast/ChangeLog,v 1.57 2007/04/10 11:38:38 pylon Exp $
+
+*xcdroast-0.98_alpha15-r5 (10 Apr 2007)
+
+ 10 Apr 2007; Lars Weiler <pylon@gentoo.org> +files/cdda2wav2icedax.patch,
+ +files/mkisofs2genisoimage.patch, +xcdroast-0.98_alpha15-r5.ebuild:
+ Adding Debian-Patches for newer cdrkit-version; bug #173942.
24 Jan 2007; Marius Mauch <genone@gentoo.org>
xcdroast-0.98_alpha15-r3.ebuild:
--- /dev/null
+--- xcdroast.h~ 2007-04-08 20:58:40.254693596 +0200
++++ xcdroast.h 2007-04-08 20:58:40.254693596 +0200
+@@ -131,7 +131,7 @@
+ #define CDRECORDDVD_VERSION "2.01.01"
+ #define CDRECORD_VERSION_WITH_ONTHFLYAUDIO "2.01.01"
+ #define MKISOFS_VERSION "1.15a17"
+-#define CDDA2WAV_VERSION "1.11a34"
++#define CDDA2WAV_VERSION "1.1.0"
+ #define READCD_VERSION "1.11a34"
+
+ /* group to use for non-root-mode */
+
--- /dev/null
+MD5 8ad7858aa96d29466b74b093ee82149b xcdroast-0.98_alpha15_new_configure.tar.gz 82301
+RMD160 125c5a48462bac3515c93f7e9f6e428cb901d80c xcdroast-0.98_alpha15_new_configure.tar.gz 82301
+SHA256 0e33617f9315482dd95e1228e27461e45bea4516abaebfb5b6449aedaec9de90 xcdroast-0.98_alpha15_new_configure.tar.gz 82301
+MD5 2a9c1d9f2ef58713c453e674b989be3e xcdroast-0.98alpha15.tar.gz 3282794
+RMD160 9198f67659023ce8f508fa2c331df9d9c8b81a8f xcdroast-0.98alpha15.tar.gz 3282794
+SHA256 40be77142b23fa62265a23e473bd3af43df6ab01332ea991a5ef3069530b28d8 xcdroast-0.98alpha15.tar.gz 3282794
--- /dev/null
+--- io.c.old 2007-04-08 20:52:37.338058804 +0200
++++ io.c 2007-04-08 20:53:11.997771247 +0200
+@@ -10031,7 +10031,7 @@
+
+ strcpy(ver,"");
+ get_wrap_path("MKISOFS",line);
+- strcat(line," -version 2>/dev/null");
++ strcat(line," -version 2>/dev/null | head -n 1");
+
+ dodebug(1, "calling: %s\n", line);
+ if ((fpin = popen(line,"r")) == NULL) {
+
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/xcdroast/xcdroast-0.98_alpha15-r5.ebuild,v 1.1 2007/04/10 11:38:38 pylon Exp $
+
+inherit eutils
+
+S=${WORKDIR}/${P/_/}
+DESCRIPTION="Old-school menu based front-end for CD and DVD writing"
+HOMEPAGE="http://www.xcdroast.org/"
+SRC_URI="mirror://sourceforge/xcdroast/${P/_/}.tar.gz
+ mirror://gentoo/${P}_new_configure.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="nls"
+
+DEPEND=">=x11-libs/gtk+-2.0.3
+ dev-util/pkgconfig"
+
+RDEPEND="virtual/cdrtools"
+
+src_unpack() {
+ unpack ${P/_/}.tar.gz
+ cd ${S}
+ unpack ${P}_new_configure.tar.gz
+
+ cd ${S}/src
+ epatch ${FILESDIR}/gtk2locale.patch
+ epatch ${FILESDIR}/modern_cdrtools.patch
+ epatch ${FILESDIR}/cdrecord_versions.patch
+ epatch ${FILESDIR}/cdrecord2wodim.patch
+ epatch ${FILESDIR}/cdda2wav2icedax.patch
+ epatch ${FILESDIR}/mkisofs2genisoimage.patch
+ use amd64 && epatch ${FILESDIR}/64bit_gsize.patch
+}
+
+src_compile() {
+ econf \
+ $(use_enable nls) \
+ --enable-gtk2 \
+ --disable-dependency-tracking || die
+
+ make PREFIX=/usr || die
+}
+
+src_install() {
+ make PREFIX=/usr DESTDIR=${D} install || die
+
+ cd ${S}/doc
+ dodoc DOCUMENTATION FAQ README* TRANSLATION.HOWTO
+
+ # move man pages to /usr/share/man to be LFH compliant
+ mv ${D}/usr/man ${D}/usr/share
+
+ # remove extraneous directory
+ rm ${D}/usr/etc -rf
+
+ insinto /usr/share/icons/hicolor/48x48/apps
+ newins ${S}/xpms/xcdricon.xpm xcdroast.xpm
+
+ make_desktop_entry xcdroast "X-CD-Roast" xcdroast "AudioVideo;DiscBurning"
+}