1 |
>>>>> On Wed, 27 Jan 2016, Alexis Ballier wrote: |
2 |
|
3 |
> On Wed, 27 Jan 2016 20:59:21 +0100 |
4 |
> Ulrich Mueller <ulm@g.o> wrote: |
5 |
|
6 |
>> Please find below a patch which will enable EAPI 6 support in |
7 |
>> latex-package.eclass. The main change is that it won't inherit base |
8 |
>> any more. |
9 |
|
10 |
> lgtm, thanks |
11 |
|
12 |
Pushed to master, with one additional change (see below). Seems better |
13 |
to have the function explicitly die, especially since for a query |
14 |
function there won't be any error checking in the caller. |
15 |
|
16 |
Ulrich |
17 |
|
18 |
--- a/eclass/latex-package.eclass |
19 |
+++ b/eclass/latex-package.eclass |
20 |
@@ -71,12 +71,13 @@ |
21 |
# DESCRIPTION above) |
22 |
SUPPLIER="misc" |
23 |
|
24 |
-case ${EAPI:-0} in |
25 |
- 0|1|2|3|4|5) |
26 |
- # Kept for backwards compatibility |
27 |
- latex-package_has_tetex_3() { true; } |
28 |
- ;; |
29 |
-esac |
30 |
+# Kept for backwards compatibility |
31 |
+latex-package_has_tetex_3() { |
32 |
+ case ${EAPI:-0} in |
33 |
+ 0|1|2|3|4|5) return 0 ;; |
34 |
+ *) die "${FUNCNAME} no longer supported in EAPI ${EAPI}" ;; |
35 |
+ esac |
36 |
+} |
37 |
|
38 |
# @FUNCTION: latex-package_src_doinstall |
39 |
# @USAGE: [ module ] |