-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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
# 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
# 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