Use the "has_version" function to check. Syntax is "has_version category/package-version" and it returns 0 if the particular version is installed. So to check for db, "has_version =sys-libs/db-4.2.52_p2" would return 0 if that version is installed.
On Thu, 2005-03-03 at 04:07 +0100, pepone pepone wrote: > Hello I creating a new ebuild for Ice (Internet Comunication Engine) > http://www.zeroc.com > > this is my first ebuild and i want know how i my ebuild can > detect the version of a program that is installed in the system > > > the problem is that i order to suscefuly compile my package i need to > export LDFLAGS and IFLAGS acording to the db version that is instaled > in the system > > thanks in adavantage > -- > [email protected] mailing list > -- [email protected] mailing list
