From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DAC36138CD3 for ; Thu, 28 May 2015 04:26:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0305EE08AE; Thu, 28 May 2015 04:26:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8125BE08AE for ; Thu, 28 May 2015 04:26:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 91EEF340DA5 for ; Thu, 28 May 2015 04:26:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 400C2A0E for ; Thu, 28 May 2015 04:26:44 +0000 (UTC) From: "Heather Cynede" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Heather Cynede" Message-ID: <1432722122.111c8910fdefd5e503e0f2a954270d2e156a8809.cynede@gentoo> Subject: [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/nuget/ X-VCS-Repository: proj/dotnet X-VCS-Files: dev-dotnet/nuget/nuget-2.8.3.ebuild X-VCS-Directories: dev-dotnet/nuget/ X-VCS-Committer: cynede X-VCS-Committer-Name: Heather Cynede X-VCS-Revision: 111c8910fdefd5e503e0f2a954270d2e156a8809 X-VCS-Branch: master Date: Thu, 28 May 2015 04:26:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f3e4f6c5-0b1a-4a35-bdea-f6fb22ee4db6 X-Archives-Hash: 470e136e0a0f1a76e89e05dd72fe3840 commit: 111c8910fdefd5e503e0f2a954270d2e156a8809 Author: Binyamin Sagal gmail com> AuthorDate: Wed May 27 10:22:02 2015 +0000 Commit: Heather Cynede gentoo org> CommitDate: Wed May 27 10:22:02 2015 +0000 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=111c8910 Add nuget-2.8.3 dev-dotnet/nuget/nuget-2.8.3.ebuild | 63 +++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/dev-dotnet/nuget/nuget-2.8.3.ebuild b/dev-dotnet/nuget/nuget-2.8.3.ebuild new file mode 100644 index 0000000..5cd6082 --- /dev/null +++ b/dev-dotnet/nuget/nuget-2.8.3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" +USE_DOTNET="net45" + +inherit dotnet eutils + +DESCRIPTION="Nuget - .NET Package Manager" +HOMEPAGE="http://nuget.codeplex.com" +SRC_URI="https://github.com/mrward/nuget/archive/Release-${PV}-MonoDevelop.tar.gz -> ${P}.tar.gz" +S=${WORKDIR}/nuget-Release-${PV}-MonoDevelop + +LICENSE="Apache-2.0" +SLOT="0" + +KEYWORDS="x86 amd64" +IUSE="" + +# Mask 3.2.0 because of mcs compiler bug : http://stackoverflow.com/a/17926731/238232 +# it fixed in 3.2.3 +DEPEND=">=dev-lang/mono-3.2.3 + <=dev-dotnet/xdt-for-monodevelop-2.8.2 + !dev-dotnet/nuget" +RDEPEND="${DEPEND}" + +# note about blocking nuget: +# there are at least two versions of it - on from mono, one from mrward +# see https://bugzilla.xamarin.com/show_bug.cgi?id=27693 +# i think version from mrward is enough for now, +# that is why there is no slotted install or two different names/locations + +pkg_setup() { + dotnet_pkg_setup + mozroots --import --sync --machine +} + +src_prepare() { + sed -i -e 's@RunTests@ @g' "${S}/Build/Build.proj" || die + cp "${FILESDIR}/rsa-4096.snk" "${S}/src/Core/" || die + epatch "${FILESDIR}/add-keyfile-option-to-csproj.patch" + sed -i -E -e "s#(\[assembly: InternalsVisibleTo(.*)\])#/* \1 */#g" "src/Core/Properties/AssemblyInfo.cs" || die + epatch "${FILESDIR}/strongnames-for-ebuild-2.8.1.patch" +} + +src_configure() { + export EnableNuGetPackageRestore="true" +} + +src_compile() { +# xbuild Build/Build.proj /p:Configuration=Release /p:TreatWarningsAsErrors=false /tv:4.0 /p:TargetFrameworkVersion="v${FRAMEWORK}" /p:Configuration="Mono Release" /t:GoMono || die + source ./build.sh || die +} + +src_install() { + elog "Installing NuGet.Core.dll into GAC" + egacinstall "src/Core/obj/Mono Release/NuGet.Core.dll" + elog "Installing NuGet console application" + insinto /usr/lib/mono/NuGet/"${FRAMEWORK}"/ + doins src/CommandLine/obj/Mono\ Release/NuGet.exe + make_wrapper nuget "mono /usr/lib/mono/NuGet/${FRAMEWORK}/NuGet.exe" +}