source: trunk/dports/erlang/mochiweb/Portfile

Last change on this file was 123275, checked in by mf2k@…, 3 years ago

mochiweb: Update to version 2.7.0. (#38405)

  • 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 123275 2014-08-07 20:23:57Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       github 1.0
6
7epoch           20111014
8github.setup    mochi mochiweb 2.7.0 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  deffa504702f58ecb9dd0de2149d50b374356bde \
23                sha256  4f76cbc1bb81ed1f99e6993589568bb9711584de48c679d9f967975e0dcd7d7c
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.