Ticket #11934: gettext-0.16.1_1-2.diff
File gettext-0.16.1_1-2.diff, 1.9 KB (added by ryandesign (Ryan Carsten Schmidt), 17 years ago) |
---|
-
Portfile
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 \ 44 --docdir=${docdir} \ 45 --htmldir=${docdir}/html \ 41 46 --disable-csharp \ 47 --disable-nls \ 48 --without-emacs \ 49 --disable-java 42 50 43 51 depends_lib \ 44 52 port:libiconv \ … … 50 58 post-destroot { 51 59 delete ${destroot}${prefix}/lib/charset.alias \ 52 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 } 53 80 } 54 81 82 variant emacs { 83 depends_run-append \ 84 port:emacs 85 configure.args-delete \ 86 --disable-emacs 87 } 88 89 variant mono { 90 depends_lib-append \ 91 port:mono 92 configure.args-delete \ 93 --disable-csharp 94 configure.args-append \ 95 --enable-csharp=mono 96 } 97 98 variant pnet conflicts mono { 99 depends_lib-append \ 100 port:pnet 101 configure.args-delete \ 102 --disable-csharp 103 configure.args-append \ 104 --enable-csharp=pnet 105 } 106 107 variant nls { 108 configure.args-delete \ 109 --disable-nls 110 } 111 112 variant java { 113 configure.args-delete \ 114 --disable-java 115 } 116 117 variant doc {} 118 55 119 livecheck.check regex 56 120 livecheck.url http://ftp.gnu.org/gnu/${name}/?M=D 57 121 livecheck.regex ${name}-(\\d+\\.\\d+(?:\\.\\d+)?)