diff options
-rw-r--r-- | app-cdr/xcdroast/ChangeLog | 10 | ||||
-rw-r--r-- | app-cdr/xcdroast/files/io_compile.patch | 21 | ||||
-rw-r--r-- | app-cdr/xcdroast/xcdroast-0.98_alpha16.ebuild | 55 |
3 files changed, 84 insertions, 2 deletions
diff --git a/app-cdr/xcdroast/ChangeLog b/app-cdr/xcdroast/ChangeLog index a1e646b541df..b2ea9aa41c5c 100644 --- a/app-cdr/xcdroast/ChangeLog +++ b/app-cdr/xcdroast/ChangeLog @@ -1,6 +1,12 @@ # 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.62 2007/12/14 18:17:39 armin76 Exp $ +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-cdr/xcdroast/ChangeLog,v 1.63 2009/03/01 23:48:08 patrick Exp $ + +*xcdroast-0.98_alpha16 (01 Mar 2009) + + 01 Mar 2009; Patrick Lauer <patrick@gentoo.org> +files/io_compile.patch, + +xcdroast-0.98_alpha16.ebuild: + Bump to alpha16. Closes #243246 and #258752 14 Dec 2007; Raúl Porcel <armin76@gentoo.org> xcdroast-0.98_alpha15-r5.ebuild: diff --git a/app-cdr/xcdroast/files/io_compile.patch b/app-cdr/xcdroast/files/io_compile.patch new file mode 100644 index 000000000000..7285bd335df0 --- /dev/null +++ b/app-cdr/xcdroast/files/io_compile.patch @@ -0,0 +1,21 @@ +--- src/io.c.org 2009-02-24 09:38:27.000000000 +0100 ++++ src/io.c 2009-02-24 09:45:18.000000000 +0100 +@@ -1903,7 +1903,8 @@ + } + + strcpy(str,""); +- fgets(str,MAXLINE,fpin); ++ if (fgets(str,MAXLINE,fpin) == NULL) ++ g_error("fgets error\n"); + + if (pclose(fpin) == -1) { + g_error("pclose error\n"); +@@ -4720,7 +4721,7 @@ + dolog(3, "Saving extended output to %s\n", fname); + + /* write to file */ +- fd = open(fname,O_WRONLY | O_CREAT); ++ fd = open(fname, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); + if (fd < 0) { + g_warning("Can't open file %s for writing\n",fname); + return 1; diff --git a/app-cdr/xcdroast/xcdroast-0.98_alpha16.ebuild b/app-cdr/xcdroast/xcdroast-0.98_alpha16.ebuild new file mode 100644 index 000000000000..44bf65e14d8e --- /dev/null +++ b/app-cdr/xcdroast/xcdroast-0.98_alpha16.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2009 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.ebuild,v 1.1 2009/03/01 23:48:08 patrick Exp $ + +inherit 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 ~sparc ~x86" +IUSE="nls" + +RDEPEND=">=x11-libs/gtk+-2 + virtual/cdrtools" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S=${WORKDIR}/${P/_/} + +src_unpack() { + unpack ${P/_/}.tar.gz + cd "${S}" + epatch "${FILESDIR}/io_compile.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" +} + |