Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] freedict.eclass: rename dict.eclass, generalize
Date: Wed, 25 Apr 2018 06:47:28
Message-Id: 23264.9332.813238.764748@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] [PATCH] freedict.eclass: rename dict.eclass, generalize by "Marty E. Plummer"
1 >>>>> On Wed, 25 Apr 2018, Marty E Plummer wrote:
2
3 >> I don't see much code duplication there, so I think it would be
4 >> cleaner to have a second eclass, rather than adding conditionals to
5 >> the existing one.
6
7 > I mean if you take into account app-dicts/dictd-* and freedict.eclass;
8 > without the above pr (which I did originally have with a new eclass,
9 > until I realized that app-text/dictd's conf file hardcodes /usr/lib/dict
10 > anyways so the freedict dictionaries get [at least on amd64 and other
11 > targets which use/will use lib64] installed outside of the search path
12 > anyways) they are all almost entirely identical with the contents of
13 > freedict.eclass.
14
15 > Another thought I had was moving the src_install into dict.eclass and
16 > have freedict inherit it, adding the differences.
17
18 $ egrep -v '^(#|$)' freedict.eclass | wc -l
19 18
20
21 IMHO not worth the effort for 18 lines of code. Keep it simple.
22
23 Ulrich

Replies

Subject Author
Re: [gentoo-dev] [PATCH] freedict.eclass: rename dict.eclass, generalize "Marty E. Plummer" <hanetzer@×××××××××.com>