Commit 169d315a authored by Gangstead's avatar Gangstead Committed by GitHub

Merge pull request #1635 from uberhacker/add-yajl-package

Add yajl package
parents 656f14b1 08b2c5f3
require 'package'
class Yajl < Package
description 'A fast streaming JSON parsing library in C.'
homepage 'http://lloyd.github.io/yajl/'
version '2.1.0'
source_url 'https://github.com/lloyd/yajl/archive/2.1.0.tar.gz'
source_sha256 '3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a'
binary_url ({
})
binary_sha256 ({
})
depends_on 'cmake' => :build
def self.build
Dir.mkdir 'build'
Dir.chdir 'build' do
system "cmake .. -DPREFIX=#{CREW_PREFIX} -DCMAKE_INSTALL_LIBDIR=#{CREW_DEST_LIB_PREFIX}"
system "make"
end
end
def self.install
Dir.chdir 'build' do
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
end
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