void-packages/common/build-style
Andrew J. Hesford fa5500228e build-style/python3-{module,pep517}.sh: improve pytest usage
1. Relying on `python3 -m pytest --help` to test for pytest can fail
   because the pytest packages's __main__ is still invoked; this can
   trigger import problems and falsely indicate that pytest is missing.
   A simpler test is to just confirm that pytest is importable. If so,
   the interpreter returns 0. Otherwise, an ImportError is thrown and
   the interpreter will return 1.

2. Many templates require a custom do_check just to set PYTHONPATH to
   either a build directory (especially for compiled extensions) or some
   subdirectory of the source tree. Setting PYTHONPATH automatically to
   the build directory should drastically reduce the need for custom
   do_check in py3 templates. (This only applies to python3-module.sh
   because pep517 builders will have unpredictable build directories.)

Closes: #31354.
2021-06-08 13:53:15 -04:00
..
cargo.sh build-style/cargo: use configure_args in do_check. 2020-07-06 09:01:06 +02:00
cmake.sh common/build-style/cmake.sh: pass full path of TOOLCHAIN_FILE to cmake 2021-05-06 18:23:18 +02:00
configure.sh
fetch.sh xbps-src: quote wrksrc to allow whitespace 2020-09-03 21:03:32 +02:00
gem.sh
gemspec.sh
gnu-configure.sh libtool: stop put /usr/lib{32,64} into RPATH 2021-02-21 07:44:26 +07:00
gnu-makefile.sh common/build-style/gnu-makefile: pass CXXFLAGS in make invocation. 2020-12-06 22:03:54 -03:00
go.sh common/build-style: remove go_get from Go style. 2021-02-20 02:01:31 -03:00
haskell-stack.sh xbps-src: quote wrksrc to allow whitespace 2020-09-03 21:03:32 +02:00
meson.sh build-style/meson.sh: move <lang>_args to build-in options section and fix cross compiling of rust code 2021-02-20 13:13:21 +01:00
meta.sh
perl-module.sh build-style/perl-module: put . into @INC 2021-02-06 13:10:59 +07:00
perl-ModuleBuild.sh
python-module.sh build-style/python[3]-module: override _PYTHON_SYSCONFIGDATA_NAME 2019-12-23 17:15:51 +01:00
python2-module.sh
python3-module.sh build-style/python3-{module,pep517}.sh: improve pytest usage 2021-06-08 13:53:15 -04:00
python3-pep517.sh build-style/python3-{module,pep517}.sh: improve pytest usage 2021-06-08 13:53:15 -04:00
qmake.sh build-style/qmake: look for modules in target 2021-03-08 10:40:33 +07:00
R-cran.sh
raku-dist.sh build_style/raku-dist.sh: RAKULIB=lib 2020-05-18 13:42:00 +02:00
README
ruby-module.sh build-style/ruby-module: fix _vendorlibdir because of multilib change 2021-02-24 07:37:52 +07:00
scons.sh build-style: scons: add lowercase compiler variable 2020-05-18 00:32:13 +02:00
slashpackage.sh
texmf.sh common/build-style/texmf.sh: various improvments. 2021-01-19 19:46:52 +01:00
void-cross.sh build-style/void-cross.sh: fix leftover _triplet variable 2021-04-05 01:00:35 +02:00
waf.sh build-style: change all build-styles to use /usr/libNN 2020-12-22 22:18:25 +01:00
waf3.sh build-style: change all build-styles to use /usr/libNN 2020-12-22 22:18:25 +01: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.