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 A6836138330 for ; Wed, 7 Sep 2016 06:14:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0D95521C246; Wed, 7 Sep 2016 06:14:03 +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 4C9D821C238 for ; Wed, 7 Sep 2016 06:14:01 +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 115CE33FECD for ; Wed, 7 Sep 2016 06:14:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E53FC248A for ; Wed, 7 Sep 2016 06:13:55 +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: <1473226835.87dcecebadd06fe762624e4d495a4008b82be191.cynede@gentoo> Subject: [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/system-web/ X-VCS-Repository: proj/dotnet X-VCS-Files: dev-dotnet/system-web/metadata.xml dev-dotnet/system-web/system-web-4.6.0.150.ebuild X-VCS-Directories: dev-dotnet/system-web/ X-VCS-Committer: cynede X-VCS-Committer-Name: Mikhail Pukhlikov X-VCS-Revision: 87dcecebadd06fe762624e4d495a4008b82be191 X-VCS-Branch: master Date: Wed, 7 Sep 2016 06:13:55 +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: 899b6836-1f5b-4efd-b1be-2ad789283707 X-Archives-Hash: 1aece19cb2372b6def83f20652c85bad commit: 87dcecebadd06fe762624e4d495a4008b82be191 Author: ArsenShnurkov gmail com> AuthorDate: Wed Sep 7 05:40:35 2016 +0000 Commit: Mikhail Pukhlikov gentoo org> CommitDate: Wed Sep 7 05:40:35 2016 +0000 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=87dceceb .pc file added dev-dotnet/system-web/metadata.xml | 4 +-- dev-dotnet/system-web/system-web-4.6.0.150.ebuild | 39 +++++++++++++++++++++-- 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/dev-dotnet/system-web/metadata.xml b/dev-dotnet/system-web/metadata.xml index 5875c6f..e5ffcdc 100644 --- a/dev-dotnet/system-web/metadata.xml +++ b/dev-dotnet/system-web/metadata.xml @@ -12,9 +12,9 @@ - This package contains the Microsoft.Web.Infrastructure assembly that lets you dynamically register HTTP modules at run time. + Framework for creating web-applications - Сборка Microsoft.Web.Infrastructure.dll позволяет регистрировать модули HTTP динамически во время выполнения. + Фреймворк для создания Web-приложений diff --git a/dev-dotnet/system-web/system-web-4.6.0.150.ebuild b/dev-dotnet/system-web/system-web-4.6.0.150.ebuild index 152f290..b871f70 100644 --- a/dev-dotnet/system-web/system-web-4.6.0.150.ebuild +++ b/dev-dotnet/system-web/system-web-4.6.0.150.ebuild @@ -6,9 +6,9 @@ EAPI=6 USE_DOTNET="net45" inherit gac dotnet -IUSE+=" +net45 debug" +IUSE+=" +net45 +pkg-config debug" -DESCRIPTION="assembly that lets you dynamically register HTTP modules at run time" +DESCRIPTION="Framework for developing web-applications" HOMEPAGE="https://www.asp.net/" SRC_URI="http://download.mono-project.com/sources/mono/mono-4.6.0.150.tar.bz2" @@ -50,6 +50,7 @@ KEYFILE2=${S}/mcs/class/mono.snk src_compile() { + # System.Web.dll exbuild /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=${KEYFILE1} /p:DelaySign=true "${S}/mcs/class/${NAME}/${CSPROJ}" if use debug; then DIR="Debug" @@ -57,6 +58,8 @@ src_compile() DIR="Release" fi sn -R "${S}/mcs/class/${NAME}/obj/${DIR}/${NAME}.dll" ${KEYFILE2} || die + + # Policy file al "/link:${S}/policy.4.0.System.Web.config" "/out:${S}/policy.4.0.System.Web.dll" "/keyfile:${KEYFILE1}" /delaysign+ || die sn -R "${S}/policy.4.0.System.Web.dll" ${KEYFILE2} || die } @@ -68,7 +71,37 @@ src_install() else DIR="Release" fi - # installation to GAC will cause file collision with mono package egacinstall "${S}/mcs/class/${NAME}/obj/${DIR}/${NAME}.dll" egacinstall "${S}/policy.4.0.System.Web.dll" + install_pc_file "${PN}" "${NAME}.dll" +} + +# The file format contains predefined metadata keywords and freeform variables (like ${prefix} and ${exec_prefix}) +# $1 = ${PN} +# $2 = myassembly.dll +install_pc_file() +{ + if use pkg-config; then + dodir /usr/$(get_libdir)/pkgconfig + ebegin "Installing ${PC_FILE_NAME}.pc file" + sed \ + -e "s:@LIBDIR@:$(get_libdir):" \ + -e "s:@PACKAGENAME@:$1:" \ + -e "s:@DESCRIPTION@:${DESCRIPTION}:" \ + -e "s:@VERSION@:${PV}:" \ + -e 's*@LIBS@*-r:${libdir}'"/mono/$1/$2"'*' \ + <<-EOF >"${D}/usr/$(get_libdir)/pkgconfig/$1.pc" || die + prefix=${pcfiledir}/../.. + exec_prefix=${prefix} + libdir=${exec_prefix}/@LIBDIR@ + Name: @PACKAGENAME@ + Description: @DESCRIPTION@ + Version: @VERSION@ + Libs: @LIBS@ + EOF + + einfo PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists "$1" + PKG_CONFIG_PATH="${D}/usr/$(get_libdir)/pkgconfig/" pkg-config --exists "$1" || die ".pc file failed to validate." + eend $? + fi }