From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C7CEE139694 for ; Thu, 3 Aug 2017 07:58:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6FCA4E0E68; Thu, 3 Aug 2017 07:58:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 37E09E0E68 for ; Thu, 3 Aug 2017 07:58:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 36FC9341885 for ; Thu, 3 Aug 2017 07:58:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B7EA475F3 for ; Thu, 3 Aug 2017 07:57:57 +0000 (UTC) From: "Mikhail Pukhlikov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mikhail Pukhlikov" Message-ID: <1501455274.d87df705b84347c7c2334a88f9386f36ee40368d.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.7-r3.ebuild X-VCS-Directories: dev-dotnet/nuget/ X-VCS-Committer: cynede X-VCS-Committer-Name: Mikhail Pukhlikov X-VCS-Revision: d87df705b84347c7c2334a88f9386f36ee40368d X-VCS-Branch: master Date: Thu, 3 Aug 2017 07:57:57 +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: 143f2e50-84eb-437d-9f52-e0832df4efa2 X-Archives-Hash: 355013f7e903cc5dce66b61c3da148e1 commit: d87df705b84347c7c2334a88f9386f36ee40368d Author: Jack Ostroff users sourceforge net> AuthorDate: Sun Jul 30 22:54:34 2017 +0000 Commit: Mikhail Pukhlikov gentoo org> CommitDate: Sun Jul 30 22:54:34 2017 +0000 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=d87df705 dev-dotnet/nuget fix for adding delay signed assembly to gac dev-dotnet/nuget/nuget-2.8.7-r3.ebuild | 65 ++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/dev-dotnet/nuget/nuget-2.8.7-r3.ebuild b/dev-dotnet/nuget/nuget-2.8.7-r3.ebuild new file mode 100644 index 0000000..0f5139f --- /dev/null +++ b/dev-dotnet/nuget/nuget-2.8.7-r3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_DOTNET="net45" + +inherit dotnet eutils gac + +# This ebuild provides a forked version of nuget modified to work with MonoDevelop. +# See https://bugzilla.xamarin.com/show_bug.cgi?id=27693 +# dev-dotnet/nuget-codeplex provides the upstream version. + +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="~amd64 ~x86 ~ppc" +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[gac] + !dev-dotnet/nuget-codeplex + app-misc/ca-certificates" +RDEPEND="${DEPEND}" + +pkg_setup() { + addwrite "/usr/share/.mono/keypairs" + dotnet_pkg_setup + cert-sync /etc/ssl/certs/ca-certificates.crt +} + +src_prepare() { + sed -i -e 's@RunTests@ @g' "${S}/Build/Build.proj" || die + cp "${FILESDIR}/rsa-4096.snk" "${S}/src/Core/" || die + eapply "${FILESDIR}/add-keyfile-option-to-csproj-r2.patch" + sed -i -E -e "s#(\[assembly: InternalsVisibleTo(.*)\])#/* \1 */#g" "src/Core/Properties/AssemblyInfo.cs" || die + eapply "${FILESDIR}/strongnames-for-ebuild-2.8.1-r2.patch" + default +} + +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 + elog "Signing src/Core/obj/Mono Release/NuGet.Core.dll with rsa-4096.snk" + sn -R "src/Core/obj/Mono Release/NuGet.Core.dll" src/Core/rsa-4096.snk +} + +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" +}