source: trunk/dports/www/mongrel2/Portfile @ 87969

Last change on this file since 87969 was 78228, checked in by ryandesign@…, 8 years ago

Change "... {*}[glob ...]" to "eval ... [glob ...]" for Tcl 8.4 compatibility; see http://lists.macosforge.org/pipermail/macports-dev/2011-April/014703.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- 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
2# $Id: Portfile 78228 2011-04-29 02:42:44Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mongrel2
7version             1.5
8categories          www
9platforms           darwin
10maintainers         and.damore openmaintainer
11description         The Language Agnostic Web Server
12long_description    \
13    Mongrel2 is an application, language, and network architecture agnostic \
14    web server that focuses on web applications using modern browser \
15    technologies.
16
17homepage            http://mongrel2.org/home
18master_sites        http://mongrel2.org/static/downloads
19use_bzip2           yes
20checksums           md5     b699ffc7ef922ad7d703fcd39a897910 \
21                    sha1    f179c11702556ed6bf10fe092ba7a4e1cdce2c67 \
22                    rmd160  72bc262b1556b3ed6a0a60585c0d7f4285d7eeb2
23
24use_configure       no
25depends_lib         port:gmake \
26                    port:zmq20 \
27                    port:sqlite3
28
29patchfiles          patch-Makefile.diff \
30                    patch-tools_m2sh_Makefile.diff
31
32post-patch {
33    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile
34    reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/Makefile
35    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/tools/m2sh/Makefile
36}
37
38#build.target        macports
39
40post-destroot {
41    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
42    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
43   
44    xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}
45    xinstall -m 644 ${worksrcpath}/docs/manual/book.wiki ${destroot}${prefix}/share/doc/${name}/book.html
46
47    xinstall -m 644 ${worksrcpath}/tests/config.sqlite ${destroot}${prefix}/share/examples/${name}/test-config.sqlite
48    eval file copy [glob ${worksrcpath}/examples/*] ${destroot}${prefix}/share/examples/${name}
49}
Note: See TracBrowser for help on using the repository browser.