void-packages/srcpkgs/meson/template
maxice8 d642a5493d
meson: add patch to fix caching of pkg-config files.
Allows us to use the PKG_CONFIG variable to tell Meson which is the
pkg-config to be used to get our native dependencies.

We actually could always do that but Meson would cache the variable for
the pkg-config file if we used the dependency() call without 'native:
true' and after that all future usages of dependency() even with
'native: true' would use the cross-compile one.

See this issue from where the patch came from:

- https://github.com/mesonbuild/meson/issues/1736
2018-09-10 01:17:05 -03:00

25 lines
857 B
Bash

# Template file for 'meson'
pkgname=meson
version=0.47.2
revision=2
noarch=yes
build_style=python3-module
pycompile_module="mesonbuild"
hostmakedepends="python3-devel"
depends="ninja python3"
checkdepends="glib-devel gobject-introspection libsanitizer-devel ninja
pkg-config vala python-devel"
short_desc="Super fast build system"
maintainer="Dylan Katz <muddmaker.97@gmail.com>"
license="Apache-2.0"
homepage="http://mesonbuild.com"
changelog="https://raw.githubusercontent.com/mesonbuild/meson/master/docs/markdown/Release-notes-for-${version%.?}.0.md"
distfiles="https://github.com/mesonbuild/meson/archive/${version}.tar.gz"
checksum=69e251dc169e82e3d3235643c873167764d63020515d9ca837ea95ff021f2c83
do_check() {
# meson depends on trillion of things to perform actual tests
# see checkdepends=() on arch
# 3 tests still fails
./run_unittests.py
}