blob: ae9df730aa258cd1f8637dfa3f999d36ea5bff47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/muine/muine-0.8.3.ebuild,v 1.8 2005/12/05 23:32:19 zaheerm Exp $
inherit gnome2 mono eutils multilib
DESCRIPTION="A music player for GNOME"
HOMEPAGE="http://muine.gooeylinux.org/"
SRC_URI="${HOMEPAGE}/${P}.tar.gz"
LICENSE="GPL-2"
IUSE="xine mad vorbis flac aac"
SLOT="0"
KEYWORDS="~ppc ~x86"
RDEPEND=">=dev-lang/mono-0.96
>=dev-dotnet/gtk-sharp-2.3.90
>=dev-dotnet/gnome-sharp-2.3.90
>=dev-dotnet/gnomevfs-sharp-2.3.90
>=dev-dotnet/glade-sharp-2.3.90
>=dev-dotnet/gconf-sharp-2.3.90
xine? ( >=media-libs/xine-lib-1_rc4 )
!xine? (
=media-libs/gstreamer-0.8*
=media-libs/gst-plugins-0.8*
=media-plugins/gst-plugins-gnomevfs-0.8*
mad? ( =media-plugins/gst-plugins-mad-0.8* )
vorbis? ( =media-plugins/gst-plugins-ogg-0.8*
=media-plugins/gst-plugins-vorbis-0.8* )
flac? ( =media-plugins/gst-plugins-flac-0.8* )
aac? (
=media-plugins/gst-plugins-faad-0.8*
>=media-libs/faad2-2.0-r4
)
)
>=media-libs/libid3tag-0.15.0b
>=media-libs/libvorbis-1.0
sys-libs/gdbm
>=gnome-base/gconf-2.0.0
>=gnome-base/gnome-vfs-2.0.0
>=x11-libs/gtk+-2.6.0
>=dev-util/intltool-0.29
>=sys-apps/dbus-0.23.2-r1
media-libs/flac"
DEPEND="${RDEPEND}
dev-util/pkgconfig
app-text/scrollkeeper"
use xine && \
G2CONF="${G2CONF} --enable-gstreamer=no" || \
G2CONF="${G2CONF} --enable-gstreamer=yes"
G2CONF="${G2CONF} $(use_enable aac faad2)"
USE_DESTDIR=1
DOCS="AUTHORS COPYING ChangeLog INSTALL \
MAINTAINERS NEWS README TODO"
pkg_setup() {
if ! built_with_use sys-apps/dbus mono ; then
echo
eerror "In order to compile muine, you need to have sys-apps/dbus emerged"
eerror "with 'mono' in your USE flags. Please add that flag, re-emerge"
eerror "dbus, and then emerge muine."
die "sys-apps/dbus is missing the .NET binding."
fi
}
src_unpack() {
unpack ${A}
cd ${S}
# Fix the install location of the dbus service file
sed -i "s:libdir)/dbus-1.0:datadir)/dbus-1:" \
${S}/data/Makefile.am || die "sed failed"
epatch ${FILESDIR}/${P}-gtk-sharp-2.x.90-compat.diff || die
epatch ${FILESDIR}/${P}-64-bit-int.diff || die
autoconf || die "autoconf failed"
automake || die "automake failed"
}
src_compile() {
gnome2_src_configure "$@"
emake -j1 || die "compile failure"
}
src_install() {
gnome2_src_install "$@"
insinto /usr/$(get_libdir)/muine/plugins/
doins ${S}/plugins/TrayIcon.dll
doins ${S}/plugins/DashboardPlugin.dll
}
pkg_postinst() {
einfo
einfo "Upstream no longer packages the tray icon plugin by default."
einfo "The Gentoo ebuilds will continue to install the plugin, if you don't"
einfo "want to use the plugin, remove TrayIcon.dll from"
einfo "/usr/$(get_libdir)/muine/plugins/"
}
|