blob: db376c436a365a19963e4199e14679c29f828cc5 (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="PowerShell-Native"
inherit cmake
DESCRIPTION="Functionality missing from .NET Core via system calls"
HOMEPAGE="https://github.com/PowerShell/PowerShell-Native/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/PowerShell/${MY_PN}.git"
S="${WORKDIR}/${P}/src/${PN}"
else
SRC_URI="https://github.com/PowerShell/${MY_PN}/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}/src/${PN}"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
LICENSE="MIT"
SLOT="0/$(ver_cut 1-2)"
RESTRICT="test" # Fails.
PATCHES=(
"${FILESDIR}/${PN}-7.3.2-cmake.patch"
"${FILESDIR}/${PN}-7.3.2-test-cmake.patch"
)
src_install() {
dolib.so "${BUILD_DIR}/src/${PN}.so"
einstalldocs
}
|