Support exact requirements in OpenBSD::PortGen::Ruby
Although I couldn't find a definitive guide to version specs, I did find an example showing this seems to be how RubyGems work. From Thomas L. <tom.longshine () web ! de>
This commit is contained in:
parent
0e33bdb13d
commit
aaf8c0f4be
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Ruby.pm,v 1.5 2019/05/11 19:36:27 afresh1 Exp $
|
||||
# $OpenBSD: Ruby.pm,v 1.6 2020/04/17 02:14:01 afresh1 Exp $
|
||||
#
|
||||
# Copyright (c) 2015 Giannis Tsaraias <tsg@openbsd.org>
|
||||
#
|
||||
@ -112,6 +112,9 @@ sub get_deps
|
||||
$req .= ",<$ver";
|
||||
}
|
||||
|
||||
# turn =6.0.2.2 into ==6.0.2.2
|
||||
$req =~ s/^=\b/==/;
|
||||
|
||||
$deps->add_run( $port . ',${MODRUBY_FLAVOR}', $req );
|
||||
|
||||
# gems only understand runtime and development deps
|
||||
|
Loading…
x
Reference in New Issue
Block a user