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

Diff of /eclass/mono.eclass

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

Revision 1.12 Revision 1.13
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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/mono.eclass,v 1.12 2009/01/14 17:17:17 loki_val Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mono.eclass,v 1.13 2009/03/08 15:46:54 loki_val Exp $
4 4
5# @ECLASS: mono.eclass 5# @ECLASS: mono.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# dotnet@gentoo.org 7# dotnet@gentoo.org
8# @BLURB: common settings and functions for mono and dotnet related 8# @BLURB: common settings and functions for mono and dotnet related
52 fi 52 fi
53 ${mv_command} "${D}"/usr/lib/* "${D}"/usr/"$(get_libdir)"/ || die "Moving files into correct libdir failed" 53 ${mv_command} "${D}"/usr/lib/* "${D}"/usr/"$(get_libdir)"/ || die "Moving files into correct libdir failed"
54 rm -rf "${D}"/usr/lib 54 rm -rf "${D}"/usr/lib
55 for dir in "${D}"/usr/"$(get_libdir)"/pkgconfig "${D}"/usr/share/pkgconfig 55 for dir in "${D}"/usr/"$(get_libdir)"/pkgconfig "${D}"/usr/share/pkgconfig
56 do 56 do
57 [[ -d "${dir}" ]] && finddirs=( "${finddirs[@]}" "${dir}" ) 57
58 if [[ -d "${dir}" && "$(find "${dir}" -name '*.pc')" != "" ]]
59 then
60 pushd "${dir}" &> /dev/null
61 sed -i -r -e 's:/(lib)([^a-zA-Z0-9]|$):/'"$(get_libdir)"'\2:g' \
62 *.pc \
63 || die "Sedding some sense into pkgconfig files failed."
64 popd "${dir}" &> /dev/null
65 fi
58 done 66 done
59 if ! [[ -z "${finddirs[@]// /}" ]]
60 then
61 sed -i -r -e 's:/(lib)([^a-zA-Z0-9]|$):/'"$(get_libdir)"'\2:g' \
62 $(find "${finddirs[@]}" -name '*.pc') \
63 || die "Sedding some sense into pkgconfig files failed."
64 fi
65 if [[ -d "${D}/usr/bin" ]] 67 if [[ -d "${D}/usr/bin" ]]
66 then 68 then
67 for exe in "${D}/usr/bin"/* 69 for exe in "${D}/usr/bin"/*
68 do 70 do
69 if [[ "$(file "${exe}")" == *"shell script text"* ]] 71 if [[ "$(file "${exe}")" == *"shell script text"* ]]

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20