diff options
author | ArsenShnurkov <Arsen.Shnurkov@gmail.com> | 2016-08-16 15:11:40 +0300 |
---|---|---|
committer | ArsenShnurkov <Arsen.Shnurkov@gmail.com> | 2016-08-16 15:11:40 +0300 |
commit | b3c9bffb93db8dd25df03feaa85c41c92764159e (patch) | |
tree | 7fc45c2dfe01af099e8fe7ade541d73efa3faf32 /eclass | |
parent | move egacinstall into separate eclass (diff) | |
download | dotnet-b3c9bffb93db8dd25df03feaa85c41c92764159e.tar.gz dotnet-b3c9bffb93db8dd25df03feaa85c41c92764159e.tar.bz2 dotnet-b3c9bffb93db8dd25df03feaa85c41c92764159e.zip |
move icon for dryioc from FILESDIR to SRC_URI
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/gac.eclass | 28 | ||||
-rw-r--r-- | eclass/machine.eclass | 13 | ||||
-rw-r--r-- | eclass/nupkg.eclass | 2 |
3 files changed, 37 insertions, 6 deletions
diff --git a/eclass/gac.eclass b/eclass/gac.eclass index a074aff..48d648f 100644 --- a/eclass/gac.eclass +++ b/eclass/gac.eclass @@ -13,9 +13,13 @@ case ${EAPI:-0} in 6) ;; esac -DEPEND+=" dev-lang/mono" IUSE+=" +gac" +DEPEND+=" dev-lang/mono + " +RDEPEND+=" dev-lang/mono + " + # SRC_URI+=" https://github.com/mono/mono/raw/master/mcs/class/mono.snk" # I was unable to setup it this ^^ way @@ -29,3 +33,25 @@ egacinstall() { -package ${2:-${GACPN:-${PN}}} \ || die "installing ${1} into the Global Assembly Cache failed" } + +# @FUNCTION: egacadd +# @DESCRIPTION: install package to GAC +egacadd() { + 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: egacdel +# @DESCRIPTION: remove package from GAC +egacdel() { + use !prefix && has "${EAPI:-0}" 0 1 2 && ED="${D}" + gacutil -r "${1}" \ + -root "${ED}"/usr/$(get_libdir) \ + -gacdir /usr/$(get_libdir) \ + -package ${2:-${GACPN:-${PN}}} + # don't die +} diff --git a/eclass/machine.eclass b/eclass/machine.eclass index 0cb37c7..20c1c7c 100644 --- a/eclass/machine.eclass +++ b/eclass/machine.eclass @@ -22,11 +22,14 @@ RDEPEND+=" dev-lang/mono 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 +# @FUNCTION: emachineadd # @DESCRIPTION: install a provider into machine.config -emachineinstall() { +emachineadd() { einfo "Installing $1 into machine.config" } + +# @FUNCTION: emachinedel +# @DESCRIPTION: remove a provider from machine.config +emachinedel() { + einfo "Removing $1 from machine.config" +} diff --git a/eclass/nupkg.eclass b/eclass/nupkg.eclass index 3008e2d..ed6731f 100644 --- a/eclass/nupkg.eclass +++ b/eclass/nupkg.eclass @@ -9,6 +9,8 @@ inherit dotnet +IUSE+=" +nupkg" + # @FUNCTION: get_nuget_trusted_icons_location # @USAGE: [directory] # @DESCRIPTION: |