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

Last change on this file since 88951 was 88951, checked in by ryandesign@…, 7 years ago

mochiweb: add modeline and fix $Id$ line

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 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 88951 2012-01-15 08:06:59Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            mochiweb
7epoch           20100724
8version         16f560
9revision        1
10categories      erlang www
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
20homepage        http://github.com/mochi/mochiweb
21fetch.type      git
22git.branch      ${version}
23git.url         http://github.com/mochi/mochiweb.git
24
25depends_lib     port:erlang
26
27use_configure no
28build.target-append edoc
29
30set libdir ${prefix}/lib/erlang/lib/${name}
31
32destroot {
33    xinstall -d ${destroot}${libdir}/priv
34    copy ${worksrcpath}/ebin ${destroot}${libdir}/ebin
35    copy ${worksrcpath}/priv/skel ${destroot}${libdir}/priv/skel
36    copy ${worksrcpath}/scripts ${destroot}${libdir}/scripts
37    copy ${worksrcpath}/src ${destroot}${libdir}/src
38
39    set docdir ${prefix}/share/doc/${name}
40    xinstall -d ${destroot}${docdir}
41    xinstall -m 644 -W ${worksrcpath} LICENSE README ${destroot}${docdir}
42    copy ${worksrcpath}/doc ${destroot}${docdir}/html
43    xinstall -m 644 ${filespath}/README.MacPorts ${destroot}${docdir}
44    reinplace s:@PREFIX@:${prefix}: ${destroot}${docdir}/README.MacPorts
45}
46
47test.run yes
48universal_variant no
Note: See TracBrowser for help on using the repository browser.