Ticket #8453: Portfile.2

File Portfile.2, 2.2 KB (added by nerdling (Jeremy Lavergne), 16 years ago)

updated to 0.4.0, fixed lint nitpicks

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.4.0
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            sahana2-${version}-stable
19checksums           md5 a38c474ba739c2e0d26401547a37b9f0 \
20                    sha1 732a73cbcf0a82d933866628cae881fe5100bffc \
21                    rmd160 ff72509f5f35ab756d2861adf70cabbf39a66123
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 php4 description "Use PHP 4 instead of PHP 5" {
33    depends_lib-append  port:php4
34    depends_lib-delete  port:php5
35}
36
37variant mysql3 description "Use MySQL 3" conflicts mysql4 postgresql7 postgresql8 {
38    depends_lib-append  port:mysql
39}
40
41variant mysql4 description "Use MySQL 4" conflicts mysql3 postgresql7 postgresql8 {
42    depends_lib-append  port:mysql4
43    depends_lib-delete  port:mysql5
44}
45
46variant postgresql7 description "Use PostgreSQL 7" conflicts mysql3 mysql4 postgresql8 {
47    depends_lib-append  port:postgresql7
48    depends_lib-delete  port:mysql5
49}
50
51variant postgresql8 description "Use PostgreSQL 8" conflicts mysql3 mysql4 postgresql7 {
52    depends_lib-append  port:postgresql8
53    depends_lib-delete  port:mysql5
54}
55
56use_configure   no
57build           {}
58
59set docpath ${destroot}${prefix}/www/data
60set worksrcpath ${workpath}/sahana-phase2
61
62destroot {
63    xinstall -d -m 0755 ${docpath}/sahana-phase2
64    eval file copy [glob ${worksrcpath}/*] ${docpath}/sahana-phase2
65    file attributes ${docpath}/sahana-phase2/www/tmp -permissions 040777
66}
67