mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
libopenshot: use python 3.6
This commit is contained in:
@@ -6,7 +6,7 @@ OpenShot Video Editor (version 2.0+). C++, Python are fully supported."
|
||||
HOMEPAGE="https://www.openshot.org/"
|
||||
COPYRIGHT="2008-2019 OpenShot Studios, LLC"
|
||||
LICENSE="GNU LGPL v3"
|
||||
REVISION="3"
|
||||
REVISION="4"
|
||||
SOURCE_URI="https://github.com/OpenShot/libopenshot/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="8536b0a790b0d98ed4c3b10e11d1b34ae68ccbc710887e3703a5143d95598746"
|
||||
SOURCE_FILENAME="libopenshot-$portVersion.tar.gz"
|
||||
@@ -47,11 +47,11 @@ REQUIRES_devel="
|
||||
libopenshot$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
SUMMARY_python3="$SUMMARY (python3 bindings)"
|
||||
PROVIDES_python3="
|
||||
libopenshot${secondaryArchSuffix}_python3 = $portVersion
|
||||
SUMMARY_python36="$SUMMARY (python36 bindings)"
|
||||
PROVIDES_python36="
|
||||
libopenshot${secondaryArchSuffix}_python36 = $portVersion
|
||||
"
|
||||
REQUIRES_python3="
|
||||
REQUIRES_python36="
|
||||
libopenshot$secondaryArchSuffix == $portVersion base
|
||||
lib:libavutil$secondaryArchSuffix
|
||||
lib:libopenshot_audio$secondaryArchSuffix
|
||||
@@ -59,18 +59,18 @@ REQUIRES_python3="
|
||||
"
|
||||
|
||||
if [ "$targetArchitecture" = "x86_gcc2" ]; then
|
||||
PROVIDES_python3+="
|
||||
libopenshot_python3 = $portVersion
|
||||
PROVIDES_python36+="
|
||||
libopenshot_python36 = $portVersion
|
||||
"
|
||||
fi
|
||||
|
||||
SUMMARY_python3_debuginfo="$SUMMARY (python3 bindings debug info)"
|
||||
PROVIDES_python3_debuginfo="
|
||||
libopenshot${secondaryArchSuffix}_python3_debuginfo = $portVersion
|
||||
debuginfo:_openshot.so(libopenshot_python3) = $portVersion
|
||||
SUMMARY_python36_debuginfo="$SUMMARY (python36 bindings debug info)"
|
||||
PROVIDES_python36_debuginfo="
|
||||
libopenshot${secondaryArchSuffix}_python36_debuginfo = $portVersion
|
||||
debuginfo:_openshot.so(libopenshot_python36) = $portVersion
|
||||
"
|
||||
REQUIRES_python3_debuginfo="
|
||||
libopenshot${secondaryArchSuffix}_python3 == $portVersion base
|
||||
REQUIRES_python36_debuginfo="
|
||||
libopenshot${secondaryArchSuffix}_python36 == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
@@ -98,7 +98,7 @@ BUILD_PREREQUIRES="
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python3
|
||||
cmd:python3.6m
|
||||
cmd:swig$secondaryArchSuffix
|
||||
"
|
||||
|
||||
@@ -120,7 +120,7 @@ defineDebugInfoPackage libopenshot$secondaryArchSuffix \
|
||||
|
||||
BUILD()
|
||||
{
|
||||
python=$portPackageLinksDir/cmd~python3/bin/python3
|
||||
python=$portPackageLinksDir/cmd~python3.6m/bin/python3.6m
|
||||
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
|
||||
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
|
||||
|
||||
@@ -155,15 +155,15 @@ INSTALL()
|
||||
$developDir
|
||||
fi
|
||||
|
||||
python=$portPackageLinksDir/cmd~python3/bin/python3
|
||||
python=$portPackageLinksDir/cmd~python3.6m/bin/python3.6m
|
||||
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
|
||||
pythonLocation=$prefix/lib/python$pythonVersion
|
||||
installLocation=$pythonLocation/vendor-packages
|
||||
pythonDebugInfoDir=$(getPackagePrefix python3_debuginfo)/$relativeDebugInfoDir
|
||||
pythonDebugInfoDir=$(getPackagePrefix python36_debuginfo)/$relativeDebugInfoDir
|
||||
extractDebugInfo $installLocation/_openshot.so \
|
||||
"$pythonDebugInfoDir/_openshot.so(libopenshot_python3-$portFullVersion).debuginfo"
|
||||
# python package
|
||||
packageEntries python3 \
|
||||
packageEntries python36 \
|
||||
$pythonLocation
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user