# -*- 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 PortSystem 1.0 PortGroup golang 1.0 go.setup github.com/syncthing/syncthing 1.27.6 v github.tarball_from archive revision 0 homepage https://syncthing.net description Open Source Continuous File Synchronization long_description Syncthing replaces proprietary sync and cloud services \ with something open, trustworthy and decentralized.\ Your data is your data alone and you deserve to choose \ where it is stored, if it is shared with some third party \ and how it's transmitted over the Internet. checksums rmd160 3ab6c6dbed216bf87b0519d671845f553c36f8d8 \ sha256 7db43491488263379d7e240207eb3c3e4eff7bdbefe5fd3b8f902c154e338e30 \ size 6499325 categories net installs_libs no license MPL-2 maintainers {gmail.com:herby.gillot @herbygillot} \ openmaintainer # Allow Go to fetch deps at build time go.offline_build no build.cmd ${go.bin} run build.go build.target install syncthing build.pre_args -version v${version} -no-upgrade build.post_args ${build.target} test.run yes test.cmd ${build.cmd} test.target test destroot { xinstall -W ${worksrcpath}/bin syncthing ${destroot}${prefix}/bin foreach mancat {1 5 7} { xinstall -m 0444 {*}[glob ${worksrcpath}/man/*.${mancat}] \ ${destroot}${prefix}/share/man/man${mancat} } xinstall -d ${destroot}${prefix}/share/doc/${name} xinstall -W ${worksrcpath} AUTHORS LICENSE ${destroot}${prefix}/share/doc/${name} xinstall {*}[glob ${worksrcpath}/*.md] ${destroot}${prefix}/share/doc/${name} xinstall -d ${destroot}${prefix}/share/examples/${name} xinstall -W ${worksrcpath}/etc/macos-launchd syncthing.plist ${destroot}${prefix}/share/examples/${name} reinplace "s|/Users/USERNAME/bin/|${prefix}/bin/|g" ${destroot}${prefix}/share/examples/${name}/syncthing.plist } notes-append \ "Syncthing provides an example launchd plist. To use it:" \ "1. Copy ${prefix}/share/examples/${name}/syncthing.plist to ~/Library/LaunchAgents" \ "2. Edit syncthing.plist by replacing USERNAME with your actual username" \ "3. Log out and in again, or run: launchctl load ~/Library/LaunchAgents/syncthing.plist" github.livecheck.regex {([0-9.-]+)}