aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fourstore.rb
blob: c6944b115f19255b41ad88abae5230e5a285a640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require 'formula'

class Fourstore < Formula
  homepage 'http://4store.org/'
  url 'http://4store.org/download/4store-v1.1.5.tar.gz'
  sha1 '32ef328f846b5585e040ae587c6429d44b070d9a'

  depends_on 'pkg-config' => :build
  depends_on 'glib'
  depends_on 'raptor'
  depends_on 'rasqal'
  depends_on 'pcre'

  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