Ticket #14071: mono-1.2.6.diff

File mono-1.2.6.diff, 3.3 KB (added by nox@…, 16 years ago)
  • Portfile

     
    33PortSystem 1.0
    44
    55name                    mono
    6 version                 1.2.5.2
     6version                 1.2.6
    77categories              devel lang mono
    88platforms               darwin
    99maintainers             mww
     
    1313                        including a C# compiler.
    1414
    1515homepage                http://www.go-mono.com/
    16 master_sites            http://go-mono.com/sources/mono/
    17 checksums               sha1 006a9e2e6a5abc09a01a9eb65af4b39a1f683701
     16master_sites    ${homepage}sources/${name}/
    1817use_bzip2               yes
    1918
    20 depends_build           port:pkgconfig port:bison port:gawk
     19checksums       md5 391f85b4f962269e044ceac2b5235310 \
     20                sha1 f51f2e14d05313dba4b2d3fd5a47a9a3361ebeae \
     21                rmd160 c6536b008cb73845943956c9ab365589a28c013c
     22
     23depends_build           port:pkgconfig port:gawk
    2124depends_lib             port:gettext port:glib2 port:icu \
    22                         port:libiconv port:zlib port:libgdiplus
     25                        port:libiconv port:zlib port:libgdiplus lib:libX11.6:XFree86
    2326
    2427patchfiles              patch-configure
    2528
    2629configure.env-append    ACLOCAL_FLAGS="-I ${prefix}/share/aclocal" \
    2730                        PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${x11prefix}/lib/pkgconfig" \
    28                         AWK="${prefix}/bin/gawk" \
    29                         BISON="${prefix}/bin/bison" \
    3031                        PKG_CONFIG="${prefix}/bin/pkg-config"
     32
    3133configure.args          --with-gc=included \
    3234                        --with-preview=yes \
    3335                        --without-sigaltstack \
    34                         --with-libgdiplus=${prefix} \
    35                         --mandir=${prefix}/share/man
     36                        --with-libgdiplus=${prefix}
    3637
    37 #destroot.env   DYLD_LIBRARY_PATH=${worksrcpath}/mono/mini/.libs:${worksrcpath}/mono/interpreter/.libs:${prefix}/lib:${x11prefix}/lib
    38 
    3938test.run                yes
    4039test.target             check
    4140
    4241livecheck.check regex
    43 livecheck.url   http://go-mono.com/sources-stable/
    44 livecheck.regex mono/mono-(\[0-9\.\]*)\.tar
     42livecheck.url   ${homepage}sources-stable/
     43livecheck.regex mono/mono-(\\d+(?:\\.\\d+)*)
    4544
     45post-patch {
     46    reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure
     47}
     48
    4649post-destroot {
    47         set doc ${worksrcpath}/docs
    48         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    49         file copy ${doc}/assembly-bundle ${doc}/embedded-api ${doc}/exceptions \
    50                 ${doc}/gc-issues ${doc}/jit-thoughts ${doc}/jit-trampolines \
    51                 ${doc}/object-layout ${doc}/stack-alignment \
    52                 ${doc}/unmanaged-calls ${worksrcpath}/AUTHORS \
    53                 ${worksrcpath}/COPYING.LIB ${worksrcpath}/ChangeLog \
    54                 ${worksrcpath}/NEWS ${worksrcpath}/README \
    55                 ${destroot}${prefix}/share/doc/${name}
     50    set docdir ${prefix}/share/doc/${name}-${version}
     51
     52        xinstall -d ${destroot}${docdir}
     53    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING.LIB ChangeLog NEWS README \
     54        ${destroot}${docdir}
     55
     56    xinstall -m 0644 -W ${worksrcpath}/docs assembly-bundle embedded-api exceptions \
     57        gc-issues jit-thoughts jit-trampolines object-layout stack-alignment unmanaged-calls \
     58        ${destroot}${docdir}
     59
     60    move ${destroot}${prefix}/share/jay ${destroot}${docdir}
     61
     62    set libgc_docdir ${prefix}/share/doc/ligbc-mono-6.6
     63
     64    eval move ${destroot}${prefix}/share/libgc-mono \
     65        ${destroot}${libgc_docdir}
     66
     67    xinstall -d ${destroot}${libgc_docdir}/html
     68
     69    eval move [glob ${destroot}${libgc_docdir}/*.html] \
     70        ${destroot}${libgc_docdir}/html
    5671}
    5772
    5873platform darwin 8 {
     
    6681        configure.cxxflags-append       -D_NONSTD_SOURCE
    6782        patchfiles-append patch-interp.h patch-stdio.c patch-sys-mman.c
    6883}
    69