Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909529 - ruby-utils.eclass: Simplify _ruby_implementation_depend
Summary: ruby-utils.eclass: Simplify _ruby_implementation_depend
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-07-02 14:37 UTC by konsolebox
Modified: 2023-07-17 21:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Simplify _ruby_implementation_depend (ruby-utils.eclass.patch,1.18 KB, patch)
2023-07-02 14:37 UTC, konsolebox
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description konsolebox 2023-07-02 14:37:02 UTC
Created attachment 865013 [details, diff]
Simplify _ruby_implementation_depend

This simplifies condition blocks for ruby* to:

---
ruby1[89]|ruby2[0-7]|ruby3[0-2])
	rubypn="dev-lang/ruby"
	rubyslot=":${1:4:1}.${1:5}"
	;;
---

Please see attached patch file.
Comment 1 Hans de Graaff gentoo-dev Security 2023-07-04 06:18:40 UTC
Looks good to me.
Comment 2 Larry the Git Cow gentoo-dev 2023-07-17 21:18:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ba2e70baded5cbcabbfd03d7440d677cd955f23

commit 4ba2e70baded5cbcabbfd03d7440d677cd955f23
Author:     konsolebox <konsolebox@gmail.com>
AuthorDate: 2023-07-14 08:33:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-17 21:18:04 +0000

    ruby-utils.eclass: Simplify _ruby_implementation_depend
    
    Closes: https://bugs.gentoo.org/909529
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/ruby-utils.eclass | 52 ++----------------------------------------------
 1 file changed, 2 insertions(+), 50 deletions(-)