Am Dienstag, 28. August 2012, 00:19:28 schrieb Michał Górny:
> Right now, it just contains the function Tiziano listed in his post[1].
> I'd appreciate further ideas, feedback, and possibly an example from
> someone who will actually need it.

How about a function that just outputs the entire required dependency string? 
Such that we can (similar to add_kdebase_dep) write

DEPEND="$(add_boost_dep)"

(Probably we may want to pass parameters here for useflags and version, here's 
the doc for kdebase_dep from kde4-functions.eclass (and for boost we would not 
need a package name):

# @FUNCTION: add_kdebase_dep
# @DESCRIPTION:
# Create proper dependency for kde-base/ dependencies.
# This takes 1 to 3 arguments. The first being the package name, the optional
# second is additional USE flags to append, and the optional third is the
# version to use instead of the automatic version (use sparingly).
# The output of this should be added directly to DEPEND/RDEPEND, and may be
# wrapped in a USE conditional (but not an || conditional without an extra set
# of parentheses).
)

Cheers, 
Andreas

-- 
Andreas K. Huettel
Gentoo Linux developer 
kde (team lead), sci, tex, arm, printing
dilfri...@gentoo.org
http://www.akhuettel.de/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to