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

Diff of /eclass/eutils.eclass

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

Revision 1.209 Revision 1.210
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/eutils.eclass,v 1.209 2005/10/19 03:37:16 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.210 2005/10/20 00:13:20 vapier Exp $
4# 4#
5# Author: Martin Schlemmer <azarah@gentoo.org> 5# Author: Martin Schlemmer <azarah@gentoo.org>
6# 6#
7# This eclass is for general purpose functions that most ebuilds 7# This eclass is for general purpose functions that most ebuilds
8# have to implement themselves. 8# have to implement themselves.
1624 # We don't want to quote ${bin} so that people can pass complex 1624 # We don't want to quote ${bin} so that people can pass complex
1625 # things as $bin ... "./someprog --args" 1625 # things as $bin ... "./someprog --args"
1626 cat << EOF > "${tmpwrapper}" 1626 cat << EOF > "${tmpwrapper}"
1627#!/bin/sh 1627#!/bin/sh
1628cd "${chdir:-.}" 1628cd "${chdir:-.}"
1629if [ -n "${libdir}" ] ; then
1629if [ "\${LD_LIBRARY_PATH+set}" = "set" ] && [ -n "${libdir}" ] ; then 1630 if [ "\${LD_LIBRARY_PATH+set}" = "set" ] ; then
1630 export LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}:${libdir}" 1631 export LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}:${libdir}"
1632 else
1633 export LD_LIBRARY_PATH="${libdir}"
1634 fi
1631fi 1635fi
1632exec ${bin} "\$@" 1636exec ${bin} "\$@"
1633EOF 1637EOF
1634 chmod go+rx "${tmpwrapper}" 1638 chmod go+rx "${tmpwrapper}"
1635 if [[ -n ${path} ]] ; then 1639 if [[ -n ${path} ]] ; then

Legend:
Removed from v.1.209  
changed lines
  Added in v.1.210

  ViewVC Help
Powered by ViewVC 1.1.20