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

Last change on this file since 89911 was 89911, checked in by and.damore@…, 7 years ago

port mongrel2: version upgrade, removed patchfiles merged upstream, setting homepage to current URI -old one gives 404

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 89911 2012-02-14 22:45:44Z and.damore@macports.org $
3
4PortSystem          1.0
5
6name                mongrel2
7version             1.7.5
8license             BSD
9categories          www
10platforms           darwin
11maintainers         and.damore openmaintainer
12description         The Language Agnostic Web Server
13long_description    \
14    Mongrel2 is an application, language, and network architecture agnostic \
15    web server that focuses on web applications using modern browser \
16    technologies.
17
18homepage            http://mongrel2.org
19# MEMO sources are available on github as well
20master_sites        ${homepage}/static/downloads
21use_bzip2           yes
22checksums           md5     c243efc59e5972fa381bd13a7eeafdc7 \
23                    sha1    456561fe04f1c0ee4a996cfc9deadab8c57ee6dc \
24                    rmd160  e623bb17a42dfa509d9d14c1208b8fb6047f22a2
25
26use_configure       no
27depends_lib         port:gmake \
28                    port:zmq20 \
29                    port:sqlite3
30
31# override variables in Makefile for build and destroot phases
32build.args-append   PREFIX=${prefix} \
33                    CC=${configure.cc} \
34                    OPTFLAGS="${configure.cflags} -I${prefix}/include [get_canonical_archflags cc]" \
35                    OPTLIBS="${configure.ldflags} -L${prefix}/lib [get_canonical_archflags ld]"
36destroot.args-append    PREFIX=${prefix}
37
38post-destroot {
39    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
40    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
41   
42    xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}
43    xinstall -m 644 ${worksrcpath}/docs/manual/book.wiki ${destroot}${prefix}/share/doc/${name}/book.html
44
45    xinstall -m 644 ${worksrcpath}/tests/config.sqlite ${destroot}${prefix}/share/examples/${name}/test-config.sqlite
46    eval file copy [glob ${worksrcpath}/examples/*] ${destroot}${prefix}/share/examples/${name}
47}
48
Note: See TracBrowser for help on using the repository browser.