sip: bump version, merge into one recipe.

This commit is contained in:
Jerome Duval
2017-02-20 18:32:43 +01:00
parent 4038a7dcc5
commit 953cc18c3b
4 changed files with 113 additions and 100 deletions

View File

@@ -1,50 +0,0 @@
SUMMARY="A tool to create Python bindings for C and C++ libraries"
DESCRIPTION="SIP comprises a code generator and a Python module. The code generator \
processes a set of specification files and generates C or C++ code which is \
then compiled to create the bindings extension module. The SIP Python \
module provides support functions to the automatically generated code."
HOMEPAGE="https://www.riverbankcomputing.com/software/sip/"
COPYRIGHT="2015 Riverbank Computing Limited"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/pyqt/files/sip/sip-$portVersion/sip-$portVersion.tar.gz"
CHECKSUM_SHA256="f1dc5c81c07a9ad97edcd4a0af964a41e420024ba7ca165afd2b351efd249cb6"
SOURCE_DIR="sip-$portVersion"
PATCHES="sip-$portVersion.patch"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python3_sip = $portVersion
cmd:sip = $portVersion
"
REQUIRES="
haiku
cmd:python3
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python3
cmd:gcc
cmd:make
"
BUILD()
{
$portPackageLinksDir/cmd~python3/bin/python3 configure.py \
--platform=haiku-g++ \
--bindir=$binDir \
--incdir=$includeDir/python3.5m \
--destdir=$libDir/python3.5/vendor-packages \
#--sipdir= \
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -1,50 +0,0 @@
SUMMARY="A tool to create Python bindings for C and C++ libraries"
DESCRIPTION="SIP comprises a code generator and a Python module. The code generator \
processes a set of specification files and generates C or C++ code which is \
then compiled to create the bindings extension module. The SIP Python \
module provides support functions to the automatically generated code."
HOMEPAGE="https://www.riverbankcomputing.com/software/sip/"
COPYRIGHT="2015 Riverbank Computing Limited"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/pyqt/files/sip/sip-$portVersion/sip-$portVersion.tar.gz"
CHECKSUM_SHA256="f1dc5c81c07a9ad97edcd4a0af964a41e420024ba7ca165afd2b351efd249cb6"
SOURCE_DIR="sip-$portVersion"
PATCHES="sip-$portVersion.patch"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_sip = $portVersion
cmd:sip = $portVersion
"
REQUIRES="
haiku
cmd:python2
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python2
cmd:gcc
cmd:make
"
BUILD()
{
$portPackageLinksDir/cmd~python2/bin/python2 configure.py \
--platform=haiku-g++ \
--bindir=$binDir \
--incdir=$includeDir/python2.7 \
--destdir=$libDir/python2.7/vendor-packages \
#--sipdir= \
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -0,0 +1,113 @@
SUMMARY="A tool to create Python bindings for C and C++ libraries"
DESCRIPTION="SIP comprises a code generator and a Python module. The code generator \
processes a set of specification files and generates C or C++ code which is \
then compiled to create the bindings extension module. The SIP Python \
module provides support functions to the automatically generated code."
HOMEPAGE="https://www.riverbankcomputing.com/software/sip/"
COPYRIGHT="2015 Riverbank Computing Limited"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/pyqt/files/sip/sip-$portVersion/sip-$portVersion.tar.gz"
CHECKSUM_SHA256="501852b8325349031b769d1c03d6eab04f7b9b97f790ec79f3d3d04bf065d83e"
SOURCE_DIR="sip-$portVersion"
PATCHES="sip-$portVersion.patch"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
sip = $portVersion
"
REQUIRES="
"
PROVIDES_python="
sip_python = $portVersion
cmd:python2_sip = $portVersion
"
REQUIRES_python="
haiku
cmd:python2
"
REPLACES_python="
python_sip
"
PROVIDES_python3="
sip_python3 = $portVersion
cmd:sip = $portVersion
"
REQUIRES_python3="
haiku
cmd:python3
"
REPLACES_python3="
python3_sip
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python2
cmd:python3
cmd:gcc
cmd:make
"
BUILD()
{
OLDPYTHONPATH=$PYTHONPATH
mkdir -p build && cd build
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python2/bin/python2
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$OLDPYTHONPATH
$python ../configure.py \
--platform=haiku-g++ \
--bindir=$binDir \
--incdir=$includeDir/python2.7 \
--destdir=$installLocation \
#--sipdir= \
make $jobArgs
mkdir -p ../build3 && cd ../build3
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python3/bin/python3
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$OLDPYTHONPATH
$python ../configure.py \
--platform=haiku-g++ \
--bindir=$binDir \
--incdir=$includeDir/python${pythonVersion}m \
--destdir=$installLocation \
#--sipdir= \
make $jobArgs
}
INSTALL()
{
cd build
make install
mv $binDir/sip $binDir/python2-sip
packageEntries python \
$prefix/lib/python* \
$binDir \
$developDir
cd ../build3
make install
packageEntries python3 \
$prefix/lib/python* \
$binDir \
$developDir
}