summaryrefslogtreecommitdiff
blob: 3d2ec5522f3e545c245c6680f0bace75456a9069 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/dvdrtools/dvdrtools-0.1.6.ebuild,v 1.1 2004/07/11 21:22:04 pylon Exp $

inherit eutils gcc gnuconfig

DESCRIPTION="A fork of cdrtools, including DVD support."
HOMEPAGE="http://www.nongnu.org/dvdrtools/"
SRC_URI="http://files.generaal.net/dvdrtools/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="virtual/libc
	!app-cdr/cdrtools"
PROVIDE="virtual/cdrtools"

src_unpack() {
	unpack ${A}

	cd ${S}/librscg
	sed -i -e "s:/opt/schily:/usr:g" scsi-remote.c
}

src_compile() {
	econf
	emake
}

src_install() {
	cd ${S}
	dobin cdda2wav/cdda2wav
	dobin cdrecord/dvdrecord
	dobin mkisofs/mkisofs
	dobin readcd/readcd
	dosym /usr/bin/dvdrecord /usr/bin/cdrecord

	cd mkisofs/diag
	dobin devdump isodump isoinfo isovfy

	cd ${S}
	insinto /etc/default
	install rscsi/rscsi.dfl ${D}/etc/default/rscsi
	install cdrecord/cdrecord.dfl ${D}/etc/cdrecord.conf

	cd ${S}
	dolib.a {libdeflt,libfile,libhfs_iso,librscg,libscg,libschily,libunls}/*.a

	cd ${S}
	insinto /usr/include/scsilib
	doins include/*.h
	insinto /usr/include/scsilib/scg
	doins libscg/scg/*.h

	cd ${S}
	dodoc COPYING AUTHORS Changelog NEWS README
	doman */*.1
	doman */*.8

	cd ${S}/doc
	docinto print
	dodoc *.ps
}

pkg_postinst() {
	einfo "This version of dvdrtools does not support ATAPI writing, you must use SCSI emulation."
}