New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14605: Portfile.diff

File Portfile.diff, 2.1 KB (added by marcuscalhounlopez@…, 5 years ago)
  • Portfile

    old new  
    1919patchfiles              patch-config-mkcommon.inc.in patch-libs__pdcore__pc_util.h \ 
    2020                        patch-libs_tiff_tiff.h.diff  
    2121 
    22 configure.args  --without-java --without-perl --without-py --without-tcl 
     22configure.args  --without-java --without-perl --without-py --without-tcl --without-ruby 
     23 
     24pre-destroot { 
     25        if {[variant_isset perl]} { 
     26                system "install -m 755 -d ${destroot}`${prefix}/bin/perl -e 'use Config; print \$Config{sitearchexp};' 2> /dev/null`" 
     27        } 
     28} 
    2329 
    2430post-destroot { 
    2531        xinstall -m 755 -d ${destroot}${prefix}/share/doc/ 
     
    3743        configure.args-append   --with-perl=${prefix}/bin/perl 
    3844} 
    3945 
    40 variant python { 
    41         depends_lib                             path:${prefix}/bin/python:python24 
     46variant python24 { 
     47        set pyversion           2.4 
     48        depends_lib-append                      port:python[strsed ${pyversion} {g/[.]//}] 
    4249        configure.args-delete   --without-py 
    43         configure.args-append   --with-py=${prefix} 
     50        configure.args-append   --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion} 
     51} 
     52 
     53variant python25 { 
     54        set pyversion           2.5 
     55        depends_lib-append                      port:python[strsed ${pyversion} {g/[.]//}] 
     56        configure.args-delete   --without-py 
     57        configure.args-append   --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion} 
    4458} 
    4559 
    4660variant tcl { 
    47         depends_lib                             path:${prefix}/bin/tclsh:tcl 
     61        depends_lib-append                      path:${prefix}/bin/tclsh:tcl 
    4862        configure.args-delete   --without-tcl 
    4963        configure.args-append   --with-tcl=${prefix}/bin/tclsh 
    5064} 
    5165 
     66variant ruby { 
     67        depends_lib-append                      port:ruby 
     68        pre-configure { 
     69                      set rubyIncl [file dirname [glob ${prefix}/lib/ruby/*/*/ruby.h]] 
     70                      configure.args-delete     --without-ruby 
     71                      configure.args-append     --with-ruby=${prefix} --with-rubyincl=${rubyIncl} 
     72        } 
     73} 
     74 
    5275platform darwin 8 { 
    5376        configure.cc    "/usr/bin/gcc-4.0 -DPDF_TARGET_API_MAC_CLASSIC" 
    5477        configure.cpp   "/usr/bin/cpp-4.0 -DPDF_TARGET_API_MAC_CLASSIC" 
    5578        configure.cxx   "/usr/bin/g++-4.0 -DPDF_TARGET_API_MAC_CLASSIC" 
    5679} 
    5780 
     81livecheck.check     regex 
     82livecheck.regex     "PDFlib Lite \(\[\\d\\.\]+\)"