Porting a Go implementation: dealing with dependencies

Stefan Bethke stb at lassitu.de
Sun Nov 20 01:00:34 UTC 2016


Am 18.11.2016 um 17:59 schrieb Steve Wills <swills at FreeBSD.org>:
> 
> Hi,
> 
> On 11/18/2016 10:35, Stefan Bethke wrote:
>> I’m trying to create a port for Gitea
>> (https://github.com/go-gitea/gitea). The basics seem easy enough, but
>> I’m not sure how to deal with it’s dependencies.
> 
> Use the GH_* macros to fetch them. See:
> 
> https://www.freebsd.org/doc/en/books/porters-handbook/makefile-distfiles.html#makefile-master_sites-github-description
> 
> Or if the upstream vendors their deps like many do these days you can
> use the GH_SUBDIR macro to put them in the proper place.
> 
> There are examples to look at if that helps, see sysutils/consul as one
> that has vendored deps or sysutils/serf for one that doesn’t.

Thanks, it appears that the upstream has properly vendored the modules, and I don’t need to so anything, if I check out the latest commit ref instead of the latest tag.


Thanks,
Stefan

-- 
Stefan Bethke <stb at lassitu.de>   Fon +49 151 14070811






More information about the freebsd-ports mailing list