summaryrefslogtreecommitdiff
blob: 811cade9e5bf91303d9d986b3ad252a9d9270626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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
}