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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name apache-geode |
---|
7 | version 1.0.0-incubating |
---|
8 | |
---|
9 | categories databases |
---|
10 | license Apache-2 |
---|
11 | maintainers pivotal.io:kduling geode.incubator.apache.org:dev |
---|
12 | platforms darwin |
---|
13 | supported_archs noarch |
---|
14 | |
---|
15 | description In-memory Data Grid for fast transactional data processing |
---|
16 | long_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 | |
---|
21 | homepage https://geode.apache.org/ |
---|
22 | |
---|
23 | master_sites apache:incubator/geode/${version} |
---|
24 | distname apache-geode-${version} |
---|
25 | worksrcdir ${distname} |
---|
26 | |
---|
27 | checksums rmd160 7a53f6ac32fc60645730d906525b3dc35c5bc62a \ |
---|
28 | sha256 246a6edea4376c18a0f54de3d4b87efcddf9d27118ddc64a945e6a5014812232 |
---|
29 | |
---|
30 | use_configure no |
---|
31 | |
---|
32 | # By default, use the binary |
---|
33 | build { |
---|
34 | } |
---|
35 | |
---|
36 | destroot { |
---|
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 | |
---|
64 | notes \ |
---|
65 | "Please refer to http://geode.incubator.apache.org/docs/" |
---|
66 | |
---|
67 | livecheck.type regex |
---|
68 | livecheck.url ${homepage}docs/history.html |
---|
69 | livecheck.regex >(3\\.\[0-9.\]+\\.\[0-9.\]+)</ |
---|