blob: ff5a7f0dce55158c9305840b05880ef4901f3db4 (
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
|
# Copyright 2023-2026 BaldEagleOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop
DESCRIPTION="Tool to calculate the overall performance of an investment portfolio"
HOMEPAGE="https://www.portfolio-performance.info/en/"
SRC_URI="https://github.com/buchen/portfolio/releases/download/${PV}/PortfolioPerformance-${PV}-linux.gtk.x86_64.tar.gz"
LICENSE="EPL-1.0"
SLOT="0"
KEYWORDS="~amd64"
# The natural dependency is the virtual, but that is not yet supported; hence, also permit to use openjdk-bin:11
RDEPEND="|| ( >=virtual/jre-11:* dev-java/openjdk-bin:11 )"
S="${WORKDIR}/portfolio"
src_install() {
# Install to /opt, as this is a binary package
local dest="/opt/${P}"
dodir "${dest}"
cp -pPR "${S}"/* "${D}${dest}" || die "copying files to target directory failed"
# Create a symlink to the binary from /usr/bin
dosym "${dest}/PortfolioPerformance" /usr/bin/portfolioPerformance
# Setup .desktop file
cat <<- EOF > "${T}/portfolio-performance.desktop" || die
[Desktop Entry]
Name=Portfolio Performance
Exec=portfolioPerformance
Icon=${dest}/icon.xpm
Type=Application
Categories=Office;Finance;
Terminal=false
EOF
domenu "${T}/portfolio-performance.desktop"
}
|