/[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.3 Revision 1.6
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.3 2010/08/22 07:28:24 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng-gnome2.eclass,v 1.6 2011/05/29 13:43:16 naota 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#
14# ruby-gnome2 since they share a very common installation procedure. 14# ruby-gnome2 since they share a very common installation procedure.
15 15
16inherit ruby-ng multilib 16inherit ruby-ng multilib
17 17
18IUSE="" 18IUSE=""
19
20# Define EPREFIX if needed
21has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
19 22
20subbinding=${PN#ruby-} ; subbinding=${subbinding%2} 23subbinding=${PN#ruby-} ; subbinding=${subbinding%2}
21S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding} 24S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding}
22SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" 25SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
23HOMEPAGE="http://ruby-gnome2.sourceforge.jp/" 26HOMEPAGE="http://ruby-gnome2.sourceforge.jp/"
38 # We have injected --no-undefined in Ruby as a safety precaution 41 # We have injected --no-undefined in Ruby as a safety precaution
39 # against broken ebuilds, but the Ruby-Gnome bindings 42 # against broken ebuilds, but the Ruby-Gnome bindings
40 # unfortunately rely on the lazy load of other extensions; see bug 43 # unfortunately rely on the lazy load of other extensions; see bug
41 # #320545. 44 # #320545.
42 find . -name Makefile -print0 | xargs -0 \ 45 find . -name Makefile -print0 | xargs -0 \
43 sed -i -e 's:-Wl,--no-undefined ::' || die "--no-undefined removal failed" 46 sed -i -e 's:-Wl,--no-undefined ::' \
47 -e "s/^ldflags = /ldflags = $\(LDFLAGS\) /" \
48 || die "--no-undefined removal failed"
44 49
45 emake || die "emake failed" 50 emake || die "emake failed"
46} 51}
47 52
48# @FUNCTION: each_ruby_install 53# @FUNCTION: each_ruby_install
49# @DESCRIPTION: 54# @DESCRIPTION:
50# Install the files in the subbinding for each specific ruby target. 55# Install the files in the subbinding for each specific ruby target.
51each_ruby_install() { 56each_ruby_install() {
52 # Create the directories, or the package will create them as files. 57 # Create the directories, or the package will create them as files.
53 dodir $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitearchdir"]') /usr/$(get_libdir)/pkgconfig 58 local archdir=$(ruby_rbconfig_value "sitearchdir")
59 dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig
54 60
55 emake DESTDIR="${D}" install || die "make install failed" 61 emake DESTDIR="${D}" install || die "make install failed"
56} 62}
57 63
58# @FUNCTION: all_ruby_install 64# @FUNCTION: all_ruby_install

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20