commit:     b8d804e1ff3982984a79ffffbe378fb4dc8f1393
Author:     ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Thu Sep 29 18:30:03 2016 +0000
Commit:     Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Thu Sep 29 18:30:03 2016 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=b8d804e1

installation to gac only (no .pc, no .nupkg)

 .../dotnetzip-semverd-1.9.3.ebuild                 | 47 ++++++++++++++++++++++
 .../dotnetzip-semverd/files/version-1.9.3.patch    | 12 ++++++
 dev-dotnet/dotnetzip-semverd/metadata.xml          | 11 +++++
 eclass/dotnet.eclass                               |  6 +--
 4 files changed, 72 insertions(+), 4 deletions(-)

diff --git a/dev-dotnet/dotnetzip-semverd/dotnetzip-semverd-1.9.3.ebuild 
b/dev-dotnet/dotnetzip-semverd/dotnetzip-semverd-1.9.3.ebuild
new file mode 100644
index 0000000..ad1ef21
--- /dev/null
+++ b/dev-dotnet/dotnetzip-semverd/dotnetzip-semverd-1.9.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+SLOT="0"
+
+KEYWORDS="~amd64 ~ppc ~x86"
+USE_DOTNET="net45"
+
+inherit gac dotnet
+
+SRC_URI="https://github.com/haf/DotNetZip.Semverd/archive/v1.9.3.tar.gz -> 
${PV}.tar.gz"
+RESTRICT="mirror"
+S="${WORKDIR}/DotNetZip.Semverd-${PV}"
+
+HOMEPAGE="https://github.com/haf/DotNetZip.Semverd";
+DESCRIPTION="create, extract, or update zip files with C# (=DotNetZip+SemVer)"
+LICENSE="MS-PL" # https://github.com/haf/DotNetZip.Semverd/blob/master/LICENSE
+
+IUSE="net45 +gac +nupkg developer debug doc"
+
+COMMON_DEPEND=">=dev-lang/mono-4.0.2.5
+"
+RDEPEND="${COMMON_DEPEND}
+"
+DEPEND="${COMMON_DEPEND}
+"
+
+src_prepare() {
+       eapply "${FILESDIR}/version-${PV}.patch"
+       eapply_user
+}
+
+src_compile() {
+       #exbuild "/p:SignAssembly=true" 
"/p:AssemblyOriginatorKeyFile=${S}/src/Ionic.snk" "src/Zip Reduced/Zip 
Reduced.csproj"
+       exbuild_strong "src/Zip Reduced/Zip Reduced.csproj"
+}
+
+src_install() {
+       if use debug; then
+               DIR="Debug"
+       else
+               DIR="Release"
+       fi
+       egacinstall "src/Zip Reduced/bin/${DIR}/Ionic.Zip.Reduced.dll"
+}

diff --git a/dev-dotnet/dotnetzip-semverd/files/version-1.9.3.patch 
b/dev-dotnet/dotnetzip-semverd/files/version-1.9.3.patch
new file mode 100644
index 0000000..cfe437e
--- /dev/null
+++ b/dev-dotnet/dotnetzip-semverd/files/version-1.9.3.patch
@@ -0,0 +1,12 @@
+--- a/src/SolutionInfo.cs
++++ b/src/SolutionInfo.cs
+@@ -2,6 +2,6 @@
+ using System.Reflection;
+ using System.Runtime.CompilerServices;
+ using System.Runtime.InteropServices;
+-[assembly: AssemblyVersion("1.9.2")]
+-[assembly: AssemblyFileVersion("1.9.2")]
+-[assembly: AssemblyInformationalVersion("1.9.2.0da451")]
++[assembly: AssemblyVersion("1.9.3")]
++[assembly: AssemblyFileVersion("1.9.3")]
++[assembly: AssemblyInformationalVersion("1.9.3.0")]

diff --git a/dev-dotnet/dotnetzip-semverd/metadata.xml 
b/dev-dotnet/dotnetzip-semverd/metadata.xml
new file mode 100644
index 0000000..45d9b57
--- /dev/null
+++ b/dev-dotnet/dotnetzip-semverd/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>[email protected]</email>
+               <description>Gentoo Dotnet Project</description>
+       </maintainer>
+       <use>
+               <flag name='developer'></flag>
+       </use>
+</pkgmetadata>

diff --git a/eclass/dotnet.eclass b/eclass/dotnet.eclass
index 6651c4f..666d568 100644
--- a/eclass/dotnet.eclass
+++ b/eclass/dotnet.eclass
@@ -122,8 +122,7 @@ exbuild() {
                TOOLS_VERSION=4.0
        fi
 
-       PARAMETERS="/v:detailed /tv:${TOOLS_VERSION} 
""/p:TargetFrameworkVersion=v${FRAMEWORK}"" ""${CARGS}"" ""${SARGS}"" ""$@"""
-       exbuild_raw ${PARAMETERS}
+       exbuild_raw "/v:detailed" "/tv:${TOOLS_VERSION}" 
"/p:TargetFrameworkVersion=v${FRAMEWORK}" "${CARGS}" "${SARGS}" "$@"
 }
 
 # @FUNCTION: exbuild_strong
@@ -143,8 +142,7 @@ exbuild_strong() {
                KARGS1=
                KARGS2=
        fi
-       PARAMETERS=" ""${KARGS1}"" ""${KARGS2}"" ""$@"""
-       exbuild "${PARAMETERS}"
+       exbuild "${KARGS1}" "${KARGS2}" "$@"
 }
 
 # @FUNCTION: dotnet_multilib_comply

Reply via email to