aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorArsenShnurkov <Arsen.Shnurkov@gmail.com>2016-08-16 14:24:49 +0300
committerArsenShnurkov <Arsen.Shnurkov@gmail.com>2016-08-16 14:24:49 +0300
commita12519250e9ae3073079eee0e8d2b72b4910ef0d (patch)
tree0e3a807f7c16e713faee3d554c892c55d7baf1f0 /eclass
parentmove icon from to SRC_URI (diff)
downloaddotnet-a12519250e9ae3073079eee0e8d2b72b4910ef0d.tar.gz
dotnet-a12519250e9ae3073079eee0e8d2b72b4910ef0d.tar.bz2
dotnet-a12519250e9ae3073079eee0e8d2b72b4910ef0d.zip
move egacinstall into separate eclass
Diffstat (limited to 'eclass')
-rw-r--r--eclass/dotnet.eclass11
-rw-r--r--eclass/gac.eclass31
-rw-r--r--eclass/machine.eclass32
3 files changed, 63 insertions, 11 deletions
diff --git a/eclass/dotnet.eclass b/eclass/dotnet.eclass
index 02b6c81..6651c4f 100644
--- a/eclass/dotnet.eclass
+++ b/eclass/dotnet.eclass
@@ -147,17 +147,6 @@ exbuild_strong() {
exbuild "${PARAMETERS}"
}
-# @FUNCTION: egacinstall
-# @DESCRIPTION: install package to GAC
-egacinstall() {
- use !prefix && has "${EAPI:-0}" 0 1 2 && ED="${D}"
- gacutil -i "${1}" \
- -root "${ED}"/usr/$(get_libdir) \
- -gacdir /usr/$(get_libdir) \
- -package ${2:-${GACPN:-${PN}}} \
- || die "installing ${1} into the Global Assembly Cache failed"
-}
-
# @FUNCTION: dotnet_multilib_comply
# @DESCRIPTION: multilib comply
dotnet_multilib_comply() {
diff --git a/eclass/gac.eclass b/eclass/gac.eclass
new file mode 100644
index 0000000..a074aff
--- /dev/null
+++ b/eclass/gac.eclass
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# @ECLASS: gac.eclass
+# @MAINTAINER: cynede@gentoo.org
+# @BLURB: functions for registring in gac
+# @DESCRIPTION:
+# binary packages should be able to be registred in gac too
+
+case ${EAPI:-0} in
+ 0|1|2|3|4|5) die "this eclass doesn't support EAPI ${EAPI:-0}" ;;
+ 6) ;;
+esac
+
+DEPEND+=" dev-lang/mono"
+IUSE+=" +gac"
+
+# SRC_URI+=" https://github.com/mono/mono/raw/master/mcs/class/mono.snk"
+# I was unable to setup it this ^^ way
+
+# @FUNCTION: egacinstall
+# @DESCRIPTION: install package to GAC
+egacinstall() {
+ use !prefix && has "${EAPI:-0}" 0 1 2 && ED="${D}"
+ gacutil -i "${1}" \
+ -root "${ED}"/usr/$(get_libdir) \
+ -gacdir /usr/$(get_libdir) \
+ -package ${2:-${GACPN:-${PN}}} \
+ || die "installing ${1} into the Global Assembly Cache failed"
+}
diff --git a/eclass/machine.eclass b/eclass/machine.eclass
new file mode 100644
index 0000000..0cb37c7
--- /dev/null
+++ b/eclass/machine.eclass
@@ -0,0 +1,32 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# @ECLASS: machine.eclass
+# @MAINTAINER: cynede@gentoo.org
+# @BLURB: functions for registring in machine.config
+# @DESCRIPTION:
+# ADO .NET data providers should be able to be registred in machine.config
+
+case ${EAPI:-0} in
+ 0|1|2|3|4|5) die "this eclass doesn't support EAPI ${EAPI:-0}" ;;
+ 6) ;;
+esac
+
+DEPEND+=" dev-lang/mono
+ dev-util/mono-packaging-tools
+ "
+RDEPEND+=" dev-lang/mono
+ dev-util/mono-packaging-tools
+ "
+
+IUSE+=" +machine"
+
+# SRC_URI+=" https://github.com/mono/mono/raw/master/mcs/class/mono.snk"
+# I was unable to setup it this ^^ way
+
+# @FUNCTION: emachineinstall
+# @DESCRIPTION: install a provider into machine.config
+emachineinstall() {
+ einfo "Installing $1 into machine.config"
+}