source: trunk/dports/aqua/Smultron/Portfile @ 30685

Last change on this file since 30685 was 30685, checked in by jmpp@…, 12 years ago

Turn darwin [6-8] into placeholders platforms that aid in checking the platform we're on in a pre-fetch hook,
so that we can return -code error out of the Portfile when running on them, rather than caling exit which is
now forbidden.

Sorry for barging in Brent, but this was breaking the index and I had to jump in and fix it!

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 30685 2007-11-04 01:39:15Z jmpp@macports.org $
2
3PortSystem 1.0
4PortGroup xcode 1.0
5
6name                    Smultron
7version                 3.2
8categories              aqua editors
9platforms               darwin
10maintainers             bfulgham@macports.org
11homepage                http://smultron.sourceforge.net/
12description             Cocoa text editor with syntax colouring
13
14long_description        Smultron is an open-source text editor written in Cocoa \
15                        for Mac OS X Panther with many of the features that you \
16                        might need. It features easy selection of the opened documents, \
17                        line numbers, support for syntax colouring for many different \
18                        languages, support for text encodings, code snippets, a toolbar, \
19                        a status bar, HTML preview, multi-document find and replace with \
20                        regular expressions, possibility to show invisible characters, \
21                        authenticated saves, command-line utility, .Mac synchronisation \
22                        of preferences and many more features.
23                       
24                       
25master_sites            sourceforge:smultron
26checksums               md5 2afd00a50ccc1189912a6917ca1ef942
27
28use_zip                 yes
29distname                ${name}Source-${version}
30
31pre-fetch {
32    if {[variant_isset darwin_6] || [variant_isset darwin_7] || [variant_isset darwin_8]} {
33        return -code error "Smultron ${version} only builds on Mac OS X Leopard (10.5.x). Sorry."
34    }
35}
36
37use_configure           no
38
39platform darwin 6 { }
40platform darwin 7 { }
41platform darwin 8 { }
42
43platform darwin 9 {
44        if {$xcodeversion == "2.1"} {
45                set xcodebuilddir       build/Deployment
46        }
47}
48
49build.type              pbx
50build.dir               ${workpath}/${name}Source
51
52destroot        {
53        xinstall -m 755 -d ${destroot}/Applications/MacPorts
54        file copy ${workpath}/${name}Source/build/Release/Smultron.app \
55                ${destroot}/Applications/MacPorts
56}
57
58post-activate {
59        system "ln -sf /Applications/MacPorts/Smultron.app/Contents/Resources/smultron ${prefix}/bin/smultron"
60        system "ln -sf /Applications/MacPorts/Smultron.app/Contents/Resources/smultron.1 ${prefix}/share/man/man1/smultron.1"
61}
62
63# post-uninstall {
64#       file delete -force ${prefix}/bin/smultron
65#       file delete -force ${prefix}/bin/smultron.1
66#}
67
Note: See TracBrowser for help on using the repository browser.