source: trunk/dports/www/mongrel2/Portfile

Last change on this file was 120153, checked in by ryandesign@…, 3 years ago

mongrel2: update to 1.9.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 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 120153 2014-05-17 02:17:45Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        zedshaw mongrel2 1.9.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
18homepage            http://mongrel2.org/
19github.tarball_from releases
20distname            ${name}-${github.tag_prefix}${version}
21
22checksums           rmd160  e355cae5f87ece74ed6744f2bef98232b8cf3020 \
23                    sha256  dc491c9b06f1b32020fd977737fa16f99af6d99e7bfb2f80fcc53278dd44f398
24
25depends_lib         port:zmq \
26                    port:sqlite3
27
28post-extract {
29    set file_name ${worksrcpath}/tests/cert_tests.c
30    move $file_name ${file_name}.invalid
31}
32
33patchfiles          patch-Makefile.diff \
34                    patch-tools-procer-Makefile.diff
35
36use_configure       no
37
38variant universal {}
39
40build.target        macports
41build.args-append   PREFIX=${prefix} \
42                    CC=${configure.cc} \
43                    OPTFLAGS="${configure.cflags} ${configure.cppflags} [get_canonical_archflags cc]" \
44                    OPTLIBS="${configure.ldflags} [get_canonical_archflags ld] -bind_at_load -undefined dynamic_lookup"
45destroot.args-append    PREFIX=${prefix}
46
47post-destroot {
48    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
49    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
50   
51    xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${prefix}/share/doc/${name}
52    xinstall -m 644 ${worksrcpath}/docs/manual/book.wiki ${destroot}${prefix}/share/doc/${name}/book.html
53
54    xinstall -m 644 ${worksrcpath}/tests/config.sqlite ${destroot}${prefix}/share/examples/${name}/test-config.sqlite
55    eval file copy [glob ${worksrcpath}/examples/*] ${destroot}${prefix}/share/examples/${name}
56}
Note: See TracBrowser for help on using the repository browser.