/[gentoo-x86]/eclass/boost-utils.eclass
Gentoo

Diff of /eclass/boost-utils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.4
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/boost-utils.eclass,v 1.1 2012/09/19 09:37:53 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/boost-utils.eclass,v 1.4 2014/03/18 10:35:39 mgorny Exp $
4 4
5if [[ ! ${_BOOST_ECLASS} ]]; then 5if [[ ! ${_BOOST_ECLASS} ]]; then
6
7# @DEAD
6 8
7# @ECLASS: boost-utils.eclass 9# @ECLASS: boost-utils.eclass
8# @MAINTAINER: 10# @MAINTAINER:
9# Michał Górny <mgorny@gentoo.org> 11# Michał Górny <mgorny@gentoo.org>
10# Tiziano Müller <dev-zero@gentoo.org> 12# Tiziano Müller <dev-zero@gentoo.org>
22# boost-utils_export_root. However, other build system may require more 24# boost-utils_export_root. However, other build system may require more
23# hackery or even appending -I$(boost-utils_get_includedir) to CFLAGS 25# hackery or even appending -I$(boost-utils_get_includedir) to CFLAGS
24# and -L$(boost-utils_get_libdir) to LDFLAGS. 26# and -L$(boost-utils_get_libdir) to LDFLAGS.
25 27
26case ${EAPI:-0} in 28case ${EAPI:-0} in
27 0|1|2|3|4) ;; 29 0|1|2|3|4|5) ;;
28 *) die "${ECLASS}.eclass API in EAPI ${EAPI} not yet established." 30 *) die "${ECLASS}.eclass API in EAPI ${EAPI} not yet established."
29esac 31esac
30 32
31inherit multilib versionator 33inherit multilib versionator
32 34
43boost-utils_get_best_slot() { 45boost-utils_get_best_slot() {
44 local pkg=dev-libs/boost 46 local pkg=dev-libs/boost
45 [[ ${BOOST_MAX_SLOT} ]] && pkg="<=${pkg}-${BOOST_MAX_SLOT}.9999" 47 [[ ${BOOST_MAX_SLOT} ]] && pkg="<=${pkg}-${BOOST_MAX_SLOT}.9999"
46 48
47 local cpv=$(best_version ${pkg}) 49 local cpv=$(best_version ${pkg})
48 get_version_component_range 1-2 ${cpv#${pkg}-} 50 get_version_component_range 1-2 ${cpv#dev-libs/boost-}
49} 51}
50 52
51# @FUNCTION: boost-utils_get_includedir 53# @FUNCTION: boost-utils_get_includedir
52# @USAGE: [slot] 54# @USAGE: [slot]
53# @DESCRIPTION: 55# @DESCRIPTION:

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20