Ticket #11934: gettext-0.16.1_1.diff
File gettext-0.16.1_1.diff, 2.3 KB (added by n.oxyde@…, 18 years ago) |
---|
-
devel/gettext/Portfile
old new 4 4 5 5 name gettext 6 6 version 0.16.1 7 revision 1 7 8 categories devel 8 9 maintainers ryandesign@macports.org 9 10 homepage http://www.gnu.org/software/gettext/ … … 37 38 configure.cppflags \ 38 39 -no-cpp-precomp 39 40 41 set docdir ${prefix}/share/doc/${name}-${version} 42 40 43 configure.args \ 41 --mandir=${prefix}/share/man\42 --infodir=${prefix}/share/info\44 --docdir=${docdir} \ 45 --htmldir=${docdir}/html \ 43 46 --disable-csharp \ 47 --disable-nls \ 48 --without-emacs \ 49 --disable-java 44 50 45 51 depends_lib \ 46 52 port:libiconv \ … … 49 55 test.run yes 50 56 test.target check 51 57 52 platform darwin 6 {53 depends_lib-append \54 lib:libdl:dlcompat55 }56 57 58 post-destroot { 58 59 delete ${destroot}${prefix}/lib/charset.alias \ 59 60 ${destroot}${prefix}/share/locale/locale.alias 61 62 xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README THANKS \ 63 ${destroot}${docdir} 64 65 cd ${destroot}${docdir} 66 67 eval file rename [glob *.html] html 68 69 if {! [variant_isset doc]} { 70 delete examples html 71 } else { 72 if {! [variant_isset java]} { 73 eval delete [glob html/javadoc*] 74 } 75 76 if {! ([variant_isset mono] || [variant_isset pnet])} { 77 delete html/csharpdoc 78 } 79 } 80 } 81 82 variant emacs { 83 configure.args-delete --disable-emacs 84 depends_run-append path:/opt/local/bin/emacs:emacs 85 } 86 87 variant mono { 88 configure.args-delete --disable-csharp 89 configure.args-append --enable-csharp=mono 90 91 depends_lib-append port:mono 92 } 93 94 variant pnet conflicts mono { 95 configure.args-delete --disable-csharp 96 configure.args-append --enable-csharp=pnet 97 98 depends_lib-append port:pnet 60 99 } 61 100 101 variant nls { 102 configure.args-delete --disable-nls 103 } 104 105 variant java { 106 configure.args-delete --disable-java 107 } 108 109 variant doc {} 110 62 111 livecheck.check regex 63 112 livecheck.url http://ftp.gnu.org/gnu/${name}/?M=D 64 113 livecheck.regex ${name}-(\\d+\\.\\d+(?:\\.\\d+)?)