# -*- 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 # $Id: Portfile 149460 2016-06-21 19:24:40Z ciserlohn@macports.org $ PortSystem 1.0 name fossil version 1.35 epoch 20110901182519 categories devel platforms darwin license BSD maintainers ciserlohn description Simple, high-reliability, distributed software configuration management long_description Fossil is a distributed software configuration management which supports \ distributed version control, distributed bug tracking, distributed wiki, \ and a distributed blog mechanism all in single integrated package. It provides \ an easy-to-use web interface to access and administrate projects over the \ built-in webserver or CGI. homepage http://www.fossil-scm.org/ master_sites ${homepage}download/ distname ${name}-src-${version} worksrcdir ${name}-${version} checksums rmd160 ffe745975cc36124243fe849a73bbd54f4a6f81b \ sha256 c1f92f925a87c9872cb40d166f56ba08b90edbab01a8546ff37025836136ba1d test.run yes depends_lib port:tcl \ port:zlib \ path:lib/libssl.dylib:openssl \ port:libiconv configure.args-append --with-tcl=${prefix}/lib \ --with-th1-docs \ --with-th1-hooks \ --json configure.env-append CC_FOR_BUILD="${configure.cc} [get_canonical_archflags]" configure.ldflags-append -liconv post-destroot { set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir} xinstall -m 644 -W ${worksrcpath} \ COPYRIGHT-BSD2.txt \ ${docdir} } post-activate { if [file exists $::env(HOME)/.fossil] { ui_msg "* Trying to rebuild known repositories:" set exec_cmd exec set fossil_list {fossil all list} set fossil_rebuild {fossil rebuild} if [catch {eval $exec_cmd $fossil_list} repositories] { ui_error "failed to execute $fossil_list" } if [llength $repositories] { foreach repo $repositories { if {![catch {eval $exec_cmd $fossil_rebuild $repo} result]} { ui_msg "* successfully rebuild $repo" } else { ui_msg "* failed to rebuild $repo" } } } else { ui_msg "* No repositories found" } ui_msg "* Finished rebuilding repositories" } } # remove after 2016-11-10 variant readline description {Legacy compatibility variant} {} notes " It is recommended to rebuild repositories created with earlier versions of\ fossil. To rebuild a repository run: fossil rebuild /// Rebuilding a repository is a safe operation\; executing it more then once will\ not harm the integrity of a repository. " livecheck.type regex livecheck.url ${homepage}/download.html livecheck.regex {Version ([\d.]*)}