Сравнение linuxdoc-tools-0.9.82 с linuxdoc-tools-0.9.86
/usr/portage/app-text/linuxdoc-tools/linuxdoc-tools-0.9.86.ebuild 2025-07-29 16:22:12.604448187 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2024 Gentoo Authors |
|
1 |
# Copyright 1999-2025 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 |
inherit autotools latex-package perl-functions sgml-catalog-r1 toolchain-funcs |
|
6 |
inherit latex-package perl-functions sgml-catalog-r1 toolchain-funcs |
|
7 | 7 | |
8 |
DESCRIPTION="A toolset for processing LinuxDoc DTD SGML files" |
|
8 |
DESCRIPTION="Toolset for processing LinuxDoc DTD SGML files" |
|
9 | 9 |
HOMEPAGE="https://gitlab.com/agmartin/linuxdoc-tools" |
10 | 10 |
SRC_URI="https://gitlab.com/agmartin/linuxdoc-tools/-/archive/${PV}/${P}.tar.bz2" |
11 | 11 | |
12 | 12 |
LICENSE="GPL-3+ MIT SGMLUG" |
13 | 13 |
SLOT="0" |
14 |
KEYWORDS="amd64 ppc ~sparc x86" |
|
14 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
|
15 | 15 |
IUSE="doc" |
16 | 16 | |
17 | 17 |
RDEPEND=" |
... | ... | |
30 | 30 |
) |
31 | 31 |
" |
32 | 32 | |
33 |
PATCHES=( |
|
34 |
"${FILESDIR}"/${PN}-0.9.82-configure-clang16.patch |
|
35 |
) |
|
36 | ||
37 |
src_prepare() { |
|
38 |
default |
|
39 | ||
40 |
# Pregenerated configure scripts fail. |
|
41 |
eautoreconf |
|
42 |
} |
|
43 | ||
44 | 33 |
src_configure() { |
45 | 34 |
perl_set_version |
46 | 35 |
tc-export CC |
... | ... | |
63 | 52 |
} |
64 | 53 | |
65 | 54 |
src_install() { |
66 |
# Makefile ignores docdir configuration option. |
|
67 |
emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}" install |
|
68 |
dodoc ChangeLog README |
|
55 |
default |
|
56 | ||
57 |
use doc && docompress -x /usr/share/doc/${PF}/example |
|
69 | 58 | |
70 | 59 |
insinto /etc/sgml |
71 | 60 |
newins - linuxdoc.cat <<-EOF |
... | ... | |
73 | 62 |
EOF |
74 | 63 |
} |
75 | 64 | |
76 |
pkg_preinst() { |
|
77 |
# work around sgml-catalog.eclass removing it |
|
78 |
cp "${ED}"/etc/sgml/linuxdoc.cat "${T}" || die |
|
79 |
} |
|
80 | ||
81 | 65 |
pkg_postinst() { |
82 |
local backup=${T}/linuxdoc.cat |
|
83 |
local real=${EROOT}/etc/sgml/linuxdoc.cat |
|
84 |
if ! cmp -s "${backup}" "${real}"; then |
|
85 |
cp "${backup}" "${real}" || die |
|
86 |
fi |
|
87 | ||
88 | 66 |
latex-package_pkg_postinst |
89 | 67 |
sgml-catalog-r1_pkg_postinst |
90 | 68 |
} |