/[gentoo-x86]/eclass/ruby-ng-gnome2.eclass
Gentoo

Diff of /eclass/ruby-ng-gnome2.eclass

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

Revision 1.1 Revision 1.2
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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/ruby-ng-gnome2.eclass,v 1.1 2010/01/13 18:33:32 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng-gnome2.eclass,v 1.2 2010/05/21 16:54:25 flameeyes Exp $
4# 4#
5# @ECLASS: ruby-ng-gnome2.eclass 5# @ECLASS: ruby-ng-gnome2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ruby herd <ruby@gentoo.org> 7# Ruby herd <ruby@gentoo.org>
8# 8#
32 32
33# @FUNCTION: each_ruby_compile 33# @FUNCTION: each_ruby_compile
34# @DESCRIPTION: 34# @DESCRIPTION:
35# Compile the C bindings in the subbinding for each specific ruby target. 35# Compile the C bindings in the subbinding for each specific ruby target.
36each_ruby_compile() { 36each_ruby_compile() {
37 # We have injected --no-undefined in Ruby as a safety precaution
38 # against broken ebuilds, but the Ruby-Gnome bindings
39 # unfortunately rely on the lazy load of other extensions; see bug
40 # #320545.
41 find . -name Makefile -print0 | xargs -0 \
42 sed -i -e 's:-Wl,--no-undefined ::' || die "--no-undefined removal failed"
43
37 emake || die "emake failed" 44 emake || die "emake failed"
38} 45}
39 46
40# @FUNCTION: each_ruby_install 47# @FUNCTION: each_ruby_install
41# @DESCRIPTION: 48# @DESCRIPTION:
53all_ruby_install() { 60all_ruby_install() {
54 for doc in ../AUTHORS ../NEWS ChangeLog README; do 61 for doc in ../AUTHORS ../NEWS ChangeLog README; do
55 [ -s "$doc" ] && dodoc $doc 62 [ -s "$doc" ] && dodoc $doc
56 done 63 done
57 if [[ -d sample ]]; then 64 if [[ -d sample ]]; then
58 dodir /usr/share/doc/${PF} 65 insinto /usr/share/doc/${PF}
59 cp -a sample "${D}"/usr/share/doc/${PF} || die "cp failed" 66 doins -r sample || die "sample install failed"
60 fi 67 fi
61} 68}

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

  ViewVC Help
Powered by ViewVC 1.1.20