dev-dotnet/ndesk-dbus-glib: Fix compat with mono-4
authorPacho Ramos <pacho@gentoo.org>
Sun, 9 Oct 2016 08:43:25 +0000 (10:43 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 9 Oct 2016 09:03:45 +0000 (11:03 +0200)
Package-Manager: portage-2.3.1

dev-dotnet/ndesk-dbus-glib/ndesk-dbus-glib-0.4.1.ebuild

index 3cec3cf01868639a3032d6f23882f44a62dfc336..93a4d59e99b79a46a6fd12ae83977c562cc0bd41 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=3
-inherit mono multilib
+EAPI=6
+inherit mono-env
 
 DESCRIPTION="glib integration for DBus-Sharp"
 HOMEPAGE="http://www.ndesk.org/DBusSharp"
@@ -12,17 +12,18 @@ SRC_URI="http://www.ndesk.org/archive/dbus-sharp/${P}.tar.gz"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
-IUSE="debug"
+IUSE=""
 
-RDEPEND=">=dev-lang/mono-1.2.4
-                >=dev-dotnet/ndesk-dbus-0.4"
+RDEPEND="
+       >=dev-lang/mono-1.2.4
+       >=dev-dotnet/ndesk-dbus-0.4
+"
 DEPEND="${RDEPEND}
-               virtual/pkgconfig"
+       virtual/pkgconfig
+"
 
-src_compile() {
-       emake || die "make failed"
-}
-
-src_install() {
-       emake DESTDIR="${D}" install || die "install failed"
+src_prepare() {
+       default
+       # mono-4 compat
+       sed -i "s#gmcs#mcs#g" configure || die
 }