/[gentoo-x86]/eclass/portability.eclass
Gentoo

Diff of /eclass/portability.eclass

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

Revision 1.3 Revision 1.4
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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/portability.eclass,v 1.3 2005/09/21 02:46:41 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.4 2005/09/26 23:33:55 flameeyes Exp $
4# 4#
5# Author: Diego Pettenò <flameeyes@gentoo.org> 5# Author: Diego Pettenò <flameeyes@gentoo.org>
6# 6#
7# This eclass is created to avoid using non-portable GNUisms inside ebuilds 7# This eclass is created to avoid using non-portable GNUisms inside ebuilds
8# 8#
73 else 73 else
74 # Linux and NetBSD uses position 6 instead 74 # Linux and NetBSD uses position 6 instead
75 cut -d: -f6 <<<${ent} 75 cut -d: -f6 <<<${ent}
76 fi 76 fi
77} 77}
78
79# Gets the name of the BSD-ish make command (pmake from NetBSD)
80#
81# This will return make (provided by system packages) for BSD userlands,
82# or bsdmake for Darwin userlands and pmake for the rest of userlands,
83# both of which are provided by sys-devel/pmake package.
84#
85# Note: the bsdmake for Darwin userland is with compatibility with MacOSX
86# default name.
87get_bmake() {
88 if [[ ${USERLAND} == *BSD ]]; then
89 echo make
90 elif [[ ${USERLAND} == "Darwin" ]]; then
91 echo bsdmake
92 else
93 echo pmake
94 fi
95}

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

  ViewVC Help
Powered by ViewVC 1.1.20