Ticket #51432: Portfile

File Portfile, 2.1 KB (added by kjduling (Kevin Duling), 8 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            geode-devel
7version         1.0.0-incubating.M2
8
9categories      databases
10license         Apache-2
11maintainers     pivotal.io:kduling geode.incubator.apache.org:dev
12platforms       darwin
13supported_archs noarch
14
15description     In-memory Data Grid for fast transactional data processing
16long_description \
17                 Apache Geode (incubating) is a data management platform that provides \
18                 real-time, consistent access to data-intensive applications throughout \
19                 widely distributed cloud architectures.
20
21homepage         https://geode.apache.org/
22
23master_sites     apache:incubator/${name}/${version}
24distname         apache-${name}-${version}
25worksrcdir       ${distname}
26
27checksums        rmd160 bd160a3edd781b8da13b40d15e0fcf97cf4b95be \
28                 sha256 8447912c6d893008dd03917722d01abff4853861ce3f34c2bc95b60c51675cea
29
30use_configure    no
31
32# By default, use the binary
33build {
34}
35
36destroot {
37    set geodedir ${destroot}${prefix}/share/java/${name}
38
39    # Create the target java directory
40    xinstall -m 755 -d ${geodedir}
41
42    # Copy over the needed elements of our directory tree
43    file copy \
44        ${worksrcpath}/bin \
45        ${worksrcpath}/config \
46        ${worksrcpath}/javadoc \
47        ${worksrcpath}/lib \
48        ${worksrcpath}/tools \
49        ${geodedir}
50
51    # Reduce the permissions on the distribution files.
52    file attributes ${geodedir}/config -permissions 0755
53    foreach f [glob -directory ${geodedir}/config *.xml] {
54        file attributes $f -permissions 0644
55    }
56    foreach f [glob -directory ${geodedir}/lib *.jar] {
57        file attributes $f -permissions 0644
58    }
59
60    # Symlink gfsh into the bin directory
61    ln -s ../share/java/${name}/bin/gfsh ${destroot}${prefix}/bin/gfsh
62}
63
64notes \
65"Please refer to http://geode.incubator.apache.org/docs/"
66
67livecheck.type  regex
68livecheck.url   ${homepage}docs/history.html
69livecheck.regex >(3\\.\[0-9.\]+\\.\[0-9.\]+)</