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

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

mochiweb: license

  • 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 94613 2012-06-25 03:48:45Z jmr@macports.org $
3
4PortSystem      1.0
5PortGroup       github 1.0
6
7github.setup    mochi mochiweb 2.3.0 v
8epoch           20111014
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  e32301af433948d0752e515187d56b3f6fed67b3 \
23                sha256  7bde6ab0fb9e202b3f55dda12409c2f300b87f8ded424853dd362bd925802a89
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} 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.