Warning, /multimedia/kwave/kwave.ebuild.in is written in an unsupported language. File is not indexed.

0001 # Copyright 1999-2016 Gentoo Foundation
0002 # Distributed under the terms of the GNU General Public License v2
0003 # $Id$
0004 
0005 EAPI=6
0006 
0007 KDE_HANDBOOK="forceoptional"
0008 inherit kde5
0009 
0010 DESCRIPTION="A sound editor built on KDE Frameworks 5 that can edit many types of audio files."
0011 HOMEPAGE="http://kwave.sourceforge.net/"
0012 if [[ ${KDE_BUILD_TYPE} != live ]]; then
0013         SRC_URI="mirror://sourceforge/${PN}/${P}-1.tar.bz2"
0014 fi
0015 
0016 LICENSE="
0017         CC-BY-SA-3.0 CC0-1.0 GPL-2+ LGPL-2+
0018         handbook? ( FDL-1.2 )
0019         opus? ( BSD-2 )
0020 "
0021 KEYWORDS="amd64 ~ppc x86"
0022 IUSE="alsa flac mp3 +qtmedia opus oss pulseaudio vorbis"
0023 
0024 COMMON_DEPEND="
0025         $(add_frameworks_dep kcompletion)
0026         $(add_frameworks_dep kconfig)
0027         $(add_frameworks_dep kconfigwidgets)
0028         $(add_frameworks_dep kcoreaddons)
0029         $(add_frameworks_dep kcrash)
0030         $(add_frameworks_dep kdbusaddons)
0031         $(add_frameworks_dep ki18n)
0032         $(add_frameworks_dep kiconthemes)
0033         $(add_frameworks_dep kio)
0034         $(add_frameworks_dep kservice)
0035         $(add_frameworks_dep ktextwidgets)
0036         $(add_frameworks_dep kwidgetsaddons)
0037         $(add_frameworks_dep kxmlgui)
0038         $(add_qt_dep qtgui)
0039         $(add_qt_dep qtwidgets)
0040         media-libs/audiofile:=
0041         >=sci-libs/fftw-3
0042         media-libs/libsamplerate
0043         alsa? ( media-libs/alsa-lib )
0044         flac? ( media-libs/flac )
0045         mp3? (
0046                 media-libs/id3lib
0047                 media-libs/libmad
0048                 || ( media-sound/lame media-sound/toolame media-sound/twolame )
0049         )
0050         qtmedia? ( $(add_qt_dep qtmultimedia) )
0051         opus? (
0052                 media-libs/libogg
0053                 media-libs/opus
0054         )
0055         pulseaudio? ( media-sound/pulseaudio )
0056         vorbis? (
0057                 media-libs/libogg
0058                 media-libs/libvorbis
0059         )
0060 "
0061 DEPEND="${COMMON_DEPEND}
0062         $(add_kdeapps_dep poxml)
0063         $(add_qt_dep qtconcurrent)
0064         || ( media-gfx/imagemagick[png,svg] media-gfx/graphicsmagick[imagemagick,png,svg] )
0065         sys-devel/gettext
0066 "
0067 RDEPEND="${COMMON_DEPEND}
0068         !media-sound/kwave:4
0069 "
0070 
0071 DOCS=( AUTHORS CHANGES LICENSES README TODO )
0072 
0073 src_configure() {
0074         local mycmakeargs=(
0075                 -DDEBUG=$(usex debug)
0076                 -DWITH_ALSA=$(usex alsa)
0077                 -DWITH_DOC=$(usex handbook)
0078                 -DWITH_FLAC=$(usex flac)
0079                 -DWITH_MP3=$(usex mp3)
0080                 -DWITH_OGG_VORBIS=$(usex vorbis)
0081                 -DWITH_OGG_OPUS=$(usex opus)
0082                 -DWITH_OSS=$(usex oss)
0083                 -DWITH_PULSEAUDIO=$(usex pulseaudio)
0084                 -DWITH_QT_AUDIO=$(usex qtmedia)
0085         )
0086 
0087         kde5_src_configure
0088 }