mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 19:02:57 +02:00
mruby: update to 3.4.0, fix cross, lint errors
This commit is contained in:
parent
6f380c4fd6
commit
1988ef4a12
1 changed files with 4 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'mruby'
|
||||
pkgname=mruby
|
||||
version=2.1.2
|
||||
version=3.4.0
|
||||
revision=1
|
||||
hostmakedepends="ruby"
|
||||
short_desc="Lightweight implementation of the Ruby language (Ruby 1.9)"
|
||||
|
@ -8,7 +8,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
|
|||
license="MIT"
|
||||
homepage="https://mruby.org/"
|
||||
distfiles="https://github.com/mruby/mruby/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
||||
checksum=4dc0017e36d15e81dc85953afb2a643ba2571574748db0d8ede002cefbba053b
|
||||
checksum=183711c7a26d932b5342e64860d16953f1cc6518d07b2c30a02937fb362563f8
|
||||
lib32disabled=yes
|
||||
|
||||
do_configure() {
|
||||
|
@ -65,14 +65,14 @@ do_configure() {
|
|||
cc.include_paths = ["#{root}/include"]
|
||||
cc.defines = %w()
|
||||
cc.option_include_path = '-I%s'
|
||||
cc.option_define = '-D%s'
|
||||
cc.option_define = '-D%s'
|
||||
cc.compile_options = "%{flags} -o %{outfile} -c %{infile}"
|
||||
end
|
||||
conf.linker do |linker|
|
||||
linker.command = ENV['CC'] || '${XBPS_CROSS_TRIPLET}-gcc'
|
||||
linker.flags = [ENV['LDFLAGS'] || %w()]
|
||||
linker.libraries = [ENV['LIBS'] || 'm']
|
||||
linker.library_paths = '${XBPS_CROSS_BASE}/usr/lib'
|
||||
linker.library_paths = ['${XBPS_CROSS_BASE}/usr/lib']
|
||||
end
|
||||
conf.archiver do |archiver|
|
||||
archiver.command = ENV['AR'] || '${XBPS_CROSS_TRIPLET}-ar'
|
||||
|
@ -84,11 +84,9 @@ do_configure() {
|
|||
|
||||
do_build() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
LDFLAGS_host=""
|
||||
echo "CFLAGS_host : $CFLAGS_host"
|
||||
echo "LDFLAGS_host : $LDFLAGS_host"
|
||||
else
|
||||
LDFLAGS=""
|
||||
CFLAGS_host="$CFLAGS"
|
||||
LDFLAGS_host="$LDFLAGS"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue