From 50daee8ac8faf1c64330064c88d11fa8a781f3bd Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 1 Jul 2021 10:57:56 +0200 Subject: dev-tex/rubber: set VARTEXFONTS="${T}"/fonts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/727996 Signed-off-by: Florian Schmaus Suggested-by: Ulrich Müller --- dev-tex/rubber/rubber-1.5.1-r1.ebuild | 31 ++++++++++ dev-tex/rubber/rubber-1.5.1.ebuild | 26 -------- dev-tex/rubber/rubber-1.6.0-r1.ebuild | 108 ++++++++++++++++++++++++++++++++++ dev-tex/rubber/rubber-1.6.0.ebuild | 103 -------------------------------- 4 files changed, 139 insertions(+), 129 deletions(-) create mode 100644 dev-tex/rubber/rubber-1.5.1-r1.ebuild delete mode 100644 dev-tex/rubber/rubber-1.5.1.ebuild create mode 100644 dev-tex/rubber/rubber-1.6.0-r1.ebuild delete mode 100644 dev-tex/rubber/rubber-1.6.0.ebuild (limited to 'dev-tex') diff --git a/dev-tex/rubber/rubber-1.5.1-r1.ebuild b/dev-tex/rubber/rubber-1.5.1-r1.ebuild new file mode 100644 index 000000000000..493309ed1988 --- /dev/null +++ b/dev-tex/rubber/rubber-1.5.1-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit distutils-r1 + +DESCRIPTION="A LaTeX wrapper for automatically building documents" +HOMEPAGE="https://launchpad.net/rubber/" +SRC_URI="https://launchpad.net/rubber/trunk/${PV}/+download/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +RDEPEND="virtual/latex-base" +BDEPEND="${RDEPEND} + virtual/texi2dvi" + +pkg_setup() { + # https://bugs.gentoo.org/727996 + export VARTEXFONTS="${T}"/fonts +} + +python_install() { + distutils-r1_python_install \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --infodir="${EPREFIX}"/usr/share/info \ + --mandir="${EPREFIX}"/usr/share/man +} diff --git a/dev-tex/rubber/rubber-1.5.1.ebuild b/dev-tex/rubber/rubber-1.5.1.ebuild deleted file mode 100644 index 6c5ce209d658..000000000000 --- a/dev-tex/rubber/rubber-1.5.1.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) - -inherit distutils-r1 - -DESCRIPTION="A LaTeX wrapper for automatically building documents" -HOMEPAGE="https://launchpad.net/rubber/" -SRC_URI="https://launchpad.net/rubber/trunk/${PV}/+download/${P}.tar.gz" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="amd64 ppc x86" - -RDEPEND="virtual/latex-base" -BDEPEND="${RDEPEND} - virtual/texi2dvi" - -python_install() { - distutils-r1_python_install \ - --docdir="${EPREFIX}"/usr/share/doc/${PF} \ - --infodir="${EPREFIX}"/usr/share/info \ - --mandir="${EPREFIX}"/usr/share/man -} diff --git a/dev-tex/rubber/rubber-1.6.0-r1.ebuild b/dev-tex/rubber/rubber-1.6.0-r1.ebuild new file mode 100644 index 000000000000..6b9af3a94439 --- /dev/null +++ b/dev-tex/rubber/rubber-1.6.0-r1.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8,9} ) +DISTUTILS_USE_SETUPTOOLS="no" + +inherit distutils-r1 + +if [[ ${PV} == "9999" ]] || [[ -n "${EGIT_COMMIT_ID}" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/latex-rubber/${PN}.git" +else + UPSTREAM_PV=$(ver_rs 3 -) + 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 + +DESCRIPTION="A LaTeX wrapper for automatically building documents" +HOMEPAGE="https://gitlab.com/latex-rubber/rubber" + +LICENSE="GPL-3+" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="virtual/latex-base" + +# Test dependencies: +# - app-text/texlive-core for rubber's 'cweave' test +# - dev-lang/R for rubber's 'knitr' test (requires knitr R library, currently disabled) +# - dev-texlive/texlive-latexextra for rubber's 'combine' test (currently disabled) +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 + ) +" + +pkg_setup() { + # https://bugs.gentoo.org/727996 + export VARTEXFONTS="${T}"/fonts +} + +python_test() { + cd tests || die + + # Disable the broken 'combine' test as it uses the 'combine' as a + # latex package when it is only a document class (probably only in + # newer versions of combine). Also note that this tests works + # under debian 'buster'. TODO: Look into potential modifications + # done by debian. + touch combine/disable || die + + # This test does not work under Gentoo nor Debian 'buster'. + # TODO: Investigate why it does not work. + touch cweb-latex/disable || die + + # TODO: Investigate why the following are failing. + touch fig2dev-dvi/disable || die + touch fig2dev-path/disable || die + touch fig2dev-path-inplace/disable || die + touch fig2dev-path-into/disable || die + touch graphicx-dotted-files/disable || die + touch hooks-input-file/disable || die + touch knitr/disable || die + + # Even tough metapost is available, those tests fail on Gentoo + # (while they succeed on Debian 'buster'). + # TODO: Determine why. + # ERROR:mpost:I can't read MetaPost's log file, this is wrong. + touch metapost/disable || die + # expected error message not reported by Rubber + touch metapost-error/disable || die + # ERROR:mpost:I can't read MetaPost's log file, this is wrong. + touch metapost-input/disable || 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 +} diff --git a/dev-tex/rubber/rubber-1.6.0.ebuild b/dev-tex/rubber/rubber-1.6.0.ebuild deleted file mode 100644 index 2c5429febeda..000000000000 --- a/dev-tex/rubber/rubber-1.6.0.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8,9} ) -DISTUTILS_USE_SETUPTOOLS="no" - -inherit distutils-r1 - -if [[ ${PV} == "9999" ]] || [[ -n "${EGIT_COMMIT_ID}" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://gitlab.com/latex-rubber/${PN}.git" -else - UPSTREAM_PV=$(ver_rs 3 -) - 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 - -DESCRIPTION="A LaTeX wrapper for automatically building documents" -HOMEPAGE="https://gitlab.com/latex-rubber/rubber" - -LICENSE="GPL-3+" -SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND="virtual/latex-base" - -# Test dependencies: -# - app-text/texlive-core for rubber's 'cweave' test -# - dev-lang/R for rubber's 'knitr' test (requires knitr R library, currently disabled) -# - dev-texlive/texlive-latexextra for rubber's 'combine' test (currently disabled) -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 - ) -" - -python_test() { - cd tests || die - - # Disable the broken 'combine' test as it uses the 'combine' as a - # latex package when it is only a document class (probably only in - # newer versions of combine). Also note that this tests works - # under debian 'buster'. TODO: Look into potential modifications - # done by debian. - touch combine/disable || die - - # This test does not work under Gentoo nor Debian 'buster'. - # TODO: Investigate why it does not work. - touch cweb-latex/disable || die - - # TODO: Investigate why the following are failing. - touch fig2dev-dvi/disable || die - touch fig2dev-path/disable || die - touch fig2dev-path-inplace/disable || die - touch fig2dev-path-into/disable || die - touch graphicx-dotted-files/disable || die - touch hooks-input-file/disable || die - touch knitr/disable || die - - # Even tough metapost is available, those tests fail on Gentoo - # (while they succeed on Debian 'buster'). - # TODO: Determine why. - # ERROR:mpost:I can't read MetaPost's log file, this is wrong. - touch metapost/disable || die - # expected error message not reported by Rubber - touch metapost-error/disable || die - # ERROR:mpost:I can't read MetaPost's log file, this is wrong. - touch metapost-input/disable || 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 -} -- cgit v1.2.3