1 |
commit: e176bb889db81081f5f991232d0c6604bbe47713 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 1 11:17:19 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 2 09:10:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e176bb88 |
7 |
|
8 |
skel.ebuild: Update comments for inherit, SLOT, KEYWORDS. |
9 |
|
10 |
Change the example used for inherit. Also comment the inherit line, |
11 |
since not every ebuild will use it. |
12 |
|
13 |
Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs. |
14 |
Similar for KEYWORDS="*", which isn't "deprecated" but invalid. |
15 |
|
16 |
Replace x86 by amd64 as an example, where appropriate. |
17 |
|
18 |
skel.ebuild | 27 +++++++++++++-------------- |
19 |
1 file changed, 13 insertions(+), 14 deletions(-) |
20 |
|
21 |
diff --git a/skel.ebuild b/skel.ebuild |
22 |
index 591b58e8d36..129f61dcdb2 100644 |
23 |
--- a/skel.ebuild |
24 |
+++ b/skel.ebuild |
25 |
@@ -13,9 +13,9 @@ |
26 |
EAPI=6 |
27 |
|
28 |
# inherit lists eclasses to inherit functions from. For example, an ebuild |
29 |
-# that needs the epatch function from eutils.eclass won't work without the |
30 |
-# following line: |
31 |
-inherit eutils |
32 |
+# that needs the eautoreconf function from autotools.eclass won't work |
33 |
+# without the following line: |
34 |
+#inherit autotools |
35 |
# |
36 |
# eclasses tend to list descriptions of how to use their functions properly. |
37 |
# take a look at /usr/portage/eclass/ for more examples. |
38 |
@@ -46,7 +46,7 @@ LICENSE="" |
39 |
# of each SLOT and remove everything else. |
40 |
# Note that normal applications should use SLOT="0" if possible, since |
41 |
# there should only be exactly one version installed at a time. |
42 |
-# DO NOT USE SLOT=""! This tells Portage to disable SLOTs for this package. |
43 |
+# Do not use SLOT="", because the SLOT variable must not be empty. |
44 |
SLOT="0" |
45 |
|
46 |
# Using KEYWORDS, we can record masking information *inside* an ebuild |
47 |
@@ -54,22 +54,21 @@ SLOT="0" |
48 |
# set the KEYWORDS variable for every ebuild so that it contains the names of |
49 |
# all the architectures with which the ebuild works. All of the official |
50 |
# architectures can be found in the arch.list file which is in |
51 |
-# /usr/portage/profiles/. Usually you should just set this to "~x86". The ~ |
52 |
-# in front of the architecture indicates that the package is new and should be |
53 |
-# considered unstable until testing proves its stability. So, if you've |
54 |
-# confirmed that your ebuild works on x86 and ppc, you'd specify: |
55 |
-# KEYWORDS="~x86 ~ppc" |
56 |
+# /usr/portage/profiles/. Usually you should just set this to "~amd64". |
57 |
+# The ~ in front of the architecture indicates that the package is new and |
58 |
+# should be considered unstable until testing proves its stability. So, if |
59 |
+# you've confirmed that your ebuild works on amd64 and ppc, you'd specify: |
60 |
+# KEYWORDS="~amd64 ~ppc" |
61 |
# Once packages go stable, the ~ prefix is removed. |
62 |
# For binary packages, use -* and then list the archs the bin package |
63 |
# exists for. If the package was for an x86 binary package, then |
64 |
# KEYWORDS would be set like this: KEYWORDS="-* x86" |
65 |
-# DO NOT USE KEYWORDS="*". This is deprecated and only for backward |
66 |
-# compatibility reasons. |
67 |
-KEYWORDS="~x86" |
68 |
+# Do not use KEYWORDS="*"; this is not valid in an ebuild context. |
69 |
+KEYWORDS="~amd64" |
70 |
|
71 |
# Comprehensive list of any and all USE flags leveraged in the ebuild, |
72 |
-# with the exception of any ARCH specific flags, i.e. "ppc", "sparc", |
73 |
-# "x86" and "alpha". Not needed if the ebuild doesn't use any USE flags. |
74 |
+# with some exceptions, e.g., ARCH specific flags like "amd64" or "ppc". |
75 |
+# Not needed if the ebuild doesn't use any USE flags. |
76 |
IUSE="gnome X" |
77 |
|
78 |
# A space delimited list of portage features to restrict. man 5 ebuild |