Ticket #9817: Portfile

File Portfile, 2.2 KB (added by bfulgham@…, 18 years ago)

Portfile for FScript 1.3.3

Line 
1# $Id: Portfile,v 1.2 2005/04/08 21:38:38 waqar Exp $
2
3PortSystem 1.0
4name            FScript
5version         1.3.3
6categories      aqua lang
7maintainers     bfulgham@mac.com
8description     Open-source interactive Cocoa scripting environment
9long_description        \
10        F-Script is an open-source interactive and scripting environment \
11        for Cocoa.  Based on Smalltalk, F-Script provides a pure object- \
12        oriented environment that leverages Mac OS X technologies and \
13        frameworks.  It aims to be a useful and fun tool for both \
14        beginners and experts, allowing interactively exploring, testing \
15        and using Cocoa-based objects and frameworks.
16
17homepage        http://www.fscript.org
18platforms       macosx
19master_sites    http://www.fscript.org/download
20distfiles       FScriptSources-20060604.tar.gz
21checksums       md5 1dedf4f720567caf4a2cbfbccb6a2d41
22
23worksrcdir      FScriptSources-20060604/FScript
24use_configure   no
25
26set pkgname     F-Script
27
28build.type      pbx
29build.target    -target ${pkgname} -target FScriptFramework -target FScriptPalette \
30                -target FSTest1 -target FSTest2 -target TigerAndLaterOnly \
31                -configuration Deployment
32build.args      build -project FScript.xcodeproj
33
34set xcodebuilddir       build
35platform darwin 8       {
36        if {$xcodeversion == "2.1"} {
37                set xcodebuilddir       build/Deployment
38        }
39}
40
41destroot        {
42        # Applications
43        xinstall -d -m 755 ${destroot}/Applications/DarwinPorts/F-Script
44        file copy ${build.dir}/${xcodebuilddir}/${pkgname}.app \
45                ${destroot}/Applications/DarwinPorts/F-Script/${pkgname}.app
46        file copy ${build.dir}/${xcodebuilddir}/FSTest1.app \
47                ${destroot}/Applications/DarwinPorts/F-Script/FSTest1.app
48        file copy ${build.dir}/${xcodebuilddir}/FSTest2.app \
49                ${destroot}/Applications/DarwinPorts/F-Script/FSTest2.app
50
51        # Frameworks
52        xinstall -d -m 755 ${destroot}${prefix}/Library/Frameworks/
53        file copy ${build.dir}/${xcodebuilddir}/${name}.framework \
54                ${destroot}${prefix}/Library/Frameworks/
55        xinstall -d -m 755 ${destroot}/Developer/Palettes/
56        file copy ${build.dir}/${xcodebuilddir}/${name}Palette.palette \
57                ${destroot}/Applications/DarwinPorts/F-Script/${name}Palette.palette
58}
59
60post-activate   {
61        # Link to where X-Code can find it
62        system "ln -sf /Applications/DarwinPorts/F-Script/${name}Palette.palette /Developer/Palettes/${name}Palette.palette"
63}