mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
meson: add recipe for version 0.39.1.
This commit is contained in:
55
dev-util/meson/meson-0.39.1.recipe
Normal file
55
dev-util/meson/meson-0.39.1.recipe
Normal file
@@ -0,0 +1,55 @@
|
||||
SUMMARY="A High productivity build system"
|
||||
DESCRIPTION="Meson® is a project to create the best possible next-generation \
|
||||
build system."
|
||||
HOMEPAGE="http://mesonbuild.com/"
|
||||
COPYRIGHT="2013-2017 The Meson development team"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/mesonbuild/meson/releases/download/$portVersion/meson-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="44885ccfef94d3d4afb1053fa6673ed130d3093fc9e9f6624d08161d8a385220"
|
||||
PATCHES="meson-$portVersion.patchset"
|
||||
PYTHON_VERSION="3.6"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
meson = $portVersion
|
||||
cmd:meson = $portVersion
|
||||
cmd:mesonconf = $portVersion
|
||||
cmd:mesonintrospect = $portVersion
|
||||
cmd:mesontest = $portVersion
|
||||
cmd:wraptool = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python$PYTHON_VERSION
|
||||
cmd:ninja >= 1.6
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
python3_setuptools
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python$PYTHON_VERSION
|
||||
# for tests
|
||||
cmd:gcc
|
||||
cmd:ninja >= 1.6
|
||||
"
|
||||
INSTALL()
|
||||
{
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
python=$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3
|
||||
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
|
||||
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
mkdir -p $installLocation
|
||||
|
||||
$python setup.py install \
|
||||
--prefix=$prefix
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
MESON_PRINT_TEST_OUTPUT=1 LC_CTYPE=en_US.UTF-8 ./run_tests.py
|
||||
}
|
||||
36
dev-util/meson/patches/meson-0.39.1.patchset
Normal file
36
dev-util/meson/patches/meson-0.39.1.patchset
Normal file
@@ -0,0 +1,36 @@
|
||||
From c7e486aceb016655a66c259eff1d41cc9bd73b37 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Sun, 16 Apr 2017 13:57:03 +0200
|
||||
Subject: Haiku patch
|
||||
|
||||
|
||||
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
|
||||
index c7368d5..c8dbc2b 100644
|
||||
--- a/mesonbuild/mesonlib.py
|
||||
+++ b/mesonbuild/mesonlib.py
|
||||
@@ -206,6 +206,9 @@ def is_osx():
|
||||
def is_linux():
|
||||
return platform.system().lower() == 'linux'
|
||||
|
||||
+def is_haiku():
|
||||
+ return platform.system().lower() == 'haiku'
|
||||
+
|
||||
def is_windows():
|
||||
platname = platform.system().lower()
|
||||
return platname == 'windows' or 'mingw' in platname
|
||||
diff --git a/run_tests.py b/run_tests.py
|
||||
index 5025057..bb5eec7 100755
|
||||
--- a/run_tests.py
|
||||
+++ b/run_tests.py
|
||||
@@ -24,7 +24,7 @@ from mesonbuild import mesonlib
|
||||
if __name__ == '__main__':
|
||||
returncode = 0
|
||||
# Running on a developer machine? Be nice!
|
||||
- if not mesonlib.is_windows() and 'TRAVIS' not in os.environ:
|
||||
+ if not mesonlib.is_windows() and not mesonlib.is_haiku() and 'TRAVIS' not in os.environ:
|
||||
os.nice(20)
|
||||
print('Running unittests.\n')
|
||||
units = ['InternalTests', 'AllPlatformTests']
|
||||
--
|
||||
2.11.0
|
||||
|
||||
Reference in New Issue
Block a user