Ticket #63917: Portfile

File Portfile, 2.2 KB (added by aalmiray (Andres Almiray), 3 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
3PortSystem       1.0
4PortGroup        java 1.0
5
6name             jreleaser
7version          0.8.0
8revision         0
9                 
10categories       devel java
11license          Apache-2
12maintainers      @aalmiray
13platforms        darwin
14supported_archs  noarch
15
16description      Release projects quickly and easily with JReleaser
17long_description JReleaser is a release automation tool. Its goal is to simplify creating releases \
18                 and publishing artifacts to multiple package managers while providing customizable options. \
19                 JReleaser takes inputs from popular builds tools (Ant, Maven, Gradle) such as JAR files, binary \
20                 distributions (.zip, .tar), JLink images, or any other file that youd like to publish as a Git \
21                 release on popular Git services such as Github or Gitlab. Distribution files can additionally be \
22                 published to be consumed by popular package managers as Homebrew, Snapcraft, or get ready to be \
23                 launched via JBang. Releases may be announced in a variety of channels such as Twitter, Zulip, or SDKMAN!
24homepage         https://jreleaser.org
25
26master_sites     https://github.com/jreleaser/jreleaser/releases/download/v${version}
27use_zip          yes
28
29checksums        rmd160 5c45d1a69f3649d9702ba07b3c61dd860d2dfcbb \
30                 sha256 be7d14d22d38e7a3fbd1a105f9d55d46afd773c9d8b0f983e6539692a042fca6 \
31                 size   22022685
32
33java.version     1.8.+
34
35use_configure    no
36
37build {}
38
39destroot {
40    set target ${destroot}${prefix}/share/java/${name}
41   
42    # Create the target java directory
43    xinstall -m 755 -d ${target}
44   
45    # Copy over the needed elements of our directory tree
46    foreach d { bin lib } {
47        copy ${worksrcpath}/${d} ${target}
48    }
49
50    # Remove extraneous bat files
51    foreach f [glob -directory ${target}/bin *.bat] {
52        delete ${f}
53    }
54   
55    ln -s ../share/java/${name}/bin/jreleaser ${destroot}${prefix}/bin/jreleaser
56}
57
58livecheck.type   regex
59livecheck.url    https://jreleaser.org/releases/latest/download/VERSION
60livecheck.regex  (\[0-9.\]+\\.\[0-9.\]+\\.\[0-9.\]+)