Ticket #37580: pdftk-2.01.diff

File pdftk-2.01.diff, 3.1 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)
  • Portfile

     
    44PortSystem              1.0
    55
    66name                    pdftk
    7 version                 1.44
     7version                 2.01
    88categories              textproc graphics pdf
    99maintainers             ryandesign
    1010platforms               darwin
     
    3535    Uncompress and Re-Compress Page Streams \
    3636    Repair Corrupted PDF (Where Possible)
    3737
    38 checksums               sha1    7cb137dcba885caff32ff96b7e11c9dc4ce2cba7 \
    39                         rmd160  cacd286759005f002f5a46c0af28d3a1aaad73eb
     38checksums               rmd160  df0d693d18c5996f031e050bb548f12150cd800b \
     39                        sha256  5784a3d937df778d2830e6015652456c67bbac28097a395ffadf16d4d300afd6
    4040
    4141distname                ${name}-${version}-src
    4242worksrcdir              ${name}-${version}-dist
     
    4444depends_lib \
    4545    port:libiconv
    4646
     47if {${os.platform} eq "darwin" && ${os.major} < 10} {
     48    pre-fetch {
     49        ui_error "Sorry, ${name} requires Mac OS X 10.6 or greater because"
     50        ui_error "gcj does not work correctly on Mac OS X 10.5 and earlier."
     51        return -code error "incompatible Mac OS X version"
     52    }
     53}
     54
    4755build.dir               ${worksrcpath}/${name}
    4856
    4957patchfiles              patch-Makefile.OSX-10.6.diff
     
    5462
    5563set versuff ""
    5664
    57 pre-configure {
    58     if {![file exists ${prefix}/bin/gcj${versuff}]} {
    59         return -code error "
    60 
    61 Cannot build ${name} because ${prefix}/bin/gcj${versuff}
    62 is missing, possibly because of this gcc bug:
    63 
    64 http://trac.macports.org/ticket/13553
    65 "
    66     }
    67 }
    68 
    6965pre-build {
    7066    build.args-append   VERSUFF=${versuff}
    7167}
     
    8177        ${destroot}${prefix}/share/man/man1
    8278}
    8379
    84 variant gcc42 conflicts gcc45 gcc47 description {Build using gcc42} {
    85     patchfiles-append   patch-gcj-4.2-and-older.diff
    86     configure.compiler  macports-gcc-4.2
    87     depends_build-append port:fastjar
    88     depends_lib-append  port:gcc42
    89     set versuff         -mp-4.2
    90 }
    91 
    92 variant gcc45 conflicts gcc42 gcc47 description {Build using gcc45} {
     80variant gcc45 conflicts gcc47 description {Build using gcc45} {
    9381    configure.compiler  macports-gcc-4.5
    9482    depends_lib-append  port:gcc45
    9583    set versuff         -mp-4.5
    9684}
    9785
    98 variant gcc47 conflicts gcc42 gcc45 description {Build using gcc47} {
     86variant gcc47 conflicts gcc45 description {Build using gcc47} {
    9987    configure.compiler  macports-gcc-4.7
    10088    depends_lib-append  port:gcc47
    10189    set versuff         -mp-4.7
    10290}
    10391
    104 if {![variant_isset gcc42] && ![variant_isset gcc45] && ![variant_isset gcc47]} {
    105     if {${os.platform} == "darwin"} {
    106         if {${os.major} < 10} {
    107             default_variants    +gcc42
    108         } elseif {${os.major} < 11} {
    109             default_variants    +gcc45
    110         } else {
    111             default_variants    +gcc47
    112         }
    113     } else {
    114         default_variants    +gcc45
    115     }
     92if {![variant_isset gcc45] && ![variant_isset gcc47]} {
     93    default_variants    +gcc47
    11694}
    11795
    11896livecheck.type          regex