2009-01-14 15:58:26 +01:00
|
|
|
# Copyright 1999-2009 Gentoo Foundation
|
2008-12-08 20:45:37 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2008-12-19 23:17:50 +01:00
|
|
|
EAPI="2"
|
2008-12-08 20:45:37 +01:00
|
|
|
|
|
|
|
KMNAME="extragear/multimedia"
|
|
|
|
inherit kde4-base subversion
|
|
|
|
|
|
|
|
DESCRIPTION="K3b, KDE CD Writing Software"
|
|
|
|
HOMEPAGE="http://www.k3b.org/"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
2008-12-19 23:17:50 +01:00
|
|
|
SLOT="2"
|
2008-12-08 20:45:37 +01:00
|
|
|
KEYWORDS=""
|
|
|
|
IUSE="css debug dvdr dvdread encode -ffmpeg flac hal htmlhandbook mp3 musepack
|
2009-01-14 15:58:26 +01:00
|
|
|
musicbrainz sndfile vcd vorbis emovix"
|
2008-12-08 20:45:37 +01:00
|
|
|
ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/extragear/multimedia/${PN}/@{${PV/2.0_pre/}}"
|
|
|
|
|
|
|
|
DEPEND="
|
2009-01-14 15:58:26 +01:00
|
|
|
kde-base/libkcddb
|
|
|
|
kde-base/libkcompactdisc
|
2008-12-08 20:45:37 +01:00
|
|
|
media-libs/libsamplerate
|
2009-01-14 15:58:26 +01:00
|
|
|
musicbrainz? ( media-libs/musicbrainz:1 )
|
2008-12-08 20:45:37 +01:00
|
|
|
media-libs/taglib
|
2009-01-14 15:58:26 +01:00
|
|
|
x11-libs/qt-webkit
|
2008-12-08 20:45:37 +01:00
|
|
|
dvdread? ( media-libs/libdvdread )
|
|
|
|
encode? ( media-sound/lame )
|
2009-01-14 15:58:26 +01:00
|
|
|
ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20080206 )
|
|
|
|
flac? ( >=media-libs/flac-1.2.1-r2[cxx] )
|
2008-12-08 20:45:37 +01:00
|
|
|
mp3? ( media-libs/libmad )
|
|
|
|
musepack? ( media-libs/libmpcdec )
|
|
|
|
sndfile? ( media-libs/libsndfile )
|
|
|
|
vorbis? ( media-libs/libvorbis )
|
|
|
|
"
|
|
|
|
|
|
|
|
RDEPEND="${DEPEND}
|
|
|
|
>=app-cdr/cdrdao-1.1.7-r3
|
|
|
|
>=media-sound/cdparanoia-3.9.8
|
|
|
|
media-sound/normalize
|
|
|
|
virtual/cdrtools
|
|
|
|
css? ( media-libs/libdvdcss )
|
|
|
|
dvdr? ( >=app-cdr/dvd+rw-tools-7.0 )
|
|
|
|
emovix? ( media-video/emovix )
|
|
|
|
encode? ( media-sound/sox
|
2009-01-14 15:58:26 +01:00
|
|
|
dvdread? ( media-video/transcode[dvdread] ) )
|
2008-12-08 20:45:37 +01:00
|
|
|
vcd? ( media-video/vcdimager )
|
|
|
|
"
|
|
|
|
|
2009-01-14 15:58:26 +01:00
|
|
|
src_configure() {
|
2008-12-08 20:45:37 +01:00
|
|
|
if use debug; then
|
|
|
|
mycmakeargs="${mycmakeargs} -DADD_K3B_DEBUG=On"
|
|
|
|
else
|
|
|
|
mycmakeargs="${mycmakeargs} -DADD_K3B_DEBUG=Off"
|
|
|
|
fi
|
|
|
|
|
|
|
|
mycmakeargs="${mycmakeargs} -DK3BSETUP_BUILD=Off
|
|
|
|
-DWITH_Samplerate=On
|
2009-01-14 15:58:26 +01:00
|
|
|
$(cmake-utils_use_with musicbrainz MusicBrainz)
|
2008-12-08 20:45:37 +01:00
|
|
|
$(cmake-utils_use_with dvdread DvdRead)
|
|
|
|
$(cmake-utils_use_with ffmpeg FFmpeg)
|
|
|
|
$(cmake-utils_use_with flac Flac)
|
|
|
|
$(cmake-utils_use_with flac Flac++)
|
|
|
|
$(cmake-utils_use_with encode Lame)
|
|
|
|
$(cmake-utils_use_with mp3 Mad)
|
|
|
|
$(cmake-utils_use_with musepack Muse)
|
|
|
|
$(cmake-utils_use_with sndfile Sndfile)
|
|
|
|
$(cmake-utils_use_with vorbis OggVorbis)"
|
|
|
|
|
2009-01-14 15:58:26 +01:00
|
|
|
kde4-base_src_configure
|
2008-12-08 20:45:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
kde4-base_src_install
|
|
|
|
dodoc "${S}"/{FAQ,KNOWNBUGS,PERMISSIONS} || die "Installing additional docs failed."
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
2009-01-14 15:58:26 +01:00
|
|
|
elog
|
2008-12-08 20:45:37 +01:00
|
|
|
elog "We don't install k3bsetup anymore because Gentoo doesn't need it."
|
|
|
|
elog "If you get warnings on start-up, uncheck the \"Check system"
|
|
|
|
elog "configuration\" option in the \"Misc\" settings window."
|
2009-01-14 15:58:26 +01:00
|
|
|
elog
|
2008-12-08 20:45:37 +01:00
|
|
|
|
|
|
|
local group=cdrom
|
|
|
|
use kernel_linux || group=operator
|
|
|
|
elog "Make sure you have proper read/write permissions on the cdrom device(s)."
|
|
|
|
elog "Usually, it is sufficient to be in the ${group} group."
|
2009-01-14 15:58:26 +01:00
|
|
|
elog
|
2008-12-08 20:45:37 +01:00
|
|
|
kde4-base_pkg_postinst
|
|
|
|
}
|