blob: 30cfa556402715e3e6f652c20e49b161d7a8aa21 (
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrdao/cdrdao-1.1.8-r1.ebuild,v 1.10 2004/07/14 14:01:00 lv Exp $
inherit flag-o-matic eutils gcc
DESCRIPTION="Burn CDs in disk-at-once mode -- with optional GUI frontend"
HOMEPAGE="http://cdrdao.sourceforge.net/"
SRC_URI="mirror://sourceforge/cdrdao/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc amd64"
IUSE="gnome debug"
RESTRICT="nostrip"
RDEPEND=">=media-sound/lame-3.90
gnome? ( =dev-cpp/gtkmm-2.2*
=dev-cpp/libgnomemm-2.0*
=dev-cpp/gconfmm-2.0*
=dev-cpp/libgnomecanvasmm-2.0*
=dev-cpp/libgnomeuimm-2.0.0 )"
DEPEND=">=dev-util/pccts-1.33.24-r1
>=app-cdr/cdrtools-2.01_alpha20
${RDEPEND}
>=sys-apps/sed-4"
src_unpack() {
if ([ "`gcc-major-version`" -ge "3" -a "`gcc-minor-version`" -ge "4" ] && use gnome); then
eerror "xdao current will not compile using gcc 3.4. in order to compile"
eerror "and install cdrdao, you will have to USE="-gnome". a simple way"
eerror "to do this via portage is to:"
einfo "mkdir -p /etc/portage"
einfo "echo \"app-cdr/cdrdao -gnome\" >> /etc/portage/package.use"
die "xdao wont compile using gcc 3.4"
fi
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-gcc34.patch
# Add gentoo to version
sed -i -e "s:^PACKAGE_STRING='cdrdao 1.1.8':PACKAGE_STRING='cdrdao 1.1.8 gentoo':" configure
# Only way to disable gcdmaster currently ...
use gnome || sed -i -e 's:^en_xdao=yes:en_xdao=no:g' configure
# Display better SCSI messages (advise from Bug 43003)
cd scsilib/include
sed -i -e 's:HAVE_SCANSTACK:NO_FRIGGING_SCANSTACK:g' xmconfig.h
sed -i -e 's:HAVE_SCANSTACK:NO_FRIGGING_SCANSTACK:g' mconfig.h
if [ "${ARCH}" = "amd64" ]
then
cd ${S}
epatch ${FILESDIR}/${P}-cast.patch
cd scsilib/RULES
cp i686-linux-cc.rul x86_64-linux-cc.rul
fi
}
src_compile() {
# -funroll-loops do not work
filter-flags "-funroll-loops"
./configure --build="${CHOST}"\
--host="${CHOST}" \
--prefix=/usr \
`use_enable debug debug` \
`use_with gnome gnome` || die "configure failed"
emake || die
}
src_install() {
einstall
cd ${S}
# Desktop Icon
if use gnome
then
insinto /usr/share/pixmaps
doins xdao/stock/gcdmaster.png
insinto /usr/share/gnome/apps/Applications
doins ${FILESDIR}/gcdmaster.desktop
fi
# Documentation
dodoc AUTHORS CREDITS ChangeLog NEWS README*
}
|