blob: 5ea8a49aa0077a731679a8e7d979645c37e5c2b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
import subprocess
from pathlib import PurePath
class Recipe(recipe.Recipe):
name = 'meson'
version = '0.47.2'
licenses = [License.Apachev2]
btype = BuildType.CUSTOM
stype = SourceType.TARBALL
url = 'https://github.com/mesonbuild/meson/releases/download/%(version)s/meson-%(version)s.tar.gz'
patches = [
# https://github.com/mesonbuild/meson/pull/3985
'meson/0001-Don-t-require-an-import-library-for-shared-modules.patch',
# https://github.com/mesonbuild/meson/pull/3939
'meson/0002-Fix-linking-of-shared-static-libs-with-static-libs.patch',
# https://github.com/mesonbuild/meson/pull/4024
'meson/0003-gnome-Filter-CFLAGS-and-LDFLAGS-passed-to-g-ir-scann.patch',
# https://github.com/mesonbuild/meson/pull/4095
'meson/0004-Improve-support-for-macOS-dylib-versioning.patch',
]
deps = ['ninja']
files_bin = ['bin/meson']
files_python = []
def install(self):
# setup.py barfs if using posix paths on Windows
if self.config.platform == Platform.WINDOWS:
prefix = str(PurePath(self.config.prefix))
else:
prefix = self.config.prefix
# Use subprocess.check_call because we don't want to bother with shell quoting
subprocess.check_call([self.config.python_exe, 'setup.py', 'install', '--prefix', prefix],
cwd=self.build_dir)
|