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

Diff of /eclass/eutils.eclass

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

Revision 1.189 Revision 1.190
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.189 2005/07/06 20:45:12 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.190 2005/07/11 15:08:06 swegener 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.
67 dodir /usr/${libdir} 67 dodir /usr/${libdir}
68 68
69 for lib in "${@}" ; do 69 for lib in "${@}" ; do
70 cat > "${D}/usr/${libdir}/${lib}" <<-END_LDSCRIPT 70 cat > "${D}/usr/${libdir}/${lib}" <<-END_LDSCRIPT
71 /* GNU ld script 71 /* GNU ld script
72 Since Gentoo has critical dynamic libraries 72 Since Gentoo has critical dynamic libraries
73 in /lib, and the static versions in /usr/lib, 73 in /lib, and the static versions in /usr/lib,
74 we need to have a "fake" dynamic lib in /usr/lib, 74 we need to have a "fake" dynamic lib in /usr/lib,
75 otherwise we run into linking problems. 75 otherwise we run into linking problems.
76 76
77 See bug http://bugs.gentoo.org/4411 for more info. 77 See bug http://bugs.gentoo.org/4411 for more info.
78 */ 78 */
79 GROUP ( /${libdir}/${lib} ) 79 GROUP ( /${libdir}/${lib} )
80 END_LDSCRIPT 80 END_LDSCRIPT
81 fperms a+x "/usr/${libdir}/${lib}" 81 fperms a+x "/usr/${libdir}/${lib}"
900 doins "${i}" 900 doins "${i}"
901 elif [[ -d ${i} ]] ; then 901 elif [[ -d ${i} ]] ; then
902 for j in "${i}"/*.desktop ; do 902 for j in "${i}"/*.desktop ; do
903 doins "${j}" 903 doins "${j}"
904 done 904 done
905 fi 905 fi
906 done 906 done
907} 907}
908newmenu() { 908newmenu() {
909 insinto /usr/share/applications 909 insinto /usr/share/applications
910 newins "$1" "$2" 910 newins "$1" "$2"
918 doins "${i}" 918 doins "${i}"
919 elif [[ -d ${i} ]] ; then 919 elif [[ -d ${i} ]] ; then
920 for j in "${i}"/*.png ; do 920 for j in "${i}"/*.png ; do
921 doins "${j}" 921 doins "${j}"
922 done 922 done
923 fi 923 fi
924 done 924 done
925} 925}
926newicon() { 926newicon() {
927 insinto /usr/share/pixmaps 927 insinto /usr/share/pixmaps
928 newins "$1" "$2" 928 newins "$1" "$2"

Legend:
Removed from v.1.189  
changed lines
  Added in v.1.190

  ViewVC Help
Powered by ViewVC 1.1.20