* [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/castle-dynamicproxy/
@ 2017-11-10 6:48 Mikhail Pukhlikov
0 siblings, 0 replies; only message in thread
From: Mikhail Pukhlikov @ 2017-11-10 6:48 UTC (permalink / raw
To: gentoo-commits
commit: 0dcc8d6b70493cb20261a79215463210d681b98c
Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Tue Oct 31 08:02:02 2017 +0000
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
CommitDate: Tue Oct 31 08:02:02 2017 +0000
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=0dcc8d6b
initial version of code added
.../castle-dynamicproxy-2.1.0.0.ebuild | 88 ++++++++++++++++++++++
dev-dotnet/castle-dynamicproxy/metadata.xml | 14 ++++
2 files changed, 102 insertions(+)
diff --git a/dev-dotnet/castle-dynamicproxy/castle-dynamicproxy-2.1.0.0.ebuild b/dev-dotnet/castle-dynamicproxy/castle-dynamicproxy-2.1.0.0.ebuild
new file mode 100644
index 0000000..f651d07
--- /dev/null
+++ b/dev-dotnet/castle-dynamicproxy/castle-dynamicproxy-2.1.0.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+KEYWORDS="~amd64 ~x86"
+
+RESTRICT="mirror"
+
+SLOT="0"
+
+USE_DOTNET="net45"
+inherit msbuild gac
+IUSE="+${USE_DOTNET}"
+
+NAME="Core"
+HOMEPAGE="http://www.castleproject.org"
+
+EGIT_COMMIT="9a033d8a69535e9078a3344e1ceddf18b60f9324"
+SRC_URI="https://github.com/castleproject/${NAME}/archive/${EGIT_COMMIT}.tar.gz -> ${PF}.tar.gz
+ https://github.com/mono/mono/raw/master/mcs/class/mono.snk"
+S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"
+
+DESCRIPTION="simple set of tools to speed up the development"
+LICENSE="Apache-2.0" # https://github.com/castleproject/Core/blob/master/LICENSE
+
+CDEPEND="|| ( >=dev-lang/mono-5.4.0.167 <dev-lang/mono-9999 )
+ "
+
+RDEPEND="${CDEPEND}
+ "
+
+DEPEND="${CDEPEND}
+ "
+
+PROJECT_PATH="Tools/Castle.DynamicProxy2/Castle.DynamicProxy"
+PROJECT_NAME="Castle.DynamicProxy-vs2008"
+PROJECT_OUT="CastleCore.DynamicProxy2"
+
+KEY2="${DISTDIR}/mono.snk"
+ASSEMBLY_VERSION="1.0.2017.0831"
+
+function output_filename ( ) {
+ local DIR=""
+ if use debug; then
+ DIR="Debug"
+ else
+ DIR="Release"
+ fi
+ echo "${PROJECT_PATH}/bin/${DIR}/${PROJECT_OUT}.dll"
+}
+
+src_prepare() {
+ #cp "${FILESDIR}/${PROJECT_NAME}-${PV}.csproj" "${S}/${PROJECT_PATH}/${PROJECT_NAME}.csproj" || die
+ cat <<-METADATA >"${S}/Core/Castle.Core/AssemblyInfo.cs" || die
+ [assembly: System.Reflection.AssemblyVersion("2.1.0.0")]
+ METADATA
+ eapply_user
+}
+
+src_compile() {
+ emsbuild /p:RootNamespace=Irony /p:SignAssembly=true /p:PublicSign=true "/p:AssemblyOriginatorKeyFile=${KEY2}" "/p:OutputName=${PROJECT_OUT}" "/p:OutputType=Library" "/p:VersionNumber=${ASSEMBLY_VERSION}" "${S}/${PROJECT_PATH}/${PROJECT_NAME}.csproj"
+ sn -R "$(output_filename)" "${KEY2}" || die
+}
+
+src_install() {
+ insinto "/gac"
+ doins "$(output_filename)"
+}
+
+pkg_preinst()
+{
+ echo mv "${D}/gac/${PROJECT_OUT}.dll" "${T}/${PROJECT_OUT}.dll"
+ mv "${D}/gac/${PROJECT_OUT}.dll" "${T}/${PROJECT_OUT}.dll" || die
+ echo rm -rf "${D}/gac"
+ rm -rf "${D}/gac" || die
+}
+
+pkg_postinst()
+{
+ egacadd "${T}/${PROJECT_OUT}.dll"
+ rm "${T}/${PROJECT_OUT}.dll" || die
+}
+
+pkg_prerm()
+{
+ egacdel "${PROJECT_OUT}, Version=${ASSEMBLY_VERSION}, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
+}
diff --git a/dev-dotnet/castle-dynamicproxy/metadata.xml b/dev-dotnet/castle-dynamicproxy/metadata.xml
new file mode 100644
index 0000000..1d64acf
--- /dev/null
+++ b/dev-dotnet/castle-dynamicproxy/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>dotnet@gentoo.org</email>
+ <description>Gentoo Dotnet Project</description>
+ </maintainer>
+ <longdescription lang="en">
+ simple set of tools to speed up the development
+ </longdescription>
+ <longdescription lang="ru">
+ набор утилит для упрощения процесса разработки
+ </longdescription>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-10 6:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-10 6:48 [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/castle-dynamicproxy/ Mikhail Pukhlikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox