diff options
Diffstat (limited to 'dev-dotnet/xdt-for-monodevelop/xdt-for-monodevelop-2.8.3.ebuild')
-rw-r--r-- | dev-dotnet/xdt-for-monodevelop/xdt-for-monodevelop-2.8.3.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-dotnet/xdt-for-monodevelop/xdt-for-monodevelop-2.8.3.ebuild b/dev-dotnet/xdt-for-monodevelop/xdt-for-monodevelop-2.8.3.ebuild new file mode 100644 index 000000000000..ab54f01bc002 --- /dev/null +++ b/dev-dotnet/xdt-for-monodevelop/xdt-for-monodevelop-2.8.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit dotnet eutils + +DESCRIPTION="Microsoft's Xml Document Transformation library" +HOMEPAGE="https://github.com/mrward/xdt" +LICENSE="Apache-2.0" +SLOT="0" + +SRC_URI="https://github.com/mrward/xdt/archive/Release-NuGet-${PV}-Mono.tar.gz -> xdt-for-monodevelop-${PV}.tar.gz" +S=${WORKDIR}/xdt-Release-NuGet-${PV}-Mono + +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="|| ( dev-lang/mono )" +RDEPEND="${DEPEND}" + +pkg_setup() { + dotnet_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}/disable-testproject-build-in-sln.patch" + cp "${FILESDIR}/rsa-4096.snk" "${S}/XmlTransform" || die + epatch "${FILESDIR}/add-keyfile-option-to-csproj.patch" + sed -i -e "s/1.0.0/${PV}/g" "${S}/XmlTransform/Properties/AssemblyInfo.cs" || die +} + +src_configure() { + export EnableNuGetPackageRestore="true" +} + +src_compile() { + exbuild Microsoft.Web.XmlTransform.sln +} + +src_install() { + elog "Installing Microsoft.Web.XmlTransform.dll to GAC" + egacinstall XmlTransform/bin/Release/Microsoft.Web.XmlTransform.dll +} |