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

Last change on this file since 97636 was 97126, checked in by ryandesign@…, 8 years ago

mochiweb: update to 2.3.2; also install CHANGES.md

  • 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 97126 2012-08-27 22:28:15Z ryandesign@macports.org $
[39839]3
[69972]4PortSystem      1.0
[88952]5PortGroup       github 1.0
[39839]6
[88953]7epoch           20111014
[97126]8github.setup    mochi mochiweb 2.3.2 v
[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
[97126]22checksums       rmd160  867b293145fd02fd138dbfa8d18b59a4579c9c00 \
23                sha256  1376f867ccf178f27fa1a4d5a645a07fdf68861e0df3994a6e5a460bebc8adeb
[88953]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}
[97126]38    xinstall -m 644 -W ${worksrcpath} CHANGES.md LICENSE README ${destroot}${docdir}
[69972]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.