[40483] trunk/dports/erlang/mochiweb

febeling at macports.org febeling at macports.org
Fri Oct 3 06:56:19 PDT 2008


Revision: 40483
          http://trac.macports.org/changeset/40483
Author:   febeling at macports.org
Date:     2008-10-03 06:56:18 -0700 (Fri, 03 Oct 2008)
Log Message:
-----------
upgrade to r87, install priv/skel contents as well, add a
README.MacPorts for first instructions.

Modified Paths:
--------------
    trunk/dports/erlang/mochiweb/Portfile

Added Paths:
-----------
    trunk/dports/erlang/mochiweb/files/
    trunk/dports/erlang/mochiweb/files/README.MacPorts

Modified: trunk/dports/erlang/mochiweb/Portfile
===================================================================
--- trunk/dports/erlang/mochiweb/Portfile	2008-10-03 12:25:14 UTC (rev 40482)
+++ trunk/dports/erlang/mochiweb/Portfile	2008-10-03 13:56:18 UTC (rev 40483)
@@ -4,8 +4,11 @@
 
 name             mochiweb
 
-version          0.0 ; # project hasn't assigned a version yet
+set svnrev 87
 
+version          r${svnrev} ; # project hasn't assigned a version yet
+epoch            20081003
+
 categories       erlang devel
 maintainers      febeling openmaintainer
 description      MochiWeb is an Erlang library for building lightweight HTTP servers.
@@ -16,16 +19,35 @@
 depends_lib      port:erlang
 fetch.type       svn
 svn.url          http://mochiweb.googlecode.com/svn/trunk/
-svn.tag          84
+svn.tag          ${svnrev}
 worksrcdir       trunk
 build.target     all
+set libdir ${destroot}${prefix}/lib/erlang/lib/${name}
+set privdir ${libdir}/priv
+set ebindir ${libdir}/ebin
+destroot.keepdirs ${privdir}/skel/ebin ${privdir}/skel/include ${privdir}/skel/docs ${privdir}/skel/deps
 destroot {
-	set libdir ${destroot}${prefix}/lib/erlang/lib/${name}
-
-	set ebindir ${libdir}/ebin
 	xinstall -d -m 0755 ${ebindir}
 	eval xinstall -m 0644 [glob ${worksrcpath}/ebin/*.beam] ${ebindir}
 
+	xinstall -d -m 0755 ${privdir}/skel/priv/www
+	xinstall -d -m 0755 ${privdir}/skel/deps
+	xinstall -d -m 0755 ${privdir}/skel/docs
+	xinstall -d -m 0755 ${privdir}/skel/ebin
+	xinstall -d -m 0755 ${privdir}/skel/include
+	xinstall -d -m 0755 ${privdir}/skel/src
+	xinstall -d -m 0755 ${privdir}/skel/support
+	xinstall -m 0644 ${worksrcpath}/priv/skel/Makefile \
+		${privdir}/skel
+	eval xinstall -m 0644 [glob ${worksrcpath}/priv/skel/start*.sh] \
+		${privdir}/skel
+	eval xinstall -m 0644 ${worksrcpath}/priv/skel/priv/www/index.html \
+		${privdir}/skel/priv/www
+	eval xinstall -m 0644 [glob ${worksrcpath}/priv/skel/src/{Makefile,*.html,*.erl,*.hrl,*.app}] \
+		${privdir}/skel/src
+	xinstall -m 0644 ${worksrcpath}/priv/skel/support/include.mk \
+		${privdir}/skel/support
+
 	set docdir ${destroot}${prefix}/share/doc/${name}
 	xinstall -d -m 0755 ${docdir}
 	eval xinstall -m 0644 [glob ${worksrcpath}/doc/*.html] ${docdir}
@@ -34,6 +56,8 @@
 		LICENSE README \
 		${docdir}
 
+	xinstall -m 0644 ${filespath}/README.MacPorts ${docdir} 
+
  	set scriptsdir ${destroot}${prefix}/share/scripts
  	xinstall -d -m 0755 ${scriptsdir}
  	eval xinstall -m 0644 [glob ${worksrcpath}/scripts/*.erl] ${scriptsdir}

Added: trunk/dports/erlang/mochiweb/files/README.MacPorts
===================================================================
--- trunk/dports/erlang/mochiweb/files/README.MacPorts	                        (rev 0)
+++ trunk/dports/erlang/mochiweb/files/README.MacPorts	2008-10-03 13:56:18 UTC (rev 40483)
@@ -0,0 +1,25 @@
+
+== Getting started with mochiweb
+
+Run this command to create an empty web
+application project:
+
+$ escript /opt/local/share/scripts/new_mochiweb.erl myapp
+$ cd myapp
+$ make
+$ chmod u+x start-dev.sh
+$ ./start-dev.sh
+
+Then open a new terminal tab, because then current
+one becomes an erlang shell. There do:
+
+$ open http://localhost:8000
+
+Your default browser should open and show a page
+containing "MochiWeb running."
+
+Start developing by modifiying
+src/APPNAME_web.erl, in the main loop case construct.
+
+C. Florian Ebeling <febeling at macports.org>
+2008-10-03
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081003/bb22d66e/attachment.html 


More information about the macports-changes mailing list