forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
denaro-2023.9.2.ebuild
244 lines (217 loc) · 6.99 KB
/
denaro-2023.9.2.ebuild
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DOTNET_PKG_COMPAT=7.0
PYTHON_COMPAT=( python3_{10..12} )
NUGETS="
runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl@4.3.0
runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl@4.3.0
runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl@4.3.0
runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl@4.3.0
runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl@4.3.0
runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple@4.3.0
runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0
runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl@4.3.0
runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0
runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0
runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0
"
inherit check-reqs desktop dotnet-pkg gnome2-utils python-any-r1 xdg
DESCRIPTION="A personal finance manager"
HOMEPAGE="https://github.com/NickvisionApps/Denaro/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/NickvisionApps/${PN^}.git"
else
SRC_URI="https://github.com/NickvisionApps/${PN^}/archive/${PV}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/${P^}"
KEYWORDS="~amd64"
fi
SRC_URI+=" ${NUGET_URIS} "
LICENSE="MIT"
SLOT="0"
RDEPEND="
>=gui-libs/gtk-4.10:4
app-arch/brotli
dev-libs/glib
gui-libs/libadwaita:1
media-libs/freetype
media-libs/harfbuzz
"
BDEPEND="
${PYTHON_DEPS}
${RDEPEND}
dev-util/blueprint-compiler
"
CHECKREQS_DISK_BUILD="1G"
DOTNET_PKG_PROJECTS=( NickvisionMoney.GNOME/NickvisionMoney.GNOME.csproj )
DOTNET_PKG_BUILD_EXTRA_ARGS=( -p:WarningLevel=0 )
DOCS=( CONTRIBUTING.md README.md )
pkg_setup() {
check-reqs_pkg_setup
dotnet-pkg_pkg_setup
python-any-r1_pkg_setup
}
src_unpack() {
dotnet-pkg_src_unpack
if [[ -n "${EGIT_REPO_URI}" ]] ; then
git-r3_src_unpack
fi
}
src_compile() {
ebegin "Compiling gresources"
glib-compile-resources --sourcedir NickvisionMoney.GNOME/Resources \
NickvisionMoney.GNOME/Resources/org.nickvision.money.gresource.xml
eend ${?} || die "failed to compile gresources"
dotnet-pkg_src_compile
cd "${S}/NickvisionMoney.Shared" || die
cp org.nickvision.money.desktop.in org.nickvision.money.desktop || die
sed -i "s|@EXEC@|${PN}|" org.nickvision.money.desktop || die
}
src_install() {
dotnet-pkg-base_install
dotnet-pkg-base_dolauncher "/usr/share/${P}/NickvisionMoney.GNOME" "${PN}"
insinto /usr/share/org.nickvision.money
doins NickvisionMoney.GNOME/Resources/*.gresource
insinto /usr/share/icons/hicolor/scalable/apps
doins NickvisionMoney.Shared/Resources/org.*.svg
insinto /usr/share/icons/hicolor/symbolic/apps
doins NickvisionMoney.GNOME/Resources/*.svg
domenu NickvisionMoney.Shared/org.nickvision.money.desktop
einstalldocs
}
pkg_postinst() {
gnome2_schemas_update
xdg_pkg_postinst
}
pkg_postrm() {
gnome2_schemas_update
xdg_pkg_postrm
}