Lines 1-7
Link Here
|
1 |
# Copyright 1999-2021 Gentoo Authors |
1 |
# Copyright 1999-2021 Gentoo Authors |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
EAPI=6 |
4 |
EAPI=7 |
5 |
|
5 |
|
6 |
inherit toolchain-funcs |
6 |
inherit toolchain-funcs |
7 |
|
7 |
|
Lines 21-34
IUSE="examples uchardet X"
Link Here
|
21 |
RDEPEND=" |
21 |
RDEPEND=" |
22 |
uchardet? ( app-i18n/uchardet ) |
22 |
uchardet? ( app-i18n/uchardet ) |
23 |
X? ( |
23 |
X? ( |
|
|
24 |
x11-libs/libICE |
25 |
x11-libs/libSM |
24 |
x11-libs/libX11 |
26 |
x11-libs/libX11 |
25 |
x11-libs/libXt |
|
|
26 |
x11-libs/libXmu |
27 |
x11-libs/libXaw |
27 |
x11-libs/libXaw |
28 |
x11-libs/libSM |
28 |
x11-libs/libXmu |
29 |
x11-libs/libICE |
29 |
x11-libs/libXt |
30 |
)" |
30 |
)" |
31 |
DEPEND="${RDEPEND} |
31 |
DEPEND="${RDEPEND}" |
|
|
32 |
BDEPEND=" |
32 |
dev-lang/perl |
33 |
dev-lang/perl |
33 |
sys-apps/texinfo" |
34 |
sys-apps/texinfo" |
34 |
|
35 |
|
Lines 70-85
src_configure() {
Link Here
|
70 |
} |
71 |
} |
71 |
|
72 |
|
72 |
src_compile() { |
73 |
src_compile() { |
73 |
if tc-is-cross-compiler ; then |
74 |
local -a CROSS_ARGS |
74 |
local CROSS_ARGS=( |
75 |
tc-is-cross-compiler && CROSS_ARGS+=( |
75 |
GROFFBIN="$(type -P groff)" |
76 |
GROFFBIN="$(type -P groff)" |
76 |
TROFFBIN="$(type -P troff)" |
77 |
TROFFBIN="$(type -P troff)" |
77 |
GROFF_BIN_DIR= |
78 |
GROFF_BIN_DIR= |
78 |
GROFF_BIN_PATH= |
79 |
GROFF_BIN_PATH= |
79 |
) |
80 |
) |
80 |
else |
|
|
81 |
unset CROSS_ARGS |
82 |
fi |
83 |
|
81 |
|
84 |
emake AR="$(tc-getAR)" "${CROSS_ARGS[@]}" |
82 |
emake AR="$(tc-getAR)" "${CROSS_ARGS[@]}" |
85 |
} |
83 |
} |
Lines 93-103
src_install() {
Link Here
|
93 |
|
91 |
|
94 |
if ! use examples ; then |
92 |
if ! use examples ; then |
95 |
# The pdf files might not be generated if ghostscript is unavailable. #602020 |
93 |
# The pdf files might not be generated if ghostscript is unavailable. #602020 |
96 |
local pdf="${ED%/}/usr/share/doc/${PF}/examples/mom/mom-pdf.pdf" |
94 |
local pdf="${ED}/usr/share/doc/${PF}/examples/mom/mom-pdf.pdf" |
97 |
if [[ -e ${pdf} ]] ; then |
95 |
if [[ -e ${pdf} ]] ; then |
98 |
# Keep mom-pdf.pdf since it's more of a manual than an example. #454196 #516732 |
96 |
# Keep mom-pdf.pdf since it's more of a manual than an example. #454196 #516732 |
99 |
mv "${pdf}" "${ED%/}"/usr/share/doc/${PF}/pdf/ || die |
97 |
mv "${pdf}" "${ED}/usr/share/doc/${PF}/pdf/" || die |
100 |
fi |
98 |
fi |
101 |
rm -rf "${ED%/}"/usr/share/doc/${PF}/examples |
99 |
rm -rf "${ED}/usr/share/doc/${PF}/examples" |
102 |
fi |
100 |
fi |
103 |
} |
101 |
} |
104 |
- |
|
|