| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/gnome-keyring-sharp/gnome-keyring-sharp-1.0.2.ebuild,v 1.5 2011/03/21 20:28:17 ranger Exp $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
|
| 7 |
inherit mono
|
| 8 |
|
| 9 |
DESCRIPTION="C# implementation of gnome-keyring"
|
| 10 |
HOMEPAGE="http://www.mono-project.com/ https://github.com/mono/gnome-keyring-sharp"
|
| 11 |
SRC_URI="http://www.go-mono.com/archive/${PN}/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="MIT"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="amd64 ppc x86"
|
| 16 |
IUSE="doc"
|
| 17 |
|
| 18 |
RDEPEND=">=dev-lang/mono-2.0
|
| 19 |
>=gnome-base/libgnome-keyring-2.30.0
|
| 20 |
dev-dotnet/glib-sharp
|
| 21 |
doc? ( virtual/monodoc )"
|
| 22 |
DEPEND="${RDEPEND}
|
| 23 |
virtual/pkgconfig"
|
| 24 |
|
| 25 |
src_prepare() {
|
| 26 |
# Disable building samples.
|
| 27 |
sed -i -e 's:sample::' "${S}"/Makefile.in || die "sed failed"
|
| 28 |
}
|
| 29 |
|
| 30 |
src_configure() {
|
| 31 |
econf $(use_enable doc monodoc) || die "econf failed"
|
| 32 |
}
|
| 33 |
|
| 34 |
src_compile() {
|
| 35 |
# This dies without telling in docs with anything not -j1
|
| 36 |
# CSC=gmcs needed for http://bugs.gentoo.org/show_bug.cgi?id=250069
|
| 37 |
emake -j1 CSC=gmcs || die "emake failed"
|
| 38 |
}
|
| 39 |
|
| 40 |
src_install() {
|
| 41 |
emake DESTDIR="${D}" install || die "emake install failed"
|
| 42 |
dodoc AUTHORS ChangeLog README || die
|
| 43 |
mono_multilib_comply
|
| 44 |
find "${D}" -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
|
| 45 |
}
|