Gentoo Archives: gentoo-dev

From: Jeroen Roovers <jer@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Using LINGUAS
Date: Mon, 21 Jul 2014 12:03:23
Message-Id: 20140721140311.50490b29@marga.jer-c2.orkz.net
In Reply to: [gentoo-dev] Using LINGUAS by Thomas Kahle
1 On Mon, 21 Jul 2014 13:23:46 +0900
2 Thomas Kahle <tomka@g.o> wrote:
3
4 > the OCR software tesseract has many different plugins for
5 > language packs used for OCR for different languages. The ebuild
6 > uses the LINGUAS variable to pass the choice of which packages to
7 > install to the user.
8
9 Every ebuild uses LINGUAS implicitly. What you mean is that you
10 expand LINGUAS to USE Flags...
11
12 > A reverse dependency is app-text/pdfsandwich which roughly puts
13 > OCR'ed text in a scanned pdf. Since it uses tesseract it
14 > supports exactly those languages that tesseract supports.
15 >
16 > Should its ebuild have LINGUAS use flags and then depend on
17 > tesseract with at least those flags set?
18
19 ... in which case you can simply use USE dependencies since you have
20 USE-expanded flags matching LINGUAS. It should be easy to match one
21 ebuild's IUSE with another's.
22
23 linguas_tlh? ( app-text/tesseract[linguas_tlh] )
24
25
26 jer

Replies

Subject Author
Re: [gentoo-dev] Using LINGUAS Thomas Kahle <tomka@g.o>