summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2016-01-27 17:15:23 +0100
committerUlrich Müller <ulm@gentoo.org>2016-01-29 08:02:55 +0100
commita424713fb412a46bf69dc8827f2a2223c807c0a8 (patch)
treec81b21ccf516f188ff1091294ea6a3ac136e5289 /eclass/latex-package.eclass
parentdev-libs/openssl: Removed old. (diff)
downloadgentoo-a424713fb412a46bf69dc8827f2a2223c807c0a8.tar.gz
gentoo-a424713fb412a46bf69dc8827f2a2223c807c0a8.tar.bz2
gentoo-a424713fb412a46bf69dc8827f2a2223c807c0a8.zip
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.
Diffstat (limited to 'eclass/latex-package.eclass')
-rw-r--r--eclass/latex-package.eclass22
1 files changed, 4 insertions, 18 deletions
diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
index 0acfcc95616c..92fc532e2aac 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