commit: adcccc244d4cbbb135fe4c26200af8ae1d408416 Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com> AuthorDate: Sun Oct 29 23:52:19 2017 +0000 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org> CommitDate: Sun Oct 29 23:52:19 2017 +0000 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=adcccc24
forgotten file for antlrcs eclass/dotbuildtask.eclass | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) 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: [email protected] +# @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 +}
