mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
pycairo, cleanup, move to meson build (#9052)
This commit is contained in:
@@ -4,10 +4,9 @@ and to deviate only in cases which are clearly better implemented in a more ‘P
|
||||
HOMEPAGE="https://pypi.org/project/pycairo/"
|
||||
COPYRIGHT="2023 pycairo developers"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://github.com/pygobject/pycairo/releases/download/v$portVersion/pycairo-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="1444d52f1bb4cc79a4a0c0fe2ccec4bd78ff885ab01ebe1c0f637d8392bcafb6"
|
||||
PATCHES="pycairo-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -17,9 +16,6 @@ PROVIDES="
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcairo$secondaryArchSuffix
|
||||
lib:libcairo_gobject$secondaryArchSuffix
|
||||
lib:libcairo_script_interpreter$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
@@ -29,14 +25,9 @@ BUILD_REQUIRES="
|
||||
devel:libcairo_script_interpreter$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:python$pythonVersion
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:meson
|
||||
cmd:ninja
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
@@ -56,15 +47,14 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
\""
|
||||
fi
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
setuptools_$pythonPackage
|
||||
toml_$pythonPackage
|
||||
cmd:git
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:python$pythonVersion
|
||||
lib:libcairo$secondaryArchSuffix
|
||||
lib:libcairo_gobject$secondaryArchSuffix
|
||||
lib:libcairo_script_interpreter$secondaryArchSuffix
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
packaging_$pythonPackage
|
||||
setuptools_$pythonPackage
|
||||
BUILD_PREREQUIRES+="
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
done
|
||||
|
||||
@@ -79,10 +69,19 @@ INSTALL()
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
mkdir -p $installLocation
|
||||
rm -rf build
|
||||
$python setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
meson build --buildtype=release \
|
||||
--prefix=$prefix \
|
||||
--includedir=$includeDir \
|
||||
--libdir=$libDir \
|
||||
--localedir=$dataDir/locale \
|
||||
-Dpython=$python \
|
||||
-Dtests=false
|
||||
ninja -C build install
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$developDir \
|
||||
$libDir
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user