commit:     b82bdb148aa59ea2319a11abc77001a8d2dad3be
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 23 21:04:40 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Feb 23 22:23:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b82bdb14

dev-dotnet/fantomas: bump to 7.0.1

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-dotnet/fantomas/Manifest              |   1 +
 dev-dotnet/fantomas/fantomas-7.0.1.ebuild | 233 ++++++++++++++++++++++++++++++
 2 files changed, 234 insertions(+)

diff --git a/dev-dotnet/fantomas/Manifest b/dev-dotnet/fantomas/Manifest
index 74b10d825e0e..f6c75f990ce0 100644
--- a/dev-dotnet/fantomas/Manifest
+++ b/dev-dotnet/fantomas/Manifest
@@ -9,6 +9,7 @@ DIST dotnet.reproduciblebuilds.1.1.1.nupkg 24193 BLAKE2B 
7fa2efe9549ec3f7242ceff
 DIST editorconfig.0.15.0.nupkg 110720 BLAKE2B 
68a997f808b18a05aece36cf3f6f37c817a6c4bd9dc6288ecf132b13ebc52ad5e23d9476cf34bb3c3c68c702bd278cf86c08c597ad031ea9966284f8a725f0b8
 SHA512 
7e2d5406867195bf705ef5ddc4683771ccf6a2269240914fddf6c4eeff1bd312bdadc433258d6b5e50fa65271969c9c95c2c10d489970b03edb65dad14d0f8be
 DIST fable.core.3.1.6.nupkg 98023 BLAKE2B 
9d9db7ea2a951f79985a90e308fd75fbb827a7a215b130a98fbd511a8ee7f6179cba5bbf0f9eed51d414ebb8aed95c745ff52f8cfc9d806b1e6ab0c2ed49a87e
 SHA512 
b00bbd05680a760a2101a9878847bd139b16149964ae0b1e36f12ae044eec82afdd580242efccdf3ed1d7505ce9237e62705393b6097c98c1605da20b2969d5b
 DIST fantomas-7.0.0.gh.tar.gz 50358818 BLAKE2B 
5462de311705130240b29b60534a0c4424ebbd55dab5c469e0731328d0f612149351f1188d486872ce7900d08eee93fdd5b917d25788cc3bf682f3568fba0096
 SHA512 
63d6d7be93c20459aa7065be66b999a2e1d34bbdfc78fa004ef8a4e70438a39c077b1de7e9f5a5b5862258ae06acd256f4871d53500d54cbb6d6bff3d92bd4b7
+DIST fantomas-7.0.1.gh.tar.gz 50356423 BLAKE2B 
997df737d5cd7d56c84777eefaa3ceffdb297c0d3eee3e3be4b7130f9b932a31d90e5ab85e7eea679d5213e2ba35d0f296971b192c607b4412490b5df899290a
 SHA512 
011a44b5fceda08a214b612f20153752aa816bce621ad4090f0b5c8f47f6008443aabfae67508f16abddabe36de8ec37d1317a2d2ebc9d62070ca028c78f3717
 DIST fantomas.6.3.9.nupkg 5937066 BLAKE2B 
04db0dda7bea16a55caeeb53e936b90d1d8000ed490f8178e5eea5fe2aea194b5259cc559389d5bcf5f18a7ab432cca31ee5bb8db181cee1c92c3183556818be
 SHA512 
555580cac2748278c99f5188e1c246a5cf6dbd865b257a1d9f75e09f30dbde599b401f6b4a56f0e62734a4206a00af871a048b35a6e8e8b2ba3c881d4527173e
 DIST fparsec.1.1.1.nupkg 353063 BLAKE2B 
47e93d6ed373bcf3fd5c26ace2d60a1e6701b14bb4cbca1650bc15bfd0dce402ea8c8ad471004dfe618f0e9507ec60c53d7e01ead2e7480ececfc4a0395552ff
 SHA512 
b28a1cc8a4fd2d4b000adf68b0a9ffb6aa72ec2cdd5157beb47635346122ac61f6dac0e0b06de8528ed7336e21e9881918fd18d36585507ebefb3336c57b6c76
 DIST fscheck.2.16.5.nupkg 1202407 BLAKE2B 
0da4c276a6e0a1c68f0513a2e1c65291adfe527d89eb005a684937f895d9040d0bfcf5e8c657c6fc112fbfb9b889e4a6c010a0f92789796d0166d93d624a147a
 SHA512 
a1bcecd7c86bd5598d585071c54b404fa8db4d9ed744562dbd83023a6b28b27eaff703353370f127f28bd8dcc6bfd6689640bdd177f5e947a9fbe5353e454367

diff --git a/dev-dotnet/fantomas/fantomas-7.0.1.ebuild 
b/dev-dotnet/fantomas/fantomas-7.0.1.ebuild
new file mode 100644
index 000000000000..97fa1065b4be
--- /dev/null
+++ b/dev-dotnet/fantomas/fantomas-7.0.1.ebuild
@@ -0,0 +1,233 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOTNET_PKG_COMPAT="8.0"
+
+# Required tools are on top, they are listed in ".config/dotnet-tools.json".
+NUGETS="
[email protected]
[email protected]
[email protected]
[email protected]
+
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+"
+
+inherit check-reqs dotnet-pkg
+
+DESCRIPTION="FSharp source code formatter"
+HOMEPAGE="https://fsprojects.github.io/fantomas/
+       https://github.com/fsprojects/fantomas/";
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/fsprojects/${PN}";
+else
+       SRC_URI="https://github.com/fsprojects/${PN}/archive/v${PV}.tar.gz
+               -> ${P}.gh.tar.gz"
+
+       KEYWORDS="~amd64"
+fi
+
+SRC_URI+=" ${NUGET_URIS} "
+
+# See file "Directory.Build.props" -> tag "FCSCommitHash".
+FCS_COMMIT="e668b90e3c087e5fba8a855e502af60bf35be45e"
+SRC_URI+="
+       https://github.com/dotnet/fsharp/archive/${FCS_COMMIT}.tar.gz
+               -> fsharp-${FCS_COMMIT}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0 MIT"
+SLOT="0"
+
+PATCHES=( "${FILESDIR}/fantomas-7.0.0-directory-build-props.patch" )
+
+CHECKREQS_DISK_BUILD="2G"
+DOTNET_PKG_PROJECTS=(
+       src/Fantomas/Fantomas.fsproj
+)
+DOTNET_PKG_BAD_PROJECTS=(
+       src/Fantomas.Benchmarks/Fantomas.Benchmarks.fsproj
+)
+DOTNET_PKG_RESTORE_EXTRA_ARGS=(
+       --force-evaluate
+)
+
+DOCS=( CHANGELOG.md README.md docs/docs/{contributors,end-users} )
+
+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() {
+       dotnet-pkg_src_prepare
+
+       # Reimplementing "dotnet build.fsx -p Init" in shell.
+       mkdir -p "${S}/.deps" || die
+       ln -s "${WORKDIR}/fsharp-${FCS_COMMIT}" "${S}/.deps/${FCS_COMMIT}" || 
die
+       find "${S}/.deps/${FCS_COMMIT}/src" -type f \
+                -exec sed -e "s|FSharp.Compiler|Fantomas.FCS|g" -i {} + || die
+}
+
+src_configure() {
+       dotnet-pkg-base_restore_tools
+       dotnet-pkg_src_configure
+}
+
+src_test() {
+       local -a test_projects=(
+               Fantomas.Core.Tests
+               Fantomas.Tests
+       )
+       local test_project
+       for test_project in "${test_projects[@]}" ; do
+               dotnet-pkg-base_test "${S}/src/${test_project}" 
-p:RollForward=Major
+       done
+}

Reply via email to