diff --git a/dev-vcs/sourcegit/Manifest b/dev-vcs/sourcegit/Manifest index 5758ecd4fb479..15df1aed37d34 100644 --- a/dev-vcs/sourcegit/Manifest +++ b/dev-vcs/sourcegit/Manifest @@ -81,6 +81,7 @@ DIST skiasharp.nativeassets.win32.2.88.9.nupkg 10918525 BLAKE2B 39a607a2b9e51659 DIST sourcegit-2025.35.gh.tar.gz 2459578 BLAKE2B c83f56ba5093b5b875d7b107b747b8be975ffbb3504955b3a71aede5e73c47bbba29e39af537d223f86ea012b65dfb71ffa07da9f181b71ee7e53c9e5165c12d SHA512 a9c90355cf83fb3245802206633a5fffb4ffcac880dc8df2784882116f8e0a4dc5a60c5dd96760cb42c5820c61e5f94d035f8107037c7111a94db9317909b4ce DIST sourcegit-2025.38.gh.tar.gz 2510150 BLAKE2B 6ba7c2871cc8ffcd53fa7ed653161a7ae9e1b0d7025bca95e65c88d4a760a7c25dd56ef81c1c64a9bf7906ee76f8d959707b698cb02a0e91065e92d92c8cdb31 SHA512 845a62bcdc67a84bd41ac2250813a51edc130416ecdd948b3f36002118dcba7b5b8416a09c4f23bd838e36d016dd2684b9e2bf4e8c7a4b1eb56d94e4b22e07b5 DIST sourcegit-2025.39.gh.tar.gz 2516037 BLAKE2B c209930d55ed3194c24f17539e104bc547e03585b51603328b95488ef48e17cd87252d0a6bedbd3f8ad89c79450415c83d404489158432c4b47ca43b26a0f163 SHA512 2a4a889d5d6e45c041af14a04510a5568b8fecd06638feab7e0d2e74d73b06a2b1c04654974966b040553f626122168fde37f21dd350cf75c0bc14fbfd0bba0a +DIST sourcegit-2025.40.gh.tar.gz 2517368 BLAKE2B 7440009823124ebf60ab31df8b1a715a0f30dc08215c88e97528fc7293f9c569c6b7ea7114d69b0ac973e5ef18664d47db0b7f0c57295b47dce202a4479b7f55 SHA512 db193c3deda616565ea7ab572a9fdeb65977e27b1624bd037755e5b5a19d15fbb2653edec54129deda7ac0813053d01316347c6108ea6fcbe7ba82d224a38037 DIST system.clientmodel.1.6.1.nupkg 280898 BLAKE2B cdb2c7ca08ce4b288e6414ed242dc3d0d80e050f07eca6addacce78112fb627b68a2b62f271e05793712a435f90c4851e36106343fff5f4e6755f6a015087600 SHA512 1120a8450150c7a989c52f01b7dc42f70b7ec40a2ab8609c1b2a3af284eb75ce15c185fb7d6f2c5bf20dd14c28045af080e2293c62926127611844d660cdd2b4 DIST system.clientmodel.1.7.0.nupkg 450652 BLAKE2B 3144f992f68a11b90315da9d79b526d690c1a42f7419bc2716c72f57299555865df6a09c8fccc37ff2f023f3bc91daada946599433a6fedf31b03bcb00377e7a SHA512 594ca80c3b62a08688e40d6c15038d03a9428882e7805228c4e82dc8a81b3d9d5712010f7ca8a28d43a9b60b75a409411338542a8cb3f18e07a60f4ccc768d65 DIST system.io.pipelines.8.0.0.nupkg 267394 BLAKE2B 612570554ee41ae37c8987df6ec797583c95b38160aa70b1c2fba9af23f4bd85ac0ba5b7036abfc1ee3cecdbfbdaa83b861e9c017e5fdf3e726478b24e83d957 SHA512 57eb6a11e84f40a48b57b1dc5786a01aa9852122b7d15363490d8a12c9a458bf99a8ddf4c0c0247be98559c2b42e769a10bda2c5a9817735484d960dc652eb12 diff --git a/dev-vcs/sourcegit/sourcegit-2025.40.ebuild b/dev-vcs/sourcegit/sourcegit-2025.40.ebuild new file mode 100644 index 0000000000000..a51ebc27d9cf4 --- /dev/null +++ b/dev-vcs/sourcegit/sourcegit-2025.40.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DOTNET_PKG_COMPAT="10.0" +NUGETS=" +avalonia.angle.windows.natives@2.1.25547.20250602 +avalonia.avaloniaedit@11.3.0 +avalonia.buildservices@11.3.2 +avalonia.controls.colorpicker@11.3.9 +avalonia.controls.datagrid@11.3.9 +avalonia.desktop@11.3.9 +avalonia.diagnostics@11.3.9 +avalonia.fonts.inter@11.3.9 +avalonia.freedesktop@11.3.9 +avalonia.native@11.3.9 +avalonia.remote.protocol@11.3.9 +avalonia.skia@11.0.0 +avalonia.skia@11.3.9 +avalonia.themes.fluent@11.3.9 +avalonia.themes.simple@11.3.9 +avalonia.win32@11.3.9 +avalonia.x11@11.3.9 +avalonia@11.3.9 +avaloniaedit.textmate@11.3.0 +azure.ai.openai@2.5.0-beta.1 +azure.core@1.49.0 +bitmiracle.libtiff.net@2.4.660 +communitytoolkit.mvvm@8.4.0 +harfbuzzsharp.nativeassets.linux@8.3.1.1 +harfbuzzsharp.nativeassets.macos@8.3.1.1 +harfbuzzsharp.nativeassets.webassembly@8.3.1.1 +harfbuzzsharp.nativeassets.win32@8.3.1.1 +harfbuzzsharp@7.3.0.3 +harfbuzzsharp@8.3.1.1 +livechartscore.skiasharpview.avalonia@2.0.0-rc6.1 +livechartscore.skiasharpview@2.0.0-rc6.1 +livechartscore@2.0.0-rc6.1 +microcom.runtime@0.11.0 +microsoft.bcl.asyncinterfaces@8.0.0 +microsoft.extensions.dependencyinjection.abstractions@8.0.2 +microsoft.extensions.logging.abstractions@8.0.3 +onigwrap@1.0.8 +openai@2.5.0 +pfim@0.11.3 +skiasharp.harfbuzz@2.88.9 +skiasharp.nativeassets.linux@2.88.9 +skiasharp.nativeassets.macos@2.88.9 +skiasharp.nativeassets.webassembly@2.88.9 +skiasharp.nativeassets.win32@2.88.9 +skiasharp@2.88.9 +system.clientmodel@1.6.1 +system.clientmodel@1.7.0 +system.memory.data@8.0.1 +textmatesharp.grammars@1.0.70 +textmatesharp@1.0.70 +tmds.dbus.protocol@0.21.2 +" + +inherit check-reqs dotnet-pkg desktop xdg + +DESCRIPTION="Open Source Git GUI client using .NET AvaloniaUI" +HOMEPAGE="https://github.com/sourcegit-scm/sourcegit/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/sourcegit-scm/${PN}" +else + SRC_URI="https://github.com/sourcegit-scm/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + + KEYWORDS="~amd64" +fi + +SRC_URI+=" ${NUGET_URIS} " + +LICENSE="MIT" +SLOT="0" + +RDEPEND=" + app-arch/brotli + app-arch/bzip2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/libpcre2 + dev-vcs/git + media-gfx/graphite2 + media-libs/fontconfig:1.0 + media-libs/freetype:2 + media-libs/harfbuzz + media-libs/libpng +" + +CHECKREQS_DISK_BUILD="1G" +DOTNET_PKG_PROJECTS=( src/SourceGit.csproj ) +DOTNET_PKG_BUILD_EXTRA_ARGS=( -p:DisableUpdateDetection="true" ) + +dotnet-pkg_force-compat + +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() { + sed -i "./build/resources/_common/applications/${PN}.desktop" \ + -e "s|/opt/sourcegit/sourcegit|sourcegit|g" \ + -e "s|/usr/share/icons/sourcegit.png|sourcegit|g" \ + || die + + rm SourceGit.slnx || die + + dotnet-pkg_src_prepare +} + +src_install() { + dotnet-pkg-base_install + dotnet-pkg-base_dolauncher "/usr/share/${P}/SourceGit" "${PN}" + + doicon "./build/resources/_common/icons/${PN}.png" + domenu "./build/resources/_common/applications/${PN}.desktop" + + einstalldocs +} + +pkg_postinst() { + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update +}