| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 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.eclass,v 1.2 2009/12/05 11:30:17 flameeyes Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.3 2009/12/05 11:32:19 flameeyes Exp $ |
| 4 | # |
4 | # |
| 5 | # @ECLASS: ruby-ng.eclass |
5 | # @ECLASS: ruby-ng.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Ruby herd <ruby@gentoo.org> |
7 | # Ruby herd <ruby@gentoo.org> |
| 8 | # |
8 | # |
| … | |
… | |
| 378 | fi |
378 | fi |
| 379 | |
379 | |
| 380 | # The current implementation lacks libruby (i.e.: jruby) |
380 | # The current implementation lacks libruby (i.e.: jruby) |
| 381 | [[ -z ${libruby_soname} ]] && return 0 |
381 | [[ -z ${libruby_soname} ]] && return 0 |
| 382 | |
382 | |
| 383 | scanelf -qnR "${D}"/$(dirname $(${RUBY} -rrbconfig -e 'puts Config::CONFIG["sitedir"]')) \ |
383 | scanelf -qnR "${D}${sitedir}" \ |
| 384 | | fgrep -v "${libruby_soname}" \ |
384 | | fgrep -v "${libruby_soname}" \ |
| 385 | > "${T}"/ruby-ng-${_ruby_implementation}-mislink.log |
385 | > "${T}"/ruby-ng-${_ruby_implementation}-mislink.log |
| 386 | |
386 | |
| 387 | if [[ -s "${T}"/ruby-ng-${_ruby_implementation}-mislink.log ]]; then |
387 | if [[ -s "${T}"/ruby-ng-${_ruby_implementation}-mislink.log ]]; then |
| 388 | ewarn "Extensions installed for ${_ruby_implementation} with missing links to ${libruby}" |
388 | ewarn "Extensions installed for ${_ruby_implementation} with missing links to ${libruby}" |