1 |
commit: 048f4a86ac3a0be04ca7bf53a56f294714c6c3fb |
2 |
Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Thu May 4 09:22:05 2017 +0000 |
4 |
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 4 09:22:05 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=048f4a86 |
7 |
|
8 |
move gac registration to pkg_postinst |
9 |
|
10 |
dev-dotnet/pliant/files/csproj.patch | 2 +- |
11 |
dev-dotnet/pliant/pliant-0.5.0.1.ebuild | 20 +++++++++++++++++--- |
12 |
2 files changed, 18 insertions(+), 4 deletions(-) |
13 |
|
14 |
diff --git a/dev-dotnet/pliant/files/csproj.patch b/dev-dotnet/pliant/files/csproj.patch |
15 |
index 8e2a231..abfd94e 100644 |
16 |
--- a/dev-dotnet/pliant/files/csproj.patch |
17 |
+++ b/dev-dotnet/pliant/files/csproj.patch |
18 |
@@ -7,7 +7,7 @@ diff -r -u a/libraries/Pliant/Pliant.csproj b/libraries/Pliant/Pliant.csproj |
19 |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
20 |
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
21 |
- Other similar extension points exist, see Microsoft.Common.targets. |
22 |
-+ <Import Project="$(MSBuildBinPath)\MSBuild.Community.Tasks.Targets" Condition="Exists('$(MSBuildBinPath)\MSBuild.Community.Tasks.Targets')" /> |
23 |
++ <Import Project="$(MSBuildExtensionsPath)\MSBuild.Community.Tasks.Targets" Condition="Exists('$(MSBuildExtensionsPath)\MSBuild.Community.Tasks.Targets')" /> |
24 |
<Target Name="BeforeBuild"> |
25 |
+ <PropertyGroup Condition=" '$(VersionNumber)' == '' "> |
26 |
+ <VersionNumber>1.0.0.0</VersionNumber> |
27 |
|
28 |
diff --git a/dev-dotnet/pliant/pliant-0.5.0.1.ebuild b/dev-dotnet/pliant/pliant-0.5.0.1.ebuild |
29 |
index 4620fbf..9e0c0aa 100644 |
30 |
--- a/dev-dotnet/pliant/pliant-0.5.0.1.ebuild |
31 |
+++ b/dev-dotnet/pliant/pliant-0.5.0.1.ebuild |
32 |
@@ -16,7 +16,7 @@ inherit gac dotnet nupkg |
33 |
|
34 |
NAME="Pliant" |
35 |
HOMEPAGE="https://github.com/patrickhuber/${NAME}" |
36 |
-EGIT_COMMIT="dd03ca2942d999a8eb2e30a51b3ccf8d3c70602d" |
37 |
+EGIT_COMMIT="19ecea89bf35cd2ba9426cdd862773dab3b0af6d" |
38 |
SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz" |
39 |
S="${WORKDIR}/${NAME}-${EGIT_COMMIT}" |
40 |
|
41 |
@@ -87,8 +87,22 @@ src_compile() { |
42 |
} |
43 |
|
44 |
src_install() { |
45 |
- egacinstall "$(get_output_filepath)" |
46 |
einfo ${ASSEMBLY_VERSION} |
47 |
- einstall_pc_file "${PN}" ${ASSEMBLY_VERSION} "Pliant" |
48 |
+ |
49 |
enupkg "${WORKDIR}/${NAME}.${NUSPEC_VERSION}.nupkg" |
50 |
+ |
51 |
+# egacinstall "$(get_output_filepath)" |
52 |
+ insinto "/usr/lib/mono/${EBUILD_FRAMEWORK}" |
53 |
+ doins "$(get_output_filepath)" |
54 |
+ einstall_pc_file "${PN}" ${ASSEMBLY_VERSION} "Pliant" |
55 |
+} |
56 |
+ |
57 |
+pkg_postinst() |
58 |
+{ |
59 |
+ egacadd "/usr/lib/mono/${EBUILD_FRAMEWORK}/${DLL_NAME}.dll" |
60 |
+} |
61 |
+ |
62 |
+pkg_prerm() |
63 |
+{ |
64 |
+ egacdel "${DLL_NAME}" |
65 |
} |