Gentoo Archives: gentoo-dev

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] New eclass db-use
Date: Thu, 18 May 2006 09:53:35
Message-Id: 200605181148.50988.pauldv@gentoo.org
1 Hi all,
2
3 I have just committed a new eclass to the tree. This eclass has as purpose
4 to make it easier to use berkeley db. Currently the eclass has two
5 interesting functions (and some helpers that may or may not be
6 interesting).
7
8 These functions are:
9 db_includedir
10 db_libname
11
12 Both functions can be used with and without arguments. Without arguments
13 they will give the best bdb version. With arguments they will loop
14 through the arguments which are version prefixes (they will be matched
15 with "=sys-libs/db-${1}*"
16
17 The includedir function returns the include dir of the best matched db
18 version. The libname function returns the libraryname of the best matched
19 db. This libraryname has the form db-${ver}, and as such could be just
20 appended to "-l". This means it is not the filename.
21
22 Paul;
23
24 --
25 Paul de Vrieze
26 Gentoo Developer
27 Mail: pauldv@g.o
28 Homepage: http://www.devrieze.net

Replies

Subject Author
Re: [gentoo-dev] New eclass db-use "Bryan Ãstergaard" <kloeri@g.o>