From: "Mikhail Pukhlikov" <cynede@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/system-web/
Date: Wed, 7 Sep 2016 06:13:55 +0000 (UTC) [thread overview]
Message-ID: <1473226835.87dcecebadd06fe762624e4d495a4008b82be191.cynede@gentoo> (raw)
commit: 87dcecebadd06fe762624e4d495a4008b82be191
Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
AuthorDate: Wed Sep 7 05:40:35 2016 +0000
Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> 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 @@
<use>
</use>
<longdescription lang="en">
- This package contains the Microsoft.Web.Infrastructure assembly that lets you dynamically register HTTP modules at run time.
+ Framework for creating web-applications
</longdescription>
<longdescription lang="ru">
- Сборка Microsoft.Web.Infrastructure.dll позволяет регистрировать модули HTTP динамически во время выполнения.
+ Фреймворк для создания Web-приложений
</longdescription>
</pkgmetadata>
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
}
next reply other threads:[~2016-09-07 6:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-07 6:13 Mikhail Pukhlikov [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-09-07 6:13 [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/system-web/ Mikhail Pukhlikov
2016-09-19 13:16 Mikhail Pukhlikov
2016-09-19 13:16 Mikhail Pukhlikov
2016-09-19 13:16 Mikhail Pukhlikov
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=1473226835.87dcecebadd06fe762624e4d495a4008b82be191.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