blob: aff5c5c7b18ec26f4cf6fb145f97b1634f9be814 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1 optfeature virtualx xdg
COMMIT=bd600c20921afff7b02fc0a76ab79242ebd0896d
DESCRIPTION="A program for drawing beautiful mathematically-based images known as fractals"
HOMEPAGE="https://github.com/fract4d/gnofract4d"
SRC_URI="https://github.com/fract4d/gnofract4d/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+doc"
REQUIRED_USE="test? ( doc )"
COMMON_DEPEND="
media-libs/libpng:0=
virtual/jpeg:0"
RDEPEND="${COMMON_DEPEND}
$(python_gen_cond_dep '
dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
')
x11-libs/gtk+:3[introspection]"
BDEPEND="virtual/pkgconfig"
DEPEND="${COMMON_DEPEND}
doc? (
app-text/docbook-xsl-stylesheets
$(python_gen_cond_dep '
dev-python/pygobject[${PYTHON_MULTI_USEDEP}]
')
dev-libs/libxslt
x11-libs/gtk+:3[introspection]
)"
distutils_enable_tests pytest
S="${WORKDIR}/${PN}-${COMMIT}"
src_prepare() {
distutils-r1_src_prepare
}
python_test() {
virtx pytest fract4d fract4dgui test.py
}
python_compile_all() {
if use doc; then
ln -s "${BUILD_DIR}"/lib/fract4d/*.so fract4d/ || die
"${EPYTHON}" createdocs.py || die
fi
}
python_install_all() {
distutils-r1_python_install_all
rm -r "${ED}"/usr/share/doc/${PN} || die
if ! use doc; then
rm -r "${ED}"/usr/share/gnome/help/${PN} || die
fi
}
pkg_postinst() {
xdg_pkg_postinst
elog "Optional missing features:"
optfeature "creating videos" media-video/ffmpeg[vpx,zlib]
}
|