Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tex/rubber/
Date: Thu, 01 Jul 2021 09:01:45
Message-Id: 1625130097.6598790745ffe14001d4fbe75f71bf775f017266.flow@gentoo
1 commit: 6598790745ffe14001d4fbe75f71bf775f017266
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 1 08:59:47 2021 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 1 09:01:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65987907
7
8 dev-tex/rubber: add 9999
9
10 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
11
12 dev-tex/rubber/rubber-9999.ebuild | 108 ++++++++++++++++++++++++++++++++++++++
13 1 file changed, 108 insertions(+)
14
15 diff --git a/dev-tex/rubber/rubber-9999.ebuild b/dev-tex/rubber/rubber-9999.ebuild
16 new file mode 100644
17 index 00000000000..6b9af3a9443
18 --- /dev/null
19 +++ b/dev-tex/rubber/rubber-9999.ebuild
20 @@ -0,0 +1,108 @@
21 +# Copyright 1999-2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +PYTHON_COMPAT=( python3_{8,9} )
27 +DISTUTILS_USE_SETUPTOOLS="no"
28 +
29 +inherit distutils-r1
30 +
31 +if [[ ${PV} == "9999" ]] || [[ -n "${EGIT_COMMIT_ID}" ]]; then
32 + inherit git-r3
33 + EGIT_REPO_URI="https://gitlab.com/latex-rubber/${PN}.git"
34 +else
35 + UPSTREAM_PV=$(ver_rs 3 -)
36 + SRC_URI="https://gitlab.com/latex-rubber/${PN}/-/archive/${UPSTREAM_PV}/${PN}-${UPSTREAM_PV}.tar.bz2"
37 + S="${WORKDIR}/${PN}-${UPSTREAM_PV}"
38 + KEYWORDS="~amd64 ~ppc ~x86"
39 +fi
40 +
41 +DESCRIPTION="A LaTeX wrapper for automatically building documents"
42 +HOMEPAGE="https://gitlab.com/latex-rubber/rubber"
43 +
44 +LICENSE="GPL-3+"
45 +SLOT="0"
46 +IUSE="test"
47 +RESTRICT="!test? ( test )"
48 +
49 +RDEPEND="virtual/latex-base"
50 +
51 +# Test dependencies:
52 +# - app-text/texlive-core for rubber's 'cweave' test
53 +# - dev-lang/R for rubber's 'knitr' test (requires knitr R library, currently disabled)
54 +# - dev-texlive/texlive-latexextra for rubber's 'combine' test (currently disabled)
55 +BDEPEND="
56 + ${RDEPEND}
57 + virtual/texi2dvi
58 + test? (
59 + app-text/ghostscript-gpl
60 + app-text/texlive-core
61 + dev-tex/biber
62 + dev-tex/biblatex
63 + dev-tex/glossaries
64 + dev-tex/latex-beamer
65 + $(python_gen_cond_dep 'dev-tex/pythontex[${PYTHON_USEDEP}]')
66 + dev-texlive/texlive-latexextra
67 + dev-texlive/texlive-pstricks
68 + media-gfx/asymptote
69 + )
70 +"
71 +
72 +pkg_setup() {
73 + # https://bugs.gentoo.org/727996
74 + export VARTEXFONTS="${T}"/fonts
75 +}
76 +
77 +python_test() {
78 + cd tests || die
79 +
80 + # Disable the broken 'combine' test as it uses the 'combine' as a
81 + # latex package when it is only a document class (probably only in
82 + # newer versions of combine). Also note that this tests works
83 + # under debian 'buster'. TODO: Look into potential modifications
84 + # done by debian.
85 + touch combine/disable || die
86 +
87 + # This test does not work under Gentoo nor Debian 'buster'.
88 + # TODO: Investigate why it does not work.
89 + touch cweb-latex/disable || die
90 +
91 + # TODO: Investigate why the following are failing.
92 + touch fig2dev-dvi/disable || die
93 + touch fig2dev-path/disable || die
94 + touch fig2dev-path-inplace/disable || die
95 + touch fig2dev-path-into/disable || die
96 + touch graphicx-dotted-files/disable || die
97 + touch hooks-input-file/disable || die
98 + touch knitr/disable || die
99 +
100 + # Even tough metapost is available, those tests fail on Gentoo
101 + # (while they succeed on Debian 'buster').
102 + # TODO: Determine why.
103 + # ERROR:mpost:I can't read MetaPost's log file, this is wrong.
104 + touch metapost/disable || die
105 + # expected error message not reported by Rubber
106 + touch metapost-error/disable || die
107 + # ERROR:mpost:I can't read MetaPost's log file, this is wrong.
108 + touch metapost-input/disable || die
109 +
110 + ./run.sh * || die "Tests failed with ${EPYTHON}"
111 +}
112 +
113 +python_install() {
114 + local my_install_args=(
115 + --mandir="${EPREFIX}/usr/share/man"
116 + --infodir="${EPREFIX}/usr/share/info"
117 + --docdir="${EPREFIX}/usr/share/doc/${PF}"
118 + )
119 +
120 + distutils-r1_python_install "${my_install_args[@]}"
121 +}
122 +
123 +src_install() {
124 + insinto /usr/share/zsh/site-functions
125 + newins misc/zsh-completion _rubber
126 +
127 + distutils-r1_src_install
128 +}