media-sound/qmmp: Sync with live ebuild fixes
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 25 Feb 2017 22:38:48 +0000 (23:38 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 25 Feb 2017 22:45:52 +0000 (23:45 +0100)
Reported-by: Vincent Hardy <vincent.hardy.be@gmail.com>
Gentoo-bug: 610838

Package-Manager: Portage-2.3.3, Repoman-2.3.1

media-sound/qmmp/qmmp-1.1.7-r1.ebuild [new file with mode: 0644]

diff --git a/media-sound/qmmp/qmmp-1.1.7-r1.ebuild b/media-sound/qmmp/qmmp-1.1.7-r1.ebuild
new file mode 100644 (file)
index 0000000..be65bb4
--- /dev/null
@@ -0,0 +1,147 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils
+[[ ${PV} = 9999 ]] && inherit subversion
+
+DESCRIPTION="Qt5-based audio player with winamp/xmms skins support"
+HOMEPAGE="http://qmmp.ylsoftware.com"
+if [[ ${PV} != 9999 ]]; then
+       SRC_URI="http://qmmp.ylsoftware.com/files/${P}.tar.bz2"
+       KEYWORDS="~amd64 ~x86"
+else
+       QMMP_DEV_BRANCH="1.1"
+       ESVN_REPO_URI="svn://svn.code.sf.net/p/${PN}-dev/code/branches/${PN}-${QMMP_DEV_BRANCH}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+# KEYWORDS further up
+IUSE="aac +alsa analyzer bs2b cdda cover crossfade cue curl +dbus enca ffmpeg flac game gnome
+jack ladspa libav lyrics +mad midi mms modplug mplayer musepack notifier opus oss projectm
+pulseaudio qsui qtmedia scrobbler sid sndfile soxr stereo tray udisks +vorbis wavpack"
+
+RDEPEND="
+       dev-qt/qtcore:5
+       dev-qt/qtgui:5
+       dev-qt/qtnetwork:5
+       dev-qt/qtwidgets:5
+       dev-qt/qtx11extras:5
+       media-libs/taglib
+       x11-libs/libX11
+       aac? ( media-libs/faad2 )
+       alsa? ( media-libs/alsa-lib )
+       bs2b? ( media-libs/libbs2b )
+       cdda? (
+               dev-libs/libcdio
+               dev-libs/libcdio-paranoia
+       )
+       cue? ( media-libs/libcue )
+       curl? ( net-misc/curl )
+       dbus? ( dev-qt/qtdbus:5 )
+       enca? ( app-i18n/enca )
+       ffmpeg? (
+               !libav? ( media-video/ffmpeg:= )
+               libav? ( media-video/libav:= )
+       )
+       flac? ( media-libs/flac )
+       game? ( media-libs/game-music-emu )
+       jack? (
+               media-libs/libsamplerate
+               media-sound/jack-audio-connection-kit
+       )
+       ladspa? ( media-libs/ladspa-cmt )
+       mad? ( media-libs/libmad )
+       midi? ( media-sound/wildmidi )
+       mms? ( media-libs/libmms )
+       modplug? ( >=media-libs/libmodplug-0.8.4 )
+       mplayer? ( media-video/mplayer )
+       musepack? ( >=media-sound/musepack-tools-444 )
+       opus? ( media-libs/opusfile )
+       projectm? (
+               dev-qt/qtgui:5[-gles2]
+               dev-qt/qtopengl:5
+               media-libs/libprojectm
+       )
+       pulseaudio? ( >=media-sound/pulseaudio-0.9.9 )
+       qtmedia? ( dev-qt/qtmultimedia:5 )
+       scrobbler? ( net-misc/curl )
+       sndfile? ( media-libs/libsndfile )
+       sid? ( >=media-libs/libsidplayfp-1.1.0 )
+       soxr? ( media-libs/soxr )
+       udisks? ( sys-fs/udisks:2 )
+       vorbis? (
+               media-libs/libogg
+               media-libs/libvorbis
+       )
+       wavpack? ( media-sound/wavpack )
+"
+DEPEND="${RDEPEND}
+       dev-qt/linguist-tools:5
+"
+
+DOCS=( AUTHORS ChangeLog README )
+
+REQUIRED_USE="gnome? ( dbus ) udisks? ( dbus )"
+
+src_prepare() {
+       if has_version dev-libs/libcdio-paranoia; then
+               sed -i \
+                       -e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \
+                       src/plugins/Input/cdaudio/decoder_cdaudio.cpp || die
+       fi
+
+       cmake-utils_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DUSE_ALSA="$(usex alsa)"
+               -DUSE_AAC="$(usex aac)"
+               -DUSE_ANALYZER="$(usex analyzer)"
+               -DUSE_BS2B="$(usex bs2b)"
+               -DUSE_CDA="$(usex cdda)"
+               -DUSE_CROSSFADE="$(usex crossfade)"
+               -DUSE_COVER="$(usex cover)"
+               -DUSE_CUE="$(usex cue)"
+               -DUSE_CURL="$(usex curl)"
+               -DUSE_ENCA="$(usex enca)"
+               -DUSE_FFMPEG="$(usex ffmpeg)"
+               -DUSE_FLAC="$(usex flac)"
+               -DUSE_GME="$(usex game)"
+               -DUSE_GNOMEHOTKEY="$(usex gnome)"
+               -DUSE_HAL=OFF
+               -DUSE_JACK="$(usex jack)"
+               -DUSE_KDENOTIFY="$(usex dbus)"
+               -DUSE_LADSPA="$(usex ladspa)"
+               -DUSE_LYRICS="$(usex lyrics)"
+               -DUSE_MAD="$(usex mad)"
+               -DUSE_MIDI="$(usex midi)"
+               -DUSE_MPLAYER="$(usex mplayer)"
+               -DUSE_MMS="$(usex mms)"
+               -DUSE_MODPLUG="$(usex modplug)"
+               -DUSE_MPRIS="$(usex dbus)"
+               -DUSE_MPC="$(usex musepack)"
+               -DUSE_NOTIFIER="$(usex notifier)"
+               -DUSE_OPUS="$(usex opus)"
+               -DUSE_OSS="$(usex oss)"
+               -DUSE_PROJECTM="$(usex projectm)"
+               -DUSE_PULSE="$(usex pulseaudio)"
+               -DUSE_QSUI="$(usex qsui)"
+               -DUSE_QTMULTIMEDIA="$(usex qtmedia)"
+               -DUSE_SCROBBLER="$(usex scrobbler)"
+               -DUSE_SID="$(usex sid)"
+               -DUSE_SNDFILE="$(usex sndfile)"
+               -DUSE_SOXR="$(usex soxr)"
+               -DUSE_STEREO="$(usex stereo)"
+               -DUSE_STATICON="$(usex tray)"
+               -DUSE_UDISKS2="$(usex udisks)"
+               -DUSE_VORBIS="$(usex vorbis)"
+               -DUSE_WAVPACK="$(usex wavpack)"
+       )
+
+       cmake-utils_src_configure
+}