You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-dotnet/evolution-sharp/evolution-sharp-0.21.1-r1.e...

53 lines
1.4 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/evolution-sharp/evolution-sharp-0.21.1-r1.ebuild,v 1.5 2012/05/04 03:56:55 jdhore Exp $
EAPI=2
inherit mono gnome.org eutils autotools
DESCRIPTION="Mono bindings for Evolution"
HOMEPAGE="http://www.gnome.org/projects/beagle"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
# Does not build with <eds-2.24.0
# http://bugzilla.gnome.org/show_bug.cgi?id=563301
RDEPEND=">=gnome-extra/evolution-data-server-2.24
>=dev-dotnet/glib-sharp-2.12
>=dev-lang/mono-2"
DEPEND="${RDEPEND}
userland_GNU? ( >=sys-apps/findutils-4.4.0 )
>=dev-dotnet/gtk-sharp-gapi-2.12
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}/${PN}-0.21.1-version-check.patch"
epatch "${FILESDIR}/${PN}-0.21.1-gtk-sharp-dropped.patch"
# Drop .so versions since it's a headache to maintain otherwise
epatch "${FILESDIR}/${PN}-0.21.1-drop-soversion.patch"
eautoreconf
}
src_configure() {
econf --disable-static
}
src_compile() {
emake CSC=/usr/bin/gmcs || die
}
src_test() {
emake CSC=/usr/bin/gmcs check||die
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
dodoc AUTHORS ChangeLog MAINTAINERS NEWS README
mono_multilib_comply
find "${D}" -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
}