blob: 09d5a4fb99b0e078543747567d69d5c7b61756c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DOTNET_PKG_COMPAT=8.0
NUGETS="
microsoft.dotnet.platformabstractions@3.1.6
system.commandline@2.0.0-beta4.22272.1
"
inherit dotnet-pkg
DESCRIPTION=".NET information tool for Gentoo"
HOMEPAGE="https://gitlab.gentoo.org/dotnet/csharp-gentoodotnetinfo/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.gentoo.org/dotnet/${PN}.git"
else
SRC_URI="https://gitlab.gentoo.org/dotnet/${PN}/-/archive/${PV}/${P}.tar.bz2"
KEYWORDS="amd64 arm arm64"
fi
SRC_URI+=" ${NUGET_URIS} "
LICENSE="GPL-2+"
SLOT="0"
DOTNET_PKG_PROJECTS=(
Source/v1/gentoo-dotnet-info-app/GentooDotnetInfo/GentooDotnetInfo.csproj
)
src_unpack() {
dotnet-pkg_src_unpack
if [[ -n "${EGIT_REPO_URI}" ]] ; then
git-r3_src_unpack
fi
}
src_install() {
local launcher_dll="/usr/share/${P}/GentooDotnetInfo.dll"
dotnet-pkg-base_install
dotnet-pkg-base_dolauncher_portable "${launcher_dll}" gentoo-dotnet-info
einstalldocs
}
|