1 |
# Copyright 1999-2013 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/mp3splt-gtk/mp3splt-gtk-0.7.3.ebuild,v 1.4 2013/01/13 11:28:46 ago Exp $ |
4 |
|
5 |
EAPI=2 |
6 |
inherit versionator autotools multilib |
7 |
|
8 |
DESCRIPTION="a GTK+ based utility to split mp3 and ogg files without decoding." |
9 |
HOMEPAGE="http://mp3splt.sourceforge.net" |
10 |
SRC_URI="mirror://sourceforge/mp3splt/${P}.tar.gz" |
11 |
|
12 |
LICENSE="GPL-2" |
13 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
15 |
IUSE="audacious doc gtk3 gnome gstreamer nls" |
16 |
|
17 |
RDEPEND=">=media-libs/libmp3splt-0.8.1 |
18 |
gtk3? ( x11-libs/gtk+:3 |
19 |
audacious? ( >=media-sound/audacious-3.0 ) ) |
20 |
!gtk3? ( >=x11-libs/gtk+-2.18:2 |
21 |
audacious? ( <media-sound/audacious-3.0 ) ) |
22 |
!audacious? ( dev-libs/dbus-glib ) |
23 |
gstreamer? ( media-libs/gst-plugins-base:0.10 ) |
24 |
gnome? ( gnome-base/libgnomeui )" |
25 |
DEPEND="${RDEPEND} |
26 |
gnome? ( app-text/gnome-doc-utils app-text/rarian ) |
27 |
nls? ( sys-devel/gettext )" |
28 |
|
29 |
src_prepare() { |
30 |
if use audacious; then |
31 |
sed -i \ |
32 |
-e 's:@AUDACIOUS_LIBS@:-laudclient &:' \ |
33 |
src/Makefile.am || die |
34 |
fi |
35 |
|
36 |
eautoreconf |
37 |
} |
38 |
|
39 |
src_configure() { |
40 |
local myconf |
41 |
|
42 |
use nls || myconf+=" --disable-nls" |
43 |
use audacious || myconf+=" --disable-audacious" |
44 |
use gstreamer || myconf+=" --disable-gstreamer" |
45 |
|
46 |
econf \ |
47 |
--disable-dependency-tracking \ |
48 |
--with-mp3splt-libraries=/usr/$(get_libdir) \ |
49 |
--with-mp3splt-includes=/usr/include/libmp3splt \ |
50 |
$(use_enable gnome) \ |
51 |
$(use_enable doc doxygen_doc) \ |
52 |
$(use_enable gtk3) \ |
53 |
--disable-cutter \ |
54 |
${myconf} |
55 |
} |
56 |
|
57 |
src_install() { |
58 |
emake DESTDIR="${D}" install || die |
59 |
dodoc AUTHORS ChangeLog NEWS README |
60 |
} |