Сравнение asciidoc-9.1.0 с asciidoc-10.2.0

/usr/portage/app-text/asciidoc/asciidoc-10.2.0.ebuild 2023-10-09 14:52:28.864368334 +0300
1 1
# Copyright 1999-2023 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
PYTHON_COMPAT=( python3_{9..10} pypy3 )
7

  
8
inherit autotools optfeature python-single-r1 readme.gentoo-r1
6
DISTUTILS_SINGLE_IMPL=1
7
DISTUTILS_USE_PEP517=setuptools
8
PYTHON_COMPAT=( python3_{9..11} pypy3 )
9
inherit distutils-r1 optfeature readme.gentoo-r1 pypi
9 10

  
10 11
DESCRIPTION="A plain text human readable/writable document format"
11 12
HOMEPAGE="https://asciidoc.org/ https://github.com/asciidoc-py/asciidoc-py/"
12
SRC_URI="https://github.com/asciidoc-py/asciidoc-py/releases/download/${PV}/${P}.tar.gz -> ${P}.new.tar.gz"
13 13

  
14 14
LICENSE="GPL-2"
15 15
SLOT="0"
16
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
17
IUSE="doc test"
18
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
19

  
20
RESTRICT="!test? ( test )"
16
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
21 17

  
22
RDEPEND="${PYTHON_DEPS}
23
	app-text/docbook-xml-dtd:4.5
18
RDEPEND="app-text/docbook-xml-dtd:4.5
24 19
	>=app-text/docbook-xsl-stylesheets-1.75
25 20
	dev-libs/libxslt
26
	dev-libs/libxml2:2
27
	"
28
DEPEND="
29
	test? (
30
		${PYTHON_DEPS}
31
		app-text/dvipng
32
		app-text/dvisvgm
33
		dev-texlive/texlive-latex
34
		dev-util/source-highlight
35
		media-gfx/graphviz
36
		media-gfx/imagemagick[png]
37
		media-sound/lilypond
38
	)"
21
	dev-libs/libxml2:2"
39 22

  
40 23
DOC_CONTENTS="
41 24
If you are going to use a2x, please also look at a2x(1) under
42 25
REQUISITES for a list of runtime dependencies.
43 26
"
44 27

  
45
DOCS=( BUGS.txt CHANGELOG.txt README.asciidoc
46
	   docbook-xsl/asciidoc-docbook-xsl.txt dblatex/dblatex-readme.txt
47
	   filters/code/code-filter-readme.txt )
48

  
49
src_prepare() {
50
	default
51
	# Only needed for prefix - harmless (does nothing) otherwise
52
	sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \
53
		asciidoc.py || die
54

  
55
	# enforce usage of the configured version of Python
56
	sed -i -e "s:python3:${EPYTHON}:" Makefile.in || die
57

  
58
	eautoreconf
59
}
60

  
61
src_configure() {
62
	econf --sysconfdir="${EPREFIX}"/usr/share
63
}
64

  
65 28
src_install() {
66
	default
67

  
68
	if use doc; then
69
		emake DESTDIR="${D}" docs
70
	fi
29
	distutils-r1_src_install
71 30

  
72
	python_fix_shebang "${ED}"/usr/bin/*.py
31
	# TODO: Consider using Debian patch to allow /usr/share?
32
	insinto /usr/share/asciidoc
33
	doins -r asciidoc/resources/.
73 34

  
74 35
	readme.gentoo_create_doc
75 36
}
......
77 38
pkg_postinst() {
78 39
	readme.gentoo_print_elog
79 40

  
80
	optfeature "\"music\" filter support" "media-sound/lilypond media-gfx/imagemagick"
81
	optfeature "\"source\" filter support" dev-util/source-highlight dev-python/pygments app-text/highlight
82
	optfeature "\"latex\" filter support" "dev-texlive/texlive-latex app-text/dvipng" "dev-texlive/texlive-latex app-text/dvisvgm"
83
	optfeature "\"graphviz\" filter support" media-gfx/graphviz
41
	optfeature "music filter support" "media-sound/lilypond virtual/imagemagick-tools"
42
	optfeature "source filter support" "dev-util/source-highlight dev-python/pygments app-text/highlight"
43
	optfeature "latex filter support" "dev-texlive/texlive-latex app-text/dvipng" "dev-texlive/texlive-latex app-text/dvisvgm"
44
	optfeature "graphviz filter support" "media-gfx/graphviz"
84 45
}
Спасибо!