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