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

Last change on this file since 82827 was 82827, checked in by jmr@…, 9 years ago

mochiweb: add erlang dep

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id $
2
3PortSystem      1.0
4
5name            mochiweb
6epoch           20100724
7version         16f560
8revision        1
9categories      erlang www
10platforms       darwin
11maintainers     nomaintainer
12description     MochiWeb is an Erlang library for building lightweight HTTP servers.
13
14long_description \
15    ${description}
16
17homepage        http://github.com/mochi/mochiweb
18fetch.type      git
19git.branch      ${version}
20git.url         http://github.com/mochi/mochiweb.git
21
22depends_lib     port:erlang
23
24use_configure no
25build.target-append edoc
26
27set libdir ${prefix}/lib/erlang/lib/${name}
28
29destroot {
30    xinstall -d ${destroot}${libdir}/priv
31    copy ${worksrcpath}/ebin ${destroot}${libdir}/ebin
32    copy ${worksrcpath}/priv/skel ${destroot}${libdir}/priv/skel
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} 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
45universal_variant no
Note: See TracBrowser for help on using the repository browser.