summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-12-03 11:01:15 +0000
committerSam James <sam@gentoo.org>2020-12-03 11:01:20 +0000
commit60d15c8470cf5604cc0994798167898022d5a097 (patch)
tree7e3caa1706bfc605b9ce1f9c23017c442ae47778
parentdev-python/Babel: Bump to 2.9.0 (diff)
downloadgentoo-60d15c8470cf5604cc0994798167898022d5a097.tar.gz
gentoo-60d15c8470cf5604cc0994798167898022d5a097.tar.bz2
gentoo-60d15c8470cf5604cc0994798167898022d5a097.zip
dev-tex/rubber: post-merge fixups
* Add more test dependencies * Install dev-tex/pythontex for the appropriate impls * Test for each Python implementation used * Style changes (shift order around) Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-tex/rubber/rubber-1.6.0_alpha1.ebuild48
1 files changed, 27 insertions, 21 deletions
diff --git a/dev-tex/rubber/rubber-1.6.0_alpha1.ebuild b/dev-tex/rubber/rubber-1.6.0_alpha1.ebuild
index 630795cc124b..725038bd3ae3 100644
--- a/dev-tex/rubber/rubber-1.6.0_alpha1.ebuild
+++ b/dev-tex/rubber/rubber-1.6.0_alpha1.ebuild
@@ -13,8 +13,8 @@ if [[ ${PV} == "9999" ]] || [[ -n "${EGIT_COMMIT_ID}" ]]; then
EGIT_REPO_URI="https://gitlab.com/latex-rubber/${PN}.git"
else
UPSTREAM_PV=$(ver_rs 3 -)
- S="${WORKDIR}/${PN}-${UPSTREAM_PV}"
SRC_URI="https://gitlab.com/latex-rubber/${PN}/-/archive/${UPSTREAM_PV}/${PN}-${UPSTREAM_PV}.tar.bz2"
+ S="${WORKDIR}/${PN}-${UPSTREAM_PV}"
KEYWORDS="~amd64 ~ppc ~x86"
fi
@@ -23,7 +23,6 @@ HOMEPAGE="https://gitlab.com/latex-rubber/rubber"
LICENSE="GPL-3+"
SLOT="0"
-
IUSE="test"
RESTRICT="!test? ( test )"
@@ -37,30 +36,20 @@ BDEPEND="
${RDEPEND}
virtual/texi2dvi
test? (
+ app-text/ghostscript-gpl
app-text/texlive-core
+ dev-tex/biber
+ dev-tex/biblatex
+ dev-tex/glossaries
+ dev-tex/latex-beamer
+ $(python_gen_cond_dep 'dev-tex/pythontex[${PYTHON_USEDEP}]')
dev-texlive/texlive-latexextra
+ dev-texlive/texlive-pstricks
media-gfx/asymptote
- dev-tex/pythontex
)
"
-src_install() {
- insinto /usr/share/zsh/site-functions
- newins misc/zsh-completion _rubber
-
- distutils-r1_src_install
-}
-
-python_install() {
- local my_install_args=(
- --mandir="${EPREFIX}/usr/share/man"
- --infodir="${EPREFIX}/usr/share/info"
- --docdir="${EPREFIX}/usr/share/doc/${PF}"
- )
-
- distutils-r1_python_install "${my_install_args[@]}"
-}
-src_test() {
+python_test() {
cd tests || die
# Disable the broken 'combine' test as it uses the 'combine' as a
@@ -93,5 +82,22 @@ src_test() {
# ERROR:mpost:I can't read MetaPost's log file, this is wrong.
touch metapost-input/disable || die
- ./run.sh * || die
+ ./run.sh * || die "Tests failed with ${EPYTHON}"
+}
+
+python_install() {
+ local my_install_args=(
+ --mandir="${EPREFIX}/usr/share/man"
+ --infodir="${EPREFIX}/usr/share/info"
+ --docdir="${EPREFIX}/usr/share/doc/${PF}"
+ )
+
+ distutils-r1_python_install "${my_install_args[@]}"
+}
+
+src_install() {
+ insinto /usr/share/zsh/site-functions
+ newins misc/zsh-completion _rubber
+
+ distutils-r1_src_install
}