aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fourstore.rb
diff options
context:
space:
mode:
authorAlex Morega2011-05-21 11:22:25 +0300
committerAdam Vandenberg2011-07-28 20:45:24 -0700
commit506efad4ae92b8fe6a3abadf1f2b0903fb6d719c (patch)
treec1d2a461181436747cbdd881704e44bef095636a /Library/Formula/fourstore.rb
parent358f78a10a1090c19477ff1474310c240645b89d (diff)
downloadhomebrew-506efad4ae92b8fe6a3abadf1f2b0903fb6d719c.tar.bz2
4store 1.1.3
Formula is named fourstore due to naming constraints, with a 4store alias. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/fourstore.rb')
-rw-r--r--Library/Formula/fourstore.rb36
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/Formula/fourstore.rb b/Library/Formula/fourstore.rb
new file mode 100644
index 000000000..385701932
--- /dev/null
+++ b/Library/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