-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
64 lines (47 loc) · 2.12 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
# -*- 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 github 1.0
PortGroup java 1.0
PortGroup legacysupport 1.1
PortGroup compiler_blacklist_versions 1.0
github.setup indoorvivants sn-demangler 0.0.7 v
revision 0
github.tarball_from archive
checksums rmd160 266c559b6e1089cc34d94e21cec44a5cdf6f2013 \
sha256 66a9720ae6ce279abca0a6525c69a12ba5ae2b191bd7e74d65f4d3731a9db780 \
size 11280
categories devel
license Apache-2
maintainers {@catap korins.ky:kirill} openmaintainer
description Scala Native name demangler
long_description ${description}
# Required java version
java.version 1.8+
# LTS JDK port to install if required java not found
java.fallback openjdk11
use_configure no
# Scala-Native requires clang 6+ or apple's clang 8+
compiler.blacklist *gcc* {clang < 800} {macports-clang-3.[0-9]} {macports-clang-[4-5].0}
# needs MAP_ANONYMOUS, linkat and symlinkat
legacysupport.newest_darwin_requires_legacy 14
legacysupport.use_mp_libcxx yes
build.env-append SBT_OPTS=-Duser.home=${workpath}/.home \
CLANG_PATH=${configure.cc} \
CLANGPP_PATH=${configure.cxx}
build.cmd ${prefix}/bin/sbt
build.target buildNativeBinary
build.pre_args-prepend \
"'set (ThisBuild / nativeCompileOptions) := \"${configure.cppflags}\".split(\" \").toSeq'" \
"'set (ThisBuild / nativeLinkingOptions) := \"${configure.ldflags}\".split(\" \").toSeq'"
depends_build-append \
port:sbt
set sn_demangler_out ${worksrcpath}/modules/cli/target/native-3/sn-demangler-out
destroot {
set bindir ${destroot}${prefix}/bin
xinstall -m 0755 -d ${bindir}
xinstall -m 0755 ${sn_demangler_out} ${bindir}/${name}
}
test.run yes
test.cmd ${sn_demangler_out}
test.target -s
test.args {_SM36scala.scalanative.runtime.BoxedUnit\$G8instance}