From 57ea16dd8c332cca76421eb89279a61cf58a3fd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 8 Jul 2010 04:00:57 +0000 Subject: [PATCH] Implement the merge of USE based dependencies as was listed in TODO. Please don't cry when you see the code. --- eclass/ruby-ng.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index 0be2cfe47107..7fd34b855b69 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.20 2010/05/24 07:33:35 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.21 2010/07/08 04:00:57 flameeyes Exp $ # # @ECLASS: ruby-ng.eclass # @MAINTAINER: @@ -119,9 +119,9 @@ _ruby_atoms_samelib_generic() { case "$token" in "||" | "(" | ")" | *"?") echo "${token}" ;; + *]) + echo "${token%[*}[RUBYTARGET,${token/*[}" ;; *) - # TODO we need to deal with merging USE-based - # dependencies echo "${token}[RUBYTARGET]" ;; esac done -- 2.26.2