blob: 0402b40e90438af8735d8f0e4200482a1452ea6b (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DOTNET_PKG_COMPAT="9.0"
NUGETS="
avalonia.angle.windows.natives@2.1.22045.20230930
avalonia.avaloniaedit@11.1.0
avalonia.buildservices@0.0.29
avalonia.controls.colorpicker@11.2.1
avalonia.controls.datagrid@11.2.1
avalonia.desktop@11.2.1
avalonia.diagnostics@11.2.1
avalonia.fonts.inter@11.2.1
avalonia.freedesktop@11.2.1
avalonia.native@11.2.1
avalonia.remote.protocol@11.2.1
avalonia.skia@11.0.0
avalonia.skia@11.2.1
avalonia.themes.fluent@11.2.1
avalonia.themes.simple@11.2.1
avalonia.win32@11.2.1
avalonia.x11@11.2.1
avalonia@11.0.0
avalonia@11.2.1
avaloniaedit.textmate@11.1.0
communitytoolkit.mvvm@8.3.2
harfbuzzsharp.nativeassets.linux@7.3.0.2
harfbuzzsharp.nativeassets.macos@7.3.0.2
harfbuzzsharp.nativeassets.webassembly@7.3.0.3-preview.2.2
harfbuzzsharp.nativeassets.win32@7.3.0.2
harfbuzzsharp@7.3.0.2
livechartscore.skiasharpview.avalonia@2.0.0-rc4.5
livechartscore.skiasharpview@2.0.0-rc4.5
livechartscore@2.0.0-rc4.5
microcom.runtime@0.11.0
onigwrap@1.0.6
skiasharp.harfbuzz@2.88.8
skiasharp.nativeassets.linux@2.88.8
skiasharp.nativeassets.macos@2.88.8
skiasharp.nativeassets.webassembly@2.88.8
skiasharp.nativeassets.win32@2.88.8
skiasharp@2.88.8
system.io.pipelines@8.0.0
system.text.json@8.0.5
textmatesharp.grammars@1.0.59
textmatesharp.grammars@1.0.64
textmatesharp@1.0.59
textmatesharp@1.0.64
tmds.dbus.protocol@0.20.0
"
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}.git"
else
SRC_URI="https://github.com/sourcegit-scm/${PN}/archive/v${PV}.tar.gz
-> ${P}.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 )
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
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
}
|