libuv.rb 1.38 KB
Newer Older
Casey Strouse's avatar
Casey Strouse committed
1 2 3
require 'package'

class Libuv < Package
4 5
  description 'libuv is a multi-platform support library with a focus on asynchronous I/O.'
  homepage 'http://libuv.org/'
Ed Reel's avatar
Ed Reel committed
6 7 8
  version '1.19.2'
  source_url 'https://dist.libuv.org/dist/v1.19.2/libuv-v1.19.2.tar.gz'
  source_sha256 '7cbcf2017e7116cf9da8ec1c6a146d578536b1e479458438873c991f984a53d7'
9

10
  binary_url ({
Ed Reel's avatar
Ed Reel committed
11 12 13 14
    aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.19.2-chromeos-armv7l.tar.xz',
     armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.19.2-chromeos-armv7l.tar.xz',
       i686: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.19.2-chromeos-i686.tar.xz',
     x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.19.2-chromeos-x86_64.tar.xz',
15 16
  })
  binary_sha256 ({
Ed Reel's avatar
Ed Reel committed
17 18 19 20
    aarch64: '5bfbdbf3ff78d210edc9517bfeacc021fdc53e916e7f34290cda08098e4ee12c',
     armv7l: '5bfbdbf3ff78d210edc9517bfeacc021fdc53e916e7f34290cda08098e4ee12c',
       i686: '5a8d532be1c828835f7237dd20e722eda12c0717a4f01847f1cad374fc3781cb',
     x86_64: 'ac00cf539fcdf67bb88ff6994d41672578e9e4dd93a26e0b11bd7ffb850ccd37',
21 22
  })

23
  depends_on 'automake'
Casey Strouse's avatar
Casey Strouse committed
24
  depends_on 'glibc'
25
  depends_on 'libtool'
Casey Strouse's avatar
Casey Strouse committed
26 27 28

  def self.build
    system './autogen.sh'
29 30 31
    system './configure',
      "--prefix=#{CREW_PREFIX}",
      "--libdir=#{CREW_LIB_PREFIX}"
Casey Strouse's avatar
Casey Strouse committed
32 33 34 35
    system 'make'
  end

  def self.install
36
    system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
Casey Strouse's avatar
Casey Strouse committed
37 38
  end
end