Ticket #18786: devel--caml-ansicolor.patch

File devel--caml-ansicolor.patch, 1.6 KB (added by Damien.Pollet@…, 15 years ago)
  • devel/caml-ansicolor/Portfile

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/caml-ansicolor/Portfile devel/caml-ansicolor/Portfile
    old new  
     1# $Id$
     2
     3PortSystem          1.0
     4
     5name                caml-ansicolor
     6version             0.3
     7categories          devel ml
     8maintainers         anil@recoil.org openmaintainer
     9description         OCaml bindings for ANSI colors and cursor movements
     10long_description    ${description}
     11
     12homepage            http://math.umh.ac.be/an/software.php
     13platforms           darwin
     14master_sites        http://w3.umh.ac.be/pub/ftp_san/
     15
     16distname            ANSITerminal-${version}
     17use_bzip2           yes
     18
     19depends_lib         port:ocaml \
     20                    port:caml-findlib
     21
     22checksums           md5     33efee4b57658ee07b6c17411bab7c66 \
     23                    sha1    83686fb5a572ce6c395b2cedcdf82dd9c506d3bb \
     24                    rmd160  381dac33989cd20945c8023c54ea3931cb49bbc6
     25
     26use_configure       no
     27build.target        all doc
     28
     29pre-destroot {
     30    set ocaml_site_path [exec ocamlfind printconf destdir]
     31    file mkdir ${destroot}/${ocaml_site_path}
     32    file mkdir ${destroot}/${ocaml_site_path}/stublibs
     33}
     34
     35post-destroot {
     36    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
     37    eval xinstall -m 644 [glob ${worksrcpath}/ANSITerminal.html/*.html] \
     38        ${destroot}/${prefix}/share/doc/${name}
     39}
     40