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

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

List the epoch before the version in the Portfile because it has a higher precedence

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id $
2
3PortSystem       1.0
4
5name             mochiweb
6
7set svnrev 87
8
9epoch            20081010
10version          r${svnrev} ; # project hasn't assigned a version yet
11
12categories       erlang devel
13maintainers      febeling openmaintainer
14description      MochiWeb is an Erlang library for building lightweight HTTP servers.
15long_description ${description} It contains a JSON library.
16homepage         http://code.google.com/p/mochiweb/
17platforms        darwin
18use_configure    no
19depends_lib      port:erlang
20fetch.type       svn
21svn.url          http://mochiweb.googlecode.com/svn/trunk/
22svn.tag          ${svnrev}
23worksrcdir       trunk
24build.target     all
25set libdir ${destroot}${prefix}/lib/erlang/lib/${name}
26set privdir ${libdir}/priv
27set ebindir ${libdir}/ebin
28set srcdir ${libdir}/src
29destroot.keepdirs ${privdir}/skel/ebin \
30        ${privdir}/skel/include \
31        ${privdir}/skel/docs \
32        ${privdir}/skel/deps
33destroot {
34        xinstall -d -m 0755 ${ebindir}
35        eval xinstall -m 0644 [glob ${worksrcpath}/ebin/*.beam] ${ebindir}
36
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}
41
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}
Note: See TracBrowser for help on using the repository browser.