# -*- 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 github 1.0 name pwait github.setup freebsd freebsd-src bbff3a72b23a389aebd492ad7c9db9a51166e907 set man_commit 5bdce6ff546e00673f9f515d2165d02901e858aa version 20210121 revision 0 checksums ${name}-${man_commit}.1 \ rmd160 75f925ce9c9f4457f073895091a8c1c7dd8afecb \ sha256 5457079fafdd832492ab3ef9aef3f18d1d3dfc083de2de28e320354223859a12 \ size 3854 \ ${name}-${git.branch}.c \ rmd160 d96462f2410ffb3c016d99b5272d63d28a4ac1f5 \ sha256 928104a2cb0cfe0ff97bc1202f574165b6dd4c3e21b6e65442a4966eaca13f84 \ size 5064 categories sysutils maintainers {ryandesign @ryandesign} openmaintainer license BSD description waits for processes to exit long_description The ${name} utility will wait until each of the \ given processes has terminated. set repo_path bin/${name} github.livecheck.branch main homepage ${github.homepage}/tree/${github.livecheck.branch}/${repo_path} master_sites ${github.raw}/${git.branch}/${repo_path}/${name}.c?dummy=:code \ ${github.raw}/${man_commit}/${repo_path}/${name}.1?dummy=:man distfiles ${name}-${git.branch}.c:code \ ${name}-${man_commit}.1:man worksrcdir ${name} extract.mkdir yes extract.only post-extract { copy ${distpath}/${name}-${git.branch}.c ${worksrcpath}/${name}.c copy ${distpath}/${name}-${man_commit}.1 ${worksrcpath}/${name}.1 } use_configure no # Some old versions of sys/cdefs.h don't have __FBSDID configure.cflags-append -D__FBSDID\\(s\\)= variant universal {} build.cmd ${configure.cc} build.target build.args -o pwait \ {*}[get_canonical_archflags] \ {*}${configure.cflags} \ {*}${configure.ldflags} \ ${name}.c destroot { xinstall -m 0755 ${worksrcpath}/pwait ${destroot}${prefix}/bin/ xinstall -m 0444 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1/ } livecheck.version ${git.branch} livecheck.url https://api.github.com/repos/${github.author}/${github.project}/commits?path=${repo_path}/${name}.c&page=1&per_page=1 livecheck.type regexm livecheck.regex {^\[\s*\{\s*"sha":\s*"([0-9a-f]+)"}