On 21/07/14 21:03, Jeroen Roovers wrote: > On Mon, 21 Jul 2014 13:23:46 +0900 > Thomas Kahle <to...@gentoo.org> wrote: > >> the OCR software tesseract has many different plugins for >> language packs used for OCR for different languages. The ebuild >> uses the LINGUAS variable to pass the choice of which packages to >> install to the user. > > Every ebuild uses LINGUAS implicitly. What you mean is that you > expand LINGUAS to USE Flags...
Yes, I did not use the correct terminology. >> A reverse dependency is app-text/pdfsandwich which roughly puts >> OCR'ed text in a scanned pdf. Since it uses tesseract it >> supports exactly those languages that tesseract supports. >> >> Should its ebuild have LINGUAS use flags and then depend on >> tesseract with at least those flags set? > > ... in which case you can simply use USE dependencies since you have > USE-expanded flags matching LINGUAS. It should be easy to match one > ebuild's IUSE with another's. > > linguas_tlh? ( app-text/tesseract[linguas_tlh] ) I know how to specify USE dependcies. Since you deleted it, let me ask my question again: If I follow this method I will have 37 dependencies all of this form. This is pointless because a) Everytime tesseract gains or loses a language support (it does happen!) the pdfsandwich ebuild needs to be updated, b) Nobody wants to set different linguas on tesseract and pdfsandwich anyway. Cheers, Thomas -- Thomas Kahle http://dev.gentoo.org/~tomka/
signature.asc
Description: OpenPGP digital signature