# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # NOTE: The comments in this file are for instruction and documentation. # They're not meant to appear with your final, production ebuild. Please # remember to remove them before submitting or committing your ebuild. That # doesn't mean you can't add your own comments though. # The 'Header' on the third line should just be left alone. When your ebuild # will be committed to cvs, the details on that line will be automatically # generated to contain the correct data. # inherit lists eclasses to inherit functions from. Almost all ebuilds should # inherit eutils, as a large amount of important functionality has been # moved there. For example, the $(get_libdir) mentioned below wont work # without the following line: inherit eutils mono # A well-used example of an eclass function that needs eutils is epatch. If # your source needs patches applied, it's suggested to put your patch in the # 'files' directory and use: # # epatch ${FILESDIR}/patch-name-here # # eclasses tend to list descriptions of how to use their functions properly. # take a look at /usr/portage/eclasses/ for more examples. DESCRIPTION="GShare is a GNOME-based application for file sharing" HOMEPAGE="http://www.yimports.com/~cpinto/projects/gnome/gshare" SRC_URI="http://yimports.com/~cpinto/downloads/gshare/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND=">=dev-lang/mono-1.1.13.6 >=dev-dotnet/gtk-sharp-2.8.0 >=dev-dotnet/glade-sharp-2.8.0 >=dev-dotnet/gconf-sharp-2.8.0 >=dev-dotnet/gnome-sharp-2.8.0 >=sys-apps/dbus-0.61 >=net-dns/avahi-0.6.9" pkg_setup() { if built_with_use sys-apps/dbus mono then einfo "Mono support enabled in sys-apps/dbus, I will continue..." else eerror "Please rebuild sys-apps/dbus, with mono support enabled!" eerror "Try USE=\"mono\" emerge sys-apps/dbus," eerror "or add \"mono\" to your USE string in /etc/make.conf and" eerror "emerge sys-apps/dbus." die "Mono USE flag must be enabled in sys-apps/dbus" fi if built_with_use sys-apps/dbus mono then einfo "Mono support enabled in net-dns/avahi, I will continue..." else eerror "Please rebuild net-dns/avahi, with mono support enabled!" eerror "Try USE=\"mono\" emerge net-dns/avahi," eerror "or add \"mono\" to your USE string in /etc/make.conf and" eerror "emerge net-dns/avahi." die "Mono USE flag must be enabled in net-dns/avahi" fi } src_compile() { cd ${S} #./autogen.sh --host=${CHOST} --prefix=/usr || die econf || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die }