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

Diff of /eclass/udev.eclass

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

Revision 1.8 Revision 1.9
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.8 2012/12/03 01:58:44 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/udev.eclass,v 1.9 2013/01/29 15:33:37 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.
17# # and we also link against libgudev 17# # and we also link against libgudev
18# RDEPEND=">=virtual/udev-196[hwdb,gudev]" 18# RDEPEND=">=virtual/udev-196[hwdb,gudev]"
19# DEPEND="${RDEPEND}" 19# DEPEND="${RDEPEND}"
20# 20#
21# src_configure() { 21# src_configure() {
22# econf \
23# --with-rulesdir="$(udev_get_udevdir)"/rules.d \ 22# econf --with-rulesdir="$(get_udevdir)"/rules.d
24# } 23# }
25# 24#
26# src_install() { 25# src_install() {
26# default
27# # udev_dorules contrib/99-foomatic 27# # udev_dorules contrib/99-foomatic
28# udev_newrules contrib/98-foomatic 99-foomatic 28# # udev_newrules contrib/98-foomatic 99-foomatic
29# } 29# }
30# @CODE 30# @CODE
31 31
32inherit toolchain-funcs 32inherit toolchain-funcs
33 33
51 fi 51 fi
52} 52}
53 53
54# @FUNCTION: udev_get_udevdir 54# @FUNCTION: udev_get_udevdir
55# @DESCRIPTION: 55# @DESCRIPTION:
56# Use the short version $(get_udevdir) instead!
57udev_get_udevdir() {
58 debug-print-function ${FUNCNAME} "${@}"
59
60 echo "$(_udev_get_udevdir)"
61}
62
63# @FUNCTION: get_udevdir
64# @DESCRIPTION:
56# Output the path for the udev directory (not including ${D}). 65# Output the path for the udev directory (not including ${D}).
57# This function always succeeds, even if udev is not installed. 66# This function always succeeds, even if udev is not installed.
58# The fallback value is set to /lib/udev 67# The fallback value is set to /lib/udev
59udev_get_udevdir() { 68get_udevdir() {
60 debug-print-function ${FUNCNAME} "${@}" 69 debug-print-function ${FUNCNAME} "${@}"
61 70
62 echo "$(_udev_get_udevdir)" 71 echo "$(_udev_get_udevdir)"
63} 72}
64 73

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20