Commit 47f69db1 authored by Dan Trevino's avatar Dan Trevino

Dart version bump to current. Add arm7 architecture. Download from official...

Dart version bump to current.  Add arm7 architecture.  Download from official repositories. Fix directory install location issues
parent 8d5f31ea
require 'package' require 'package'
class Dart < Package class Dart < Package
version '1.22.0' description 'The Dart SDK is a set of tools and libraries for the Dart programming language. You can find information about Dart online at dartlang.org.'
homepage 'https://www.dartlang.org'
binary_url ({ version '1.24.2'
armv7l: "https://www.dropbox.com/s/3w9kvs3yross3lw/dart-1.22.0-arm.tgz", case ARCH
i686: "https://www.dropbox.com/s/p3ib8qx32j70qwi/dart-1.22.0-ia32.tgz", when 'i686'
x86_64: "https://www.dropbox.com/s/i8r0kzqd5r7iunz/dart-1.22.0-x64.tgz" source_url 'https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.2/sdk/dartsdk-linux-ia32-release.zip'
}) source_sha1 '24d132e12d7982ae0c7f41bf78e7e45aaae303cb'
binary_sha1 ({ when 'x86_64'
armv7l: "7d8d9cb9e92d72853eb7c536fd5af6183973958d", source_url 'https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.2/sdk/dartsdk-linux-x64-release.zip'
i686: "0dc1c5de8f0802ff64ba111d60432191d8e852de", source_sha1 'c2ff2a1c499b1dd3f8e547d7f012fabf46e06108'
x86_64: "472c6364d4afac21337fcd89c3001c04fa63bb4d" when 'armv7l'
}) source_url 'https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.2/sdk/dartsdk-linux-arm-release.zip'
end source_sha1 'c14d211981c405a754963941d3c8be6d0da22a8c'
when 'aarch64'
source_url 'https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.2/sdk/dartsdk-linux-arm64-release.zip'
source_sha1 'cf6b96eb5b88b1865bf357c2c9fd7ad8d64f763f'
else
abort 'Unable to install dart sdk. Architecture not supported.'.lightred
end
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local"
system "cp -r bin/ #{CREW_DEST_DIR}/usr/local"
system "cp -r lib/ #{CREW_DEST_DIR}/usr/local"
system "cp -r man/ #{CREW_DEST_DIR}/usr/local"
end
end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment