Skip to content

Commit

Permalink
ruby-ng.eclass: remove 2-arg calling of depend methods in EAPI 7
Browse files Browse the repository at this point in the history
No longer allow the deprecated 2 argument calls to the ruby*depend
methods in EAPI 7. These are already deprecated for a long time.

Signed-off-by: Hans de Graaff <[email protected]>
  • Loading branch information
graaff committed Jul 25, 2019
1 parent e47f327 commit 1b3ea30
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions eclass/ruby-ng.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,16 @@ ruby_add_rdepend() {
case $# in
1) ;;
2)
[[ "${GENTOO_DEV}" == "yes" ]] && eqawarn "You can now use the usual syntax in ruby_add_rdepend for $CATEGORY/$PF"
ruby_add_rdepend "$(_ruby_wrap_conditions "$1" "$2")"
return
case ${EAPI} in
4|5|6)
[[ "${GENTOO_DEV}" == "yes" ]] && eqawarn "You can now use the usual syntax in ruby_add_rdepend for $CATEGORY/$PF"
ruby_add_rdepend "$(_ruby_wrap_conditions "$1" "$2")"
return
;;
*)
die "Use the usual depend syntax with a single argument in ruby_add_rdepend"
;;
esac
;;
*)
die "bad number of arguments to $0"
Expand Down Expand Up @@ -243,9 +250,16 @@ ruby_add_bdepend() {
case $# in
1) ;;
2)
[[ "${GENTOO_DEV}" == "yes" ]] && eqawarn "You can now use the usual syntax in ruby_add_bdepend for $CATEGORY/$PF"
ruby_add_bdepend "$(_ruby_wrap_conditions "$1" "$2")"
return
case ${EAPI} in
4|5|6)
[[ "${GENTOO_DEV}" == "yes" ]] && eqawarn "You can now use the usual syntax in ruby_add_bdepend for $CATEGORY/$PF"
ruby_add_bdepend "$(_ruby_wrap_conditions "$1" "$2")"
return
;;
*)
die "Use the usual depend syntax with a single argument in ruby_add_bdepend"
;;
esac
;;
*)
die "bad number of arguments to $0"
Expand Down

0 comments on commit 1b3ea30

Please sign in to comment.