Ticket #37580: pdftk-2.02.diff
File pdftk-2.02.diff, 3.0 KB (added by florian@…, 11 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name pdftk 7 version 1.447 version 2.02 8 8 categories textproc graphics pdf 9 9 maintainers ryandesign 10 10 platforms darwin … … 35 35 Uncompress and Re-Compress Page Streams \ 36 36 Repair Corrupted PDF (Where Possible) 37 37 38 checksums sha1 7cb137dcba885caff32ff96b7e11c9dc4ce2cba7 \ 39 rmd160 cacd286759005f002f5a46c0af28d3a1aaad73eb 38 checksums sha1 a4a27e984c5e1401cfa44b8e92a64113d7396a06 \ 39 rmd160 4d9e75abc4a966041bd0be7b1db13bb73819d2ae \ 40 md5 6534365fd6727724f288a556ede33faa 40 41 41 42 distname ${name}-${version}-src 42 43 worksrcdir ${name}-${version}-dist 43 44 44 depends_lib \ 45 port:libiconv 45 if {${os.platform} eq "darwin" && ${os.major} < 10} { 46 pre-fetch { 47 ui_error "Sorry, ${name} requires Mac OS X 10.6 or greater because" 48 ui_error "gcj does not work correctly on Mac OS X 10.5 and earlier." 49 return -code error "incompatible Mac OS X version" 50 } 51 } 46 52 47 53 build.dir ${worksrcpath}/${name} 48 54 … … 54 60 55 61 set versuff "" 56 62 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/1355365 "66 }67 }68 69 63 pre-build { 70 64 build.args-append VERSUFF=${versuff} 71 65 } … … 81 75 ${destroot}${prefix}/share/man/man1 82 76 } 83 77 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} { 78 variant gcc45 conflicts gcc47 description {Build using gcc45} { 93 79 configure.compiler macports-gcc-4.5 94 80 depends_lib-append port:gcc45 95 81 set versuff -mp-4.5 96 82 } 97 83 98 variant gcc47 conflicts gcc4 2 gcc45 description {Build using gcc47} {84 variant gcc47 conflicts gcc45 description {Build using gcc47} { 99 85 configure.compiler macports-gcc-4.7 100 86 depends_lib-append port:gcc47 101 87 set versuff -mp-4.7 102 88 } 103 89 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 } 90 if {![variant_isset gcc45] && ![variant_isset gcc47]} { 91 default_variants +gcc47 116 92 } 117 93 118 94 livecheck.type regex