From 28bc903871e60086c29b8cc20d27bb82d5d64a79 Mon Sep 17 00:00:00 2001 From: Alex Morega Date: Sat, 21 May 2011 11:22:25 +0300 Subject: [PATCH] 4store 1.1.3 Formula is named fourstore due to naming constraints, with a 4store alias. Signed-off-by: Adam Vandenberg --- Aliases/4store | 1 + Formula/fourstore.rb | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 120000 Aliases/4store create mode 100644 Formula/fourstore.rb diff --git a/Aliases/4store b/Aliases/4store new file mode 120000 index 00000000000..ba1951c65b6 --- /dev/null +++ b/Aliases/4store @@ -0,0 +1 @@ +../Formula/fourstore.rb \ No newline at end of file diff --git a/Formula/fourstore.rb b/Formula/fourstore.rb new file mode 100644 index 00000000000..38570193221 --- /dev/null +++ b/Formula/fourstore.rb @@ -0,0 +1,36 @@ +require 'formula' + +class Fourstore < Formula + url 'http://4store.org/download/4store-v1.1.3.tar.gz' + homepage 'http://4store.org/' + md5 'ed5015c95c97a424274f71e7918a9607' + + depends_on 'glib' + depends_on 'raptor' + depends_on 'rasqal' + + def install + system "./configure", "--prefix=#{prefix}", + "--with-storage-path=#{var}/fourstore", + "--sysconfdir=#{etc}/fourstore" + system "make install" + end + + def caveats; <<-EOS.undent + Databases will be created at #{var}/fourstore. + + Create and start up a database: + 4s-backend-setup mydb + 4s-backend mydb + + Load RDF data: + 4s-import mydb datafile.rdf + + Start up HTTP SPARQL server without daemonizing: + 4s-httpd -p 8000 -D mydb + + See http://4store.org/trac/wiki/Documentation for more information. + EOS + end + +end