Gentoo Archives: gentoo-dev

From: "Marty E. Plummer" <hanetzer@×××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] eclass: freedict: require EAPI=6
Date: Wed, 28 Mar 2018 07:31:22
Message-Id: 20180328073109.inqow7vsl6ja6jug@proprietary-killer.fossland
In Reply to: Re: [gentoo-dev] [PATCH] eclass: freedict: require EAPI=6 by Ulrich Mueller
1 On Tue, Mar 27, 2018 at 11:20:08AM +0200, Ulrich Mueller wrote:
2 > While at it:
3 > - Drop the IUSE="" assignment, it is useless (pun intended :)
4 > - Update HOMEPAGE, freedict.de is dead
5 > - LICENSE should be "GPL-2+" (sources say "GNU General Public License
6 > ver. 2.0 and any later version")
7 > - DEPEND is not needed (should be RDEPEND instead, I guess)
8 > - Use canonical ordering of variables (DESCRIPTION, HOMEPAGE, SRC_URI
9 > in first block; LICENSE, SLOT in second; then dependencies; then S)
10 >
11 > Ulrich
12 >
13 How's this:
14
15 ---
16 eclass/freedict.eclass | 18 ++++++++++--------
17 1 file changed, 10 insertions(+), 8 deletions(-)
18
19 diff --git a/eclass/freedict.eclass b/eclass/freedict.eclass
20 index 06419626d34..7c598aa6eaf 100644
21 --- a/eclass/freedict.eclass
22 +++ b/eclass/freedict.eclass
23 @@ -1,4 +1,4 @@
24 -# Copyright 1999-2014 Gentoo Foundation
25 +# Copyright 1999-2018 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27
28 # @ECLASS: freedict.eclass
29 @@ -21,21 +21,23 @@
30 # @DESCRIPTION:
31 # Please see above for a description.
32
33 -inherit eutils multilib
34 -
35 -IUSE=""
36 +case ${EAPI:-0} in
37 + 6) ;;
38 + *) die "${ECLASS}.eclass is banned in EAPI=${EAPI}" ;;
39 +esac
40
41 MY_P=${PN/freedict-/}
42
43 -S="${WORKDIR}"
44 DESCRIPTION="Freedict for language translation from ${FORLANG} to ${TOLANG}"
45 -HOMEPAGE="http://www.freedict.de"
46 +HOMEPAGE="http://freedict.sourceforge.net"
47 SRC_URI="http://freedict.sourceforge.net/download/linux/${MY_P}.tar.gz"
48
49 +LICENSE="GPL-2+"
50 SLOT="0"
51 -LICENSE="GPL-2"
52
53 -DEPEND="app-text/dictd"
54 +RDEPEND="app-text/dictd"
55 +
56 +S="${WORKDIR}"
57
58 # @FUNCTION: freedict_src_install
59 # @DESCRIPTION:
60 --
61 2.16.3

Replies

Subject Author
Re: [gentoo-dev] [PATCH] eclass: freedict: require EAPI=6 Ulrich Mueller <ulm@g.o>