Diff rubber-1.5.1-r1 with a rubber-1.6.0-r1

/usr/portage/dev-tex/rubber/rubber-1.6.0-r1.ebuild 2023-10-09 14:52:30.912368386 +0300
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5

  
5 6
PYTHON_COMPAT=( python3_{9..11} )
7
DISTUTILS_USE_SETUPTOOLS="no"
6 8

  
7 9
inherit distutils-r1
8 10

  
11
if [[ ${PV} == "9999" ]] || [[ -n "${EGIT_COMMIT_ID}" ]]; then
12
	inherit git-r3
13
	EGIT_REPO_URI="https://gitlab.com/latex-rubber/${PN}.git"
14
else
15
	UPSTREAM_PV=$(ver_rs 3 -)
16
	SRC_URI="https://gitlab.com/latex-rubber/${PN}/-/archive/${UPSTREAM_PV}/${PN}-${UPSTREAM_PV}.tar.bz2"
17
	S="${WORKDIR}/${PN}-${UPSTREAM_PV}"
18
	KEYWORDS="amd64 ~ppc ~riscv ~x86"
19
fi
20

  
9 21
DESCRIPTION="A LaTeX wrapper for automatically building documents"
10
HOMEPAGE="https://launchpad.net/rubber/"
11
SRC_URI="https://launchpad.net/rubber/trunk/${PV}/+download/${P}.tar.gz"
22
HOMEPAGE="https://gitlab.com/latex-rubber/rubber"
12 23

  
13
LICENSE="GPL-2+"
24
LICENSE="GPL-3+"
14 25
SLOT="0"
15
KEYWORDS="amd64 ppc x86"
26
IUSE="test"
27
RESTRICT="!test? ( test )"
16 28

  
17 29
RDEPEND="virtual/latex-base"
18
BDEPEND="${RDEPEND}
19
	virtual/texi2dvi"
30

  
31
# Test dependencies:
32
# - app-text/texlive-core for rubber's 'cweave' test
33
# - dev-lang/R for rubber's 'knitr' test (requires knitr R library, currently disabled)
34
# - dev-texlive/texlive-latexextra for rubber's 'combine' test (currently disabled)
35
BDEPEND="
36
	${RDEPEND}
37
	virtual/texi2dvi
38
	test? (
39
		app-text/ghostscript-gpl
40
		app-text/texlive-core
41
		dev-tex/biber
42
		dev-tex/biblatex
43
		dev-tex/glossaries
44
		dev-tex/latex-beamer
45
		$(python_gen_cond_dep 'dev-tex/pythontex[${PYTHON_USEDEP}]')
46
		dev-texlive/texlive-latexextra
47
		dev-texlive/texlive-pstricks
48
		media-gfx/asymptote
49
	)
50
"
20 51

  
21 52
pkg_setup() {
22 53
	# https://bugs.gentoo.org/727996
23 54
	export VARTEXFONTS="${T}"/fonts
24 55
}
25 56

  
57
python_test() {
58
	cd tests || die
59

  
60
	# Disable the broken 'combine' test as it uses the 'combine' as a
61
	# latex package when it is only a document class (probably only in
62
	# newer versions of combine). Also note that this tests works
63
	# under debian 'buster'. TODO: Look into potential modifications
64
	# done by debian.
65
	touch combine/disable || die
66

  
67
	# This test does not work under Gentoo nor Debian 'buster'.
68
	# TODO: Investigate why it does not work.
69
	touch cweb-latex/disable || die
70

  
71
	# TODO: Investigate why the following are failing.
72
	touch fig2dev-dvi/disable || die
73
	touch fig2dev-path/disable || die
74
	touch fig2dev-path-inplace/disable || die
75
	touch fig2dev-path-into/disable || die
76
	touch graphicx-dotted-files/disable || die
77
	touch hooks-input-file/disable || die
78
	touch knitr/disable || die
79

  
80
	# Even tough metapost is available, those tests fail on Gentoo
81
	# (while they succeed on Debian 'buster').
82
	# TODO: Determine why.
83
	# ERROR:mpost:I can't read MetaPost's log file, this is wrong.
84
	touch metapost/disable || die
85
	# expected error message not reported by Rubber
86
	touch metapost-error/disable || die
87
	# ERROR:mpost:I can't read MetaPost's log file, this is wrong.
88
	touch metapost-input/disable || die
89

  
90
	./run.sh * || die "Tests failed with ${EPYTHON}"
91
}
92

  
26 93
python_install() {
27
	distutils-r1_python_install \
28
		--docdir="${EPREFIX}"/usr/share/doc/${PF} \
29
		--infodir="${EPREFIX}"/usr/share/info \
30
		--mandir="${EPREFIX}"/usr/share/man
94
	local my_install_args=(
95
		--mandir="${EPREFIX}/usr/share/man"
96
		--infodir="${EPREFIX}/usr/share/info"
97
		--docdir="${EPREFIX}/usr/share/doc/${PF}"
98
	)
99

  
100
	distutils-r1_python_install "${my_install_args[@]}"
101
}
102

  
103
src_install() {
104
	insinto /usr/share/zsh/site-functions
105
	newins misc/zsh-completion _rubber
106

  
107
	distutils-r1_src_install
31 108
}
Thank you!