termux-packages/packages/ruby/android-sdk-level.patch

24 lines
870 B
Diff
Raw Normal View History

2021-12-28 14:53:44 +01:00
--- ruby-3.1.0/configure
+++ ruby-3.1.0.mod/configure
@@ -9234,13 +9234,19 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "${msg_result_yes}yes${msg_reset}" >&6 ; }
+case ${target_os} in #(
+ *android*) :
+ ;; #(
+ *) :
target_os=${target_os}-android
+ ;;
+esac
if test "x$cross_compiling" = xno; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Android API version" >&5
2021-02-09 15:49:36 +01:00
$as_echo_n "checking for Android API version... " >&6; }
2021-12-28 14:53:44 +01:00
# hacky workaround: https://github.com/termux/termux-packages/issues/6176
- rb_android_api=`getprop ro.build.version.sdk`
+ rb_android_api=24
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_android_api" >&5
2021-02-09 15:49:36 +01:00
colorize_result "$rb_android_api" ; }
2021-12-28 14:53:44 +01:00
# RUBY_APPEND_OPTIONS(CPPFLAGS)