Gentoo Archives: gentoo-dev

From: "Tomáš Chvátal" <scarabeus@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] check-reqs.eclass.patch
Date: Wed, 31 Aug 2011 15:33:47
Message-Id: 4E5E5430.8080000@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] check-reqs.eclass.patch by "Michał Górny"
1 Dne 31.8.2011 17:30, Michał Górny napsal(a):
2 >
3 >> DEPEND="sys-apps/gawk"
4 >
5 > gawk is in the system set. If you really want to DEP on it explicitly,
6 > maybe we should create a virtual, as any POSIX-compliant awk will
7 > handle this.
8 >
9 >> # Temporary workaround for unset units.
10 >> # Backcompat.
11 >> [[ "${unit//*([[:digit:]])}" ]] || unit="M"
12 >>
13 >> case ${unit} in
14 >> G) echo "Gibibytes" ;;
15 >> M) echo "Mebibytes" ;;
16 >> T) echo "Tebibytes" ;;
17 >> *)
18 >> die "${FUNCNAME}: Unknown unit: ${unit}"
19 >> ;;
20 >> esac
21 >> }
22 >
23 > case ${unit} in
24 > [M0-9]) echo "mebibytes" ;;
25 > ...
26 >
27 > And yes, they actually shall be written lowercase [1].
28 >
29 > [1]:http://www.bipm.org/en/si/si_brochure/chapter5/5-2.html
30 >
31 Wonder if it would not be easier just to talk on irc so we don't bother
32 everyone :P
33
34 Anyway addressed :)

Attachments

File name MIME type
check-reqs.eclass text/plain

Replies

Subject Author
Re: [gentoo-dev] [RFC] check-reqs.eclass.patch Ulrich Mueller <ulm@g.o>