gentoo-overlay/app-office/jal/jal-2024.8.1.ebuild

56 lines
1.5 KiB
Bash
Raw Permalink Normal View History

2024-08-10 12:13:45 +03:00
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..13} )
2024-08-18 14:24:58 +03:00
inherit distutils-r1 pypi xdg-utils desktop
2024-08-10 12:13:45 +03:00
DESCRIPTION="Just Another Ledger - project to track personal financial records"
2024-08-18 14:24:58 +03:00
HOMEPAGE="
https://github.com/titov-vv/jal
https://pypi.org/project/jal
"
2024-08-10 12:13:45 +03:00
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=">=dev-lang/python-3.8.1
>=dev-python/lxml-4.5.0[${PYTHON_USEDEP}]
>=dev-python/pandas-1.1.1[${PYTHON_USEDEP}]
2024-08-18 09:36:38 +03:00
>=dev-python/pyside6-6.5.1[${PYTHON_USEDEP},positioning,webengine,charts]
2024-08-10 12:13:45 +03:00
>=dev-python/requests-2.24.0[${PYTHON_USEDEP}]
>=dev-python/xlsxwriter-1.3.3[${PYTHON_USEDEP}]
dev-python/jsonschema[${PYTHON_USEDEP}]
dev-python/sqlparse[${PYTHON_USEDEP}]
dev-python/oauthlib[${PYTHON_USEDEP}]
dev-python/requests-oauthlib[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]"
2024-08-18 14:24:58 +03:00
distutils_enable_tests pytest
2024-08-10 20:22:36 +03:00
2024-08-18 14:24:58 +03:00
src_install() {
distutils-r1_src_install
# Prepare the icons
newicon "${PN}"/img/ui_jal.png "${PN}.png"
# Create a desktop entry
make_desktop_entry "${PN}" "JAL (Just Another Ledger)" "${PN}" "" "Comment[ru]=Контроль и учёт личных финансов;"
}
pkg_postinst() {
xdg_icon_cache_update
xdg_desktop_database_update
2024-08-10 12:13:45 +03:00
}
2024-08-10 20:22:36 +03:00
2024-08-18 14:24:58 +03:00
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
}