Ticket #38485: Portfile

File Portfile, 2.1 KB (added by anatol (Anatol Pomozov), 12 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5
6name                rethinkdb
7version             1.4.0
8license             AGPL-3
9categories          databases
10maintainers         ??
11
12description         An open-source distributed database that has an intuitive query language, automatically parallelized queries, and simple administration.
13long_description    ${description}
14
15platforms           darwin
16
17homepage            http://www.rethinkdb.com/
18master_sites        http://download.rethinkdb.com/dist/
19extract.suffix          .tgz
20distname            rethinkdb-${version}
21
22checksums           rmd160  4b6a7ca9ac167848ba3b0877b9a94a8a92535440 \
23                    sha256  da40ac64a0eac9d6b76452bed4ab9189eaa960c143479d862170d564253fdc5a
24
25use_configure       yes
26worksrcdir          rethinkdb-${version}
27build.args                      DEBUG=0 ALLOW_WARNINGS=1 BUILD_DIR=build WEBRESDIR=${prefix}/share/rethinkdb/web
28build.target            build/rethinkdb web-assets
29
30depends_lib         port:boost \
31                    port:v8 \
32                    port:nodejs \
33                    port:protobuf-cpp \
34                    port:coffee-script
35
36destroot {
37        # correct permissions for files?
38        xinstall ${worksrcpath}/build/rethinkdb ${destroot}${prefix}/bin/
39        xinstall ${worksrcpath}/packaging/assets/man/rethinkdb.1 ${destroot}${prefix}/share/man/man1/
40        xinstall -d ${destroot}${prefix}/etc/rethinkdb/instances.d/
41        xinstall ${worksrcpath}/packaging/assets/config/default.conf.sample ${destroot}${prefix}/etc/rethinkdb/
42        xinstall -d ${destroot}${prefix}/etc/bash_completion.d/
43        xinstall ${worksrcpath}/packaging/assets/scripts/rethinkdb.bash ${destroot}${prefix}/etc/bash_completion.d/
44        xinstall -d ${destroot}${prefix}/share/rethinkdb/
45        move ${worksrcpath}/build/rethinkdb_web_assets/ ${destroot}${prefix}/share/rethinkdb/web/
46
47        xinstall -d ${destroot}${prefix}/var/lib/rethinkdb/
48
49        # startup script ?
50}
51
52livecheck.type      regex
53livecheck.url       ${master_sites}
54livecheck.regex     {rethinkdb-(\d+\.\d+\.\d+)\.tgz}