Gentoo Archives: gentoo-commits

From: Mikhail Pukhlikov <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/msbuildcontrib/files/, dev-dotnet/msbuildcontrib/
Date: Fri, 02 Jun 2017 08:19:40
Message-Id: 1493648032.05f3faeeae7eb855377b46d266ae11bf0b0e66da.cynede@gentoo
1 commit: 05f3faeeae7eb855377b46d266ae11bf0b0e66da
2 Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com>
3 AuthorDate: Mon May 1 14:13:52 2017 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Mon May 1 14:13:52 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=05f3faee
7
8 initial version
9
10 .../files/MSBuildContrib.Tasks.csproj.patch | 28 ++++++++++
11 .../files/MSBuildContrib.Utilities.csproj.patch | 33 +++++++++++
12 dev-dotnet/msbuildcontrib/files/location.patch | 11 ++++
13 dev-dotnet/msbuildcontrib/metadata.xml | 10 ++++
14 .../msbuildcontrib-2014.06.05.01.ebuild | 65 ++++++++++++++++++++++
15 5 files changed, 147 insertions(+)
16
17 diff --git a/dev-dotnet/msbuildcontrib/files/MSBuildContrib.Tasks.csproj.patch b/dev-dotnet/msbuildcontrib/files/MSBuildContrib.Tasks.csproj.patch
18 new file mode 100644
19 index 0000000..062c1cb
20 --- /dev/null
21 +++ b/dev-dotnet/msbuildcontrib/files/MSBuildContrib.Tasks.csproj.patch
22 @@ -0,0 +1,28 @@
23 +--- a/Source/MSBuildContrib.Tasks/MSBuildContrib.Tasks.csproj
24 ++++ b/Source/MSBuildContrib.Tasks/MSBuildContrib.Tasks.csproj
25 +@@ -10,7 +10,6 @@
26 + <AppDesignerFolder>Properties</AppDesignerFolder>
27 + <RootNamespace>MSBuildContrib.Tasks</RootNamespace>
28 + <AssemblyName>MSBuildContrib.Tasks</AssemblyName>
29 +- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
30 + <FileAlignment>512</FileAlignment>
31 + <SccProjectName>
32 + </SccProjectName>
33 +@@ -47,16 +46,13 @@
34 + </PropertyGroup>
35 + <ItemGroup>
36 + <Reference Include="Microsoft.Build.Framework" />
37 +- <Reference Include="Microsoft.Build.Utilities.v3.5">
38 +- <RequiredTargetFramework>3.5</RequiredTargetFramework>
39 +- </Reference>
40 + <Reference Include="System" />
41 + <Reference Include="System.Core">
42 +- <RequiredTargetFramework>3.5</RequiredTargetFramework>
43 + </Reference>
44 + <Reference Include="System.Data" />
45 + <Reference Include="System.Security" />
46 + <Reference Include="System.Xml" />
47 ++ <Reference Include="Microsoft.Build.Utilities.v4.0" />
48 + </ItemGroup>
49 + <ItemGroup>
50 + <Compile Include="..\SolutionInfo.cs">
51
52 diff --git a/dev-dotnet/msbuildcontrib/files/MSBuildContrib.Utilities.csproj.patch b/dev-dotnet/msbuildcontrib/files/MSBuildContrib.Utilities.csproj.patch
53 new file mode 100644
54 index 0000000..c7797fb
55 --- /dev/null
56 +++ b/dev-dotnet/msbuildcontrib/files/MSBuildContrib.Utilities.csproj.patch
57 @@ -0,0 +1,33 @@
58 +--- a/Source/MSBuildContrib.Utilities/MSBuildContrib.Utilities.csproj
59 ++++ b/Source/MSBuildContrib.Utilities/MSBuildContrib.Utilities.csproj
60 +@@ -10,7 +10,6 @@
61 + <AppDesignerFolder>Properties</AppDesignerFolder>
62 + <RootNamespace>MSBuildContrib.Utilities</RootNamespace>
63 + <AssemblyName>MSBuildContrib.Utilities</AssemblyName>
64 +- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
65 + <FileAlignment>512</FileAlignment>
66 + <SccProjectName>
67 + </SccProjectName>
68 +@@ -47,21 +46,16 @@
69 + </PropertyGroup>
70 + <ItemGroup>
71 + <Reference Include="Microsoft.Build.Framework" />
72 +- <Reference Include="Microsoft.Build.Utilities.v3.5">
73 +- <RequiredTargetFramework>3.5</RequiredTargetFramework>
74 +- </Reference>
75 + <Reference Include="System" />
76 + <Reference Include="System.Core">
77 +- <RequiredTargetFramework>3.5</RequiredTargetFramework>
78 + </Reference>
79 + <Reference Include="System.Xml.Linq">
80 +- <RequiredTargetFramework>3.5</RequiredTargetFramework>
81 + </Reference>
82 + <Reference Include="System.Data.DataSetExtensions">
83 +- <RequiredTargetFramework>3.5</RequiredTargetFramework>
84 + </Reference>
85 + <Reference Include="System.Data" />
86 + <Reference Include="System.Xml" />
87 ++ <Reference Include="Microsoft.Build.Utilities.v4.0" />
88 + </ItemGroup>
89 + <ItemGroup>
90 + <Compile Include="..\SolutionInfo.cs">
91
92 diff --git a/dev-dotnet/msbuildcontrib/files/location.patch b/dev-dotnet/msbuildcontrib/files/location.patch
93 new file mode 100644
94 index 0000000..eefec90
95 --- /dev/null
96 +++ b/dev-dotnet/msbuildcontrib/files/location.patch
97 @@ -0,0 +1,11 @@
98 +--- a/Source/MSBuildContrib.Tasks/MSBuildContrib.Tasks
99 ++++ b/Source/MSBuildContrib.Tasks/MSBuildContrib.Tasks
100 +@@ -4,7 +4,7 @@
101 + is encountered, it will cause the task to be rediscovered next time the task is used. -->
102 + <!-- NOTE: Using the fully qualified class name in a <UsingTask> tag is faster than using a partially qualified name. -->
103 + <PropertyGroup>
104 +- <MSBuildContribCommonTasksAssembly>$(MSBuildExtensionsPath)\MSBuildContrib\MSBuildContrib.Tasks.dll</MSBuildContribCommonTasksAssembly>
105 ++ <MSBuildContribCommonTasksAssembly>/usr/lib/mono/4.5/MSBuildContrib.Tasks.dll</MSBuildContribCommonTasksAssembly>
106 + </PropertyGroup>
107 +
108 + <UsingTask TaskName="MSBuildContrib.Tasks.Attrib" AssemblyFile="$(MSBuildContribCommonTasksAssembly)" Condition="Exists('$(MSBuildContribCommonTasksAssembly)')" />
109
110 diff --git a/dev-dotnet/msbuildcontrib/metadata.xml b/dev-dotnet/msbuildcontrib/metadata.xml
111 new file mode 100644
112 index 0000000..7310045
113 --- /dev/null
114 +++ b/dev-dotnet/msbuildcontrib/metadata.xml
115 @@ -0,0 +1,10 @@
116 +<?xml version="1.0" encoding="UTF-8"?>
117 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
118 +<pkgmetadata>
119 + <maintainer type="project">
120 + <email>dotnet@g.o</email>
121 + <description>Gentoo Dotnet Project</description>
122 + </maintainer>
123 + <use>
124 + </use>
125 +</pkgmetadata>
126
127 diff --git a/dev-dotnet/msbuildcontrib/msbuildcontrib-2014.06.05.01.ebuild b/dev-dotnet/msbuildcontrib/msbuildcontrib-2014.06.05.01.ebuild
128 new file mode 100644
129 index 0000000..2359709
130 --- /dev/null
131 +++ b/dev-dotnet/msbuildcontrib/msbuildcontrib-2014.06.05.01.ebuild
132 @@ -0,0 +1,65 @@
133 +# Copyright 1999-2017 Gentoo Foundation
134 +# Distributed under the terms of the GNU General Public License v2
135 +# $Id$
136 +
137 +EAPI=6
138 +SLOT="0"
139 +
140 +KEYWORDS="~amd64 ~ppc ~x86"
141 +USE_DOTNET="net45"
142 +
143 +inherit gac dotnet
144 +
145 +HOMEPAGE="https://github.com/scottdorman/MSBuildContrib"
146 +EGIT_COMMIT="47806b8bd67bb481f63cecd1b7e7d681f8d05ef4"
147 +SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz"
148 +RESTRICT="mirror"
149 +NAME="MSBuildContrib"
150 +S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"
151 +
152 +DESCRIPTION="A project for tasks and tools that aren't part of the main MSBuild release."
153 +LICENSE="GPL-3" # https://github.com/scottdorman/MSBuildContrib/blob/master/LICENSE
154 +
155 +IUSE="+${USE_DOTNET} +debug developer doc"
156 +
157 +COMMON_DEPEND=">=dev-lang/mono-4.0.2.5
158 + =dev-dotnet/dotnetzip-semverd-1.9.3-r1
159 +"
160 +RDEPEND="${COMMON_DEPEND}
161 +"
162 +DEPEND="${COMMON_DEPEND}
163 +"
164 +
165 +src_prepare() {
166 + eapply "${FILESDIR}/MSBuildContrib.Tasks.csproj.patch"
167 + eapply "${FILESDIR}/MSBuildContrib.Utilities.csproj.patch"
168 + eapply "${FILESDIR}/location.patch"
169 + eapply_user
170 +}
171 +
172 +src_compile() {
173 + exbuild "Source/MSBuildContrib.sln"
174 +}
175 +
176 +src_install() {
177 + if use debug; then
178 + DIR="Debug"
179 + else
180 + DIR="Release"
181 + fi
182 + insinto "/usr/lib/mono/${EBUILD_FRAMEWORK}"
183 + doins "Source/MSBuildContrib.Tasks/bin/${DIR}/MSBuildContrib.Tasks.dll"
184 +# einstall_pc_file "${PN}" "${PV}" "MSBuildContrib.Tasks"
185 + insinto "/usr/lib/mono/xbuild"
186 + doins "Source/MSBuildContrib.Tasks/bin/${DIR}/MSBuildContrib.Tasks"
187 +}
188 +
189 +#pkg_postinst()
190 +#{
191 +# egacadd "usr/lib/mono/${EBUILD_FRAMEWORK}/MSBuildContrib.Tasks.dll"
192 +#}
193 +#
194 +#pkg_prerm()
195 +#{
196 +# egacdel "MSBuildContrib.Tasks"
197 +#}