# -*- 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/Code-Hex/Neo-cowsay 2.0.4 v name neo-cowsay conflicts cowsay categories textproc games maintainers {i0ntempest @i0ntempest} openmaintainer license Artistic-2 description cowsay is reborn. Neo Cowsay is written in Go. long_description ${description} checksums ${distname}${extract.suffix} \ rmd160 9a18d0f920af348167c15180670570a7f45ba36c \ sha256 2a65332cbec8ab11927274b088c8a6f0f312e771c4a627da8dac29771d738371 \ size 37770 go.vendors golang.org/x/xerrors \ lock 5ec99f83aff1 \ rmd160 6e8267f353e153297f205e4be219236d6ae43880 \ sha256 9a500a49d83a09e7de6c71b215d1c14b81e315d26884530ef327c95ddf1f2d28 \ size 13667 \ github.com/rivo/uniseg \ lock v0.2.0 \ rmd160 33577def583aa2db50b69ca601e5d29ab201ebc4 \ sha256 2832965221246272462a03ffc8e159c94d8f534827f660f1ac4fc77e5ccd644c \ size 44037 \ github.com/mattn/go-runewidth \ lock v0.0.13 \ rmd160 e177edb4dc4702ae2b23704934ff31cc6561bbd0 \ sha256 dcd3ccbd956a6f53bc106b79489d0303a237c21d858d23250e3e1d7284b72b86 \ size 17363 \ github.com/google/go-cmp \ lock v0.5.6 \ rmd160 b93086d92bddc7a3b593fb637776f055c022049f \ sha256 fa1ca0f00fe02f645c4ed12ef753ff6c46b6621db01e09d96599cf1fd990aebe \ size 104422 \ github.com/Code-Hex/go-wordwrap \ lock v1.0.0 \ rmd160 c194a9914d00fc65d197caaf21a3491c1c99a926 \ sha256 b54e5ae29f8a1e71809d96b7710e3472e344904eef9468ca24ca2b5ec0bfb41f \ size 4427 depends_build-append \ port:asciidoctor build.env-append CGO_ENABLED=0 # go2port does not work correctly go.offline_build no build.dir ${worksrcpath}/cmd build.cmd "${build.cmd} -o ../bin/cowsay -ldflags '-w -s' -ldflags=\"-X 'main.version=${version}'\" ./cowsay && \ ${build.cmd} -o ../bin/cowthink -ldflags '-w -s' -ldflags=\"-X 'main.version=${version}'\" ./cowthink" post-build { system -W ${worksrcpath} "${prefix}/bin/asciidoctor --doctype manpage --backend manpage doc/cowsay.1.txt.tpl -o doc/cowsay.1" } destroot { xinstall -m 0755 ${worksrcpath}/bin/cowsay ${destroot}${prefix}/bin/ xinstall -m 0755 ${worksrcpath}/bin/cowthink ${destroot}${prefix}/bin/ xinstall -m 0644 ${worksrcpath}/doc/cowsay.1 ${destroot}${prefix}/share/man/man1 }