aboutsummaryrefslogtreecommitdiff
blob: 031df6848870cc80bc3f5b40677c97682ed86295 (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
46
47
48
49
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="6"

KEYWORDS="~amd64 ~x86"
RESTRICT="mirror"

SLOT="0"

IUSE="debug"
USE_DOTNET="net40"

inherit dotnet gac mpt-r20150903

DESCRIPTION="C# framework for paths operations: Absolute, Drive Letter, UNC, Relative, prefix"
LICENSE="MIT"
NAME="NDepend.Path"
HOMEPAGE="https://github.com/psmacchia/${NAME}"
EGIT_COMMIT="96008fcfbc137eac6fd327387b80b14909a581a1"
SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${PV}.tar.gz"
S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"

CDEPEND="|| ( >=dev-lang/mono-4 <dev-lang/mono-9999 )"
DEPEND="${CDEPEND}"
RDEPEND="${CDEPEND}"

DLLNAME=${NAME}
FULLSLN=${NAME}.sln

src_prepare() {
	empt-csproj --dir="${S}/${NAME}" --remove-reference "Microsoft.Contracts"
	empt-sln --sln-file "${S}/${FULLSLN}" --remove-proj "NDepend.Path.Tests"
	eapply_user
}

src_compile() {
	exbuild_strong "${FULLSLN}"
}

src_install() {
	if use debug; then
		DIR="Debug"
	else
		DIR="Release"
	fi
	elog "Installing ${DLLNAME}.dll into GAC "
	egacinstall "${NAME}/bin/${DIR}/${DLLNAME}.dll"
}