Gentoo Archives: gentoo-dev

From: Marek Szuba <marecki@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] sword-module.eclass: update, extend, increment revision
Date: Mon, 27 Jul 2020 14:02:11
Message-Id: 28baa709-1524-acc2-104b-61bccfe02a75@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] sword-module.eclass: update, extend, increment revision by "Michał Górny"
1 On 2020-07-27 12:02, Michał Górny wrote:
2
3 > +# Note that while all SWORD modules which do not require prior registration
4 >
5 > s/which/that/
6
7 Not quite sure if this is really necessary, as far as I remember both
8 "which" and "that" are grammatically correct in this context - in British English
9 anyway.
10
11 >> +# in order to see when they have last been updated. Therefore, maintainers
12 >> +# must rename module files to include the version number and host them
13 >> +# somewhere to avoid breaking digests when new versions are released.
14 >
15 > Technically speaking, this isn't strictly necessary. You could just use
16 > SRC_URI arrows to rename them, and then Gentoo mirrors would jump in.
17 > On the minus side, things would occasionally break for people not using
18 > Gentoo mirrors. On the plus side, they would effectively ping you
19 > whenever new version happens ;-).
20
21 On the plus side, no need for tedious file-renaming steps. And finally on the
22 plus side, no need to store 500+ MB of renamed-but-otherwise-same-as-upstream
23 files on dev.gentoo.org. You've convinced me :-)
24
25 >> +# @ECLASS-VARIABLE: SWORD_MODULE
26 >> +# @DEFAULT_UNSET
27 >> +# @PRE_INHERIT
28 >> +# @REQUIRED
29 >> +# @DESCRIPTION:
30 >> +# Name of the module as used by the SWORD Project. Case-sensitive.
31 >> +# Needs to be set before the inherit line.
32 >
33 > Wouldn't using a default generated from PN work most of the time?
34
35 Until just a moment ago, it was not - all the app-dicts/sword-* we have in the tree
36 had been named using upstream module names converted to all-lowercase. I thought about
37 changing this but thought it might be better to leave it until after the eclass update.
38
39 That was until just a moment ago, though - having read your comment and having confirmed
40 that we use upstream names for source archives, I have just renamed those packages to
41 match the case of upstream names. Will update the eclass with a PN-derived default of
42 SWORD_MODULE before the next iteration.
43
44 --
45 MS

Attachments

File name MIME type
signature.asc application/pgp-signature