latex-package.eclass: Remove outdated variables and functions.
authorUlrich Müller <ulm@gentoo.org>
Wed, 27 Jan 2016 16:15:23 +0000 (17:15 +0100)
committerUlrich Müller <ulm@gentoo.org>
Fri, 29 Jan 2016 07:02:55 +0000 (08:02 +0100)
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

index 0acfcc95616ccc9d9012fe16ca8541985e1069b4..92fc532e2aac4877b0920e96b4b12ad04a8958ef 100644 (file)
@@ -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