# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrkit/cdrkit-1.1.0.ebuild,v 1.3 2006/12/04 17:18:08 pylon 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://cdrkit.org/releases/${P}.tar.gz" LICENSE="GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~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_compile() { cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_C_COMPILER=$(which $(tc-getCC)) emake || die } src_install() { make DESTDIR=${D} install || die 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 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 }