# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{11..14} ) PYTHON_REQ_USE="threads(+)" inherit flag-o-matic optfeature perl-functions python-single-r1 waf-utils DESCRIPTION="X(cross)platform Music Multiplexing System, next generation of the XMMS player" HOMEPAGE="https://github.com/XMMS2" SRC_URI="https://github.com/xmms2/xmms2-devel/releases/download/${PV}/${P}.tar.xz" LICENSE="GPL-2+ LGPL-2.1+" SLOT="0" KEYWORDS="~alpha amd64 ~arm ~loong ppc ~riscv x86" # IUSE static map to be passed to --with-{optionals,plugins}=opt1,opt2,... # flag:opt = `usev flag opt`, opt = `usev opt`, :opt = `echo opt` # (if have a use for some of these disabled features, please file a bug) XMMS2_OPTIONALS=( cxx:xmmsclient++,xmmsclient++-glib :launcher mlib-update:medialib-updater :nycli perl :pixmaps python server:s4 test:tests libvisual:vistest # disabled: et,mdns,migrate-collections,ruby,sqlite2s4,xmmsclient-cf,xmmsclient-ecore ) XMMS2_PLUGINS=( aac:faad airplay alsa ao :asx cdda :cue curl :diskwrite :equalizer ffmpeg:apefile,asf,avcodec,flv,tta :file flac fluidsynth:fluidsynth,mid1,midsquash gme :html ices :icymetaint :id3v2 jack :karaoke :m3u mac +mad modplug mp3:mpg123 :mp4 musepack :normalize :null :nulstripper opus oss :pls pulseaudio:pulse :replaygain samba sid sndfile speex tremor vocoder +vorbis :wave wavpack :xml xml:rss,xspf zeroconf:daap # disabled: coreaudio,gvfs,mms,nms,ofa,sc68,sun,waveout ) IUSE=" ${XMMS2_OPTIONALS[@]%:*} ${XMMS2_PLUGINS[@]%:*} +server " REQUIRED_USE=" ${PYTHON_REQUIRED_USE} test? ( server ) " RESTRICT="!test? ( test )" COMMON_DEPEND=" dev-libs/glib:2 sys-libs/readline:= libvisual? ( media-libs/libsdl[opengl,video] media-libs/libvisual:0.4 ) server? ( aac? ( media-libs/faad2 ) airplay? ( dev-libs/openssl:= ) alsa? ( media-libs/alsa-lib ) ao? ( media-libs/libao ) cdda? ( dev-libs/libcdio-paranoia:= dev-libs/libcdio:= media-libs/libdiscid ) curl? ( net-misc/curl ) ffmpeg? ( media-video/ffmpeg:= ) flac? ( media-libs/flac:= ) fluidsynth? ( media-sound/fluidsynth:= ) gme? ( media-libs/game-music-emu ) ices? ( media-libs/libogg media-libs/libshout media-libs/libvorbis ) jack? ( virtual/jack ) mac? (