source: trunk/dports/devel/fossil/Portfile

Last change on this file was 149460, checked in by ciserlohn@…, 13 months ago

fossil: update to version 1.35

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
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 149460 2016-06-21 19:24:40Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                fossil
7version             1.35
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-${version}
26
27worksrcdir          ${name}-${version}
28
29checksums           rmd160  ffe745975cc36124243fe849a73bbd54f4a6f81b \
30                    sha256  c1f92f925a87c9872cb40d166f56ba08b90edbab01a8546ff37025836136ba1d
31
32test.run            yes
33
34depends_lib         port:tcl \
35                    port:zlib \
36                    path:lib/libssl.dylib:openssl \
37                    port:libiconv
38
39configure.args-append       --with-tcl=${prefix}/lib \
40                            --with-th1-docs \
41                            --with-th1-hooks \
42                            --json
43
44configure.env-append CC_FOR_BUILD="${configure.cc} [get_canonical_archflags]"
45
46configure.ldflags-append    -liconv
47
48post-destroot {
49    set docdir ${destroot}${prefix}/share/doc/${name}
50    xinstall -d ${docdir}
51    xinstall -m 644 -W ${worksrcpath} \
52        COPYRIGHT-BSD2.txt \
53        ${docdir}
54}
55
56post-activate {
57   
58    if [file exists $::env(HOME)/.fossil] {
59        ui_msg "* Trying to rebuild known repositories:" 
60
61        set exec_cmd exec
62        set fossil_list {fossil all list}
63        set fossil_rebuild {fossil rebuild}
64
65        if [catch {eval $exec_cmd $fossil_list} repositories] {
66            ui_error "failed to execute $fossil_list"
67        }
68
69        if [llength $repositories] {
70            foreach repo $repositories {
71                if {![catch {eval $exec_cmd $fossil_rebuild $repo} result]} {
72                    ui_msg "* successfully rebuild $repo"
73                } else {
74                    ui_msg "* failed to rebuild $repo"
75                }
76            }
77        } else {
78            ui_msg "* No repositories found"
79        }
80
81        ui_msg "* Finished rebuilding repositories"
82    }
83}
84
85# remove after 2016-11-10
86variant readline description {Legacy compatibility variant} {}
87
88notes "
89It is recommended to rebuild repositories created with earlier versions of\
90fossil. To rebuild a repository run:
91
92fossil rebuild /<path>/<to>/<repository>
93
94Rebuilding a repository is a safe operation\; executing it more then once will\
95not harm the integrity of a repository.
96"
97
98livecheck.type      regex
99livecheck.url       ${homepage}/download.html
100livecheck.regex     {Version ([\d.]*)}
Note: See TracBrowser for help on using the repository browser.