commit:     048f4a86ac3a0be04ca7bf53a56f294714c6c3fb
Author:     ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github 
<DOT> com>
AuthorDate: Thu May  4 09:22:05 2017 +0000
Commit:     Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Thu May  4 09:22:05 2017 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=048f4a86

move gac registration to pkg_postinst

 dev-dotnet/pliant/files/csproj.patch    |  2 +-
 dev-dotnet/pliant/pliant-0.5.0.1.ebuild | 20 +++++++++++++++++---
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/dev-dotnet/pliant/files/csproj.patch 
b/dev-dotnet/pliant/files/csproj.patch
index 8e2a231..abfd94e 100644
--- a/dev-dotnet/pliant/files/csproj.patch
+++ b/dev-dotnet/pliant/files/csproj.patch
@@ -7,7 +7,7 @@ diff -r -u a/libraries/Pliant/Pliant.csproj 
b/libraries/Pliant/Pliant.csproj
    <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 -  <!-- To modify your build process, add your task inside one of the targets 
below and uncomment it. 
 -       Other similar extension points exist, see Microsoft.Common.targets.
-+  <Import Project="$(MSBuildBinPath)\MSBuild.Community.Tasks.Targets" 
Condition="Exists('$(MSBuildBinPath)\MSBuild.Community.Tasks.Targets')" />
++  <Import Project="$(MSBuildExtensionsPath)\MSBuild.Community.Tasks.Targets" 
Condition="Exists('$(MSBuildExtensionsPath)\MSBuild.Community.Tasks.Targets')" 
/>
    <Target Name="BeforeBuild">
 +    <PropertyGroup Condition=" '$(VersionNumber)' == '' ">
 +      <VersionNumber>1.0.0.0</VersionNumber>

diff --git a/dev-dotnet/pliant/pliant-0.5.0.1.ebuild 
b/dev-dotnet/pliant/pliant-0.5.0.1.ebuild
index 4620fbf..9e0c0aa 100644
--- a/dev-dotnet/pliant/pliant-0.5.0.1.ebuild
+++ b/dev-dotnet/pliant/pliant-0.5.0.1.ebuild
@@ -16,7 +16,7 @@ inherit gac dotnet nupkg
 
 NAME="Pliant"
 HOMEPAGE="https://github.com/patrickhuber/${NAME}";
-EGIT_COMMIT="dd03ca2942d999a8eb2e30a51b3ccf8d3c70602d"
+EGIT_COMMIT="19ecea89bf35cd2ba9426cdd862773dab3b0af6d"
 SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz"
 S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"
 
@@ -87,8 +87,22 @@ src_compile() {
 }
 
 src_install() {
-       egacinstall "$(get_output_filepath)"
        einfo ${ASSEMBLY_VERSION}
-       einstall_pc_file "${PN}" ${ASSEMBLY_VERSION} "Pliant"
+
        enupkg "${WORKDIR}/${NAME}.${NUSPEC_VERSION}.nupkg"
+
+#      egacinstall "$(get_output_filepath)"
+       insinto "/usr/lib/mono/${EBUILD_FRAMEWORK}"
+       doins "$(get_output_filepath)"
+       einstall_pc_file "${PN}" ${ASSEMBLY_VERSION} "Pliant"
+}
+
+pkg_postinst()
+{
+       egacadd "/usr/lib/mono/${EBUILD_FRAMEWORK}/${DLL_NAME}.dll"
+}
+
+pkg_prerm()
+{
+       egacdel "${DLL_NAME}"
 }

Reply via email to