Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2023 Gentoo Authors |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=8 |
5 |
PYTHON_COMPAT=( python3_11 ) |
6 |
PYTHON_REQ_USE="xml(+)" |
7 |
|
8 |
inherit meson python-single-r1 xdg |
9 |
|
10 |
DESCRIPTION="Personal organizer for the GNOME desktop environment" |
11 |
HOMEPAGE="https://wiki.gnome.org/Apps/GTG/" |
12 |
SRC_URI="https://github.com/getting-things-gnome/gtg/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
13 |
|
14 |
LICENSE="GPL-3+" |
15 |
SLOT="0" |
16 |
KEYWORDS="~amd64 ~arm64 ~x86" |
17 |
IUSE="test" |
18 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
19 |
RESTRICT="!test? ( test )" |
20 |
|
21 |
RDEPEND=" |
22 |
${PYTHON_DEPS} |
23 |
$(python_gen_cond_dep ' |
24 |
dev-python/caldav[${PYTHON_USEDEP}] |
25 |
dev-python/dbus-python[${PYTHON_USEDEP}] |
26 |
>=dev-python/liblarch-3.1.0[${PYTHON_USEDEP}] |
27 |
dev-python/lxml[${PYTHON_USEDEP}] |
28 |
dev-python/python-dateutil[${PYTHON_USEDEP}] |
29 |
dev-python/pygobject:3[${PYTHON_USEDEP}] |
30 |
dev-python/pycairo[${PYTHON_USEDEP}] |
31 |
dev-python/vobject[${PYTHON_USEDEP}] |
32 |
') |
33 |
x11-libs/pango[introspection] |
34 |
x11-libs/gdk-pixbuf[introspection] |
35 |
x11-libs/gtk+:3[introspection] |
36 |
x11-libs/gtksourceview:4[introspection] |
37 |
" |
38 |
DEPEND="${RDEPEND}" |
39 |
BDEPEND=" |
40 |
dev-util/itstool |
41 |
>=sys-devel/gettext-0.19.8 |
42 |
test? ( $(python_gen_cond_dep ' |
43 |
dev-python/cheetah3[${PYTHON_USEDEP}] |
44 |
dev-python/mock[${PYTHON_USEDEP}] |
45 |
dev-python/pytest[${PYTHON_USEDEP}] |
46 |
') |
47 |
|| ( app-text/pdfjam >=app-text/texlive-core-2021 ) |
48 |
app-text/pdftk |
49 |
dev-texlive/texlive-latex |
50 |
) |
51 |
" |
52 |
|
53 |
src_test() { |
54 |
sed -e "s|@VCS_TAG@|${PV}|" GTG/core/info.py.in > GTG/core/info.py || die |
55 |
epytest |
56 |
} |
57 |
|
58 |
src_install() { |
59 |
meson_src_install |
60 |
python_fix_shebang "${ED}"/usr/bin/gtg |
61 |
python_optimize |
62 |
} |