Ticket #52730: Portfile

File Portfile, 2.1 KB (added by kjduling (Kevin Duling), 5 years ago)

New port file for databases/apache-geode for release 1.0.0

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: Portfile 149272 2016-06-08 18:50:14Z g5pw@macports.org $
3
4PortSystem 1.0
5
6name            apache-geode
7version         1.0.0-incubating
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/geode/${version}
24distname         apache-geode-${version}
25worksrcdir       ${distname}
26
27checksums        rmd160 7a53f6ac32fc60645730d906525b3dc35c5bc62a \
28                 sha256 246a6edea4376c18a0f54de3d4b87efcddf9d27118ddc64a945e6a5014812232
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.\]+)</