/
Portfile.tpl
55 lines (39 loc) · 1.47 KB
/
Portfile.tpl
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
# -*- 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
# [JRELEASER_VERSION]
PortSystem 1.0
PortGroup java 1.0
name {{macportsPackageName}}
version {{projectVersion}}
revision {{macportsRevision}}
categories {{macportsCategories}}
license {{projectLicense}}
maintainers {{macportsMaintainers}}
platforms darwin
supported_archs noarch
description {{projectDescription}}
long_description {{projectLongDescription}}
homepage {{projectWebsite}}
master_sites {{macportsDistributionUrl}}
distname {{macportsDistname}}
use_zip yes
checksums rmd160 {{distributionChecksumRmd160}} \
sha256 {{distributionChecksumSha256}} \
size {{distributionSize}}
java.version {{macportsJavaVersion}}
use_configure no
build {}
destroot {
set target ${destroot}${prefix}/share/java/${name}
# Create the target java directory
xinstall -m 755 -d ${target}
# Copy over the needed elements of our directory tree
foreach d { bin lib } {
copy ${worksrcpath}/${d} ${target}
}
# Remove extraneous files
foreach f [glob -directory ${target}/bin *.{{distributionExecutableExtension}}] {
delete ${f}
}
ln -s ../share/java/${name}/bin/{{distributionExecutable}} ${destroot}${prefix}/bin/{{distributionExecutable}}
}
livecheck.type none