source: trunk/dports/lang/objc/Portfile

Last change on this file was 57375, checked in by ryandesign@…, 8 years ago

Change deprecated livecheck.check to livecheck.type
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    objc
6version                 3.2.8
7categories              lang
8platforms               darwin
9maintainers             mww
10description             The Portable Object Compiler is an Objective-C compiler
11long_description        \
12        This is an independent implementation of Objective C - independent of \
13        Stepstone\'s, NeXT's, GNU\'s (Free Software Foundation) or SunSoft\'s \
14        Objective C implementation. Like the GNU compiler, the "objc" grammar \
15        is written in YACC. The lexical ananlyzer is written in LEX, and the \
16        compiler itself in the Bourne shell and in Objective C. (the optional \
17        Objective C link editor is written in AWK).
18
19homepage                http://users.pandora.be/stes/compiler.html
20master_sites            http://users.pandora.be/stes/
21checksums               sha1 b315a9d68e975a5751b28b48bd44468df26509a1
22distfiles               objc-${version}.tar.gz objc-bootstrap-${version}.tar.gz
23checksums               objc-${version}.tar.gz sha1 b315a9d68e975a5751b28b48bd44468df26509a1 \
24                        objc-bootstrap-${version}.tar.gz sha1 07558d72d314c14d66f3817297944db7512a1790
25patchfiles              patch-src-cakit-intmodp.m
26
27depends_lib             port:byacc
28
29set cc  /usr/bin/gcc
30platform darwin 8 {
31        set cc                  /usr/bin/gcc-4.0
32}
33
34pre-configure {
35        # bootstrap
36        file mkdir ${workpath}/bootstrap
37        system "cd ${workpath}/objc-bootstrap-${version} && \
38                CC=${cc} ./configure --prefix=${workpath}/bootstrap && \
39                make && \
40                make install"
41}
42
43configure.env   PATH=${workpath}/bootstrap/bin:$env(PATH)
44configure.args  --build=i386-apple-freebsd
45
46build.env       PATH=${workpath}/bootstrap/bin:$env(PATH)
47build.target
48
49destroot.destdir        INSTALLDIR=${destroot}${prefix}
50post-destroot {
51        file delete -force ${destroot}${prefix}/share/man
52        file rename ${destroot}${prefix}/man ${destroot}${prefix}/share/man
53}
54
55livecheck.type  regex
56livecheck.url   ${homepage}
57livecheck.regex objc-(\[0-9.\]+)\\.tar\\.gz
58
Note: See TracBrowser for help on using the repository browser.