Ticket #13303: swig-1.3.31_1.diff
File swig-1.3.31_1.diff, 2.7 KB (added by nox@…, 17 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 name swig 5 5 version 1.3.31 6 revision 1 6 7 categories devel 7 8 maintainers kevin@macports.org jwa 8 9 … … 21 22 homepage http://www.swig.org/ 22 23 platforms darwin 23 24 master_sites sourceforge 24 checksums sha1 3369543fa178bdeaa597dba806be04b9c8d0f12c25 25 26 depends_build bin:bison:bison 26 checksums md5 4a0bae63e3713e89b26db7209b6a7e05 \ 27 sha1 3369543fa178bdeaa597dba806be04b9c8d0f12c \ 28 rmd160 7f2c8edec5875bd21138bb00070f214d14ed1894 29 30 depends_build bin:bison:bison \ 31 port:gsed 32 33 post-patch { 34 # The configure script should use GNU sed 35 reinplace "s/\[\[:<:\]\]sed\[\[:>:\]\]/gsed/g" ${worksrcpath}/configure 36 } 37 38 configure.args --without-csharp 39 27 40 build.target 28 41 42 set languages {typemaps tcl} 43 set docdir ${prefix}/share/doc/${name}-${version} 44 45 test.run yes 46 test.target check 47 48 pre-destroot { 49 # This must be evaluated after variants selection. 50 destroot.args lib-languages="[join ${languages}]" 51 } 52 53 post-destroot { 54 xinstall -d ${destroot}${docdir} 55 xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES FUTURE LICENSE NEW README \ 56 TODO ${destroot}${docdir} 57 } 58 29 59 platform darwin 8 { 30 60 configure.compiler gcc-4.0 31 61 } 32 62 63 variant doc description {Install extra documentation} { 64 post-destroot { 65 xinstall -d ${destroot}${docdir}/html 66 eval xinstall -m 0644 [glob ${worksrcpath}/Doc/Manual/*.{css,html,pdf,png}] \ 67 ${destroot}${docdir}/html 68 } 69 } 70 71 set bindings { 72 python python25 python=${prefix}/bin/python2.5 73 perl perl5.8 perl5 74 gcj gcj34 gcj 75 guile guile guile 76 mzscheme mzscheme mzscheme 77 ruby ruby ruby 78 php4 php4 php4 79 ocaml ocaml ocaml 80 pike pike pike 81 lua lua lua 82 chicken chicken chicken 83 allegro allegro allegrocl 84 clisp clisp clisp 85 r R r 86 } 87 88 foreach {variant port arg} ${bindings} { 89 set arg_name [lindex [split ${arg} =] 0] 90 91 configure.args-append --without-${arg_name} 92 93 eval [subst { 94 variant ${variant} { 95 configure.args-delete --without-${arg_name} 96 configure.args-append --with-${arg} 97 98 depends_build-append port:${port} 99 depends_run-append port:${port} 100 101 lappend languages ${arg_name} 102 } 103 }] 104 } 105 33 106 livecheck.check sourceforge 34 107 livecheck.regex <title>${name} ${name}-(.*) released.*</title> 108