Gentoo Archives: gentoo-commits

From: Heather Cynede <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/libgit2sharp/files/, dev-dotnet/libgit2sharp/
Date: Wed, 27 Jul 2016 06:39:46
Message-Id: 1469587750.d0917029fb71ff23db61c28eb4a5cdba094be899.cynede@gentoo
1 commit: d0917029fb71ff23db61c28eb4a5cdba094be899
2 Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
3 AuthorDate: Wed Jul 27 02:49:10 2016 +0000
4 Commit: Heather Cynede <cynede <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 27 02:49:10 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=d0917029
7
8 corrections for Core/NativeDllName.cs
9
10 .../remove-NativeBinaries-package-dependency.patch | 19 +++++++++++++++++++
11 dev-dotnet/libgit2sharp/libgit2sharp-0.22.ebuild | 20 +++++++++++++++++++-
12 2 files changed, 38 insertions(+), 1 deletion(-)
13
14 diff --git a/dev-dotnet/libgit2sharp/files/remove-NativeBinaries-package-dependency.patch b/dev-dotnet/libgit2sharp/files/remove-NativeBinaries-package-dependency.patch
15 new file mode 100644
16 index 0000000..194ce41
17 --- /dev/null
18 +++ b/dev-dotnet/libgit2sharp/files/remove-NativeBinaries-package-dependency.patch
19 @@ -0,0 +1,19 @@
20 +--- a/LibGit2Sharp/LibGit2Sharp.csproj
21 ++++ b/LibGit2Sharp/LibGit2Sharp.csproj
22 +@@ -1,6 +1,8 @@
23 + <?xml version="1.0" encoding="utf-8"?>
24 + <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
25 +- <Import Project="..\packages\LibGit2Sharp.NativeBinaries.1.0.129\build\LibGit2Sharp.NativeBinaries.props" Condition="Exists('..\packages\LibGit2Sharp.NativeBinaries.1.0.129\build\LibGit2Sharp.NativeBinaries.props')" />
26 ++ <ItemGroup>
27 ++ <EmbeddedResource Include="libgit2_filename.txt" />
28 ++ </ItemGroup>
29 + <PropertyGroup>
30 + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
31 + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
32 +--- a/LibGit2Sharp/packages.config
33 ++++ b/LibGit2Sharp/packages.config
34 +@@ -1,4 +1,3 @@
35 + <?xml version="1.0" encoding="utf-8"?>
36 + <packages>
37 +- <package id="LibGit2Sharp.NativeBinaries" version="1.0.129" targetFramework="net4" allowedVersions="[1.0.129]" />
38 + </packages>
39
40 diff --git a/dev-dotnet/libgit2sharp/libgit2sharp-0.22.ebuild b/dev-dotnet/libgit2sharp/libgit2sharp-0.22.ebuild
41 index 35b9c2b..f2c69b7 100644
42 --- a/dev-dotnet/libgit2sharp/libgit2sharp-0.22.ebuild
43 +++ b/dev-dotnet/libgit2sharp/libgit2sharp-0.22.ebuild
44 @@ -32,10 +32,28 @@ DEPEND="${CDEPEND}
45 "
46 RDEPEND="${CDEPEND}"
47
48 +src_unpack() {
49 + default
50 + # remove rogue binaries
51 + rm -rf "${S}/Lib/NuGet/" || die
52 + rm -rf "${S}/Lib/CustomBuildTasks/CustomBuildTasks.dll" || die
53 +}
54 +
55 src_prepare() {
56 eapply "${FILESDIR}/sln.patch"
57 eapply "${FILESDIR}/csproj-remove-nuget-targets-check.patch"
58 eapply "${FILESDIR}/packages-config-remove-xunit.patch"
59 - enuget_restore "${S}/LibGit2Sharp.sln"
60 + eapply "${FILESDIR}/remove-NativeBinaries-package-dependency.patch"
61 + echo "/usr/lib64/libgit2.so" >"LibGit2Sharp/libgit2_filename.txt" || die
62 + enuget_restore "LibGit2Sharp.sln"
63 default
64 }
65 +
66 +src_compile() {
67 + # recreate custom build tasks .dll
68 + sed -i "s#<OutputPath>.*</OutputPath>#<OutputPath>.</OutputPath>#g" "Lib/CustomBuildTasks/CustomBuildTasks.csproj" || die
69 + exbuild "Lib/CustomBuildTasks/CustomBuildTasks.csproj"
70 +
71 + # main compileation
72 + exbuild "LibGit2Sharp.sln"
73 +}