linamh/app-cdr/k3b/k3b-2.0_pre20090114.ebuild
geos_one d5bd6a2c84 app-cdr/k3b: Bump
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@695 6952d904-891a-0410-993b-d76249ca496b
2009-01-14 14:58:26 +00:00

92 lines
2.5 KiB
Bash

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
KMNAME="extragear/multimedia"
inherit kde4-base subversion
DESCRIPTION="K3b, KDE CD Writing Software"
HOMEPAGE="http://www.k3b.org/"
LICENSE="GPL-2"
SLOT="2"
KEYWORDS=""
IUSE="css debug dvdr dvdread encode -ffmpeg flac hal htmlhandbook mp3 musepack
musicbrainz sndfile vcd vorbis emovix"
ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/extragear/multimedia/${PN}/@{${PV/2.0_pre/}}"
DEPEND="
kde-base/libkcddb
kde-base/libkcompactdisc
media-libs/libsamplerate
musicbrainz? ( media-libs/musicbrainz:1 )
media-libs/taglib
x11-libs/qt-webkit
dvdread? ( media-libs/libdvdread )
encode? ( media-sound/lame )
ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20080206 )
flac? ( >=media-libs/flac-1.2.1-r2[cxx] )
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
dvdread? ( media-video/transcode[dvdread] ) )
vcd? ( media-video/vcdimager )
"
src_configure() {
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
$(cmake-utils_use_with musicbrainz MusicBrainz)
$(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)"
kde4-base_src_configure
}
src_install() {
kde4-base_src_install
dodoc "${S}"/{FAQ,KNOWNBUGS,PERMISSIONS} || die "Installing additional docs failed."
}
pkg_postinst() {
elog
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."
elog
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."
elog
kde4-base_pkg_postinst
}