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
..
R-cran.sh
README
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 build-style/configure.sh: use "make check" if available. 2017-11-20 13:26:29 +01:00
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 build-style/gnu-configure.sh: warn, don't fail if "make check" is not implemented. 2017-11-20 13:26:29 +01:00
gnu-makefile.sh build-style/gnu-makefile.sh: use "make check" if available. 2017-11-20 13:26:29 +01:00
go.sh build-styles: Add support for Go modules. 2019-01-02 20:10:56 -08:00
haskell-stack.sh build-style/haskell-stack.sh: init using --system-ghc too. 2018-04-05 14:32:40 +02:00
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-ModuleBuild.sh common/build-style/perl-ModuleBuild.sh: use target perl includes 2018-09-08 07:10:55 -03:00
perl-module.sh common/build-style/perl-module.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 build-style/python{2,3}-module: do not use custom build directory 2017-08-25 16:17:12 +02:00
python3-module.sh build-style/python{2,3}-module: do not use custom build directory 2017-08-25 16:17:12 +02:00
qmake.sh build-style: qmake.sh add missing QMAKE_LINK_C=$CC 2018-11-02 12:25:31 +01:00
ruby-module.sh
scons.sh common/build-style/scons.sh: fix comment 2018-03-05 20:49:36 +00:00
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

README

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.