Ticket #32243: fossilupdate.txt

File fossilupdate.txt, 3.0 KB (added by dmttding@…, 12 years ago)

port file

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 86207 2011-10-21 18:15:07Z ciserlohn@macports.org $
3
4PortSystem          1.0
5
6name                fossil
7version             1.20
8epoch               20110901182519
9categories          devel
10platforms           darwin
11license             BSD
12maintainers         ciserlohn
13
14description         Simple, high-reliability, distributed software configuration management
15
16long_description    Fossil is a distributed software configuration management which supports \
17                    distributed version control, distributed bug tracking, distributed wiki, \
18                    and a distributed blog mechanism all in single integrated package. It provides \
19                    an easy-to-use web interface to access and administrate projects over the \
20                    built-in webserver or CGI.
21
22homepage            http://www.fossil-scm.org/
23
24master_sites        ${homepage}download/
25distname            ${name}-src-20111021125253
26
27checksums           rmd160  7838fc424a3649d32f30ae1dd2c6156926ca79ce \
28                    sha256  636f201f236178ce9a3a9987ed43b0ce849021b2ae872ad71c5ee5780e9fe554
29
30test.run            yes
31
32depends_build       port:tcl
33
34depends_lib         port:zlib \
35                    port:openssl
36
37configure.env-append CC_FOR_BUILD="${configure.cc} [get_canonical_archflags]"
38
39post-destroot {
40    set docdir ${destroot}${prefix}/share/doc/${name}
41    xinstall -d ${docdir}
42    xinstall -m 644 -W ${worksrcpath} \
43        COPYRIGHT-BSD2.txt \
44        ${docdir}
45}
46
47post-activate {
48   
49    if [file exists $::env(HOME)/.fossil] {
50        ui_msg "* Trying to rebuild known repositories:"
51
52        set exec_cmd exec
53        set fossil_list {fossil all list}
54        set fossil_rebuild {fossil rebuild}
55
56        if [catch {eval $exec_cmd $fossil_list} repositories] {
57            ui_error "failed to execute $fossil_list"
58        }
59
60        if [llength $repositories] {
61            foreach repo $repositories {
62                if {![catch {eval $exec_cmd $fossil_rebuild $repo} result]} {
63                    ui_msg "* successfully rebuild $repo"
64                } else {
65                    ui_msg "* failed to rebuild $repo"
66                }
67            }
68        } else {
69            ui_msg "* No repositories found"
70        }
71
72        ui_msg "* Finished rebuilding repositories"
73    }
74}
75
76notes {
77    ************************************************
78    * It is recommended to rebuild repositories    *
79    * created with earlier versions of fossil.     *
80    * To rebuild a repository run:                 *
81    * fossil rebuild /<path>/<to>/<repository>     *
82    * Rebuilding a repository is a safe operation, *
83    * executing it more then once will not harm    *
84    * the integrity of a repository.               *
85    ************************************************
86}
87
88livecheck.type      regex
89livecheck.url       ${homepage}/download.html
90livecheck.regex     {Version ([\d.]*)}