Gentoo Archives: gentoo-commits

From: Mikhail Pukhlikov <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: eclass/, dev-dotnet/dotnetzip-semverd/, dev-dotnet/dotnetzip-semverd/files/
Date: Fri, 30 Sep 2016 08:45:35
Message-Id: 1475173803.b8d804e1ff3982984a79ffffbe378fb4dc8f1393.cynede@gentoo
1 commit: b8d804e1ff3982984a79ffffbe378fb4dc8f1393
2 Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
3 AuthorDate: Thu Sep 29 18:30:03 2016 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 18:30:03 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=b8d804e1
7
8 installation to gac only (no .pc, no .nupkg)
9
10 .../dotnetzip-semverd-1.9.3.ebuild | 47 ++++++++++++++++++++++
11 .../dotnetzip-semverd/files/version-1.9.3.patch | 12 ++++++
12 dev-dotnet/dotnetzip-semverd/metadata.xml | 11 +++++
13 eclass/dotnet.eclass | 6 +--
14 4 files changed, 72 insertions(+), 4 deletions(-)
15
16 diff --git a/dev-dotnet/dotnetzip-semverd/dotnetzip-semverd-1.9.3.ebuild b/dev-dotnet/dotnetzip-semverd/dotnetzip-semverd-1.9.3.ebuild
17 new file mode 100644
18 index 0000000..ad1ef21
19 --- /dev/null
20 +++ b/dev-dotnet/dotnetzip-semverd/dotnetzip-semverd-1.9.3.ebuild
21 @@ -0,0 +1,47 @@
22 +# Copyright 1999-2016 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=6
27 +SLOT="0"
28 +
29 +KEYWORDS="~amd64 ~ppc ~x86"
30 +USE_DOTNET="net45"
31 +
32 +inherit gac dotnet
33 +
34 +SRC_URI="https://github.com/haf/DotNetZip.Semverd/archive/v1.9.3.tar.gz -> ${PV}.tar.gz"
35 +RESTRICT="mirror"
36 +S="${WORKDIR}/DotNetZip.Semverd-${PV}"
37 +
38 +HOMEPAGE="https://github.com/haf/DotNetZip.Semverd"
39 +DESCRIPTION="create, extract, or update zip files with C# (=DotNetZip+SemVer)"
40 +LICENSE="MS-PL" # https://github.com/haf/DotNetZip.Semverd/blob/master/LICENSE
41 +
42 +IUSE="net45 +gac +nupkg developer debug doc"
43 +
44 +COMMON_DEPEND=">=dev-lang/mono-4.0.2.5
45 +"
46 +RDEPEND="${COMMON_DEPEND}
47 +"
48 +DEPEND="${COMMON_DEPEND}
49 +"
50 +
51 +src_prepare() {
52 + eapply "${FILESDIR}/version-${PV}.patch"
53 + eapply_user
54 +}
55 +
56 +src_compile() {
57 + #exbuild "/p:SignAssembly=true" "/p:AssemblyOriginatorKeyFile=${S}/src/Ionic.snk" "src/Zip Reduced/Zip Reduced.csproj"
58 + exbuild_strong "src/Zip Reduced/Zip Reduced.csproj"
59 +}
60 +
61 +src_install() {
62 + if use debug; then
63 + DIR="Debug"
64 + else
65 + DIR="Release"
66 + fi
67 + egacinstall "src/Zip Reduced/bin/${DIR}/Ionic.Zip.Reduced.dll"
68 +}
69
70 diff --git a/dev-dotnet/dotnetzip-semverd/files/version-1.9.3.patch b/dev-dotnet/dotnetzip-semverd/files/version-1.9.3.patch
71 new file mode 100644
72 index 0000000..cfe437e
73 --- /dev/null
74 +++ b/dev-dotnet/dotnetzip-semverd/files/version-1.9.3.patch
75 @@ -0,0 +1,12 @@
76 +--- a/src/SolutionInfo.cs
77 ++++ b/src/SolutionInfo.cs
78 +@@ -2,6 +2,6 @@
79 + using System.Reflection;
80 + using System.Runtime.CompilerServices;
81 + using System.Runtime.InteropServices;
82 +-[assembly: AssemblyVersion("1.9.2")]
83 +-[assembly: AssemblyFileVersion("1.9.2")]
84 +-[assembly: AssemblyInformationalVersion("1.9.2.0da451")]
85 ++[assembly: AssemblyVersion("1.9.3")]
86 ++[assembly: AssemblyFileVersion("1.9.3")]
87 ++[assembly: AssemblyInformationalVersion("1.9.3.0")]
88
89 diff --git a/dev-dotnet/dotnetzip-semverd/metadata.xml b/dev-dotnet/dotnetzip-semverd/metadata.xml
90 new file mode 100644
91 index 0000000..45d9b57
92 --- /dev/null
93 +++ b/dev-dotnet/dotnetzip-semverd/metadata.xml
94 @@ -0,0 +1,11 @@
95 +<?xml version="1.0" encoding="UTF-8"?>
96 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
97 +<pkgmetadata>
98 + <maintainer type="project">
99 + <email>dotnet@g.o</email>
100 + <description>Gentoo Dotnet Project</description>
101 + </maintainer>
102 + <use>
103 + <flag name='developer'></flag>
104 + </use>
105 +</pkgmetadata>
106
107 diff --git a/eclass/dotnet.eclass b/eclass/dotnet.eclass
108 index 6651c4f..666d568 100644
109 --- a/eclass/dotnet.eclass
110 +++ b/eclass/dotnet.eclass
111 @@ -122,8 +122,7 @@ exbuild() {
112 TOOLS_VERSION=4.0
113 fi
114
115 - PARAMETERS="/v:detailed /tv:${TOOLS_VERSION} ""/p:TargetFrameworkVersion=v${FRAMEWORK}"" ""${CARGS}"" ""${SARGS}"" ""$@"""
116 - exbuild_raw ${PARAMETERS}
117 + exbuild_raw "/v:detailed" "/tv:${TOOLS_VERSION}" "/p:TargetFrameworkVersion=v${FRAMEWORK}" "${CARGS}" "${SARGS}" "$@"
118 }
119
120 # @FUNCTION: exbuild_strong
121 @@ -143,8 +142,7 @@ exbuild_strong() {
122 KARGS1=
123 KARGS2=
124 fi
125 - PARAMETERS=" ""${KARGS1}"" ""${KARGS2}"" ""$@"""
126 - exbuild "${PARAMETERS}"
127 + exbuild "${KARGS1}" "${KARGS2}" "$@"
128 }
129
130 # @FUNCTION: dotnet_multilib_comply