Ticket #64326: Portfile

File Portfile, 982 bytes (added by jasonliu-- (Jason Liu), 3 years ago)

I'm attaching a simple mock-up Portfile that I've been using, for ease of testing. Simply place it inside of a "testpgapp" directory, which can be created inside any of the categories folders.

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           app 1.0
5
6name                testpgapp
7version             0.1.0
8license             MIT
9maintainers         nomaintainer
10
11homepage            https://www.macports.org
12description         test
13long_description    test test
14
15checksum.skip yes
16
17fetch {}
18extract {}
19use_configure no
20build {}
21destroot {
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!
42app.name    AppName With Spaces