public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mikhail Pukhlikov" <cynede@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/castle-dynamicproxy/
Date: Fri, 10 Nov 2017 06:48:37 +0000 (UTC)	[thread overview]
Message-ID: <1509436922.0dcc8d6b70493cb20261a79215463210d681b98c.cynede@gentoo> (raw)

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>


                 reply	other threads:[~2017-11-10  6:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1509436922.0dcc8d6b70493cb20261a79215463210d681b98c.cynede@gentoo \
    --to=cynede@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox