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

Diff of /eclass/portability.eclass

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

Revision 1.5 Revision 1.6
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.5 2005/12/14 18:43:34 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.6 2005/12/14 18:46:50 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#
69 69
70 case ${CHOST} in 70 case ${CHOST} in
71 *-darwin*|*-freebsd*|*-dragonfly*) 71 *-darwin*|*-freebsd*|*-dragonfly*)
72 # Darwin, OSX, FreeBSD and DragonFly use position 9 to store homedir 72 # Darwin, OSX, FreeBSD and DragonFly use position 9 to store homedir
73 cut -d: -f9 <<<${ent} 73 cut -d: -f9 <<<${ent}
74 ;;
74 *) 75 *)
75 # Linux, NetBSD and OpenBSD use position 6 instead 76 # Linux, NetBSD and OpenBSD use position 6 instead
76 cut -d: -f6 <<<${ent} 77 cut -d: -f6 <<<${ent}
78 ;;
77 esac 79 esac
78} 80}
79 81
80# Gets the name of the BSD-ish make command (pmake from NetBSD) 82# Gets the name of the BSD-ish make command (pmake from NetBSD)
81# 83#

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20