summaryrefslogtreecommitdiff
path: root/dev-dotnet/nuget
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-dotnet/nuget
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-dotnet/nuget')
-rw-r--r--dev-dotnet/nuget/Manifest10
-rw-r--r--dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch6
-rw-r--r--dev-dotnet/nuget/files/rsa-4096.snkbin0 -> 596 bytes
-rw-r--r--dev-dotnet/nuget/files/strongnames-for-ebuild-2.8.1.patch34
-rw-r--r--dev-dotnet/nuget/metadata.xml11
-rw-r--r--dev-dotnet/nuget/nuget-2.8.3.ebuild60
-rw-r--r--dev-dotnet/nuget/nuget-2.8.7-r1.ebuild61
-rw-r--r--dev-dotnet/nuget/nuget-2.8.7.ebuild60
8 files changed, 242 insertions, 0 deletions
diff --git a/dev-dotnet/nuget/Manifest b/dev-dotnet/nuget/Manifest
new file mode 100644
index 000000000000..1e40313bb961
--- /dev/null
+++ b/dev-dotnet/nuget/Manifest
@@ -0,0 +1,10 @@
+AUX add-keyfile-option-to-csproj.patch 302 SHA256 27c3549ae9355df37f7745c47be0ee502e52f3d13a17fdf55cbaac353a550b35 SHA512 d56df96c3966f72a9e5b186f5183fe728ca1ae63a671854de7f6838bd3d0bdf4ea860a657cd07d95d8f1bb3b34060402cbd1ba49941515e8bf3c4c7b9703e5db WHIRLPOOL a9b74e758aa56476019662ff4c0dc78d13dca9132acc76d8498915503610aaaa16f9f870360e171910888649ceb9336e3660549e8c8a0472ba97c662c077d6be
+AUX rsa-4096.snk 596 SHA256 44a83944d57c37da4e7872967f1fd4b445af18cdcbe8d17a0e3f5e5ce553c78a SHA512 7f3c4a3bd3eb64769a24be714f603d2c69642d8ff636792b9fb57a5be9b93479d8fbb6872e3243cdc4cc50d9dfc402f55910da339b46e2caf307c59124547541 WHIRLPOOL ad49dd306d751e2b36c0dc87c3d0330efcd380a32526ebb797cd05176066d45fdfbf93b1e4e52c5419ba769557fffa16ed3960b9bdce563f610fe37d4d4d9d67
+AUX strongnames-for-ebuild-2.8.1.patch 1993 SHA256 9a751121cf40fe0f34dd99cbbed00067d64bbcbfbc688d38dde4e081dbfd57ad SHA512 32425da435212b10123ec8685d2da7a5fb49c695ab5587b6e8f5b23e4436629bfd92766837d6d3a8695f7a2ea0c617fa36821d07f30d259fb688fee8f7152196 WHIRLPOOL 207f0df466e337218ed6f668da4d7bf2d0179e1959d06a19b2be8dab4e7797592dd46c9e13c3ff4a7fdd119dc68e477e2d90e26c21cb0c7e73190ba7a5606ed5
+DIST nuget-2.8.3.tar.gz 14240757 SHA256 8ca0cc2e3ec753338472011c8591c2e4d924e81bd12d9fab1c24d5a4903c61ec SHA512 a1447042f77fdb0d63caaf49d64208ac0ab072ab1caf7f5edaeb936f3e26fac7ad80c3af51b12086cb2b9bb63df32e8da244894c4cd4946373ff86cb7a4e130d WHIRLPOOL cc4cb8fb7f8e92f756c5aa05022e6cca843cace591cfe3f8ea585f286d4002eb8b255cf8946cd9c3e3b3945480ddfe30868b4ad1e069329bb59f8b37051cf990
+DIST nuget-2.8.7.tar.gz 22865370 SHA256 0c614f915ebe23f35474b1c8aae51ddf4411ad424a3874bec308a36b5ef69759 SHA512 5120c8dc0fcda6aa8b8f2b8c4803bc141d046cbddb9ea2b9f963e775c5a652e4873295ecc22fd07261556777777fcf9f05a45fb4438fac9993b05ec83cadeb79 WHIRLPOOL 11fb1ce19be6eccdde09c2c279beb9a3ded71cad25e6070fd51b5c68d7400c46057b3fcc7d47a8caf569ecc9834e3280ec2305848e54313d34be5142a09b0e18
+EBUILD nuget-2.8.3.ebuild 1954 SHA256 8b712062454c09fed40653882367d7c8e67ec2a92c490aeaef5662e8e0bb2fb7 SHA512 28754437782a59e6f606edec7578937bec0f6346f6b26267c379f907d87951a83ceb0ae4664741a41401aeb7c0571dbff96e09ab799430c7badc773eaea6ba8f WHIRLPOOL f0096d39f68c88a4b9e36ea57703acc33898f6d63ab7154feae39455579db54238844b7b8ac6ae0d6ef6dd2d7fb24cbfe1d42df9c44ddd5731ca494dd0f8f1ba
+EBUILD nuget-2.8.7-r1.ebuild 1976 SHA256 1b36f98ca0d45509e03ab46dbe88fbe0ab8ab9f994fcca4e859c325bcc1b38a4 SHA512 0f9618c5248839d9cccf690698c023d9d98ceb2d2dedd9e5178112324a8610abaabf409da09f632a8fd7794307e562b4780c21629b2c5936246ba0b659fccdb8 WHIRLPOOL 10b3724ff6ed7227d10a301054ea648b9749876a7c9f702f575965c25087f08bbe3c5c9caba34e2289cbdcac685b7c9ffcb7081c497378b50ab77cdde8035bde
+EBUILD nuget-2.8.7.ebuild 1938 SHA256 34eb515b640fafb97b43ff4a12a702fc621e18679d7daf0c3b1d86775591058b SHA512 6c3497ae5be12e6166982ea340fb71f7755480d117963a87c7dc157b2f3b3abe9b838344c2cc125ee1b1d96ec2eb2fb26147286b1ae23796fd22c4b3d09143c8 WHIRLPOOL 730eb6f37eb301e100097b123dea65e650af8adbfaca305d1d622df28f280d009e3dd79ddbe3f24f8e98a9ae343d69512e2d104e4a4e6c608b6eb26cd5c86544
+MISC ChangeLog 1998 SHA256 ae5cf9ed15e2b6b20916aae445b123e4292ebe9917b9e7126b37bcb501d93b71 SHA512 04b01dfe489beaa004e16e08927f535f224238303cc9efd87e239c0da2ddfd3e5cd52d220751a0310286dc0d620f3954d4d295f0c3e09b81673cfb513bd7ea9c WHIRLPOOL 92bd5962d2acb95825a1dd158cfe8798cd944d75dc04b6acb9b805da51046117ed535d555f5dbb88c1db5ef15c1b3878dc7459551249c6f63095e30f18c75b24
+MISC metadata.xml 342 SHA256 12278b555812bad2bb4cb7768957a744fcf68a412107c6e718cc3b08edd60dd6 SHA512 8cc350230b3d2bd990b31d4927021ef4ba4e64bae0a2f2c8cd700c3df5eaf934ea417825c39bad5daaf3095bfb396ff63ec8c2ec5a4fcae391b5eb5440cbb1e8 WHIRLPOOL 4160a5f2c16a108d791ae5a0ca699fc31018c79c1e43ef29c70ece07faedfc04a1529f9d24bf86f18a04404a5b9e049963bda8f800ed1cea950aa383d6cf1640
diff --git a/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch b/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch
new file mode 100644
index 000000000000..6b2eded0bc05
--- /dev/null
+++ b/dev-dotnet/nuget/files/add-keyfile-option-to-csproj.patch
@@ -0,0 +1,6 @@
+--- work.orig/nuget-Release-2.8.7-MonoDevelop/src/Core/Core.csproj
++++ work/nuget-Release-2.8.7-MonoDevelop/src/Core/Core.csproj
+@@ -8,1 +8,3 @@
+ <AssemblyName>NuGet.Core</AssemblyName>
++ <SignAssembly>true</SignAssembly>
++ <AssemblyOriginatorKeyFile>rsa-4096.snk</AssemblyOriginatorKeyFile>
diff --git a/dev-dotnet/nuget/files/rsa-4096.snk b/dev-dotnet/nuget/files/rsa-4096.snk
new file mode 100644
index 000000000000..380116c18fc3
--- /dev/null
+++ b/dev-dotnet/nuget/files/rsa-4096.snk
Binary files differ
diff --git a/dev-dotnet/nuget/files/strongnames-for-ebuild-2.8.1.patch b/dev-dotnet/nuget/files/strongnames-for-ebuild-2.8.1.patch
new file mode 100644
index 000000000000..40c35c8cd4c8
--- /dev/null
+++ b/dev-dotnet/nuget/files/strongnames-for-ebuild-2.8.1.patch
@@ -0,0 +1,34 @@
+--- work.unpacked/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj 2015-03-06 18:32:27.255819553 +0300
++++ work/nuget-Release-2.8.1-MonoDevelop/src/Core/Core.csproj 2015-03-06 18:51:33.240779088 +0300
+@@ -221,9 +221,7 @@
+ <Compile Include="Utility\VersionSpec.cs" />
+ <Compile Include="Utility\WebRequestEventArgs.cs" />
+ <Compile Include="FileModifiers\XdtTransformer.cs" />
+- <Reference Include="Microsoft.Web.XmlTransform">
+- <HintPath>..\..\lib\Microsoft.Web.XmlTransform.dll</HintPath>
+- </Reference>
++ <Reference Include="Microsoft.Web.XmlTransform, Version=2.8.1.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
+ <Reference Include="System" />
+ <Reference Include="System.ComponentModel.DataAnnotations" />
+ <Reference Include="System.Core" />
+--- work.unpacked/nuget-Release-2.8.1-MonoDevelop/src/CommandLine/CommandLine.csproj 2015-03-06 18:32:27.265819553 +0300
++++ work/nuget-Release-2.8.1-MonoDevelop/src/CommandLine/CommandLine.csproj 2015-03-06 18:52:00.471778127 +0300
+@@ -30,10 +35,6 @@
+ <Reference Include="Microsoft.Build.Engine" />
+ <Reference Include="Microsoft.Build.Framework" />
+ <Reference Include="Microsoft.CSharp" />
+- <Reference Include="Microsoft.Web.XmlTransform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+- <SpecificVersion>False</SpecificVersion>
+- <HintPath>..\..\lib\Microsoft.Web.XmlTransform.dll</HintPath>
+- </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.ComponentModel.Composition" />
+ <Reference Include="System.ComponentModel.DataAnnotations" />
+@@ -41,6 +42,7 @@
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Xml" />
+ <Reference Include="WindowsBase" />
++ <Reference Include="Microsoft.Web.XmlTransform, Version=2.8.1.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\..\Common\MsBuildProjectUtility.cs">
diff --git a/dev-dotnet/nuget/metadata.xml b/dev-dotnet/nuget/metadata.xml
new file mode 100644
index 000000000000..1f3a499acf5e
--- /dev/null
+++ b/dev-dotnet/nuget/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>dotnet@gentoo.org</email>
+ <name>Gentoo Dotnet Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">mrward/nuget</remote-id>
+ </upstream>
+</pkgmetadata>
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 000000000000..7bb44442167b
--- /dev/null
+++ b/dev-dotnet/nuget/nuget-2.8.3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+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"
+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"
+}
diff --git a/dev-dotnet/nuget/nuget-2.8.7-r1.ebuild b/dev-dotnet/nuget/nuget-2.8.7-r1.ebuild
new file mode 100644
index 000000000000..91ab6c82f937
--- /dev/null
+++ b/dev-dotnet/nuget/nuget-2.8.7-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit dotnet eutils
+
+# 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="~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-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
+ 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"
+}
diff --git a/dev-dotnet/nuget/nuget-2.8.7.ebuild b/dev-dotnet/nuget/nuget-2.8.7.ebuild
new file mode 100644
index 000000000000..184ad8fc0037
--- /dev/null
+++ b/dev-dotnet/nuget/nuget-2.8.7.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit dotnet eutils
+
+# 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="~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-codeplex"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ addwrite "/usr/share/.mono/keypairs"
+ 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"
+}