dev-dotnet/fsautocomplete: use eclass for NuGet.config manipulation

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2024-02-10 14:14:43 +01:00
parent b28abd902a
commit 9e0671d075

View File

@@ -322,22 +322,12 @@ src_unpack() {
src_prepare() {
dotnet-pkg_src_prepare
rm paket.lock || die
sed -i paket.dependencies -e "s|@NUGET_PACKAGES@|${NUGET_PACKAGES}|g" || die
cat << EOF > NuGet.config || die
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget" value="${NUGET_PACKAGES}" />
</packageSources>
</configuration>
EOF
}
src_configure() {
dotnet-pkg-base_restore_tools
rm paket.lock || die
edotnet paket install
dotnet-pkg_src_configure