Gentoo Development Guide

BOOST-UTILS.ECLASS

Section: portage (5)
Updated: Mar 2014
Index Return to Main Contents
 

NAME

boost-utils.eclass - helper functions for packages using Boost C++ library  

DESCRIPTION

Helper functions to be used when building packages using the Boost C++ library collection.

Please note that this eclass does not set the dependencies for you. You need to do that yourself.

For cmake & autotools it is usually necessary to set BOOST_ROOT using boost-utils_export_root. However, other build system may require more hackery or even appending -I$(boost-utils_get_includedir) to CFLAGS and -L$(boost-utils_get_libdir) to LDFLAGS.  

FUNCTIONS

boost-utils_get_best_slot
Get newest installed slot of Boost. If BOOST_MAX_SLOT is set, the version returned will be at most in the specified slot.
boost-utils_get_includedir [slot]
Get the includedir for the given Boost slot. If no slot is given, defaults to the newest installed Boost slot (but not newer than BOOST_MAX_SLOT if that variable is set).

Outputs the sole path (without -I).

boost-utils_get_libdir [slot]
Get the libdir for the given Boost slot. If no slot is given, defaults to the newest installed Boost slot (but not newer than BOOST_MAX_SLOT if that variable is set).

Outputs the sole path (without -L).

boost-utils_export_root [slot]
Set the BOOST_ROOT variable to includedir for the given Boost slot. If no slot is given, defaults to the newest installed Boost slot(but not newer than BOOST_MAX_SLOT if that variable is set).

This variable satisfies both cmake and sys-devel/boost-m4 autoconf macros.

 

ECLASS VARIABLES

BOOST_MAX_SLOT
The maximal (newest) boost slot supported by the package. If unset, there is no limit (the newest installed version will be used).
 

MAINTAINERS

Michał Górny <mgorny@gentoo.org>
Tiziano Müller <dev-zero@gentoo.org>
Sebastian Luther <SebastianLuther@gmx.de>
Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
 

REPORTING BUGS

Please report bugs via http://bugs.gentoo.org/  

FILES

/usr/portage/eclass/boost-utils.eclass  

SEE ALSO

ebuild(5)
http://sources.gentoo.org/eclass/boost-utils.eclass?view=log


 

Index

NAME
DESCRIPTION
FUNCTIONS
ECLASS VARIABLES
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:25:05 GMT, March 18, 2014