/
Portfile
83 lines (65 loc) · 2.81 KB
/
Portfile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -*- 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
PortSystem 1.0
PortGroup java 1.0
name gradle
version 7.2
revision 0
categories devel java groovy
license Apache-2
maintainers {amake @amake} openmaintainer
description An open-source build system that is based on the Groovy language
long_description Gradle is a build system which offers you ease, power and freedom. \
You can choose the balance for yourself. It has powerful multi-project build \
support. It has a layer on top of Ivy that provides a build-by-convention \
integration for Ivy. It gives you always the choice between the flexibility \
of Ant and the convenience of a build-by-convention behavior.
homepage https://gradle.org/
platforms darwin
supported_archs noarch
distname ${name}-${version}-bin
master_sites https://services.gradle.org/distributions
# Update checksums for variant when updating these!
checksums rmd160 1a4397819d88fa850889e7186617e2ff249dc40c \
sha256 f581709a9c35e9cb92e16f585d2c4bc99b2b1a5f85d2badbd3dc6bff59e1e6dd \
size 114352742
worksrcdir ${name}-${version}
use_zip yes
use_configure no
java.version 1.8+
java.fallback openjdk8
build {}
pre-destroot {
# Remove extraneous bat files
delete {*}[glob ${worksrcpath}/bin/*.bat]
}
destroot {
# Create the target java directory
xinstall -m 0755 -d ${destroot}${prefix}/share/java/${name}
# Copy over the needed elements of our directory tree
copy ${worksrcpath}/bin \
${worksrcpath}/lib \
${worksrcpath}/LICENSE \
${worksrcpath}/NOTICE \
${worksrcpath}/README \
${destroot}${prefix}/share/java/${name}
# Symlink gradle into the bin directory
ln -s ${prefix}/share/java/${name}/bin/gradle ${destroot}${prefix}/bin
}
variant all description {Install supplemental documentation and source code} {
distname ${name}-${version}-all
checksums rmd160 85ee5714cf87af608d6e29700da802ecd2585586 \
sha256 a8da5b02437a60819cad23e10fc7e9cf32bcb57029d9cb277e26eeff76ce014b \
size 157058280
post-destroot {
xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
copy ${worksrcpath}/src \
${worksrcpath}/docs \
${destroot}${prefix}/share/doc/${name}
}
}
notes {
For Bash and Zsh completion support, install port 'gradle-completion'.
}
livecheck.type regex
livecheck.url ${master_sites}
livecheck.regex ${name}-(\\d+\\.\\d+(\\.\\d+)?)-all\\.zip