blob: 473e30aac202398de16f8bde3474ec6df8f1eaa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# 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-r3.ebuild,v 1.23 2007/01/24 02:35:01 genone Exp $
inherit eutils
S=${WORKDIR}/${P/_/}
DESCRIPTION="Menu based front-end to mkisofs and cdrecord"
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="x86 ppc sparc amd64"
IUSE="nls dvdr"
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
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
#install cdrecord.prodvd
if use dvdr; then
dosym /usr/bin/cdrecord-ProDVD /usr/lib/xcdroast-0.98/bin/cdrecord.prodvd
fi
insinto /usr/share/icons/hicolor/48x48/apps
newins ${S}/xpms/xcdricon.xpm xcdroast.xpm
make_desktop_entry xcdroast "X-CD-Roast" xcdroast "AudioVideo;DiscBurning"
}
pkg_postinst() {
if use dvdr; then
elog
elog "cdrecord-ProDVD has been installed with this package. It will be used only"
elog "for images larger than 1GB."
elog "You have to type in the license key that is available free for personal use."
elog "See ftp://ftp.berlios.de/pub/cdrecord/ProDVD/README for further information."
elog
fi
elog "Gtk1.x support have been removed from this package."
elog "All gtk use flags were removed."
elog "This package will only support GTK2.x from now on."
}
|