Changeset 69972 for trunk/dports/erlang


Ignore:
Timestamp:
Jul 24, 2010, 2:24:45 PM (9 years ago)
Author:
nox@…
Message:

Update mochiweb to latest git revision

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

Legend:

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

    r66380 r69972  
    11# $Id $
    22
    3 PortSystem       1.0
     3PortSystem      1.0
    44
    5 name             mochiweb
     5name            mochiweb
     6epoch           20100724
     7version         16f560
     8categories      erlang www
     9platforms       darwin
     10maintainers     nox
     11description     MochiWeb is an Erlang library for building lightweight HTTP servers.
    612
    7 set svnrev 87
     13long_description \
     14    ${description}
    815
    9 epoch            20081010
    10 version          r${svnrev} ; # project hasn't assigned a version yet
     16fetch.type      git
     17git.branch      ${version}
     18git.url         http://github.com/mochi/mochiweb.git
    1119
    12 categories       erlang devel
    13 maintainers      nomaintainer
    14 description      MochiWeb is an Erlang library for building lightweight HTTP servers.
    15 long_description ${description} It contains a JSON library.
    16 homepage         http://code.google.com/p/mochiweb/
    17 platforms        darwin
    18 use_configure    no
    19 depends_lib      port:erlang
    20 fetch.type       svn
    21 svn.url          http://mochiweb.googlecode.com/svn/trunk/
    22 svn.revision     ${svnrev}
    23 worksrcdir       trunk
    24 build.target     all
    25 set libdir ${destroot}${prefix}/lib/erlang/lib/${name}
    26 set privdir ${libdir}/priv
    27 set ebindir ${libdir}/ebin
    28 set srcdir ${libdir}/src
    29 destroot.keepdirs ${privdir}/skel/ebin \
    30         ${privdir}/skel/include \
    31         ${privdir}/skel/docs \
    32         ${privdir}/skel/deps
     20use_configure no
     21build.target-append edoc
     22
     23set libdir ${prefix}/lib/erlang/lib/${name}
     24
    3325destroot {
    34         xinstall -d -m 0755 ${ebindir}
    35         eval xinstall -m 0644 [glob ${worksrcpath}/ebin/*.beam] ${ebindir}
     26    xinstall -d ${destroot}${libdir}/priv
     27    copy ${worksrcpath}/ebin ${destroot}${libdir}/ebin
     28    copy ${worksrcpath}/priv/skel ${destroot}${libdir}/priv/skel
     29    copy ${worksrcpath}/scripts ${destroot}${libdir}/scripts
     30    copy ${worksrcpath}/src ${destroot}${libdir}/src
    3631
    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}
     32    set docdir ${prefix}/share/doc/${name}
     33    xinstall -d ${destroot}${docdir}
     34    xinstall -m 644 -W ${worksrcpath} LICENSE README ${destroot}${docdir}
     35    copy ${worksrcpath}/doc ${destroot}${docdir}/html
     36    xinstall -m 644 ${filespath}/README.MacPorts ${destroot}${docdir}
     37}
    4138
    42         set docdir ${destroot}${prefix}/share/doc/${name}
    43         xinstall -d -m 0755 ${docdir}
    44         eval xinstall -m 0644 [glob ${worksrcpath}/doc/*.html] ${docdir}
    45 
    46         xinstall -m 0664 -W ${worksrcpath} \
    47                 LICENSE README \
    48                 ${docdir}
    49 
    50         xinstall -m 0644 ${filespath}/README.MacPorts ${docdir}
    51 
    52         set scriptsdir ${libdir}/scripts
    53         xinstall -d -m 0755 ${scriptsdir}
    54         eval xinstall -m 0755 [glob ${worksrcpath}/scripts/*.erl] ${scriptsdir}
    55 }
     39test.run yes
     40universal_variant no
  • trunk/dports/erlang/mochiweb/files/README.MacPorts

    r40648 r69972  
    55application project:
    66
    7 $ escript /opt/local/share/scripts/new_mochiweb.erl myapp
     7$ escript /opt/local/lib/erlang/lib/mochiweb/scripts/new_mochiweb.erl myapp
    88$ cd myapp
    99$ make
Note: See TracChangeset for help on using the changeset viewer.