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

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

mongrel2: update to 1.8.1; add universal variant; enable parallel build; turn reinplaces into patchfiles

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 114698 2013-12-14 01:29:44Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0 
6
7github.setup        zedshaw mongrel2 1.8.1 v
8license             BSD
9categories          www
10platforms           darwin
11maintainers         nomaintainer
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
18checksums           rmd160  a3c69d86555149a2ced7811d3be3b11bbae4f485 \
19                    sha256  271c17f18db432d5d2af450efcefea05833f8eacc7389a5e56856cd92fc643ce
20
21depends_lib         path:lib/libzmq.dylib:zmq22 \
22                    port:sqlite3
23
24patchfiles          patch-Makefile.diff \
25                    patch-tools-procer-Makefile.diff
26
27use_configure       no
28
29variant universal {}
30
31build.args-append   PREFIX=${prefix} \
32                    CC=${configure.cc} \
33                    OPTFLAGS="${configure.cflags} ${configure.cppflags} [get_canonical_archflags cc]" \
34                    OPTLIBS="${configure.ldflags} [get_canonical_archflags ld]"
35destroot.args-append    PREFIX=${prefix}
36
37post-destroot {
38    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
39    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
40   
41    xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}
42    xinstall -m 644 ${worksrcpath}/docs/manual/book.wiki ${destroot}${prefix}/share/doc/${name}/book.html
43
44    xinstall -m 644 ${worksrcpath}/tests/config.sqlite ${destroot}${prefix}/share/examples/${name}/test-config.sqlite
45    eval file copy [glob ${worksrcpath}/examples/*] ${destroot}${prefix}/share/examples/${name}
46}
Note: See TracBrowser for help on using the repository browser.