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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name fossil |
---|
7 | version 1.20 |
---|
8 | epoch 20110901182519 |
---|
9 | categories devel |
---|
10 | platforms darwin |
---|
11 | license BSD |
---|
12 | maintainers ciserlohn |
---|
13 | |
---|
14 | description Simple, high-reliability, distributed software configuration management |
---|
15 | |
---|
16 | long_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 | |
---|
22 | homepage http://www.fossil-scm.org/ |
---|
23 | |
---|
24 | master_sites ${homepage}download/ |
---|
25 | distname ${name}-src-20111021125253 |
---|
26 | |
---|
27 | checksums rmd160 7838fc424a3649d32f30ae1dd2c6156926ca79ce \ |
---|
28 | sha256 636f201f236178ce9a3a9987ed43b0ce849021b2ae872ad71c5ee5780e9fe554 |
---|
29 | |
---|
30 | test.run yes |
---|
31 | |
---|
32 | depends_build port:tcl |
---|
33 | |
---|
34 | depends_lib port:zlib \ |
---|
35 | port:openssl |
---|
36 | |
---|
37 | configure.env-append CC_FOR_BUILD="${configure.cc} [get_canonical_archflags]" |
---|
38 | |
---|
39 | post-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 | |
---|
47 | post-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 | |
---|
76 | notes { |
---|
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 | |
---|
88 | livecheck.type regex |
---|
89 | livecheck.url ${homepage}/download.html |
---|
90 | livecheck.regex {Version ([\d.]*)} |
---|