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 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup app 1.0 |
---|
5 | |
---|
6 | name testpgapp |
---|
7 | version 0.1.0 |
---|
8 | license MIT |
---|
9 | maintainers nomaintainer |
---|
10 | |
---|
11 | homepage https://www.macports.org |
---|
12 | description test |
---|
13 | long_description test test |
---|
14 | |
---|
15 | checksum.skip yes |
---|
16 | |
---|
17 | fetch {} |
---|
18 | extract {} |
---|
19 | use_configure no |
---|
20 | build {} |
---|
21 | destroot { |
---|
22 | set fp [open ${destroot}${prefix}/bin/${name} w] |
---|
23 | puts $fp "#!/bin/sh" |
---|
24 | puts $fp "echo This is a test" |
---|
25 | close $fp |
---|
26 | } |
---|
27 | |
---|
28 | #set foo AppName With Spaces |
---|
29 | #set foo "AppName With Spaces" |
---|
30 | #set foo {AppName With Spaces} |
---|
31 | |
---|
32 | #app.name $foo |
---|
33 | #app.name "$foo" |
---|
34 | #app.name {$foo} |
---|
35 | |
---|
36 | #app.name "AppName With Spaces" |
---|
37 | #app.name {AppName With Spaces} |
---|
38 | |
---|
39 | # As pointed out by @ryandesign in |
---|
40 | # https://trac.macports.org/ticket/64326#comment:1, |
---|
41 | # this one works! |
---|
42 | app.name AppName With Spaces |
---|