# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 123275 2014-08-07 20:23:57Z mf2k@macports.org $ PortSystem 1.0 PortGroup github 1.0 epoch 20111014 github.setup mochi mochiweb 2.7.0 v categories erlang www license MIT platforms darwin maintainers nomaintainer supported_archs noarch description MochiWeb is an Erlang library for building lightweight HTTP servers. long_description \ ${description} depends_lib port:erlang checksums rmd160 deffa504702f58ecb9dd0de2149d50b374356bde \ sha256 4f76cbc1bb81ed1f99e6993589568bb9711584de48c679d9f967975e0dcd7d7c use_configure no build.target-append edoc set libdir ${prefix}/lib/erlang/lib/${name} destroot { xinstall -d ${destroot}${libdir} copy ${worksrcpath}/ebin ${destroot}${libdir}/ebin copy ${worksrcpath}/scripts ${destroot}${libdir}/scripts copy ${worksrcpath}/src ${destroot}${libdir}/src set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} CHANGES.md LICENSE README ${destroot}${docdir} copy ${worksrcpath}/doc ${destroot}${docdir}/html xinstall -m 644 ${filespath}/README.MacPorts ${destroot}${docdir} reinplace s:@PREFIX@:${prefix}: ${destroot}${docdir}/README.MacPorts } test.run yes