void-packages/common/build-style
Noel Cower 43db1c25dc build-styles: Add support for Go modules.
Adds support for Go modules by detecting a go.mod file and, if
available, using it. In addition, to continue supporting vendoring (and
avoid the need for git on all module builds), if a package includes
a vendor directory, the module mode will switch to vendor mode if not
already set. This will use vendored source code for dependencies
instead of downloading that code again using the descriptions under
go.mod.

go_mod_mode=vendor also skips the go.sum check because nothing is
downloaded that isn't already verified, so this fixes packages with
vendored code that have checksum mismatches due to Go 1.11.4 module
checksum changes.

[ci skip]

Closes: #6036 [via git-merge-pr]
2019-01-02 20:10:56 -08:00
..
cargo.sh build-style cargo: move cargo config from wrksrc to home 2018-11-02 13:39:53 +01:00
cmake.sh build-style/cmake: dehardcode gtk2 wxWdigets when cross compiling 2018-11-28 16:49:52 -02:00
configure.sh
fetch.sh
gem.sh build-style/gem.sh: ignore ~> operator 2018-11-19 02:29:28 -02:00
gemspec.sh build-style/gemspec.sh: ignore ~> operator 2018-11-19 02:29:28 -02:00
gnu-configure.sh
gnu-makefile.sh
go.sh build-styles: Add support for Go modules. 2019-01-02 20:10:56 -08:00
haskell-stack.sh
meson.sh build-style/meson: enable b_ndebug and be explicit about paths used. 2018-10-09 10:36:32 -03:00
meta.sh
perl-module.sh common/build-style/perl-module.sh: use target perl includes 2018-09-08 07:10:55 -03:00
perl-ModuleBuild.sh common/build-style/perl-ModuleBuild.sh: use target perl includes 2018-09-08 07:10:55 -03:00
perl6-dist.sh build_style=perl6-dist: add 2018-11-26 04:11:50 -02:00
python-module.sh
python2-module.sh
python3-module.sh
qmake.sh build-style: qmake.sh add missing QMAKE_LINK_C=$CC 2018-11-02 12:25:31 +01:00
R-cran.sh
README
ruby-module.sh
scons.sh
slashpackage.sh
waf.sh build-styles/waf{,3}: make sure waf uses the correct python version 2018-08-09 19:53:32 +02:00
waf3.sh build-styles/waf{,3}: make sure waf uses the correct python version 2018-08-09 19:53:32 +02:00

BUILD STYLES
============

These shell snippets provide support for multiple build systems, i.e GNU configure,
CMake, etc. A build style file must provide at least the following functions:

	- do_configure
	- do_build
	- do_install

If a source package defines its own do_xxx() function, the function defined in
the build style file is simply ignored.