mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 16:20:08 +02:00
59 lines
1.4 KiB
Bash
59 lines
1.4 KiB
Bash
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="c513eca90e0d70bf14cd1eaafea2fa91cf40a73326a7ff61f08a005048057340"
|
|
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
|
|
setuptools_python3
|
|
"
|
|
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 \
|
|
--root=/ --prefix=$prefix
|
|
|
|
mkdir -p $docDir
|
|
mv $prefix/share/man $manDir
|
|
rm -rf $prefix/share
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
MESON_PRINT_TEST_OUTPUT=1 LC_CTYPE=en_US.UTF-8 ./run_tests.py
|
|
}
|