media-sound/potamus: Update ffmpeg handling, bump eapi
authorPacho Ramos <pacho@gentoo.org>
Sun, 18 Sep 2016 10:16:32 +0000 (12:16 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 18 Sep 2016 11:01:15 +0000 (13:01 +0200)
Package-Manager: portage-2.3.0

media-sound/potamus/potamus-16.ebuild

index aa6e6654887e137581a29b2917cb89a91a77a722..01b06d0a8c718a1412c2469a933027b65360b53a 100644 (file)
@@ -1,42 +1,42 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=4
+EAPI=6
+inherit gnome2
 
-inherit gnome2 eutils
-
-DESCRIPTION="a lightweight audio player with a simple interface and an emphasis on high audio quality"
-HOMEPAGE="http://offog.org/code/potamus.html"
+DESCRIPTION="A lightweight audio player with a simple interface and an emphasis on high audio quality"
+HOMEPAGE="http://offog.org/code/potamus/"
 SRC_URI="http://offog.org/files/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="audiofile flac mad modplug opus vorbis +ao jack"
+IUSE="+ao audiofile flac jack libav mad modplug opus vorbis"
 
-RDEPEND="x11-libs/gtk+:2
+RDEPEND="
+       x11-libs/gtk+:2
        >=gnome-base/libglade-2
        media-libs/libsamplerate
-       virtual/ffmpeg
+       ao? ( media-libs/libao )
        audiofile? ( media-libs/audiofile )
        flac? ( media-libs/flac )
+       jack? ( media-sound/jack-audio-connection-kit )
+       libav? ( media-video/libav:= )
+       !libav? ( >=media-video/ffmpeg-2.8:0= )
        mad? ( media-libs/libmad )
        modplug? ( media-libs/libmodplug )
        opus? ( media-libs/opusfile )
        vorbis? ( media-libs/libvorbis )
-       ao? ( media-libs/libao )
-       jack? ( media-sound/jack-audio-connection-kit )"
+"
 DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+       virtual/pkgconfig
+"
 
-src_prepare() {
-       gnome2_src_prepare
-       has_version '>=media-video/ffmpeg-2.8' && epatch "${FILESDIR}/ffmpeg29.patch"
-}
+PATCHES=( "${FILESDIR}/ffmpeg29.patch" )
 
 src_configure() {
-       econf \
+       gnome2_src_configure \
                $(use_enable audiofile input-audiofile) \
                $(use_enable flac input-flac) \
                $(use_enable mad input-mad) \
@@ -47,7 +47,3 @@ src_configure() {
                $(use_enable jack output-jack)
 
 }
-
-src_install() {
-       default
-}