Gentoo Archives: gentoo-commits

From: Mikhail Pukhlikov <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: eclass/
Date: Mon, 30 Oct 2017 06:45:15
Message-Id: 1509321139.adcccc244d4cbbb135fe4c26200af8ae1d408416.cynede@gentoo
1 commit: adcccc244d4cbbb135fe4c26200af8ae1d408416
2 Author: ArsenShnurkov <ArsenShnurkov <AT> users <DOT> noreply <DOT> github <DOT> com>
3 AuthorDate: Sun Oct 29 23:52:19 2017 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 29 23:52:19 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=adcccc24
7
8 forgotten file for antlrcs
9
10 eclass/dotbuildtask.eclass | 45 +++++++++++++++++++++++++++++++++++++++++++++
11 1 file changed, 45 insertions(+)
12
13 diff --git a/eclass/dotbuildtask.eclass b/eclass/dotbuildtask.eclass
14 new file mode 100644
15 index 0000000..b5efbb5
16 --- /dev/null
17 +++ b/eclass/dotbuildtask.eclass
18 @@ -0,0 +1,45 @@
19 +# Copyright 1999-2017 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +# $Id$
22 +
23 +# @ECLASS: dotbuildtask.eclass
24 +# @MAINTAINER: cynede@g.o
25 +# @BLURB: functions for installing msbuild task assembly
26 +# @DESCRIPTION:
27 +# It is separated into it's own file to provide ability to define default src_install function for msbuild tasks ebuilds
28 +
29 +case ${EAPI:-0} in
30 + 0) die "this eclass doesn't support EAPI 0" ;;
31 + 1|2|3) ;;
32 + *) ;; #if [[ ${USE_DOTNET} ]]; then REQUIRED_USE="|| (${USE_DOTNET})"; fi;;
33 +esac
34 +
35 +inherit multilib dotnet msbuild
36 +
37 +# @FUNCTION: get_MSBuildExtensionsPath
38 +# @DESCRIPTION: returns path to .targets files
39 +get_MSBuildExtensionsPath() {
40 + echo /usr/share/msbuild
41 +}
42 +
43 +# @FUNCTION: get_MSBuildExtensionsPath
44 +# @DESCRIPTION: returns path to .targets files
45 +einstask() {
46 + local state=a
47 + for var in "$@"
48 + do
49 + case "${state}" in
50 + a)
51 + elog installing msbuild task dll "${var}" into "$(get_dotlibdir)"
52 + insinto "$(get_dotlibdir)"
53 + doins ${var}
54 + insinto "$(get_MSBuildExtensionsPath)"
55 + state=b
56 + ;;
57 + b)
58 + elog installing file task dll "${var}" into "$(get_MSBuildExtensionsPath)"
59 + doins ${var}
60 + ;;
61 + esac
62 + done
63 +}