summaryrefslogtreecommitdiff
path: root/dev-dotnet/fable/fable-4.26.0.ebuild
blob: ab73c210bf24a6e1b06227bafacf7444c7165430 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DOTNET_PKG_COMPAT="9.0"
NUGETS="
blackfox.commandline@1.0.0
buildalyzer.logger@7.1.0
buildalyzer@7.1.0
expecto@10.1.0
fable.ast@4.0.0
fable.browser.blob@1.1.4
fable.browser.dom@2.4.4
fable.browser.event@1.4.4
fable.browser.event@1.4.5
fable.browser.gamepad@1.0.3
fable.browser.webstorage@1.0.4
fable.core@3.0.0
fable.core@3.1.2
fable.core@3.1.5
fable.core@3.1.6
fable.core@3.2.7
fable.core@3.2.8
fable.core@4.2.0
fable.fluentui@0.7.0
fable.jester@0.33.0
fable.jsonprovider@1.1.1
fable.node@1.0.2
fable.promise@2.2.2
fable.react@7.0.1
fable.react@7.4.0
fable.react@8.0.1
fable.reacttestinglibrary@0.33.0
fake.core.context@6.1.3
fake.core.environment@6.1.3
fake.core.fakevar@6.1.3
fake.core.string@6.1.3
fake.core.trace@6.1.3
fake.io.filesystem@6.1.3
feliz.compilerplugins@2.0.0-prerelease-002
feliz@1.47.0
feliz@2.0.0-prerelease-002
fsharp.analyzers.build@0.3.0
fsharp.analyzers.sdk@0.27.0
fsharp.compiler.service@43.8.400
fsharp.core@4.2.3
fsharp.core@4.3.4
fsharp.core@4.7.0
fsharp.core@4.7.1
fsharp.core@4.7.2
fsharp.core@6.0.1
fsharp.core@6.0.2
fsharp.core@7.0.200
fsharp.core@8.0.301
fsharp.core@8.0.400
fsharp.core@9.0.101
fsharp.data.adaptive@1.2.14
fsharp.systemtextjson@1.3.13
fsharp.umx@1.1.0
g-research.fsharp.analyzers@0.8.0
ionide.analyzers@0.8.0
mcmaster.netcore.plugins@1.4.0
microsoft.build.framework@17.10.4
microsoft.build.framework@17.5.0
microsoft.build.tasks.core@17.10.4
microsoft.build.tasks.git@8.0.0
microsoft.build.utilities.core@17.10.4
microsoft.build.utilities.core@17.5.0
microsoft.build@15.3.409
microsoft.build@17.10.4
microsoft.codeanalysis.analyzers@3.3.2
microsoft.codeanalysis.common@4.0.0
microsoft.codeanalysis.csharp@4.0.0
microsoft.codeanalysis.visualbasic@4.0.0
microsoft.codecoverage@17.10.0
microsoft.dotnet.platformabstractions@3.1.6
microsoft.extensions.configuration.abstractions@8.0.0
microsoft.extensions.configuration.binder@8.0.0
microsoft.extensions.configuration.binder@8.0.2
microsoft.extensions.configuration@8.0.0
microsoft.extensions.dependencyinjection.abstractions@6.0.0
microsoft.extensions.dependencyinjection.abstractions@8.0.0
microsoft.extensions.dependencyinjection.abstractions@8.0.1
microsoft.extensions.dependencyinjection.abstractions@8.0.2
microsoft.extensions.dependencyinjection@6.0.0
microsoft.extensions.dependencyinjection@8.0.1
microsoft.extensions.dependencymodel@5.0.0
microsoft.extensions.logging.abstractions@6.0.0
microsoft.extensions.logging.abstractions@8.0.1
microsoft.extensions.logging.abstractions@8.0.2
microsoft.extensions.logging.configuration@8.0.1
microsoft.extensions.logging.console@8.0.1
microsoft.extensions.logging@6.0.0
microsoft.extensions.logging@8.0.1
microsoft.extensions.options.configurationextensions@8.0.0
microsoft.extensions.options@6.0.0
microsoft.extensions.options@8.0.0
microsoft.extensions.options@8.0.2
microsoft.extensions.primitives@5.0.1
microsoft.extensions.primitives@8.0.0
microsoft.net.stringtools@17.10.4
microsoft.net.stringtools@17.5.0
microsoft.net.test.sdk@17.10.0
microsoft.netcore.platforms@1.1.0
microsoft.netcore.platforms@2.1.2
microsoft.sourcelink.common@8.0.0
microsoft.sourcelink.github@8.0.0
microsoft.testplatform.objectmodel@17.10.0
microsoft.testplatform.testhost@17.10.0
mono.cecil@0.11.4
msbuild.structuredlogger@2.2.158
msbuildpipelogger.server@1.1.6
netstandard.library@2.0.3
newtonsoft.json@13.0.1
nuget.frameworks@6.9.1
octokit@8.0.0
semver@3.0.0
simpleexec@12.0.0
source-map-sharp@1.0.9
system.buffers@4.5.1
system.codedom@8.0.0
system.collections.immutable@5.0.0
system.collections.immutable@6.0.0
system.collections.immutable@8.0.0
system.configuration.configurationmanager@6.0.0
system.configuration.configurationmanager@8.0.0
system.diagnostics.diagnosticsource@6.0.0
system.diagnostics.diagnosticsource@8.0.0
system.diagnostics.eventlog@8.0.0
system.formats.asn1@8.0.0
system.memory@4.5.4
system.memory@4.5.5
system.reflection.emit.lightweight@4.6.0
system.reflection.emit@4.7.0
system.reflection.metadata@1.6.0
system.reflection.metadata@5.0.0
system.reflection.metadata@8.0.0
system.reflection.metadataloadcontext@8.0.0
system.resources.extensions@8.0.0
system.runtime.compilerservices.unsafe@4.5.2
system.runtime.compilerservices.unsafe@5.0.0
system.runtime.compilerservices.unsafe@6.0.0
system.security.cryptography.pkcs@8.0.0
system.security.cryptography.protecteddata@8.0.0
system.security.cryptography.xml@8.0.0
system.security.permissions@6.0.0
system.security.principal.windows@5.0.0
system.text.encoding.codepages@4.5.1
system.text.encodings.web@6.0.0
system.text.json@6.0.0
system.text.json@6.0.2
system.threading.tasks.dataflow@8.0.0
system.threading.tasks.extensions@4.5.4
thoth.json.net@12.0.0
xunit.abstractions@2.0.3
xunit.analyzers@1.15.0
xunit.assert@2.9.0
xunit.core@2.9.0
xunit.extensibility.core@2.9.0
xunit.extensibility.execution@2.9.0
xunit.runner.visualstudio@2.8.2
xunit@2.9.0
"

inherit check-reqs dotnet-pkg

DESCRIPTION="F# to JavaScript, TypeScript, Python, Rust and Dart Compiler"
HOMEPAGE="http://fable.io/
	https://github.com/fable-compiler/fable/"

if [[ "${PV}" == *9999* ]] ; then
	inherit git-r3

	EGIT_REPO_URI="https://github.com/fable-compiler/${PN}"
else
	SRC_URI="https://github.com/fable-compiler/${PN}/archive/refs/tags/${PV}.tar.gz
		-> ${P}.gh.tar.gz"
	S="${WORKDIR}/${P^}"

	KEYWORDS="amd64"
fi

SRC_URI+=" ${NUGET_URIS} "

LICENSE="Apache-2.0 MIT"
SLOT="0"

CHECKREQS_DISK_BUILD="2G"
DOTNET_PKG_PROJECTS=(
	src/Fable.Cli/Fable.Cli.fsproj
)
DOTNET_PKG_BAD_PROJECTS=(
	src/quicktest/QuickTest.fsproj
	tests/Js/Main/Fable.Tests.fsproj
	tests/Rust/Fable.Tests.Rust.fsproj
)

pkg_setup() {
	check-reqs_pkg_setup
	dotnet-pkg_pkg_setup
}

src_unpack() {
	dotnet-pkg_src_unpack

	if [[ -n "${EGIT_REPO_URI}" ]] ; then
		git-r3_src_unpack
	fi
}

src_prepare() {
	rm ./Fable.Standalone.sln || die

	if use debug ; then
		DOTNET_PKG_BAD_PROJECTS+=(
			# Seems to hang but in reality it fails with USE="debug", bug #922684
			tests/Python/Fable.Tests.Python.fsproj
		)
	fi

	dotnet-pkg_src_prepare
}