| 11 |
11 |
# - It's considered fine (and somewhat encouraged) for us to make snapshots
|
| 12 |
12 |
# if we want specific fixes, perhaps aligned with newer kernels, glibc, etc.
|
| 13 |
13 |
# Just generate it with 'make dist'. We can set DISTVERSION if we want a vanity
|
| 14 |
|
# name or if the comit hash is too long;
|
|
14 |
# name or if the commit hash is too long;
|
| 15 |
15 |
#
|
| 16 |
16 |
# - If we do use a snapshot, *don't* grab it directly from git and use it
|
| 17 |
17 |
# raw in the ebuild. Use 'make dist' as above;
|
| ... | ... | |
| 49 |
49 |
)
|
| 50 |
50 |
"
|
| 51 |
51 |
|
| 52 |
|
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-alejandro-colomar )"
|
|
52 |
BDEPEND="verify-sig? ( >=sec-keys/openpgp-keys-alejandro-colomar-20260122 )"
|
| 53 |
53 |
fi
|
| 54 |
54 |
|
| 55 |
55 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos"
|
| ... | ... | |
| 64 |
64 |
SLOT="0"
|
| 65 |
65 |
# Keep the following in sync with app-i18n/man-pages-l10n
|
| 66 |
66 |
MY_L10N=( cs da de el es fi fr hu id it ko mk nb nl pl pt-BR ro ru sr sv uk vi )
|
| 67 |
|
IUSE="l10n_ja l10n_ru l10n_zh-CN ${MY_L10N[@]/#/l10n_}"
|
|
67 |
IUSE="l10n_ja l10n_zh-CN ${MY_L10N[@]/#/l10n_}"
|
| 68 |
68 |
RESTRICT="binchecks"
|
| 69 |
69 |
|
| 70 |
|
# Block packages that used to install colliding man pages:
|
| 71 |
|
# bug #341953, bug #548900, bug #612640, bug #617462
|
| 72 |
70 |
RDEPEND="
|
| 73 |
71 |
virtual/man
|
| 74 |
|
!<sys-apps/keyutils-1.5.9-r4
|
| 75 |
|
!<dev-libs/libbsd-0.8.3-r1
|
| 76 |
72 |
"
|
| 77 |
73 |
PDEPEND="
|
| 78 |
74 |
l10n_ja? ( app-i18n/man-pages-ja )
|
| 79 |
|
l10n_ru? ( || (
|
| 80 |
|
app-i18n/man-pages-l10n[l10n_ru(-)]
|
| 81 |
|
app-i18n/man-pages-ru
|
| 82 |
|
) )
|
| 83 |
75 |
l10n_zh-CN? ( app-i18n/man-pages-zh_CN )
|
| 84 |
76 |
"
|
| 85 |
77 |
for lang in "${MY_L10N[@]}"; do
|
| ... | ... | |
| 90 |
82 |
src_unpack() {
|
| 91 |
83 |
if [[ ${PV} == 9999 ]] ; then
|
| 92 |
84 |
git-r3_src_unpack
|
| 93 |
|
return
|
| 94 |
|
fi
|
| 95 |
|
|
| 96 |
|
if [[ ${PV} != *_rc* ]] && ! [[ ${MAN_PAGES_GENTOO_DIST} -eq 1 ]] && use verify-sig ; then
|
|
85 |
unpack man-pages-gentoo-${GENTOO_PATCH}.tar.bz2
|
|
86 |
elif [[ ${PV} != *_rc* ]] && ! [[ ${MAN_PAGES_GENTOO_DIST} -eq 1 ]] && use verify-sig ; then
|
| 97 |
87 |
verify-sig_uncompress_verify_unpack "${DISTDIR}"/${P}.tar.xz \
|
| 98 |
88 |
"${DISTDIR}"/${P}.tar.sign
|
| 99 |
|
|
| 100 |
89 |
unpack man-pages-gentoo-${GENTOO_PATCH}.tar.bz2
|
| 101 |
90 |
else
|
| 102 |
91 |
default
|
| ... | ... | |
| 106 |
95 |
src_prepare() {
|
| 107 |
96 |
default
|
| 108 |
97 |
|
|
98 |
# installed by sys-libs/libxcrypt
|
|
99 |
rm man/man3/crypt{,_r}.3 || die
|
|
100 |
|
| 109 |
101 |
# passwd.5 installed by sys-apps/shadow, bug #776787
|
| 110 |
|
rm man5/passwd.5 || die
|
|
102 |
rm man/man5/passwd.5 || die
|
|
103 |
}
|
|
104 |
|
|
105 |
src_configure() {
|
|
106 |
export prefix="${EPREFIX}/usr"
|
| 111 |
107 |
}
|
| 112 |
108 |
|
| 113 |
|
src_compile() { :; }
|
|
109 |
src_compile() {
|
|
110 |
emake -R
|
|
111 |
}
|
| 114 |
112 |
|
| 115 |
113 |
src_test() {
|
| 116 |
114 |
# We don't use the 'check' target right now because of known errors
|
| 117 |
115 |
# https://lore.kernel.org/linux-man/0dfd5319-2d22-a8ad-f085-d635eb6d0678@gmail.com/T/#t
|
| 118 |
|
emake lint-man-tbl
|
|
116 |
emake -R lint-man-tbl
|
| 119 |
117 |
}
|
| 120 |
118 |
|
| 121 |
119 |
src_install() {
|
| 122 |
|
emake install prefix="${EPREFIX}"/usr DESTDIR="${D}"
|
|
120 |
emake -R DESTDIR="${D}" install
|
| 123 |
121 |
dodoc README Changes*
|
| 124 |
122 |
|
| 125 |
123 |
# Override with Gentoo specific or additional Gentoo pages
|