blob: d29c54891b95e4b7c731a529f2ccba6fc81c9c38 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrkit/cdrkit-1.1.6.ebuild,v 1.2 2007/07/06 16:03:20 gustavoz Exp $
inherit eutils toolchain-funcs
DESCRIPTION="A suite of programs for recording CDs and DVDs, blanking CD-RW media, creating ISO-9660 filesystem images, extracting audio CD data, and more."
HOMEPAGE="http://cdrkit.org/"
SRC_URI="http://debburn.alioth.debian.org/${P}.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 sparc ~x86 ~x86-fbsd"
IUSE="hfs unicode kernel_linux kernel_FreeBSD"
DEPEND=">=dev-util/cmake-2.4
!app-cdr/cdrtools
kernel_linux? ( sys-libs/libcap )
unicode? ( virtual/libiconv )
hfs? ( sys-apps/file )"
RDEPEND="unicode? ( virtual/libiconv )"
PROVIDE="virtual/cdrtools"
src_unpack() {
unpack ${A}
cd "${S}"
}
src_compile() {
cmake \
-DCMAKE_C_COMPILER=$(type -P $(tc-getCC)) \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_CXX_COMPILER=$(type -P $(tc-getCXX)) \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
|| die "cmake failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR=${D} install || die "emake install failed"
dosym /usr/bin/wodim /usr/bin/cdrecord
dosym /usr/bin/genisoimage /usr/bin/mkisofs
dosym /usr/bin/icedax /usr/bin/cdda2wav
dosym /usr/bin/readom /usr/bin/readcd
dosym /usr/share/man/man1/wodim.1.bz2 /usr/share/man/man1/cdrecord.1.bz2
dosym /usr/share/man/man1/genisoimage.1.bz2 /usr/share/man/man1/mkisofs.1.bz2
dosym /usr/share/man/man1/icedax.1.bz2 /usr/share/man/man1/cdda2wav.1.bz2
dosym /usr/share/man/man1/readom.1.bz2 /usr/share/man/man1/readcd.1.bz2
cd ${S}
dodoc ABOUT Changelog FAQ FORK START TODO VERSION
cd ${S}/doc/READMEs
dodoc README*
cd ${S}/doc/wodim
dodoc README*
cd ${S}/doc/genisoimage
docinto genisoimage
dodoc *
cd ${S}/doc/icedax
docinto icedax
dodoc FAQ Frontends HOWTOUSE NEEDED README TODO
cd ${S}/doc/plattforms
docinto platforms
dodoc README.{linux,parallel}
cd ${S}
insinto /etc
newins wodim/wodim.dfl wodim.conf
newins netscsid/netscsid.dfl netscsid.conf
cd ${S}
insinto /usr/include/scsilib
doins include/*.h
insinto /usr/include/scsilib/usal
doins include/usal/*.h
dosym /usr/include/scsilib/usal /usr/include/scsilib/scg
}
|