# -*- 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
github.setup zedshaw mongrel2 1.9.1 v
description The Language Agnostic Web Server
Mongrel2 is an application, language, and network architecture agnostic \
web server that focuses on web applications using modern browser \
homepage http://mongrel2.org/
github.tarball_from releases
distname ${name}-${github.tag_prefix}${version}
checksums rmd160 e355cae5f87ece74ed6744f2bef98232b8cf3020 \
sha256 dc491c9b06f1b32020fd977737fa16f99af6d99e7bfb2f80fcc53278dd44f398
set file_name ${worksrcpath}/tests/cert_tests.c
move $file_name ${file_name}.invalid
patchfiles patch-Makefile.diff \
patch-tools-procer-Makefile.diff
build.args-append PREFIX=${prefix} \
OPTFLAGS="${configure.cflags} ${configure.cppflags} [get_canonical_archflags cc]" \
OPTLIBS="${configure.ldflags} [get_canonical_archflags ld] -bind_at_load -undefined dynamic_lookup"
destroot.args-append PREFIX=${prefix}
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}