source: trunk/dports/erlang/mochiweb/Portfile @ 97636

Last change on this file since 97636 was 97126, checked in by ryandesign@…, 8 years ago

mochiweb: update to 2.3.2; also install CHANGES.md

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# -*- 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
2# $Id: Portfile 97126 2012-08-27 22:28:15Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       github 1.0
6
7epoch           20111014
8github.setup    mochi mochiweb 2.3.2 v
9categories      erlang www
10license         MIT
11platforms       darwin
12maintainers     nomaintainer
13supported_archs noarch
14
15description     MochiWeb is an Erlang library for building lightweight HTTP servers.
16
17long_description \
18    ${description}
19
20depends_lib     port:erlang
21
22checksums       rmd160  867b293145fd02fd138dbfa8d18b59a4579c9c00 \
23                sha256  1376f867ccf178f27fa1a4d5a645a07fdf68861e0df3994a6e5a460bebc8adeb
24
25use_configure no
26build.target-append edoc
27
28set libdir ${prefix}/lib/erlang/lib/${name}
29
30destroot {
31    xinstall -d ${destroot}${libdir}
32    copy ${worksrcpath}/ebin ${destroot}${libdir}/ebin
33    copy ${worksrcpath}/scripts ${destroot}${libdir}/scripts
34    copy ${worksrcpath}/src ${destroot}${libdir}/src
35
36    set docdir ${prefix}/share/doc/${name}
37    xinstall -d ${destroot}${docdir}
38    xinstall -m 644 -W ${worksrcpath} CHANGES.md LICENSE README ${destroot}${docdir}
39    copy ${worksrcpath}/doc ${destroot}${docdir}/html
40    xinstall -m 644 ${filespath}/README.MacPorts ${destroot}${docdir}
41    reinplace s:@PREFIX@:${prefix}: ${destroot}${docdir}/README.MacPorts
42}
43
44test.run yes
Note: See TracBrowser for help on using the repository browser.