File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ index d914537c..aae1d2fd 100644
2626+ # Fix makefile definitions for cross compile
2727+ if ENV['_TARGET_PLATFORM']
2828+ system("sed -i 's|^V =.*|V = 1|' Makefile")
29- + system("sed -i 's|^CFLAGS.*|CFLAGS = \$(CCDLFLAGS) $( VOID_TARGET_CFLAGS) \$(ARCH_FLAG)|' Makefile")
30- + system("sed -i 's|^topdir.*|topdir = $( XBPS_CROSS_BASE) /usr/include/ruby-\$(ruby_version)|' Makefile")
31- + system("sed -i 's|^hdrdir.*|hdrdir = $( XBPS_CROSS_BASE) /usr/include/ruby-\$(ruby_version)|' Makefile")
32- + system("sed -i 's|^arch_hdrdir.*|arch_hdrdir = $( XBPS_CROSS_BASE) /usr/include/ruby-\$(ruby_version)/\$(arch)|' Makefile")
33- + system("sed -i 's|^arch =.*|arch = $( _TARGET_PLATFORM) |' Makefile")
29+ + system("sed -i 's|^CFLAGS.*|CFLAGS = \$(CCDLFLAGS) #{ENV[' VOID_TARGET_CFLAGS']} \$(ARCH_FLAG)|' Makefile")
30+ + system("sed -i 's|^topdir.*|topdir = #{ENV[' XBPS_CROSS_BASE']} /usr/include/ruby-\$(ruby_version)|' Makefile")
31+ + system("sed -i 's|^hdrdir.*|hdrdir = #{ENV[' XBPS_CROSS_BASE']} /usr/include/ruby-\$(ruby_version)|' Makefile")
32+ + system("sed -i 's|^arch_hdrdir.*|arch_hdrdir = #{ENV[' XBPS_CROSS_BASE']} /usr/include/ruby-\$(ruby_version)/\$(arch)|' Makefile")
33+ + system("sed -i 's|^arch =.*|arch = #{ENV[' _TARGET_PLATFORM']} |' Makefile")
3434+ system("sed -i 's|^dldflags =.*|dldflags = $(LDFLAGS)|' Makefile")
35- + system("sed -i 's|^libdir =.*|libdir = $(exec_prefix)/lib$( XBPS_TARGET_WORDSIZE) |' Makefile")
35+ + system("sed -i 's|^libdir =.*|libdir = $(exec_prefix)/lib#{ENV[' XBPS_TARGET_WORDSIZE']} |' Makefile")
3636+ end
Original file line number Diff line number Diff line change @@ -123,14 +123,6 @@ python3-notmuch2_package() {
123123notmuch-ruby_package() {
124124 short_desc+=" - Ruby bindings"
125125 pkg_install() {
126- if [ "$CROSS_BUILD" ]; then
127- _TARGET_PLATFORM="$(ruby -r \
128- $(find ${XBPS_CROSS_BASE}/usr/lib/ruby -iname rbconfig.rb) \
129- -e 'puts RbConfig::CONFIG["arch"]' 2>/dev/null)"
130- VOID_TARGET_CFLAGS="$CFLAGS"
131- export _TARGET_PLATFORM XBPS_CROSS_BASE VOID_TARGET_CFLAGS \
132- XBPS_TARGET_WORDSIZE
133- fi
134126 make DESTDIR=${PKGDESTDIR} -C bindings/ruby install
135127 }
136128}
You can’t perform that action at this time.
0 commit comments