Changeset 40648 for trunk/dports/erlang


Ignore:
Timestamp:
Oct 9, 2008, 9:42:01 PM (10 years ago)
Author:
febeling@…
Message:

simplify skel install
edit mp readme
add sources to installation

Location:
trunk/dports/erlang/mochiweb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/erlang/mochiweb/Portfile

    r40643 r40648  
    2626set privdir ${libdir}/priv
    2727set ebindir ${libdir}/ebin
    28 destroot.keepdirs ${privdir}/skel/ebin ${privdir}/skel/include ${privdir}/skel/docs ${privdir}/skel/deps
     28set srcdir ${libdir}/src
     29destroot.keepdirs ${privdir}/skel/ebin \
     30        ${privdir}/skel/include \
     31        ${privdir}/skel/docs \
     32        ${privdir}/skel/deps
    2933destroot {
    3034        xinstall -d -m 0755 ${ebindir}
    3135        eval xinstall -m 0644 [glob ${worksrcpath}/ebin/*.beam] ${ebindir}
    3236
    33         xinstall -d -m 0755 ${privdir}/skel/priv/www
    34         xinstall -d -m 0755 ${privdir}/skel/deps
    35         xinstall -d -m 0755 ${privdir}/skel/docs
    36         xinstall -d -m 0755 ${privdir}/skel/ebin
    37         xinstall -d -m 0755 ${privdir}/skel/include
    38         xinstall -d -m 0755 ${privdir}/skel/src
    39         xinstall -d -m 0755 ${privdir}/skel/support
    40         xinstall -m 0644 ${worksrcpath}/priv/skel/Makefile \
    41                 ${privdir}/skel
    42         eval xinstall -m 0644 [glob ${worksrcpath}/priv/skel/start*.sh] \
    43                 ${privdir}/skel
    44         eval xinstall -m 0644 ${worksrcpath}/priv/skel/priv/www/index.html \
    45                 ${privdir}/skel/priv/www
    46         eval xinstall -m 0644 [glob ${worksrcpath}/priv/skel/src/{Makefile,*.html,*.erl,*.hrl,*.app}] \
    47                 ${privdir}/skel/src
    48         xinstall -m 0644 ${worksrcpath}/priv/skel/support/include.mk \
    49                 ${privdir}/skel/support
     37        system "find ${worksrcpath} -name .svn -type d -exec rm -rf {} \+"
     38        xinstall -d -m 0755 ${privdir}
     39        copy ${worksrcpath}/priv/skel ${privdir}/skel
     40        copy ${worksrcpath}/src ${srcdir}
    5041
    5142        set docdir ${destroot}${prefix}/share/doc/${name}
     
    5950        xinstall -m 0644 ${filespath}/README.MacPorts ${docdir}
    6051
    61         set scriptsdir ${destroot}${prefix}/share/${name}/scripts
     52        set scriptsdir ${libdir}/scripts
    6253        xinstall -d -m 0755 ${scriptsdir}
    63         eval xinstall -m 0644 [glob ${worksrcpath}/scripts/*.erl] ${scriptsdir}
     54        eval xinstall -m 0755 [glob ${worksrcpath}/scripts/*.erl] ${scriptsdir}
    6455}
  • trunk/dports/erlang/mochiweb/files/README.MacPorts

    r40483 r40648  
    2222src/APPNAME_web.erl, in the main loop case construct.
    2323
     24Example:
     25
     26 "congrat" ->
     27     Req:ok({"text/html", [],["<h1>Congratulation</h1>"]});
     28
     29Example taken from BeeBuzz blog [1].
     30
     311. http://beebole.com/blog/2008/09/25/
     32
    2433C. Florian Ebeling <febeling@macports.org>
    25342008-10-03
Note: See TracChangeset for help on using the changeset viewer.