Ticket #38306: Portfile.diff

File Portfile.diff, 2.0 KB (added by cooljeanius (Eric Gallager), 12 years ago)

diff between old portfile and new one

  • /opt/local/var/macports/sources/LocalPorts/sysutils/osxbom/Portfile

    old new  
    44PortSystem          1.0
    55
    66name                osxbom
    7 version             0.0.3
    87categories          sysutils
    98maintainers         gwmail.gwu.edu:egall openmaintainer
    109platforms           darwin
     
    1413long_description    ${description}. Used by the PureDarwin project to work with MacPorts \
    1514                    binary packages.
    1615homepage            https://cauldrondevelopment.com/svn/${name}/trunk/
     16variant universal {}
    1717
    1818livecheck.type      none
    1919
    2020fetch.type          svn
    2121svn.url             ${homepage}
    2222svn.revision        3
     23version             0.0.${svn.revision}
    2324
    2425worksrcdir          trunk
    2526
    2627use_configure       no
    2728
    28 destroot {
    29     xinstall ${worksrcpath}/lsbom ${destroot}${prefix}/bin/${name}
    30     xinstall -d ${destroot}${prefix}/include/${name}
    31     xinstall ${worksrcpath}/bom.h ${destroot}${prefix}/include/${name}
     29set CFLAGS         "${configure.cflags} [get_canonical_archflags cc]"
     30
     31build.env-append    CC=${configure.cc} \
     32                    CXX=${configure.cxx} \
     33                    CPP=${configure.cpp}
     34
     35pre-build {
     36    reinplace "s|-Werror|${CFLAGS}|" ${worksrcpath}/Makefile
    3237}
    3338
    34 variant no_rename description {Don't rename the files installed. Warning: This variant shadows the system lsbom.} {
    35     destroot {
     39destroot {
    3640        xinstall ${worksrcpath}/lsbom ${destroot}${prefix}/bin
    3741        xinstall ${worksrcpath}/bom.h ${destroot}${prefix}/include
     42}
     43
     44variant rename description {Prevent osxbom from shadowing the system lsbom} {
     45    destroot {
     46        xinstall ${worksrcpath}/lsbom ${destroot}${prefix}/bin/${name}
     47        xinstall -d ${destroot}${prefix}/include/${name}
     48        xinstall ${worksrcpath}/bom.h ${destroot}${prefix}/include/${name}
    3849    }
    3950}
     51
     52default_variants    +rename