source: trunk/dports/devel/fossil/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

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