diff options
Diffstat (limited to 'media-sound/audacious/audacious-3.9.ebuild')
-rw-r--r-- | media-sound/audacious/audacious-3.9.ebuild | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/media-sound/audacious/audacious-3.9.ebuild b/media-sound/audacious/audacious-3.9.ebuild index 464c12ddd859..8d0969f7e2fb 100644 --- a/media-sound/audacious/audacious-3.9.ebuild +++ b/media-sound/audacious/audacious-3.9.ebuild @@ -13,7 +13,9 @@ if [[ ${PV} == *9999 ]]; then inherit autotools git-r3 EGIT_REPO_URI="https://github.com/audacious-media-player/audacious.git" else - SRC_URI="http://distfiles.audacious-media-player.org/${MY_P}.tar.bz2" + SRC_URI=" + !gtk3? ( http://distfiles.audacious-media-player.org/${MY_P}.tar.bz2 ) + gtk3? ( http://distfiles.audacious-media-player.org/${MY_P}-gtk3.tar.bz2 )" KEYWORDS="~amd64 ~x86" fi @@ -21,8 +23,8 @@ SRC_URI+=" mirror://gentoo/gentoo_ice-xmms-0.2.tar.bz2" LICENSE="BSD-2" SLOT="0" -IUSE="gtk nls qt5" -REQUIRED_USE="^^ ( gtk qt5 )" +IUSE="gtk gtk3 nls qt5" +REQUIRED_USE="^^ ( gtk gtk3 qt5 )" RDEPEND=" >=dev-libs/dbus-glib-0.60 @@ -30,7 +32,8 @@ RDEPEND=" >=x11-libs/cairo-1.2.6 >=x11-libs/pango-1.8.0 virtual/freedesktop-icon-theme - gtk? ( x11-libs/gtk+:2 ) + gtk? ( x11-libs/gtk+:2 ) + gtk3? ( x11-libs/gtk+:3 ) qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 @@ -43,6 +46,11 @@ PDEPEND="~media-plugins/audacious-plugins-${PV}" src_unpack() { default + + if use gtk3; then + mv "${MY_P}"{-gtk3,} || die + fi + [[ ${PV} == *9999 ]] && git-r3_src_unpack } @@ -60,7 +68,7 @@ src_configure() { econf \ --disable-valgrind \ --enable-dbus \ - $(use_enable gtk) \ + $(use_enable $(usex gtk gtk gtk3) gtk) \ $(use_enable nls) \ $(use_enable qt5 qt) } |