libsbol 2.3.0.0
Closes #24102. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
dbe88160f6
commit
970fb4358e
1 changed files with 46 additions and 0 deletions
46
Formula/libsbol.rb
Normal file
46
Formula/libsbol.rb
Normal file
|
@ -0,0 +1,46 @@
|
|||
class Libsbol < Formula
|
||||
desc "Read and write files in the Synthetic Biology Open Language (SBOL)"
|
||||
homepage "https://synbiodex.github.io/libSBOL"
|
||||
url "https://github.com/SynBioDex/libSBOL/archive/v2.3.0.0.tar.gz"
|
||||
sha256 "a8092390b5df1d3dc8df7b403ec4757c55039ccec40ca8088150e27a4a00c41b"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
sha256 "2bbc0a976c014dae9236840be15b957e018bebeeac3efc833fec96bcf06fcc83" => :sierra
|
||||
sha256 "9985b9c5c1620baf6d414e51aa618a3621c88abc0cee9796592cad2d2e9c4586" => :el_capitan
|
||||
sha256 "9532b17e32966ef97c6bb612a81ed58f2dde4bdee0d76836c1cc71ea468d78b5" => :yosemite
|
||||
end
|
||||
|
||||
depends_on "cmake" => :build
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "jsoncpp"
|
||||
depends_on "raptor"
|
||||
|
||||
def install
|
||||
system "cmake", ".", "-DCMAKE_CXX_FLAGS=-I/System/Library/Frameworks/Python.framework/Headers",
|
||||
"-DSBOL_BUILD_SHARED=TRUE",
|
||||
"-DSBOL_BUILD_STATIC=FALSE",
|
||||
*std_cmake_args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.cpp").write <<-EOS
|
||||
#include "sbol/sbol.h"
|
||||
|
||||
using namespace sbol;
|
||||
|
||||
int main() {
|
||||
Document& doc = *new Document();
|
||||
doc.write("test.xml");
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system ENV.cxx, "test.cpp", "-o", "test", "-std=c++11",
|
||||
"-I/System/Library/Frameworks/Python.framework/Headers",
|
||||
"-I#{Formula["raptor"].opt_include}/raptor2",
|
||||
"-I#{include}", "-L#{lib}", "-ljsoncpp", "-lcurl",
|
||||
"-lraptor2", "-lsbol"
|
||||
system "./test"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue