Ticket #38196: Portfile.diff

File Portfile.diff, 2.5 KB (added by cooljeanius (Eric Gallager), 10 years ago)

diff between my old Portfile and my new one

  • Portfile

    old new  
    1010platforms           darwin
    1111maintainers         gwmail.gwu.edu:egall openmaintainer
    1212license             LGPL-2.1+
    13 supported_archs     i386 x86_64
     13supported_archs     i386
    1414
    15 # doesn't accept multiple -arch flags
     15platform darwin > 10 {
     16    # x86_64 failed for me on darwin 10, but I had included it by default
     17    # when I wrote this Portfile at school, which had a newer OS, so I
     18    # assume that x86_64 must have worked on the newer OS...
     19    supported_archs-append x86_64
     20}
     21
     22# does NOT accept multiple -arch flags:
    1623universal_variant   no
    1724
    18 # it bootstraps itself, so it's necessary to have it built before other steps can continue
     25# it bootstraps itself, so it is necessary to have it built before
     26# other steps can continue:
    1927use_parallel_build  no
    2028
    2129description         ${name} is the Tiny C Compiler.
    2230
    23 long_description    ${name} is Fabrice Bellard's Tiny C Compiler. It provides \
    24                     C scripting everywhere and is the smallest ANSI C compiler. \
    25                    
     31long_description    ${name} is Fabrice Bellard's Tiny C Compiler. It \
     32                    provides C scripting everywhere and is the smallest \
     33                    ANSI C compiler.
     34
    2635homepage            http://bellard.org/${name}/
    2736master_sites        http://download.savannah.gnu.org/releases/tinycc
    2837use_bzip2           yes
     
    3140                    sha1    7110354d3637d0e05f43a006364c897248aed5d0 \
    3241                    sha256  521e701ae436c302545c3f973a9c9b7e2694769c71d9be10f70a2460705b6d71
    3342
    34 depends_build-append port:perl5 \
     43depends_build-append bin:perl:perl5 \
    3544                     port:texinfo
    3645
    3746# It was designed to be built with gcc
     47# (not sure which versions specifically though)
    3848compiler.whitelist-append gcc
    3949
     50# The following is a variant until there is a `depends_test`: https://trac.macports.org/ticket/38208
    4051variant tests description {Run the test suite} {
    4152    depends_build-append port:expect
    4253    test.run             yes
    4354    test.cmd             make
    4455    test.target          test
     56    test.env-append      CC=${worksrcpath}/tcc \
     57                         CPPFLAGS="-I${worksrcpath}/include" \
     58                         CPATH="-I${worksrcpath}/include"
     59    pre-test {
     60        # force use of copy that tcc has, required to pass testsuite:
     61        reinplace "s|<stdarg.h>|\"stdarg.h\"|g" ${worksrcpath}/include/tcclib.h
     62    }
    4563}
    4664
     65# regex is broken, FIXME:
     66livecheck.type       none