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
RevLine 
[88951]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 $
[39839]3
[69972]4PortSystem      1.0
[88952]5PortGroup       github 1.0
[39839]6
[88953]7github.setup    mochi mochiweb 2.3.0 v
8epoch           20111014
[69972]9categories      erlang www
[94613]10license         MIT
[69972]11platforms       darwin
[74826]12maintainers     nomaintainer
[88950]13supported_archs noarch
14
[69972]15description     MochiWeb is an Erlang library for building lightweight HTTP servers.
[39839]16
[69972]17long_description \
18    ${description}
[39839]19
[82827]20depends_lib     port:erlang
21
[88953]22checksums       rmd160  e32301af433948d0752e515187d56b3f6fed67b3 \
23                sha256  7bde6ab0fb9e202b3f55dda12409c2f300b87f8ded424853dd362bd925802a89
24
[69972]25use_configure no
26build.target-append edoc
[39839]27
[69972]28set libdir ${prefix}/lib/erlang/lib/${name}
[40483]29
[69972]30destroot {
[88953]31    xinstall -d ${destroot}${libdir}
[69972]32    copy ${worksrcpath}/ebin ${destroot}${libdir}/ebin
33    copy ${worksrcpath}/scripts ${destroot}${libdir}/scripts
34    copy ${worksrcpath}/src ${destroot}${libdir}/src
[39839]35
[69972]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}
[69988]41    reinplace s:@PREFIX@:${prefix}: ${destroot}${docdir}/README.MacPorts
[69972]42}
[39839]43
[69972]44test.run yes
Note: See TracBrowser for help on using the repository browser.