Ticket #8453: Portfile.3

File Portfile.3, 1.6 KB (added by nerdling (Jeremy Lavergne), 16 years ago)

final, working copy. removed variants that don't meet documented requirements for install

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$
3
4PortSystem          1.0
5
6name                sahana2
7version             0.6.2
8categories          www php
9maintainers         nomaintainer
10description         Sahana is a web based disaster management system
11long_description    Sahana is an integrated set of pluggable, web based \
12                    disaster management applications that provide solutions to \
13                    large-scale humanitarian problems in the aftermath of a \
14                    disaster.
15
16homepage            http://www.sahana.lk
17master_sites        sourceforge:sahana
18distname            sahana-${version}-stable
19checksums           md5 618c3ef5a44720f5b417b3023a8b814e \
20                    sha1 b75571ad68e684b420091578bd0e06ccda25d14d \
21                    rmd160 3aa1803405ad0d0414658c51342247d74d8bf9d1
22
23platforms           darwin freebsd
24
25depends_lib         port:apache2 port:php5 port:mysql5
26           
27variant apache description "Use Apache 1 instead of Apache 2" {
28    depends_lib-append  port:apache
29    depends_lib-delete  port:apache2
30}
31
32variant mysql4 description "Use MySQL 4" {
33    depends_lib-append  port:mysql4
34    depends_lib-delete  port:mysql5
35}
36
37use_configure   no
38build           {}
39
40set docpath ${destroot}${prefix}/www/data
41set worksrcpath ${workpath}/sahana
42
43destroot {
44    xinstall -d -m 0755 ${docpath}/sahana
45    eval file copy [glob ${worksrcpath}/*] ${docpath}/sahana
46    file attributes ${docpath}/sahana/www/tmp -permissions 040777
47}
48