Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Fri, 29 Jan 2016 07:03:58
Message-Id: 1454050975.a424713fb412a46bf69dc8827f2a2223c807c0a8.ulm@gentoo
1 commit: a424713fb412a46bf69dc8827f2a2223c807c0a8
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 27 16:15:23 2016 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 29 07:02:55 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a424713f
7
8 latex-package.eclass: Remove outdated variables and functions.
9
10 Do not define SRC_URI and S (which was the default).
11 Convert latex-package_has_tetex_3() to a dummy function for backwards
12 compatibility and remove its documentation.
13
14 eclass/latex-package.eclass | 22 ++++------------------
15 1 file changed, 4 insertions(+), 18 deletions(-)
16
17 diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
18 index 0acfcc9..92fc532 100644
19 --- a/eclass/latex-package.eclass
20 +++ b/eclass/latex-package.eclass
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2015 Gentoo Foundation
23 +# Copyright 1999-2016 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 # $Id$
26
27 @@ -59,8 +59,6 @@ RDEPEND="virtual/latex-base"
28 DEPEND="${RDEPEND}
29 >=sys-apps/texinfo-4.2-r5"
30 HOMEPAGE="http://www.tug.org/"
31 -SRC_URI="ftp://tug.ctan.org/macros/latex/"
32 -S=${WORKDIR}/${P}
33 TEXMF="/usr/share/texmf-site"
34
35 # @ECLASS-VARIABLE: SUPPLIER
36 @@ -69,17 +67,9 @@ TEXMF="/usr/share/texmf-site"
37 # DESCRIPTION above)
38 SUPPLIER="misc"
39
40 -# @FUNCTION: latex-package_has_tetex3
41 -# @RETURN: true if at least one of (>=tetex-3 or >=ptex-3.1.8 or >=texlive-core-2007) is installed, else false
42 -# @DESCRIPTION:
43 -# It is often used to know if the current TeX installation supports gentoo's
44 -# texmf-update or if the package has to do it the old way
45 +# Kept for backwards compatibility
46 latex-package_has_tetex_3() {
47 - if has_version '>=app-text/tetex-3' || has_version '>=app-text/ptex-3.1.8' || has_version '>=app-text/texlive-core-2007' ; then
48 - true
49 - else
50 - false
51 - fi
52 + return 0
53 }
54
55 # @FUNCTION: latex-package_src_doinstall
56 @@ -228,11 +218,7 @@ latex-package_pkg_postrm() {
57 # Rehashes the kpathsea database, according to the current TeX installation
58 latex-package_rehash() {
59 debug-print function $FUNCNAME $*
60 - if latex-package_has_tetex_3 ; then
61 - texmf-update
62 - else
63 - texconfig rehash
64 - fi
65 + texmf-update
66 }
67
68 EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm