[77281] trunk/dports/www
and.damore at macports.org
and.damore at macports.org
Fri Mar 25 11:32:26 PDT 2011
Revision: 77281
http://trac.macports.org/changeset/77281
Author: and.damore at macports.org
Date: 2011-03-25 11:32:25 -0700 (Fri, 25 Mar 2011)
Log Message:
-----------
new port: mongrel2, application, language, and network architecture agnostic web server that focuses on web applications
Added Paths:
-----------
trunk/dports/www/mongrel2/
trunk/dports/www/mongrel2/Portfile
trunk/dports/www/mongrel2/files/
trunk/dports/www/mongrel2/files/patch-Makefile.diff
trunk/dports/www/mongrel2/files/patch-tools_m2sh_Makefile.diff
Added: trunk/dports/www/mongrel2/Portfile
===================================================================
--- trunk/dports/www/mongrel2/Portfile (rev 0)
+++ trunk/dports/www/mongrel2/Portfile 2011-03-25 18:32:25 UTC (rev 77281)
@@ -0,0 +1,49 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name mongrel2
+version 1.5
+categories www
+platforms darwin
+maintainers and.damore openmaintainer
+description The Language Agnostic Web Server
+long_description \
+ Mongrel2 is an application, language, and network architecture agnostic \
+ web server that focuses on web applications using modern browser \
+ technologies.
+
+homepage http://mongrel2.org/home
+master_sites http://mongrel2.org/static/downloads
+use_bzip2 yes
+checksums md5 b699ffc7ef922ad7d703fcd39a897910 \
+ sha1 f179c11702556ed6bf10fe092ba7a4e1cdce2c67 \
+ rmd160 72bc262b1556b3ed6a0a60585c0d7f4285d7eeb2
+
+use_configure no
+depends_lib port:gmake \
+ port:zmq20 \
+ port:sqlite3
+
+patchfiles patch-Makefile.diff \
+ patch-tools_m2sh_Makefile.diff
+
+post-patch {
+ reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile
+ reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Makefile
+ reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/tools/m2sh/Makefile
+}
+
+#build.target macports
+
+post-destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
+
+ xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 ${worksrcpath}/docs/manual/book.wiki ${destroot}${prefix}/share/doc/${name}/book.html
+
+ xinstall -m 644 ${worksrcpath}/tests/config.sqlite ${destroot}${prefix}/share/examples/${name}/test-config.sqlite
+ file copy {*}[glob ${worksrcpath}/examples/*] ${destroot}${prefix}/share/examples/${name}
+}
Property changes on: trunk/dports/www/mongrel2/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/www/mongrel2/files/patch-Makefile.diff
===================================================================
--- trunk/dports/www/mongrel2/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/www/mongrel2/files/patch-Makefile.diff 2011-03-25 18:32:25 UTC (rev 77281)
@@ -0,0 +1,21 @@
+--- Makefile.orig 2011-03-25 12:51:07.000000000 +0100
++++ Makefile 2011-03-25 12:48:43.000000000 +0100
+@@ -1,6 +1,6 @@
+ CFLAGS=-g -O2 -Wall -Isrc -DNDEBUG $(OPTFLAGS)
+ LIBS=-lzmq -lsqlite3 $(OPTLIBS)
+-PREFIX?=/usr/local
++PREFIX?=@@PREFIX@@
+
+ ASM=$(wildcard src/**/*.S src/*.S)
+ RAGEL_TARGETS=src/state.c src/http11/http11_parser.c
+@@ -69,8 +69,8 @@
+ install: all install-bin install-m2sh
+
+ install-bin:
+- install -d $(PREFIX)/bin/
+- install bin/mongrel2 $(PREFIX)/bin/
++ install -d $(DESTDIR)/$(PREFIX)/bin/
++ install bin/mongrel2 $(DESTDIR)/$(PREFIX)/bin/
+
+ install-m2sh:
+ ${MAKE} -C tools/m2sh install
Added: trunk/dports/www/mongrel2/files/patch-tools_m2sh_Makefile.diff
===================================================================
--- trunk/dports/www/mongrel2/files/patch-tools_m2sh_Makefile.diff (rev 0)
+++ trunk/dports/www/mongrel2/files/patch-tools_m2sh_Makefile.diff 2011-03-25 18:32:25 UTC (rev 77281)
@@ -0,0 +1,20 @@
+--- tools/m2sh/Makefile.orig 2011-03-25 12:50:46.000000000 +0100
++++ tools/m2sh/Makefile 2011-03-25 12:49:04.000000000 +0100
+@@ -1,7 +1,7 @@
+ CFLAGS=-DNDEBUG -DNO_LINENOS -g -I../../src -Isrc -Wall $(OPTFLAGS)
+ LIBS=-lzmq -lsqlite3 ../../build/libm2.a $(OPTLIBS)
+
+-PREFIX?=/usr/local
++PREFIX?=@@PREFIX@@
+ SOURCES=$(wildcard src/*.c)
+ OBJECTS=$(patsubst %.c,%.o,${SOURCES})
+ TEST_SRC=$(wildcard tests/*.c)
+@@ -15,7 +15,7 @@
+ dev: all
+
+ install: build/m2sh
+- install build/m2sh ${PREFIX}/bin
++ install build/m2sh $(DESTDIR)/${PREFIX}/bin
+
+ build/libm2sh.a: ${LIB_OBJ}
+ mkdir -p build
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110325/eb474f25/attachment.html>
More information about the macports-changes
mailing list