From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 71D311395E2 for ; Fri, 2 Dec 2016 10:04:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EB15CE0C36; Fri, 2 Dec 2016 10:04:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CCFC3E0C36 for ; Fri, 2 Dec 2016 10:04:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CD7223412B7 for ; Fri, 2 Dec 2016 10:04:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4FB7924B3 for ; Fri, 2 Dec 2016 10:04:35 +0000 (UTC) From: "Mikhail Pukhlikov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mikhail Pukhlikov" Message-ID: <1480584787.06a2bb02bb742910154e5f34ff3cd8de61675490.cynede@gentoo> Subject: [gentoo-commits] proj/dotnet:master commit in: dev-lang/mono/ X-VCS-Repository: proj/dotnet X-VCS-Files: dev-lang/mono/mono-4.9.0.729-r2.ebuild X-VCS-Directories: dev-lang/mono/ X-VCS-Committer: cynede X-VCS-Committer-Name: Mikhail Pukhlikov X-VCS-Revision: 06a2bb02bb742910154e5f34ff3cd8de61675490 X-VCS-Branch: master Date: Fri, 2 Dec 2016 10:04:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 05bc5a31-6b4f-4b9d-9ade-44ec1bd136c3 X-Archives-Hash: 0fda632f7ffff2139ea519d2f702979c commit: 06a2bb02bb742910154e5f34ff3cd8de61675490 Author: ArsenShnurkov gmail com> AuthorDate: Thu Dec 1 09:33:07 2016 +0000 Commit: Mikhail Pukhlikov gentoo org> CommitDate: Thu Dec 1 09:33:07 2016 +0000 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=06a2bb02 installing mono.snk into 'mono' container dev-lang/mono/mono-4.9.0.729-r2.ebuild | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/dev-lang/mono/mono-4.9.0.729-r2.ebuild b/dev-lang/mono/mono-4.9.0.729-r2.ebuild index 5875ed3..482dedb 100644 --- a/dev-lang/mono/mono-4.9.0.729-r2.ebuild +++ b/dev-lang/mono/mono-4.9.0.729-r2.ebuild @@ -42,8 +42,27 @@ pkg_pretend() { use kernel_linux && check_extra_config } +multilib_src_install_all() { + insinto "/" + doins "${S}/mcs/class/mono.snk" +} + pkg_preinst() { - "${WORKDIR}/mono-4.9.0-abi_x86_32.x86/mono/mini/mono-sgen" "${WORKDIR}/mono-4.9.0-abi_x86_32.x86/mcs/tools/security/sn.exe" -i "${S}/mcs/class/mono.snk" "mono" || die + einfo D="${D}" + MONO_EXECUTABLE="${WORKDIR}/mono-4.9.0-abi_x86_32.x86/mono/mini/mono-sgen" + if [ ! -f "${MONO_EXECUTABLE}" ]; then + die "${MONO_EXECUTABLE}, MONO_EXECUTABLE is missing" + fi + SN_ASSEMBLY="${WORKDIR}/mono-4.9.0-abi_x86_32.x86/mcs/tools/security/sn.exe" + if [ ! -f "${SN_ASSEMBLY}" ]; then + die "${SN_ASSEMBLY}, SN_ASSEMBLY is missing" + fi + SNK_FILE="${D}/mono.snk" + if [ ! -f "${SNK_FILE}" ]; then + die "${SNK_FILE}, SNK_FILE is missing" + fi + "${MONO_EXECUTABLE}" "${SN_ASSEMBLY}" -i "${SNK_FILE}" "mono" || die + rm "${SNK_FILE}" || die } pkg_setup() {