12 |
12 |
|
13 |
13 |
LICENSE="FDL-1.2+"
|
14 |
14 |
SLOT="2"
|
15 |
|
KEYWORDS="~alpha amd64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
|
16 |
|
IUSE=""
|
|
15 |
KEYWORDS="~alpha amd64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
|
|
16 |
IUSE="nls"
|
17 |
17 |
|
18 |
18 |
BDEPEND="
|
19 |
19 |
${PYTHON_DEPS}
|
... | ... | |
21 |
21 |
app-text/docbook-xml-dtd
|
22 |
22 |
dev-lang/perl
|
23 |
23 |
dev-libs/libxslt
|
|
24 |
gnome-base/librsvg
|
24 |
25 |
sys-devel/gettext
|
25 |
26 |
"
|
26 |
27 |
|
27 |
|
# Adds python3 build support, bug 725940
|
28 |
|
# patch is from https://gitlab.gnome.org/GNOME/gimp-help/-/issues/201
|
29 |
|
PATCHES=( "${FILESDIR}/${P}-python3.patch" )
|
|
28 |
DOCS=( AUTHORS COPYING NEWS README )
|
30 |
29 |
|
31 |
30 |
python_check_deps() {
|
32 |
31 |
python_has_version "dev-libs/libxml2[python,${PYTHON_USEDEP}]"
|
33 |
32 |
}
|
34 |
33 |
|
|
34 |
pkg_setup() {
|
|
35 |
# The upstream build system isn't pure gettext and doesn't distinguish
|
|
36 |
# between empty and unset LINGUAS. Default to English only if either
|
|
37 |
# nls is unset or if LINGUAS exists but is empty. #891709
|
|
38 |
if ! use nls || [[ -v LINGUAS && -z ${LINGUAS} ]]; then
|
|
39 |
export LINGUAS="en"
|
|
40 |
elif [[ ! -v LINGUAS ]]; then
|
|
41 |
local line
|
|
42 |
while read line; do ewarn "${line}"; done <<-EOF
|
|
43 |
The "LINGUAS" variable is unset in your configuration,
|
|
44 |
but the "nls" USE flag is set. Therefore, documentation for
|
|
45 |
*all* languages will be built, which may take quite some time.
|
|
46 |
If you want to install documentation for a defined list
|
|
47 |
of languages, please assign "LINGUAS" accordingly.
|
|
48 |
The following languages are supported for ${CATEGORY}/${PN}:
|
|
49 |
"ca cs da de el en en_GB es fa fi fr hr hu it ja ko lt nl nn
|
|
50 |
pt pt_BR ro ru sl sv uk zh_CN"
|
|
51 |
If you want to install only the English documentation, it is
|
|
52 |
recommended to unset the "nls" USE flag for ${CATEGORY}/${PN}.
|
|
53 |
|
|
54 |
For more details please read:
|
|
55 |
https://wiki.gentoo.org/wiki/Localization/Guide#LINGUAS
|
|
56 |
EOF
|
|
57 |
fi
|
|
58 |
}
|
|
59 |
|
35 |
60 |
src_configure() {
|
36 |
61 |
econf --without-gimp
|
37 |
62 |
}
|
... | ... | |
42 |
67 |
# Affected with bugs: 677198, 876205. Set "emake -j1"
|
43 |
68 |
emake -j1
|
44 |
69 |
}
|
|
70 |
|
|
71 |
src_test() {
|
|
72 |
emake -j1 check
|
|
73 |
}
|
|
74 |
|
|
75 |
src_install() {
|
|
76 |
# See bug: 905693
|
|
77 |
emake -j1 DESTDIR="${D}" install
|
|
78 |
einstalldocs
|
|
79 |
}
|