aboutsummaryrefslogtreecommitdiff
blob: b5efbb5722c952ca28a7acfef2c70bc66b557e81 (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-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

# @ECLASS: dotbuildtask.eclass
# @MAINTAINER: cynede@gentoo.org
# @BLURB: functions for installing msbuild task assembly
# @DESCRIPTION:
# It is separated into it's own file to provide ability to define default src_install function for msbuild tasks ebuilds

case ${EAPI:-0} in
	0) die "this eclass doesn't support EAPI 0" ;;
	1|2|3) ;;
	*) ;; #if [[ ${USE_DOTNET} ]]; then REQUIRED_USE="|| (${USE_DOTNET})"; fi;;
esac

inherit multilib dotnet msbuild

# @FUNCTION: get_MSBuildExtensionsPath
# @DESCRIPTION: returns path to .targets files
get_MSBuildExtensionsPath() {
	echo /usr/share/msbuild
}

# @FUNCTION: get_MSBuildExtensionsPath
# @DESCRIPTION: returns path to .targets files
einstask() {
	local state=a
	for var in "$@"
	do
		case "${state}" in
		a)
			elog installing msbuild task dll "${var}" into "$(get_dotlibdir)"
			insinto "$(get_dotlibdir)"
			doins ${var}
			insinto "$(get_MSBuildExtensionsPath)"
			state=b
			;;
		b)
			elog installing file task dll "${var}" into "$(get_MSBuildExtensionsPath)"
			doins ${var}
			;;
		esac
	done
}