commit: a424713fb412a46bf69dc8827f2a2223c807c0a8 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Wed Jan 27 16:15:23 2016 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Fri Jan 29 07:02:55 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a424713f
latex-package.eclass: Remove outdated variables and functions. Do not define SRC_URI and S (which was the default). Convert latex-package_has_tetex_3() to a dummy function for backwards compatibility and remove its documentation. eclass/latex-package.eclass | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass index 0acfcc9..92fc532 100644 --- a/eclass/latex-package.eclass +++ b/eclass/latex-package.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -59,8 +59,6 @@ RDEPEND="virtual/latex-base" DEPEND="${RDEPEND} >=sys-apps/texinfo-4.2-r5" HOMEPAGE="http://www.tug.org/" -SRC_URI="ftp://tug.ctan.org/macros/latex/" -S=${WORKDIR}/${P} TEXMF="/usr/share/texmf-site" # @ECLASS-VARIABLE: SUPPLIER @@ -69,17 +67,9 @@ TEXMF="/usr/share/texmf-site" # DESCRIPTION above) SUPPLIER="misc" -# @FUNCTION: latex-package_has_tetex3 -# @RETURN: true if at least one of (>=tetex-3 or >=ptex-3.1.8 or >=texlive-core-2007) is installed, else false -# @DESCRIPTION: -# It is often used to know if the current TeX installation supports gentoo's -# texmf-update or if the package has to do it the old way +# Kept for backwards compatibility latex-package_has_tetex_3() { - if has_version '>=app-text/tetex-3' || has_version '>=app-text/ptex-3.1.8' || has_version '>=app-text/texlive-core-2007' ; then - true - else - false - fi + return 0 } # @FUNCTION: latex-package_src_doinstall @@ -228,11 +218,7 @@ latex-package_pkg_postrm() { # Rehashes the kpathsea database, according to the current TeX installation latex-package_rehash() { debug-print function $FUNCNAME $* - if latex-package_has_tetex_3 ; then - texmf-update - else - texconfig rehash - fi + texmf-update } EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm