aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorArsenShnurkov <ArsenShnurkov@users.noreply.github.com>2017-10-30 02:52:19 +0300
committerArsenShnurkov <ArsenShnurkov@users.noreply.github.com>2017-10-30 02:52:19 +0300
commitadcccc244d4cbbb135fe4c26200af8ae1d408416 (patch)
tree1d24346fef257e9947be5f34c3ee5ef11492574e /eclass
parentpath fixed (diff)
downloaddotnet-adcccc244d4cbbb135fe4c26200af8ae1d408416.tar.gz
dotnet-adcccc244d4cbbb135fe4c26200af8ae1d408416.tar.bz2
dotnet-adcccc244d4cbbb135fe4c26200af8ae1d408416.zip
forgotten file for antlrcs
Diffstat (limited to 'eclass')
-rw-r--r--eclass/dotbuildtask.eclass45
1 files changed, 45 insertions, 0 deletions
diff --git a/eclass/dotbuildtask.eclass b/eclass/dotbuildtask.eclass
new file mode 100644
index 0000000..b5efbb5
--- /dev/null
+++ b/eclass/dotbuildtask.eclass
@@ -0,0 +1,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
+}