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

Diff of /eclass/udev.eclass

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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/udev.eclass,v 1.2 2012/10/30 20:03:12 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/udev.eclass,v 1.3 2012/10/30 20:26:54 ssuominen Exp $
4 4
5# @ECLASS: udev.eclass 5# @ECLASS: udev.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# udev-bugs@gentoo.org 7# udev-bugs@gentoo.org
8# @BLURB: Default eclass for determining udev directories. 8# @BLURB: Default eclass for determining udev directories.
35# @INTERNAL 35# @INTERNAL
36# @DESCRIPTION: 36# @DESCRIPTION:
37# Get unprefixed udevdir. 37# Get unprefixed udevdir.
38_udev_get_udevdir() { 38_udev_get_udevdir() {
39 if $($(tc-getPKG_CONFIG) --exists udev); then 39 if $($(tc-getPKG_CONFIG) --exists udev); then
40 echo -n "$($(tc-getPKG_CONFIG) --variable=udevdir udev)" 40 echo "$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
41 else 41 else
42 echo -n /lib/udev 42 echo /lib/udev
43 fi 43 fi
44} 44}
45 45
46# @FUNCTION: udev_get_udevdir 46# @FUNCTION: udev_get_udevdir
47# @DESCRIPTION: 47# @DESCRIPTION:
50# The fallback value is set to /lib/udev 50# The fallback value is set to /lib/udev
51udev_get_udevdir() { 51udev_get_udevdir() {
52 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= 52 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
53 debug-print-function ${FUNCNAME} "${@}" 53 debug-print-function ${FUNCNAME} "${@}"
54 54
55 echo -n "${EPREFIX}$(_udev_get_udevdir)" 55 echo "${EPREFIX}$(_udev_get_udevdir)"
56} 56}

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

  ViewVC Help
Powered by ViewVC 1.1.20