1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-cdr/k3b/k3b-1.91.0_rc2.ebuild,v 1.2 2010/05/03 18:05:39 ssuominen Exp $
7 KDE_LINGUAS="ast be bg ca ca@valencia cs csb da de el en_GB eo es et eu fi fr ga
8 gl he hi hne hr hu is it ja km ko ku lt mai nb nds nl nn oc pa pl pt pt_BR ro ru
9 se sk sl sv th tr uk zh_CN zh_TW"
10 KDE_DOC_DIRS="doc doc-translations/%lingua_${PN}"
13 DESCRIPTION="The CD/DVD Kreator for KDE"
14 HOMEPAGE="http://www.k3b.org/"
15 SRC_URI="mirror://sourceforge/${PN}/${P/_}.tar.bz2"
17 LICENSE="GPL-2 FDL-1.2"
19 KEYWORDS="amd64 ~ppc ~ppc64 ~x86"
20 IUSE="debug dvd emovix encode ffmpeg flac +handbook mad lame musepack musicbrainz sndfile sox taglib vcd vorbis +wav"
22 DEPEND=">=kde-base/libkcddb-${KDE_MINIMAL}
23 media-libs/libsamplerate
24 dvd? ( media-libs/libdvdread )
25 ffmpeg? ( >=media-video/ffmpeg-0.5 )
26 flac? ( >=media-libs/flac-1.2[cxx] )
27 encode? ( lame? ( media-sound/lame ) )
28 mad? ( media-libs/libmad )
29 musepack? ( >=media-sound/musepack-tools-444 )
30 musicbrainz? ( media-libs/musicbrainz:1 )
31 sndfile? ( media-libs/libsndfile )
32 taglib? ( >=media-libs/taglib-1.5 )
33 vorbis? ( media-libs/libvorbis )"
37 media-sound/cdparanoia
39 dvd? ( >=app-cdr/dvd+rw-tools-7
40 encode? ( media-video/transcode[dvd] ) )
41 emovix? ( media-video/emovix )
42 encode? ( sox? ( media-sound/sox ) )
43 vcd? ( media-video/vcdimager )"
45 DOCS="ChangeLog FAQ PERMISSIONS README RELEASE_HOWTO TODO"
50 "${FILESDIR}/${PN}-1.69.0-conditional-inclusion.patch"
58 mycmakeargs+=( "-DK3B_BUILD_K3BSETUP=OFF"
59 $(cmake-utils_use debug K3B_DEBUG)
60 $(cmake-utils_use musicbrainz K3B_ENABLE_MUSICBRAINZ)
61 $(cmake-utils_use dvd K3B_ENABLE_DVD_RIPPING)
62 $(cmake-utils_use taglib K3B_ENABLE_TAGLIB)
63 "-DK3B_BUILD_API_DOCS=OFF"
64 $(cmake-utils_use ffmpeg K3B_BUILD_FFMPEG_DECODER_PLUGIN)
65 $(cmake-utils_use vorbis K3B_BUILD_OGGVORBIS_DECODER_PLUGIN)
66 $(cmake-utils_use mad K3B_BUILD_MAD_DECODER_PLUGIN)
67 $(cmake-utils_use musepack K3B_BUILD_MUSE_DECODER_PLUGIN)
68 $(cmake-utils_use flac K3B_BUILD_FLAC_DECODER_PLUGIN)
69 $(cmake-utils_use sndfile K3B_BUILD_SNDFILE_DECODER_PLUGIN)
70 $(cmake-utils_use wav K3B_BUILD_WAVE_DECODER_PLUGIN)
71 $(cmake-utils_use encode K3B_BUILD_EXTERNAL_ENCODER_PLUGIN) )
74 mycmakeargs+=( $(cmake-utils_use vorbis K3B_BUILD_OGGVORBIS_ENCODER_PLUGIN)
75 $(cmake-utils_use lame K3B_BUILD_LAME_ENCODER_PLUGIN)
76 $(cmake-utils_use sox K3B_BUILD_SOX_ENCODER_PLUGIN) )
79 kde4-base_src_configure
83 kde4-base_pkg_postinst
86 elog "We don't install k3bsetup anymore because Gentoo doesn't need it."
87 elog "If you get warnings on start-up, uncheck the \"Check system"
88 elog "configuration\" option in the \"Misc\" settings window."
92 use kernel_linux || group=operator
93 elog "Make sure you have proper read/write permissions on the cdrom device(s)."
94 elog "Usually, it is sufficient to be in the ${group} group."