public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mikhail Pukhlikov" <cynede@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-util/monodevelop/
Date: Sun, 13 Nov 2016 14:14:11 +0000 (UTC)	[thread overview]
Message-ID: <1477628646.a82b5de26e3005aa53bac7a906317c22a8e1fe67.cynede@gentoo> (raw)

commit:     a82b5de26e3005aa53bac7a906317c22a8e1fe67
Author:     Bennjamin Blast <bennjamin.blast <AT> gmail <DOT> com>
AuthorDate: Fri Oct 28 04:22:36 2016 +0000
Commit:     Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Fri Oct 28 04:24:06 2016 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=a82b5de2

dev-util/monodevelop-9999 builds

 dev-util/monodevelop/monodevelop-9999.ebuild | 105 +++++++++++++++++++--------
 1 file changed, 74 insertions(+), 31 deletions(-)

diff --git a/dev-util/monodevelop/monodevelop-9999.ebuild b/dev-util/monodevelop/monodevelop-9999.ebuild
index 0f34c9c..121523e 100644
--- a/dev-util/monodevelop/monodevelop-9999.ebuild
+++ b/dev-util/monodevelop/monodevelop-9999.ebuild
@@ -1,57 +1,100 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
-inherit fdo-mime gnome2-utils dotnet versionator eutils git-2
+inherit fdo-mime gnome2-utils dotnet versionator eutils git-r3
 
 DESCRIPTION="Integrated Development Environment for .NET"
 HOMEPAGE="http://www.monodevelop.com/"
+LICENSE="LGPL-2 MIT"
+LICENSE+=" Apache-2.0" # fsharpbinding, monomac
+LICENSE+=" GPL-2" # ikvm, mono-tools
+LICENSE+=" GPL-2-with-classpath-exception" # ikvm
+LICENSE+=" GPL-2-with-linking-exception" # libgit2
 
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+EGIT_COMMIT="${P}"
 EGIT_REPO_URI="git://github.com/mono/monodevelop.git"
-EGIT_HAS_SUBMODULES=1
+EGIT_SUBMODULES=( '*' ) # todo: replace certain submodules with system packages
 
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS=""
-IUSE="doc test"
+if [ "${PV}" == "9999" ]; then
+	EGIT_COMMIT="HEAD"
+	KEYWORDS=""
+fi
+
+USE_DOTNET="net45" # todo: necessary?
+IUSE="${USE_DOTNET} +subversion +git qtcurve test"
 
-RDEPEND=">=dev-lang/mono-3.2.8
-	>=dev-dotnet/gnome-sharp-2.24.2-r1
+COMMON_DEPEND="
+	>=dev-lang/mono-4.4.1
 	>=dev-dotnet/gtk-sharp-2.12.21:2
-	>=dev-dotnet/mono-addins-1.0[gtk]
-	doc? ( dev-util/mono-docbrowser )
-	>=dev-dotnet/xsp-2
+	>=dev-dotnet/nuget-2.8.7
+	dev-dotnet/referenceassemblies-pcl
+	>=dev-lang/fsharp-4.0.1.15
+	net-libs/libssh2"
+RDEPEND="${COMMON_DEPEND}
 	dev-util/ctags
 	sys-apps/dbus[X]
-	!<dev-util/monodevelop-boo-$(get_version_component_range 1-2)
-	!<dev-util/monodevelop-java-$(get_version_component_range 1-2)
-	!<dev-util/monodevelop-database-$(get_version_component_range 1-2)
-	!<dev-util/monodevelop-debugger-gdb-$(get_version_component_range 1-2)
-	!<dev-util/monodevelop-debugger-mdb-$(get_version_component_range 1-2)
-	!<dev-util/monodevelop-vala-$(get_version_component_range 1-2)"
-DEPEND="${RDEPEND}
+	>=www-servers/xsp-2
+	git? ( dev-vcs/git )
+	subversion? ( dev-vcs/subversion )"
+DEPEND="${COMMON_DEPEND}
 	dev-util/intltool
 	virtual/pkgconfig
 	sys-devel/gettext
-	x11-misc/shared-mime-info"
-MAKEOPTS="${MAKEOPTS} -j1" #nowarn
+	x11-misc/shared-mime-info
+	x11-terms/xterm
+	app-arch/unzip"
+
+S="${WORKDIR}/${P}/main"
+
+src_unpack() {
+	git-r3_fetch
+	git-r3_checkout
+	nuget restore "${S}"
+	default
+}
 
 src_prepare() {
-	# Set specific_version to prevent binding problem
-	# when gtk#-3 is installed alongside gtk#-2
+	# use system nuget
+	find "${S}" -name 'Makefile*' -exec sed -i 's|mono .nuget/NuGet.exe|nuget|g' {} + || die
+
+	# prevent binding problem when gtk#-3 is installed alongside gtk#-2
 	find "${S}" -name '*.csproj' -exec sed -i 's#<SpecificVersion>.*</SpecificVersion>#<SpecificVersion>True</SpecificVersion>#' {} + || die
+
+	# this fsharpbinding test won't build
+	sed -i 's|<Compile Include="TemplateTests.fs" />|<None Include="TemplateTests.fs" />|g' "${S}"/external/fsharpbinding/MonoDevelop.FSharp.Tests/MonoDevelop.FSharp.Tests.fsproj || die
+
+	use qtcurve && epatch -p2 "${FILESDIR}/kill-qtcurve-warning.patch"
+
+	# generate configure script but don't execute yet
+	NOCONFIGURE=1 ./autogen.sh
+
+	default
 }
 
 src_configure() {
-	if use test
-		then tests="--enable-tests"
-		else tests=""
-	fi
-	./configure \
-		--prefix=/usr \
-		--profile=stable \
-		"${tests}" || die
+	# env vars are added as the fix for https://github.com/gentoo/dotnet/issues/29
+	MCS=/usr/bin/dmcs CSC=/usr/bin/dmcs GMCS=/usr/bin/dmcs econf \
+		--disable-update-mimedb \
+		--disable-update-desktopdb \
+		--enable-monoextensions \
+		--enable-gnomeplatform \
+		--enable-release \
+		$(use_enable test tests) \
+		$(use_enable subversion) \
+		$(use_enable git)
+
+	# Main.sln file was created on the fly during econf
+
+	# https://github.com/mrward/xdt/issues/4
+	epatch -p2 "${FILESDIR}/mrward-xdt-issue-4.patch"
+
+	# https://github.com/gentoo/dotnet/issues/38
+	sed -i -E -e 's#(EXE_PATH=")(.*)(/lib/monodevelop/bin/MonoDevelop.exe")#\1'${EPREFIX}'/usr\3#g' "${S}/monodevelop" || die
 }
 
 pkg_preinst() {


             reply	other threads:[~2016-11-13 14:14 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-13 14:14 Mikhail Pukhlikov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-05-10  6:32 [gentoo-commits] proj/dotnet:master commit in: dev-util/monodevelop/ Heather Cynede
2016-05-09 14:04 Heather Cynede
2016-05-05  9:05 Heather Cynede
2015-08-17 10:00 Heather Cynede
2015-08-04  4:00 Heather Cynede
2015-07-18 14:00 Heather Cynede
2015-06-02  9:32 Heather Cynede
2015-05-29  8:26 Heather Cynede
2015-03-06  9:57 Heather Cynede
2015-03-06  8:49 Heather Cynede
2015-03-06  8:38 Heather Cynede
2015-01-31 20:55 Heather Cynede
2015-01-25  5:51 Heather Cynede
2015-01-11  8:03 Heather Cynede
2015-01-11  7:17 Heather Cynede
2015-01-11  6:28 Heather Cynede
2015-01-11  6:28 Heather Cynede
2015-01-02 17:47 Heather Cynede
2014-09-06 14:02 Heather Cynede
2014-08-12 17:35 Heather Cynede
2014-09-06 14:02 ` Heather Cynede
2014-07-12  6:29 Heather Cynede
2014-04-06  5:58 Heather Cynede
2014-01-25  8:22 Heather Cynede
2013-11-14  5:43 Heather Cynede
2013-09-23 12:41 Heather Cynede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1477628646.a82b5de26e3005aa53bac7a906317c22a8e1fe67.cynede@gentoo \
    --to=cynede@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox