Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Update skel.ebuild for EAPI 6
Date: Mon, 25 Jan 2016 19:18:49
Message-Id: 22182.29964.340319.792196@a1i15.kph.uni-mainz.de
1 See patch included below. I have kept the changes at the bare minimum
2 necessary to update this for EAPI 6. A major rewrite of the file may
3 be considered later.
4
5 Ulrich
6
7
8 From 599ad94e1a2f2961e5ef0175bea01cd1b2eb96f7 Mon Sep 17 00:00:00 2001
9 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@g.o>
10 Date: Mon, 25 Jan 2016 20:01:26 +0100
11 Subject: [PATCH] skel.ebuild: Update for EAPI 6.
12
13 Put less emphasis on eutils and epatch; they will be used less often
14 with eapply being available in EAPI 6.
15
16 Don't mention ancient EAPIs that are banned.
17
18 Don't mention einstall since it is banned.
19 ---
20 skel.ebuild | 27 +++++----------------------
21 1 file changed, 5 insertions(+), 22 deletions(-)
22
23 diff --git a/skel.ebuild b/skel.ebuild
24 index d907f9b..0483b53 100644
25 --- a/skel.ebuild
26 +++ b/skel.ebuild
27 @@ -12,22 +12,15 @@
28 # generated to contain the correct data.
29
30 # The EAPI variable tells the ebuild format in use.
31 -# Defaults to 0 if not specified.
32 # It is suggested that you use the latest EAPI approved by the Council.
33 # The PMS contains specifications for all EAPIs. Eclasses will test for this
34 -# variable if they need to use EAPI > 0 features.
35 -EAPI=5
36 +# variable if they need to use features that are not universal in all EAPIs.
37 +EAPI=6
38
39 -# inherit lists eclasses to inherit functions from. Almost all ebuilds should
40 -# inherit eutils, as a large amount of important functionality has been
41 -# moved there. For example, the epatch call mentioned below wont work
42 -# without the following line:
43 +# inherit lists eclasses to inherit functions from. For example, an ebuild
44 +# that needs the epatch function from eutils.eclass won't work without the
45 +# following line:
46 inherit eutils
47 -# A well-used example of an eclass function that needs eutils is epatch. If
48 -# your source needs patches applied, it's suggested to put your patch in the
49 -# 'files' directory and use:
50 -#
51 -# epatch "${FILESDIR}"/patch-name-here
52 #
53 # eclasses tend to list descriptions of how to use their functions properly.
54 # take a look at /usr/portage/eclass/ for more examples.
55 @@ -111,7 +104,6 @@ RDEPEND="${DEPEND}"
56
57 # The following src_configure function is implemented as default by portage, so
58 # you only need to call it if you need a different behaviour.
59 -# This function is available only in EAPI 2 and later.
60 #src_configure() {
61 # Most open-source packages use GNU autoconf for configuration.
62 # The default, quickest (and preferred) way of running configure is:
63 @@ -135,9 +127,6 @@ RDEPEND="${DEPEND}"
64
65 # The following src_compile function is implemented as default by portage, so
66 # you only need to call it, if you need different behaviour.
67 -# For EAPI < 2 src_compile runs also commands currently present in
68 -# src_configure. Thus, if you're using an older EAPI, you need to copy them
69 -# to your src_compile and drop the src_configure function.
70 #src_compile() {
71 # emake (previously known as pmake) is a script that calls the
72 # standard GNU make with parallel building options for speedier
73 @@ -152,8 +141,6 @@ RDEPEND="${DEPEND}"
74
75 # The following src_install function is implemented as default by portage, so
76 # you only need to call it, if you need different behaviour.
77 -# For EAPI < 4 src_install is just returing true, so you need to always specify
78 -# this function in older EAPIs.
79 #src_install() {
80 # You must *personally verify* that this trick doesn't install
81 # anything outside of DESTDIR; do this by reading and
82 @@ -178,8 +165,4 @@ RDEPEND="${DEPEND}"
83 # install
84 # Again, verify the Makefiles! We don't want anything falling
85 # outside of ${D}.
86 -
87 - # The portage shortcut to the above command is simply:
88 - #
89 - #einstall
90 #}
91 --
92 2.7.0

Replies

Subject Author
Re: [gentoo-dev] Update skel.ebuild for EAPI 6 Dean Stephens <desultory@g.o>