Gentoo Archives: gentoo-dev

From: "Bryan Ãstergaard" <kloeri@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New eclass db-use
Date: Thu, 18 May 2006 11:36:04
Message-Id: 20060518112546.GC16382@woodpecker.gentoo.org
In Reply to: [gentoo-dev] New eclass db-use by Paul de Vrieze
1 On Thu, May 18, 2006 at 11:48:50AM +0200, Paul de Vrieze wrote:
2 >
3 > Hi all,
4 >
5 > I have just committed a new eclass to the tree. This eclass has as purpose
6 > to make it easier to use berkeley db. Currently the eclass has two
7 > interesting functions (and some helpers that may or may not be
8 > interesting).
9 >
10 > These functions are:
11 > db_includedir
12 > db_libname
13 >
14 > Both functions can be used with and without arguments. Without arguments
15 > they will give the best bdb version. With arguments they will loop
16 > through the arguments which are version prefixes (they will be matched
17 > with "=sys-libs/db-${1}*"
18 >
19 > The includedir function returns the include dir of the best matched db
20 > version. The libname function returns the libraryname of the best matched
21 > db. This libraryname has the form db-${ver}, and as such could be just
22 > appended to "-l". This means it is not the filename.
23 >
24 Was this discussed on gentoo-dev mailinglist before committing to the
25 tree? Eclasses are supposed to be discussed on -dev prior to adding them
26 to the tree to catch any (obvious) mistakes etc.
27
28 This is particularly important for eclasses as they can't be removed or
29 changed in incompatible ways later due to the way portage handles them.
30
31 I don't have time to look at it myself right now but I'd still
32 appreciate posting the code to gentoo-dev and have other devs/users
33 comment on it.
34
35 Regards,
36 Bryan Østergaard
37 --
38 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] New eclass db-use Paul de Vrieze <pauldv@g.o>