summaryrefslogtreecommitdiff
blob: 3b9baca0985d2a0fdaac58858a972bcb2156b66e (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/nero/nero-3.0.0.0.ebuild,v 1.3 2007/06/29 14:21:43 drac Exp $

inherit eutils fdo-mime rpm multilib

DESCRIPTION="Nero Burning ROM for Linux"
HOMEPAGE="http://nerolinux.nero.com"
SRC_URI="x86? ( mirror://${PN}/${PN}linux-${PV}-x86.rpm )
	amd64? ( mirror://${PN}/${PN}linux-${PV}-x86_64.rpm )"

LICENSE="Nero"
SLOT="0"
# Should be all ready for ~amd64 but needs to be tested.
KEYWORDS="~x86"
IUSE="doc"

RDEPEND="x11-libs/libX11
	>=x11-libs/gtk+-2"
DEPEND=""

RESTRICT="nostrip nomirror"

# Poor attempt to shut up QA notices for binary package.
QA_TEXTRELS="opt/nero/lib/nero/plug-ins/libOggVorbis.so
	opt/nero/lib/nero/plug-ins/libMP3.so
	opt/nero/lib/nero/plug-ins/libDefConvertor.so
	opt/nero/lib/nero/plug-ins/libFLAC.so"

S="${WORKDIR}"

src_compile() {
	echo "Nothing to compile."
}

src_install() {
	insinto /etc
	doins -r etc/${PN}
	dosym /opt/${PN}/etc/${PN}/config /etc/${PN}/config

	insinto /opt/${PN}
	doins -r usr/$(get_libdir)
	dosym /opt/nero/$(get_libdir)/nero/plug-ins /usr/$(get_libdir)/nero/plug-ins

	exeinto /opt/${PN}
	doexe usr/bin/${PN}

	insinto /usr/share
	doins -r usr/share/${PN} usr/share/locale

	domenu usr/share/applications/${PN}linux.desktop
	dodoc usr/share/doc/${PN}/NEWS
	use doc && dodoc usr/share/doc/${PN}/*.pdf

	make_wrapper ${PN} ./${PN} /opt/${PN} /opt/${PN}/$(get_libdir) || die "make_wrapper failed."
}

pkg_postinst() {
	fdo-mime_desktop_database_update
	fdo-mime_mime_database_update

	elog "NOTE: This is demo software, it will run for a trial"
	elog "period only until unlocked with a serial number."
	elog "See ${HOMEPAGE} for details."
	elog
	elog "Technical support for NeroLINUX is provided by CDFreaks"
	elog "Linux forum at http://club.cdfreaks.com/forumdisplay.php?f=104"
	elog
	elog "Please make sure that no hdX=ide-scsi option is passed to your kernel command line."
	elog
	elog "You also need to setup your user to cdrom group."
	elog
}

pkg_postrm() {
	fdo-mime_desktop_database_update
	fdo-mime_mime_database_update
}