# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8::et:sw=4:ts=4:sts=4 # $Id: Portfile 151789 2016-08-22 03:31:05Z ryandesign@macports.org $ PortSystem 1.0 name sunwait epoch 1 version 0.8 revision 1 set dlversion [string range [subst [regsub -all {\.} "${version}" {-}]] 0 3] categories sysutils license GPL-3 platforms darwin maintainers nomaintainer description calculates sunrise, sunset, twilight long_description \ Sunwait is a small program for calculating sunrise, \ sunset, civil twilight, nautical twilight, and astronomical \ twilight. It has options to wait until some time-offset from \ one of these events, making it useful for home automation \ tasks that should happen relative to the sun's position. homepage https://sourceforge.net/projects/sunwait4windows/ master_sites sourceforge:sunwait4windows distname ${name}${dlversion} checksums rmd160 3ba0d5ab15ce346633d04cb8929cf432f71a7ca5 \ sha256 839ac6853f21073fa85619fac049d416619e2e6bac7a966df02e1045df13f625 extract.cmd cat extract.pre_args extract.suffix .tar worksrcdir ${name}/${version} patchfiles patch-makefile.diff \ patch-sunriset.cpp.diff use_configure no variant universal {} build.args C="${configure.cxx} [get_canonical_archflags cxx]" build.target sunwait destroot { xinstall -m 755 ${worksrcpath}/sunwait ${destroot}${prefix}/bin } livecheck.type regex livecheck.url https://sourceforge.net/projects/sunwait4windows/files/ livecheck.regex (${name}\[0-9\-\]+)${extract.suffix} livecheck.version ${distname}